forked from dhedge/V2-Public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
103 lines (103 loc) · 7.1 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
{
"name": "dhedge-ovm",
"version": "1.0.0",
"description": "dHEDGE ovm smart contracts",
"main": "hardhat-config.js",
"directories": {
"test": "test"
},
"scripts": {
"lint:sol": "solhint \"contracts/**/*.sol\"",
"prettier": "prettier --write \"contracts/**/*.sol\" \"test/**/*.js\" \"scripts/**/*.js\"",
"fork:evm": "hardhat node --fork $(grep ALCHEMY_EVM_URL .env | cut -d '=' -f2)$(grep ALCHEMY_EVM_KEY .env | cut -d '=' -f2)",
"fork:polygon": "hardhat node --fork $(grep ALCHEMY_POLYGON_URL .env | cut -d '=' -f2)$(grep ALCHEMY_POLYGON_KEY .env | cut -d '=' -f2)",
"fork:mumbai": "hardhat node --fork https://rpc-mumbai.maticvigil.com/v1/$(grep MATIC_KEY .env | cut -d '=' -f2)",
"test:unit": "hardhat test test/unit/*Test.* test/unit/**/*Test.* --network hardhat",
"test:inte:ovm": "hardhat test test/integration/ovm/*.js",
"test:inte:evm": "hardhat test test/integration/evm/*.js --network localhost",
"test:inte:polygon": "hardhat test test/integration/polygon/*.js --network localhost",
"test:inte:mumbai": "hardhat test test/integration/mumbai/*.js --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",
"deploy:ovm": "node scripts/DHedge.deploy.js",
"deploy:mumbai": "hardhat run ./scripts/mumbai/deploy.js --network mumbai",
"deploy:polygon:prod": "hardhat run ./scripts/polygon/deploy-prod.js --network polygon",
"deploy:polygon:staging": "hardhat run ./scripts/polygon/deploy-staging.js --network polygon",
"upgrade:mumbai:poolFactory": "npx hardhat upgrade --pool-factory true --network mumbai",
"upgrade:mumbai:assetHandler": "npx hardhat upgrade --asset-handler true --network mumbai",
"upgrade:mumbai:poolLogic": "npx hardhat upgrade --pool-logic true --network mumbai",
"upgrade:mumbai:poolManagerLogic": "npx hardhat upgrade --pool-manager-logic true --network mumbai",
"upgrade:mumbai:assets": "npx hardhat upgrade --assets true --network mumbai",
"upgrade:mumbai:all": "npx hardhat upgrade --pool-factory true --asset-handler true --pool-logic true --pool-manager-logic true --assets true --network mumbai",
"upgrade:polygon:poolFactory": "npx hardhat upgrade --pool-factory true --network polygon",
"upgrade:polygon:poolFactory:production": "npx hardhat upgrade --pool-factory true --network polygon --production true",
"upgrade:polygon:assetHandler": "npx hardhat upgrade --asset-handler true --network polygon",
"upgrade:polygon:poolLogic": "npx hardhat upgrade --pool-logic true --network polygon",
"upgrade:polygon:poolManagerLogic": "npx hardhat upgrade --pool-manager-logic true --network polygon",
"upgrade:polygon:poolPerformance": "npx hardhat upgrade --pool-performance true --network polygon",
"upgrade:polygon:assets": "npx hardhat upgrade --assets true --network polygon",
"upgrade:polygon:governanceNames": "npx hardhat upgrade --governance-names true --network polygon",
"upgrade:polygon:all": "npx hardhat upgrade --pause true --pool-factory true --asset-handler true --pool-logic true --pool-manager-logic true --assets true --aave-lending-pool-asset-guard true --sushi-l-p-asset-guard true --uniswap-v2-router-guard true --open-asset-guard true --quick-l-p-asset-guard true --quick-staking-rewards-guard true --sushi-mini-chef-v2-guard true --governance-names true --pool-performance true --network polygon",
"upgrade:polygon:all:production": "npx hardhat upgrade --pause true --pool-factory true --asset-handler true --pool-logic true --pool-manager-logic true --assets true --aave-lending-pool-asset-guard true --sushi-l-p-asset-guard true --uniswap-v2-router-guard true --open-asset-guard true --quick-l-p-asset-guard true --quick-staking-rewards-guard true --sushi-mini-chef-v2-guard true --governance-names true --pool-performance true --production true --network polygon",
"upgrade:polygon:unpause": "npx hardhat upgrade --unpause true --network polygon",
"upgrade:polygon:unpause:production": "npx hardhat upgrade --unpause true --production true --network polygon",
"check:polygon:ownership": "npx hardhat checkConfig --ownership true --network polygon",
"check:polygon:factory": "npx hardhat checkConfig --factory true --network polygon",
"check:polygon:governance": "npx hardhat checkConfig --governance true --network polygon",
"check:polygon:assets": "npx hardhat checkConfig --assets true --network polygon",
"check:polygon:bytecode": "npx hardhat checkConfig --bytecode true --network polygon",
"check:polygon:all": "npx hardhat checkConfig --ownership true --factory true --governance true --assets true --network polygon",
"check:staging:ownership": "npx hardhat checkConfig --environment staging --ownership true --network polygon",
"check:staging:factory": "npx hardhat checkConfig --environment staging --factory true --network polygon",
"check:staging:governance": "npx hardhat checkConfig --environment staging --governance true --network polygon",
"check:staging:assets": "npx hardhat checkConfig --environment staging --assets true --network polygon",
"check:staging:bytecode": "npx hardhat checkConfig --environment staging --bytecode true --network polygon",
"check:staging:all": "npx hardhat checkConfig --environment staging --ownership true --factory true --governance true --assets true --network polygon",
"doc:gen": "solidity-docgen --solc-module solc-0.7 -t templates",
"prepare": "husky install",
"verify:polygon": "hardhat run ./scripts/verify.js --network polygon"
},
"author": "dHEDGE Team",
"license": "ISC",
"devDependencies": {
"@eth-optimism/hardhat-ovm": "^0.2.2",
"@gnosis.pm/mock-contract": "github:gnosis/mock-contract#master",
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@openzeppelin/hardhat-upgrades": "^1.8.2",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/github": "^7.2.3",
"@semantic-release/release-notes-generator": "^9.0.3",
"@types/mocha": "^9.0.0",
"chai": "^4.3.4",
"chai-almost": "^1.0.1",
"cross-env": "^7.0.3",
"ethereum-waffle": "^3.3.0",
"hardhat": "^2.6.1",
"hardhat-abi-exporter": "^2.2.1",
"hardhat-gas-reporter": "^1.0.4",
"husky": "^6.0.0",
"prettier": "^2.2.1",
"prettier-plugin-solidity": "^1.0.0-beta.9",
"semantic-release": "17.4.3",
"solc-0.7": "npm:solc@^0.7.6",
"solhint": "^3.3.6",
"solidity-coverage": "^0.7.16",
"ts-generator": "^0.1.1",
"ts-node": "^10.3.0"
},
"dependencies": {
"@chainlink/contracts": "^0.1.4",
"@gnosis.pm/safe-core-sdk": "^0.3.1",
"@gnosis.pm/safe-ethers-adapters": "^0.1.0-alpha.3",
"@nomiclabs/hardhat-etherscan": "^2.1.4",
"@openzeppelin/contracts": "3.4.1-solc-0.7-2",
"@openzeppelin/contracts-upgradeable": "3.4.1-solc-0.7-2",
"csv-stringify": "^5.6.2",
"csvtojson": "^2.0.10",
"decimal.js": "^10.3.1",
"dotenv": "^8.2.0",
"solidity-docgen": "^0.5.13"
}
}