-
Notifications
You must be signed in to change notification settings - Fork 41
/
package.json
176 lines (176 loc) · 11.4 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"name": "@sturdy/protocol-v1",
"version": "1.0.1",
"description": "Sturdy Protocol V1 smart contracts",
"files": [
"contracts",
"artifacts"
],
"scripts": {
"run-env": "npm i && tail -f /dev/null",
"hardhat": "hardhat",
"hardhat:kovan": "hardhat --network kovan",
"hardhat:tenderly-main": "hardhat --network tenderly",
"hardhat:tenderly-ftm": "hardhat --network tenderly",
"hardhat:ropsten": "hardhat --network ropsten",
"hardhat:goerli": "hardhat --network goerli",
"hardhat:ftm_test": "hardhat --network ftm_test",
"hardhat:ftm": "hardhat --network ftm",
"hardhat:main": "hardhat --network main",
"hardhat:docker": "hardhat --network hardhatevm_docker",
"compile": "SKIP_LOAD=true hardhat compile",
"console:fork": "FORK=main hardhat console",
"test": "FORK=main SKIP_DEPLOY=true TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test-suites/test-sturdy/*.spec.ts --network localhost",
"test:without:deploy:tenderly": "SKIP_DEPLOY=true TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test-suites/test-sturdy/*.spec.ts --network tenderly",
"test:ftm": "FORK=ftm TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test-suites/test-ftm/*.spec.ts --network localhost",
"test:ftm:without:deploy": "FORK=ftm SKIP_DEPLOY=true TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test-suites/test-ftm/*.spec.ts --network localhost",
"test:ftm:deploy:new:vault": "FORK=ftm SKIP_DEPLOY=true TS_NODE_TRANSPILE_ONLY=1 DEPLOY_NEW_VAULT=true hardhat test ./test-suites/test-ftm/__setup.deploy.spec.ts ./test-suites/test-ftm/tomb-mimatic-beefy-vault.spec.ts --network localhost",
"test:goerli": "FORK=goerli SKIP_DEPLOY=true TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test-suites/test-sturdy/__setup.deploy.spec.ts ./test-suites/test-sturdy/*.spec.goerli.ts ./test-suites/test-sturdy/lending-pool-addresses-provider.spec.goerli_last.ts --network localhost",
"test:ftm:testnet": "FORK=ftm_test SKIP_DEPLOY=true TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test-suites/test-ftm/__setup.deploy.spec.ts ./test-suites/test-ftm/*.spec.testnet.ts ./test-suites/test-ftm/lending-pool-addresses-provider.spec.testnet_last.ts --network localhost",
"test-scenarios": "npm run compile && npx hardhat test test-suites/test-sturdy/__setup.spec.ts test-suites/test-sturdy/scenario.spec.ts",
"test-subgraph:scenarios": "npm run compile && hardhat --network hardhatevm_docker test test-suites/test-sturdy/__setup.spec.ts test-suites/test-sturdy/subgraph-scenarios.spec.ts",
"dev:coverage": "buidler compile --force && buidler coverage --network coverage",
"sturdy:evm:fork:mainnet:migration": "FORK=main hardhat sturdy:mainnet --network localhost",
"sturdy:evm:fork:ftm:migration": "FORK=ftm hardhat sturdy:ftm --network localhost",
"sturdy:docker:full:migration": "npm run compile && npm run hardhat:docker -- sturdy:mainnet --skip-registry",
"sturdy:kovan:full:migration": "npm run compile && npm run hardhat:kovan -- sturdy:mainnet --skip-registry",
"sturdy:docker:full:migration:add-registry": "npm run compile && npm run hardhat:docker -- sturdy:mainnet",
"sturdy:kovan:full:migration:add-registry": "npm run compile && npm run hardhat:kovan -- sturdy:mainnet",
"sturdy:docker:add-market-to-registry-from-config": "npm run compile && npm run hardhat:docker -- add-market-to-registry --pool Sturdy",
"sturdy:kovan:add-market-to-registry-from-config": "npm run compile && npm run hardhat:kovan -- add-market-to-registry --pool Sturdy",
"sturdy:main:add-market-to-registry-from-config": "npm run compile && npm run hardhat:main -- add-market-to-registry --pool Sturdy",
"sturdy:docker:add-market-to-new-registry": "npm run compile && npm run hardhat:docker -- add-market-to-registry --pool Sturdy --deploy-registry",
"sturdy:kovan:add-market-to-new-registry": "npm run compile && npm run hardhat:kovan -- add-market-to-registry --pool Sturdy --verify --deploy-registry",
"sturdy:kovan:full:initialize": "npm run hardhat:kovan -- full:initialize-lending-pool --verify --pool Sturdy",
"sturdy:ropsten:full:migration": "npm run compile && npm run hardhat:ropsten -- sturdy:mainnet --verify",
"sturdy:fork:main:tenderly": "npm run compile && npm run hardhat:tenderly-main -- sturdy:mainnet",
"sturdy:fork:ftm:tenderly": "npm run compile && npm run hardhat:tenderly-ftm -- sturdy:ftm",
"sturdy:fork:main": "npm run compile && FORK=main hardhat sturdy:mainnet",
"sturdy:fork:kovan": "npm run compile && FORK=kovan hardhat sturdy:mainnet",
"sturdy:main": "npm run compile && hardhat sturdy:mainnet --network main",
"sturdy:lidoVaultImpl:main": "npm run compile && hardhat sturdy:lidoVaultImpl --network main",
"sturdy:lendingPoolImpl:main": "npm run compile && hardhat sturdy:lendingPoolImpl --network main",
"sturdy:lendigPoolConfigImpl:main": "npm run compile && hardhat sturdy:lendigPoolConfigImpl --network main",
"sturdy:lendingPoolCollateralImpl:main": "npm run compile && hardhat sturdy:lendingPoolCollateralImpl --network main",
"sturdy:incentiveTokenImpl:main": "npm run compile && hardhat sturdy:incentiveTokenImpl --network main",
"sturdy:incentiveControllerImpl:main": "npm run compile && hardhat sturdy:incentiveControllerImpl --network main",
"sturdy:kovan": "npm run compile && hardhat sturdy:mainnet --network kovan",
"sturdy:ftm": "npm run compile && hardhat sturdy:ftm --network ftm",
"sturdy:goerli": "npm run compile && hardhat sturdy:testnet --network goerli",
"sturdy:ftm_test": "npm run compile && hardhat sturdy:ftm:testnet --network ftm_test",
"sturdy:lidoVaultImpl:goerli": "npm run compile && hardhat sturdy:lidoVaultImpl --network goerli",
"sturdy:lendingPoolImpl:goerli": "npm run compile && hardhat sturdy:lendingPoolImpl --network goerli",
"sturdy:lendigPoolConfigImpl:goerli": "npm run compile && hardhat sturdy:lendigPoolConfigImpl --network goerli",
"sturdy:lendingPoolCollateralImpl:goerli": "npm run compile && hardhat sturdy:lendingPoolCollateralImpl --network goerli",
"sturdy:incentiveTokenImpl:goerli": "npm run compile && hardhat sturdy:incentiveTokenImpl --network goerli",
"sturdy:incentiveControllerImpl:goerli": "npm run compile && hardhat sturdy:incentiveControllerImpl --network goerli",
"sturdy:dai:goerli": "npm run compile && hardhat sturdy:testnet:dai --network goerli",
"sturdy:mockVaults:ftm_test": "npm run compile && hardhat sturdy:testnet:ftm:mockVaults --network ftm_test",
"sturdy:dai:ftm_test": "npm run compile && hardhat sturdy:testnet:dai --network ftm_test",
"sturdy:usdc:ftm_test": "npm run compile && hardhat sturdy:testnet:usdc --network ftm_test",
"sturdy:usdt:ftm_test": "npm run compile && hardhat sturdy:testnet:usdt --network ftm_test",
"sturdy:main:full:migration": "npm run compile && npm run hardhat:main -- sturdy:mainnet --verify",
"sturdy:main:full:initialize": "npm run compile && FORK=main full:initialize-tokens --pool Sturdy",
"prettier:check": "npx prettier -c 'tasks/**/*.ts' 'contracts/**/*.sol' 'helpers/**/*.ts' 'test-suites/test-sturdy/**/*.ts'",
"prettier:write": "prettier --write 'tasks/**/*.ts' 'contracts/**/*.sol' 'helpers/**/*.ts' 'test-suites/test-sturdy/**/*.ts'",
"ci:test": "npm run compile && npm run test",
"ci:clean": "rm -rf ./artifacts ./cache ./types",
"print-contracts:kovan": "npm run hardhat:kovan -- print-contracts",
"print-contracts:main": "npm run hardhat:main -- print-contracts",
"print-contracts:ropsten": "npm run hardhat:main -- print-contracts",
"kovan:verify": "npm run hardhat:kovan verify:general -- --all --pool Sturdy",
"ropsten:verify": "npm run hardhat:ropsten verify:general -- --all --pool Sturdy",
"goerli:verify": "npm run hardhat:goerli verify:general -- --all --pool Sturdy",
"mainnet:verify": "npm run hardhat:main verify:general -- --all --pool Sturdy",
"ftm_test:verify": "npm run hardhat:ftm_test verify:general -- --all --pool Fantom",
"ftm:verify": "npm run hardhat:ftm verify:general -- --all --pool Fantom",
"kovan:verify:tokens": "npm run hardhat:kovan verify:tokens -- --pool Sturdy",
"ropsten:verify:tokens": "npm run hardhat:ropsten verify:tokens -- --pool Sturdy",
"goerli:verify:tokens": "npm run hardhat:goerli verify:tokens -- --pool Sturdy",
"mainnet:verify:tokens": "npm run hardhat:main verify:tokens -- --pool Sturdy",
"ftm_test:verify:tokens": "npm run hardhat:ftm_test verify:tokens -- --pool Fantom",
"ftm:verify:tokens": "npm run hardhat:ftm verify:tokens -- --pool Fantom",
"print-config:fork:mainnet": "FORK=main hardhat print-config:fork",
"print-config:kovan": "hardhat --network kovan print-config --pool Sturdy --data-provider 0xA1901785c29cBd48bfA74e46b67C736b26054fa4",
"external:deploy-assets-kovan": "npm run compile && hardhat --network kovan external:deploy-new-asset --pool Sturdy --symbol ${SYMBOL} --yieldaddress ${YIELDADDRESS} --verify",
"external:deploy-assets-main": "npm run compile && hardhat --network main external:deploy-new-asset --pool Sturdy --symbol ${SYMBOL} --yieldaddress ${YIELDADDRESS} --verify",
"external:deploy-assets-ftm_test": "npm run compile && hardhat --network ftm_test external:deploy-new-asset --pool Fantom --symbol ${SYMBOL} --yieldaddress ${YIELDADDRESS}",
"prepublishOnly": "npm run compile"
},
"devDependencies": {
"@nomiclabs/buidler": "^1.4.7",
"@nomiclabs/buidler-ethers": "2.0.0",
"@nomiclabs/buidler-etherscan": "^2.1.0",
"@nomiclabs/buidler-waffle": "2.0.0",
"@nomiclabs/hardhat-ethers": "^2.0.0",
"@nomiclabs/hardhat-waffle": "^2.0.0",
"@tenderly/hardhat-tenderly": "1.1.0-beta.5",
"@typechain/ethers-v4": "1.0.0",
"@typechain/ethers-v5": "^2.0.0",
"@typechain/truffle-v4": "2.0.2",
"@typechain/truffle-v5": "2.0.2",
"@typechain/web3-v1": "1.0.0",
"@types/chai": "4.2.11",
"@types/lowdb": "1.0.9",
"@types/mocha": "7.0.2",
"@types/node": "14.0.5",
"bignumber.js": "9.0.0",
"buidler-typechain": "0.1.1",
"chai": "4.2.0",
"chai-bignumber": "3.0.0",
"chai-bn": "^0.2.1",
"defender-relay-client": "^1.7.0",
"dotenv": "^8.2.0",
"eth-sig-util": "2.5.3",
"ethereum-waffle": "3.0.2",
"ethereumjs-util": "7.0.2",
"ethers": "^5.0.19",
"globby": "^11.0.1",
"hardhat": "^2.2.0",
"hardhat-gas-reporter": "^1.0.0",
"hardhat-typechain": "^0.3.3",
"husky": "^4.2.5",
"lowdb": "1.0.0",
"prettier": "^2.0.5",
"prettier-plugin-solidity": "^1.0.0-alpha.53",
"pretty-quick": "^2.0.1",
"solidity-coverage": "^0.7.16",
"ts-generator": "^0.1.1",
"ts-node": "^8.10.2",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.3.0",
"typechain": "^4.0.0",
"typescript": "^4.0.5"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged --pattern 'contracts/**/*.sol' --pattern 'helpers/**/*.ts' --pattern 'test-suites/test-sturdy/**/*.ts' --pattern 'tasks/**/*.ts'"
}
},
"author": "Sturdy",
"contributors": [
"Ernesto Boado <ernesto@sturdy.com>",
"Emilio Frangella <emilio@sturdy.com>",
"Andrey Kozlov <andrey@sturdy.com>",
"David Racero <david.k@sturdy.com>",
"Pol Sendra <pol@sturdy.com>",
"David Truong <david@sturdy.com>"
],
"license": "AGPLv3",
"dependencies": {
"@nomiclabs/hardhat-etherscan": "^2.1.8",
"axios-curlirize": "^1.3.7",
"hardhat-contract-sizer": "^2.1.1",
"sol-merger": "^4.0.0",
"tmp-promise": "^3.0.2",
"web3": "^1.3.5"
},
"keywords": [
"sturdy",
"protocol",
"protocol-v1",
"ethereum",
"solidity"
]
}