-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathpackage.json
91 lines (91 loc) · 3.14 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
{
"name": "root",
"private": true,
"workspaces": [
"src"
],
"license": "Apache-2.0",
"scripts": {
"size": "node below_size_limit.js",
"build": "yarn clean && yarn compile && yarn adapter",
"clean": "rimraf src/artifacts && rimraf src/gen && rimraf cache",
"compile": "hardhat --max-memory 4096 compile",
"adapter": "yarn adapter:gen && yarn adapter:build",
"adapter:gen": "rimraf src/gen/typechain && typechain --target ethers-v5 --out-dir src/gen/typechain \"./src/artifacts/contracts/**/*[^dbg].json\"",
"adapter:build": "rimraf src/gen/adapter && tsc ./src/gen/typechain/index.ts --outDir ./src/gen/adapter",
"test": "yarn build && yarn test:hardhat",
"test:hardhat": "hardhat test \"tests/index.spec.ts\"",
"test:gas-report": "REPORT_GAS=true yarn test",
"test:benchmark": "hardhat test tests/index.bench.ts",
"test:forge": "forge test -vv",
"test:forge:coverage": "forge coverage --report summary",
"lint": "yarn lint:ts && yarn lint:sol",
"lint:fix": "yarn lint:ts:fix && yarn lint:sol:fix",
"lint:sol": "solhint \"./src/contracts/**/*.sol\" \"./tests_foundry/**/*.sol\"",
"lint:sol:fix": "solhint \"./src/contracts/**/*.sol\" \"./tests_foundry/**/*.sol\" --fix",
"lint:ts": "eslint -c .eslintrc.js \"./**/*.ts\"",
"lint:ts:fix": "eslint -c .eslintrc.js --fix \"./**/*.ts\"",
"format": "yarn format:ts && yarn format:sol",
"format:ts": "prettier --write \"./**/*.ts\"",
"format:sol": "forge fmt",
"release": "yarn build && yarn publish src --access public",
"release-list": "yarn build && cd src && yarn release-list",
"verify": "hardhat tenderly:verify"
},
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.2.2",
"@nomiclabs/hardhat-truffle5": "^2.0.7",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@tenderly/hardhat-tenderly": "^1.6.1",
"@typechain/ethers-v5": "^10.2.0",
"@types/chai-as-promised": "^7.1.5",
"@types/chai-string": "^1.4.2",
"@types/mocha": "^10.0.1",
"@types/node": "^18.15.2",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"chai-bignumber": "^3.1.0",
"chai-string": "^1.5.0",
"concurrently": "^7.6.0",
"cross-var": "^1.1.0",
"dotenv": "^16.0.3",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"ethers": "^5.7.2",
"hardhat": "2.13.0",
"hardhat-gas-reporter": "1.0.9",
"husky": "^4.2.3",
"lint-staged": "^13.2.0",
"rimraf": "^4.4.0",
"solhint": "^3.4.1",
"ts-node": "^10.9.1",
"typechain": "^8.1.1",
"typescript": "4.9.5"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint-staged"
}
},
"lint-staged": {
"*.ts": [
"eslint -c .eslintrc.js",
"prettier --write",
"eslint -c .eslintrc.js"
],
"*.sol": [
"yarn lint:sol",
"yarn format:sol",
"yarn lint:sol"
]
},
"config": {
"mnemonic": "test test test test test test test test test test test junk",
"etherBalance": "100000",
"extra": ""
}
}