-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
110 lines (110 loc) · 5.23 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
{
"name": "dhedge-v2",
"version": "1.0.0",
"description": "dHEDGE V2 smart contracts",
"scripts": {
"lint": "pnpm lint:sol && eslint . --max-warnings=0",
"lint:sol": "solhint 'contracts/**/*.sol' && solhint 'test/**/*.sol' --config test/.solhint.test.json",
"prettier:check": "prettier -l --plugin=prettier-plugin-solidity '**/*.{js,ts,sol}'",
"fork:polygon": "hardhat node --fork $(grep POLYGON_URL .env | cut -d '=' -f2)",
"fork:arbitrum": "hardhat node --fork $(grep ARBITRUM_URL .env | cut -d '=' -f2)",
"fork:ovm": "hardhat node --fork $(grep OPTIMISM_URL .env | cut -d '=' -f2)",
"fork:base": "hardhat node --fork $(grep BASE_URL .env | cut -d '=' -f2)",
"fork:polygon:aave-fix": "npm run fork:polygon -- --fork-block-number 49470120",
"compile": "hardhat compile",
"test:unit": "hardhat test test/unit/**/*Test.*",
"test:ci": "hardhat test test/unit/core/*Test.*",
"test:integr": "hardhat test --network localhost",
"coverage": "node --max-old-space-size=4096 ./node_modules/.bin/hardhat coverage --network hardhat",
"coverage:unit": "node --max-old-space-size=4096 ./node_modules/.bin/hardhat coverage --testfiles \"test/unit/*.js\" --network hardhat",
"check:polygon:ownership": "hardhat checkConfig --specific true --ownership true --network polygon",
"check:polygon:factory": "hardhat checkConfig --specific true --factory true --network polygon",
"check:polygon:governance": "hardhat checkConfig --specific true --governance true --network polygon",
"check:polygon:assets": "hardhat checkConfig --specific true --assets true --network polygon",
"check:polygon:bytecode": "hardhat checkConfig --specific true --bytecode true --network polygon",
"check:polygon:all": "hardhat checkConfig --network polygon",
"check:staging:ownership": "hardhat checkConfig --environment staging --specific true --ownership true --network polygon",
"check:staging:factory": "hardhat checkConfig --environment staging --specific true --factory true --network polygon",
"check:staging:governance": "hardhat checkConfig --environment staging --specific true --governance true --network polygon",
"check:staging:assets": "hardhat checkConfig --environment staging --specific true --assets true --network polygon",
"check:staging:bytecode": "hardhat checkConfig --environment staging --specific true --bytecode true --network polygon",
"check:staging:all": "hardhat checkConfig --environment staging --network polygon",
"check:polygon:all:prod": "hardhat checkConfig --network polygon",
"check:polygon:all:staging": "pnpm check:polygon:all:prod -- --environment staging",
"check:ovm:all": "hardhat checkConfig --network ovm",
"dynamicbonds:polygon:getconfig": "hardhat dynamicBonds --get-config true --production true --network polygon",
"dynamicbonds:polygon:updateterms": "hardhat dynamicBonds --update-terms true --production true --network polygon",
"abigen": "hardhat export-abi",
"preinstall": "npx only-allow pnpm",
"postinstall": "pnpm compile",
"prepare": "husky install"
},
"author": "dHEDGE Team",
"license": "ISC",
"devDependencies": {
"@nomicfoundation/hardhat-foundry": "^1.1.2",
"@nomicfoundation/hardhat-verify": "^2.0.3",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@nomiclabs/hardhat-waffle": "^2.0.6",
"@openzeppelin/hardhat-upgrades": "1.17.0",
"@openzeppelin/upgrades-core": "^1.34.1",
"@pythnetwork/pyth-evm-js": "^1.61.0",
"@safe-global/protocol-kit": "^1.0.0",
"@safe-global/safe-core-sdk-types": "^2.0.0",
"@safe-global/safe-ethers-adapters": "^0.2.0-alpha.0",
"@typechain/ethers-v5": "^8.0.5",
"@typechain/hardhat": "^3.0.0",
"@types/chai": "^5.0.0",
"@types/mocha": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "5.14.0",
"axios": "^1.6.8",
"chai": "^4.3.4",
"csv-stringify": "^5.6.2",
"csvtojson": "^2.0.10",
"decimal.js": "^10.3.1",
"dotenv": "^8.2.0",
"eslint": "8.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-prettier": "^5.1.3",
"ethereum-waffle": "^4.0.10",
"ethers": "5.7.2",
"hardhat": "2.22.10",
"hardhat-abi-exporter": "^2.2.1",
"hardhat-contract-sizer": "^2.6.1",
"hardhat-gas-reporter": "^1.0.4",
"husky": "^8.0.1",
"lint-staged": "^13.2.1",
"prettier": "^3.2.5",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^5.0.3",
"solidity-coverage": "^0.7.16",
"ts-node": "^10.3.0",
"typechain": "^6.0.5",
"typescript": "4.3.5"
},
"dependencies": {
"@chainlink/contracts": "^0.1.4",
"@openzeppelin/contracts": "3.4.2-solc-0.7",
"@openzeppelin/contracts-upgradeable": "3.4.2-solc-0.7",
"@uniswap/lib": "^4.0.1-alpha",
"@uniswap/v3-core": "^1.0.0",
"@uniswap/v3-periphery": "^1.4.4"
},
"lint-staged": {
"contracts/**/*.sol": [
"solhint -w 0",
"prettier --write --plugin=prettier-plugin-solidity"
],
"test/**/*.sol": [
"solhint --config test/.solhint.test.json -w 0",
"prettier --write --plugin=prettier-plugin-solidity"
],
"*.{ts,js}": [
"prettier --write"
],
"*.ts": "eslint --max-warnings=0",
"*.js": "eslint --cache --fix"
}
}