-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
102 lines (102 loc) · 4.92 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
{
"license": "MIT",
"version": "1.0.0",
"private": false,
"name": "solidity-hardhat-typescript-boilerplate",
"description": "Solidity Hardhat TypeScript Boilerplate",
"scripts": {
"prepare": "husky install",
"start": "hardhat node",
"clean": "hardhat clean",
"compile": "hardhat compile",
"console": "hardhat console",
"node": "hardhat node",
"finder": "hardhat finder",
"storage:lock": "hardhat storage-lock",
"storage:check": "hardhat storage-check",
"size": "hardhat size-contracts",
"deploy": "deploy.sh",
"deploy:all": "hardhat run scripts/deploy.ts --network",
"deploy-verify:all": "hardhat run scripts/deployAndVerify.ts --network",
"verify": "hardhat verify --network",
"test": "hardhat test",
"test:trace": "hardhat test --trace",
"test:fresh": "hardhat compile --force && hardhat test --no-compile --trace",
"test:coverage": "hardhat coverage",
"build": "build.sh",
"analyze:static": "docker run -v $(pwd):/labs analyze:latest slither",
"analyze:security": "docker run -v $(pwd):/labs analyze:latest myth analyze --solc-json mythril.config.json",
"analyze:all": "analyze.sh",
"generate:flatten": "docker run -v $(pwd):/labs analyze:latest slither-flat --solc-args '--base-path node_modules' --dir soldata/flatten/",
"generate:abi": "docker run -v $(pwd):/labs analyze:latest solc --abi --base-path /labs/node_modules --allow-paths . ./=../ -o soldata/abi/ --overwrite",
"generate:all-abi": "docker run -v $(pwd):/labs analyze:latest solc --abi --base-path /labs/node_modules --allow-paths . ./=../ -o soldata/abi/ --overwrite ./contracts/**/*.sol",
"generate:bin": "docker run -v $(pwd):/labs analyze:latest solc --bin --base-path /labs/node_modules --allow-paths . ./=../ -o soldata/bin/ --overwrite",
"generate:all-bin": "docker run -v $(pwd):/labs analyze:latest solc --bin --base-path /labs/node_modules --allow-paths . ./=../ -o soldata/bin/ --overwrite ./contracts/**/*.sol",
"generate:metadata": "docker run -v $(pwd):/labs analyze:latest solc --metadata --base-path /labs/node_modules --allow-paths . ./=../ -o soldata/metadata/ --overwrite",
"generate:all-metadata": "docker run -v $(pwd):/labs analyze:latest solc --metadata --base-path /labs/node_modules --allow-paths . ./=../ -o soldata/metadata/ --overwrite ./contracts/**/*.sol",
"generate:docs": "hardhat docgen",
"generate:badges": "istanbul-badges-readme",
"share": "remixd -s . --remix-ide https://remix.ethereum.org",
"format": "prettier '**/{*,''}.{json,js,ts,sol}' --write; eslint '**/{*,''}.{json,js,ts}' --fix; solhint 'contracts/*.sol' --fix;",
"format:json": "prettier '**/{*,''}.json' --write; eslint '**/{*,''}.json' --fix;",
"format:js": "prettier '**/{*,''}.js' --write; eslint '**/{*,''}.js' --fix;",
"format:ts": "prettier '**/{*,''}.ts' --write; eslint '**/{*,''}.ts' --fix;",
"format:sol": "prettier '**/*.sol' --write; solhint 'contracts/*.sol' --fix;",
"lint": "prettier '**/{*,''}.{json,js,ts,sol}' --check; solhint 'contracts/*.sol'; eslint '**/{*,''}.{json,js,ts}';",
"hook:pre-push": "tsc --noEmit && prettier '**/{*,''}.{json,js,ts,sol}' --check && solhint 'contracts/*.sol' && eslint '**/{*,''}.{json,js,ts}'"
},
"husky": {
"hooks": {
"pre-push": "yarn run hook:pre-push"
}
},
"engines": {
"node": ">=18.0.0"
},
"dependencies": {},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.2",
"@nomicfoundation/hardhat-ethers": "^3.0.4",
"@nomicfoundation/hardhat-network-helpers": "^1.0.9",
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
"@nomicfoundation/hardhat-verify": "^1.1.1",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@openzeppelin/contracts": "^4.9.3",
"@remix-project/remixd": "^0.6.18",
"@typechain/ethers-v6": "^0.5.0",
"@typechain/hardhat": "^9.0.0",
"@types/chai": "^4.3.6",
"@types/mocha": "^10.0.2",
"@types/node": "^20.8.2",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"chai": "^4.3.10",
"dotenv": "^16.3.1",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-promise": "^6.1.1",
"ethers": "^6.7.1",
"hardhat": "^2.17.4",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-finder": "^3.0.0",
"hardhat-gas-reporter": "^1.0.9",
"hardhat-storage-vault": "^1.3.0",
"hardhat-tracer": "^2.6.0",
"husky": "^8.0.3",
"istanbul-badges-readme": "^1.8.5",
"prettier": "^3.0.3",
"prettier-plugin-solidity": "^1.1.3",
"solhint": "^3.6.2",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.8.5",
"solidity-docgen": "0.6.0-beta.36",
"ts-node": "^10.9.1",
"typechain": "^8.3.1",
"typescript": "^5.2.2"
}
}