-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
66 lines (66 loc) · 4.17 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
{
"scripts": {
"prepare": "husky install",
"postinstall": "cd subgraph && npm install && docker pull ghcr.io/crytic/echidna/echidna:v2.0.4",
"eslint": "eslint tests scripts deployment utilities configuration hardhat.config.ts --ext .ts",
"solhint": "solhint contracts/**/*.sol",
"lint": "npm run eslint && npm run solhint",
"typecheck": "tsc --noEmit",
"staticcheck": "npm run build:contracts && npm run lint && npm run typecheck",
"build:contracts": "hardhat clean && hardhat compile",
"build:subgraph:staging": "cd subgraph && npm run build:staging",
"build:subgraph:production": "cd subgraph && npm run build:production",
"update-frontend": "hardhat run scripts/updateFrontEnd.ts --network localhost",
"test:contracts:unit": "hardhat coverage --network hardhat",
"test:contracts:fuzzing:base": "docker run -e TEST_MODE=$TEST_MODE --rm -v `pwd`:/nifty ghcr.io/crytic/echidna/echidna:v2.0.4 bash -c \"solc-select install 0.8.17 && solc-select use 0.8.17 && echidna-test /nifty/tests/property/Nifty.test.sol --contract NiftyTest --config /nifty/tests/property/config.yaml --test-mode ${TEST_MODE}\"",
"test:contracts:property": "TEST_MODE=property npm run test:contracts:fuzzing:base",
"test:contracts:assertion": "TEST_MODE=assertion npm run test:contracts:fuzzing:base",
"test:subgraph:unit": "cd subgraph && npm run test",
"test:unit": "npm run test:contracts:unit && npm run test:subgraph:unit && npm run test:contracts:property && npm run test:contracts:assertion",
"test:contracts:integration": "hardhat test --network goerli",
"test:integration": "npm run test:contracts:integration",
"test": "npm run test:unit && npm run test:integration",
"check:contracts:unit": "npm run staticcheck && npm run test:contracts:unit",
"check:unit": "npm run staticcheck && npm run test:unit",
"check": "npm run check:unit && npm run test:integration",
"analyze:setup": "conda env create --file environment.yml && solc-select install 0.8.17 && solc-select use 0.8.17",
"analyze:slither": "eval \"$(conda shell.bash hook)\" && conda activate nifty && slither ./contracts --solc-remaps '@openzeppelin=node_modules/@openzeppelin @chainlink=node_modules/@chainlink' --exclude naming-convention,external-function,low-level-calls --hardhat-ignore-compile",
"analyze:mythril": "eval \"$(conda shell.bash hook)\" && conda activate nifty && myth analyze contracts/Nifty.sol --solc-json ./solc.json",
"analyze": "npm run analyze:slither ; npm run analyze:mythril",
"report-gas-usage": "hardhat test --network hardhat",
"script:development": "hardhat run --network localhost",
"script:staging": "hardhat run --network goerli",
"script:production": "hardhat run --network mainnet",
"deploy:contracts:development": "npm run check:contracts:unit && hardhat node",
"deploy:contracts:staging": "npm run check:contracts:unit && hardhat deploy --network goerli",
"deploy:contracts:production": "npm run check && hardhat deploy --network mainnet",
"deploy:subgraph:staging": "cd subgraph && npm run deploy:staging",
"deploy:subgraph:production": "cd subgraph && npm run deploy:production"
},
"devDependencies": {
"@graphprotocol/graph-cli": "0.36.1",
"@nomicfoundation/hardhat-toolbox": "2.0.0",
"@nomiclabs/hardhat-ethers": "npm:[email protected]",
"@nomiclabs/hardhat-etherscan": "3.1.0",
"@typechain/hardhat": "6.1.3",
"@types/fs-extra": "9.0.13",
"@typescript-eslint/eslint-plugin": "5.38.0",
"dotenv": "16.0.2",
"eslint": "8.24.0",
"ethers": "5.7.1",
"fs-extra": "10.1.0",
"hardhat": "2.11.2",
"hardhat-deploy": "0.11.15",
"hardhat-gas-reporter": "1.0.9",
"husky": "8.0.2",
"prettier": "2.7.1",
"prettier-plugin-solidity": "1.0.0-beta.24",
"solhint": "3.3.7",
"solidity-coverage": "0.8.2",
"typechain": "8.1.0",
"zod": "3.19.1"
},
"dependencies": {
"@openzeppelin/contracts": "4.7.3"
}
}