-
Notifications
You must be signed in to change notification settings - Fork 592
/
package.json
121 lines (121 loc) · 6.07 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"name": "seaport",
"version": "1.6.0",
"description": "Seaport is a marketplace protocol for safely and efficiently buying and selling NFTs. Each listing contains an arbitrary number of items that the offerer is willing to give (the \"offer\") along with an arbitrary number of items that must be received along with their respective receivers (the \"consideration\").",
"main": "contracts/Seaport.sol",
"author": "0age",
"license": "MIT",
"private": false,
"engines": {
"node": ">=18.15.0"
},
"dependencies": {
"@nomicfoundation/hardhat-network-helpers": "^1.0.7",
"@openzeppelin/contracts": "^4.9.6",
"ethers": "^5.5.3",
"ethers-eip712": "^0.2.0",
"hardhat": "^2.21.0",
"merkletreejs": "^0.3.9",
"seaport-core": "1.6.6",
"seaport-sol": "1.6.0",
"seaport-types": "1.6.3",
"solady": "^0.0.84"
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^1.0.5",
"@nomiclabs/hardhat-ethers": "^2.0.6",
"@nomiclabs/hardhat-etherscan": "^3.1.0",
"@rari-capital/solmate": "^6.2.0",
"@typechain/ethers-v5": "^10.0.0",
"@typechain/hardhat": "^6.0.0",
"@types/chai": "^4.3.0",
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.11",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"chai": "^4.3.4",
"cli-barchart": "^0.2.3",
"dotenv": "^16.0.0",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-n": "^15.2.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"hardhat-gas-reporter": "^1.0.7",
"husky": ">=6",
"lint-staged": ">=10",
"prettier": "^2.5.1",
"prettier-plugin-solidity": "^1.1.0",
"scuffed-abi": "^1.0.4",
"solhint": "^3.3.6",
"solidity-coverage": "^0.8.10",
"ts-node": "^10.4.0",
"typechain": "^8.0.0",
"typescript": "^4.5.4"
},
"resolutions": {
"async": ">=2.6.4",
"cross-fetch": ">=3.1.5",
"got": ">=11.8.5",
"lodash": ">=4.17.21",
"node-fetch": ">=2.6.7",
"underscore": ">=1.12.1",
"undici": ">=5.8.2",
"yargs-parser": ">=5.0.1",
"minimist": ">=1.2.6",
"json-schema": ">=0.4.0",
"simple-get": ">=2.8.2",
"tar": ">=4.4.18",
"normalize-url": ">=4.5.1",
"ws": ">=5.2.3",
"path-parse": ">=1.0.7",
"elliptic": ">=6.5.4",
"minimatch": ">=3.0.5",
"flat": ">=5.0.1",
"json5": ">=1.0.2",
"cookiejar": ">=2.1.4"
},
"scripts": {
"build": "yarn clean; hardhat compile --config ./hardhat.config.ts; yarn show:headroom;",
"build:quick": "hardhat compile --config ./hardhat.config.ts; yarn show:headroom;",
"build:ref": "hardhat compile --config ./hardhat-reference.config.ts",
"build:nospec": "yarn clean; NO_SPECIALIZER=true hardhat compile --config ./hardhat.config.ts; yarn show:headroom;",
"clean": "hardhat clean; hardhat clean --config ./hardhat-reference.config.ts; forge clean; rm -rf coverage coverage.json hh-cache hh-cache-ref",
"test": "yarn clean; hardhat test --config ./hardhat.config.ts",
"test:quick": "hardhat test --config ./hardhat.config.ts",
"test:nospec": "NO_SPECIALIZER=true hardhat test --config ./hardhat.config.ts",
"test:ref": "REFERENCE=true hardhat test --config ./hardhat-reference.config.ts",
"profile": "yarn clean; REPORT_GAS=true hardhat test --config ./hardhat.config.ts; hardhat compare-reports",
"profile:show": "hardhat compare-reports",
"profile:nospec": "yarn clean; NO_SPECIALIZER=true REPORT_GAS=true hardhat test --config ./hardhat.config.ts",
"coverage": "yarn clean; hardhat coverage --config ./hardhat-coverage.config.ts --solcoverjs ./config/.solcover.js",
"coverage:ref": "REFERENCE=true hardhat coverage --config ./hardhat-reference-coverage.config.ts --solcoverjs ./config/.solcover-reference.js",
"coverage:forge": "SEAPORT_COVERAGE=true forge coverage --report summary",
"coverage:fuzz": "SEAPORT_COVERAGE=true forge coverage --match-path test/foundry/new/FuzzCoverage.t.sol --report summary --report lcov && lcov -o lcov.info --remove lcov.info --rc lcov_branch_coverage=1 --rc lcov_function_coverage=1 'test/*' 'script/*' 'contracts/helpers/*' 'contracts/test/*' 'contracts/zones/*' 'reference/*' && genhtml lcov.info -o html --branch",
"generate:optimized-yul": "yarn build; jq -r '.output.contracts.\"contracts/Seaport.sol\".Seaport.irOptimized' artifacts/build-info/\"$(jq -r '.buildInfo[17:]' artifacts/contracts/Seaport.sol/Seaport.dbg.json)\" | cat > Seaport.yul",
"lint:check": "yarn lint:check:format && yarn lint:check:solhint && yarn lint:check:eslint",
"lint:check:format": "prettier --check **.{sol,js,ts}",
"lint:check:solhint": "yarn build && solhint --config ./config/.solhint.json --ignore-path ./config/.solhintignore contracts/**/*.sol",
"lint:check:eslint": "eslint . --ext js,ts",
"lint:fix": "yarn lint:fix:format && yarn lint:fix:eslint",
"lint:fix:format": "prettier --write **.{sol,js,ts}",
"lint:fix:eslint": "eslint --fix . --ext js,ts",
"show:headroom": "jq -r '.deployedBytecode' artifacts/contracts/Seaport.sol/Seaport.json | tr -d '\n' | wc -m | awk '{print 24577 - ($1 - 2)/2}'",
"test:forge": "FOUNDRY_PROFILE=reference forge build; FOUNDRY_PROFILE=optimized forge build; FOUNDRY_PROFILE=test forge test -vvv",
"test:forge:lite": "FOUNDRY_PROFILE=reference forge build; FOUNDRY_PROFILE=lite forge test -vvv",
"test:forge:ref": "FOUNDRY_PROFILE=reference forge build; FOUNDRY_PROFILE=optimized forge build; FOUNDRY_PROFILE=reference MOAT_PROFILE=reference forge test -vvv",
"build:validator": "hardhat compile --config ./hardhat-validator.config.ts",
"test:validator": "hardhat test --config ./hardhat-validator.config.ts",
"test:fuzz": "forge test --mp test/foundry/new/FuzzMain.t.sol",
"test:fuzz:concrete": "forge test --mt test_concrete",
"test:fuzz:metrics": "yarn ts-node scripts/plot_metrics.ts",
"prepare": "husky install"
},
"lint-staged": {
"*.sol": "prettier --write",
"*.js": "prettier --write",
"*.ts": "prettier --write"
}
}