forked from Opty-Fi/earn-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
153 lines (153 loc) · 8.47 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
{
"name": "earn-protocol",
"description": "Core smart contract of OptyFi's Earn protocol",
"version": "0.0.1-alpha.0",
"homepage": "https://opty.fi",
"repository": {
"type": "git",
"url": "https://github.com/opty-fi/earn-protocol"
},
"keywords": [
"optyfi",
"ethereum",
"earn",
"core"
],
"files": [
"/contracts"
],
"engines": {
"node": ">=12"
},
"devDependencies": {
"@codechecks/client": "^0.1.11",
"@commitlint/cli": "^13.2.0",
"@commitlint/config-conventional": "^13.2.0",
"@compound-finance/compound-js": "^0.4.0",
"@defi-wonderland/smock": "^2.0.7",
"@ethersproject/abi": "^5.4.1",
"@ethersproject/abstract-signer": "^5.4.1",
"@ethersproject/bignumber": "^5.4.2",
"@ethersproject/bytes": "^5.4.0",
"@ethersproject/providers": "^5.4.5",
"@gnosis.pm/safe-core-sdk": "^2.1.0",
"@gnosis.pm/safe-ethers-lib": "^1.1.0",
"@nomiclabs/hardhat-ethers": "npm:[email protected]",
"@nomiclabs/hardhat-etherscan": "^3.0.1",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@tenderly/hardhat-tenderly": "1.1.0-beta.6",
"@typechain/ethers-v5": "^7.1.2",
"@typechain/hardhat": "^2.3.0",
"@types/chai": "^4.2.22",
"@types/ethereumjs-abi": "^0.6.3",
"@types/fs-extra": "^9.0.13",
"@types/mocha": "^9.0.0",
"@types/node": "^16.10.2",
"@typescript-eslint/eslint-plugin": "^4.32.0",
"@typescript-eslint/parser": "^4.32.0",
"bignumber.js": "^9.0.2",
"chai": "^4.3.4",
"commitizen": "^4.2.4",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"dotenv": "^10.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"ethereum-waffle": "^3.4.0",
"ethereumjs-abi": "^0.6.8",
"ethers": "^5.4.7",
"fs-extra": "^10.0.0",
"hardhat": "^2.11.2",
"hardhat-deploy": "^0.9.24",
"hardhat-docgen": "^1.1.2",
"hardhat-gas-reporter": "^1.0.4",
"hardhat-storage-layout": "^0.1.7",
"husky": "^7.0.2",
"keccak256": "^1.0.6",
"lint-staged": "^11.2.0",
"lodash": "^4.17.21",
"merkletreejs": "^0.2.31",
"mocha": "^9.1.2",
"pinst": "^2.1.6",
"prettier": "^2.4.1",
"prettier-plugin-solidity": "1.0.0-beta.10",
"shelljs": "^0.8.4",
"shx": "^0.3.3",
"solhint": "^3.3.6",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.7.17",
"ts-generator": "^0.1.1",
"ts-node": "^10.2.1",
"typechain": "^5.1.2",
"typescript": "^4.4.3"
},
"resolutions": {
"@solidity-parser/parser": "^0.13.2"
},
"scripts": {
"clean": "shx rm -rf ./artifacts ./cache ./coverage ./typechain ./coverage.json",
"commit": "git-cz",
"deploy:mainnet": "hardhat --max-memory 4096 deploy --network mainnet",
"postinstall": "husky install",
"postpublish": "pinst --enable",
"prepublishOnly": "pinst --disable",
"lint": "yarn run lint:sol && yarn run lint:ts && yarn run prettier:check",
"lint:sol": "solhint --config ./.solhint.json --max-warnings 0 \"contracts/**/*.sol\"",
"lint:ts": "eslint --config ./.eslintrc.yaml --ignore-path ./.eslintignore --quiet --ext .js,.ts .",
"prettier": "prettier --config ./.prettierrc.yaml --write \"**/*.{js,json,md,sol,ts}\"",
"prettier:check": "prettier --check --config ./.prettierrc.yaml \"**/*.{js,json,md,sol,ts}\"",
"precompile": "yarn clean",
"compile:waffle": "rimraf ./build && waffle .waffle.json",
"compile": "cross-env TS_NODE_TRANSPILE_ONLY=true SKIP_LOAD=true hardhat --max-memory 4096 compile",
"watch:compile": "hardhat --max-memory 4096 watch compilation",
"watch:ci": "hardhat --max-memory 4096 watch ci",
"test:mainnet": "env SKIP_LOAD=true FORK=mainnet NETWORK_NAME=mainnet hardhat --max-memory 4096 test test/test-opty/2_vault.spec.ts",
"vaultv2-upgrade-test:mainnet": "env SKIP_LOAD=true FORK=mainnet NETWORK_NAME=mainnet hardhat --max-memory 4096 test test/test-opty/migration/001_mainnet_upgrade/vault_mainnet_upgrade.spec.ts",
"test-clean": "yarn clean && yarn test",
"test-fast:vaultv3-upgrade-test:mainnet": "env SKIP_LOAD=true FORK=mainnet NETWORK_NAME=mainnet TS_NODE_TRANSPILE_ONLY=1 hardhat --max-memory 4096 test test/test-opty/migration/001_mainnet_upgrade/vault_mainnet_upgrade.spec.ts",
"test-fast:vaultv4-upgrade-test:mainnet": "env SKIP_LOAD=true FORK=mainnet NETWORK_NAME=mainnet TS_NODE_TRANSPILE_ONLY=1 hardhat --max-memory 4096 test test/test-opty/migration/002_upgrade/vault-upgrade-test.ts",
"test-fast:vaultv4-upgrade-test:polygon": "env SKIP_LOAD=true FORK=polygon NETWORK_NAME=polygon TS_NODE_TRANSPILE_ONLY=1 hardhat --max-memory 4096 test test/test-opty/migration/002_upgrade/vault-upgrade-test.ts",
"test-fast:vaultv6-upgrade-test:mainnet": "env SKIP_LOAD=true FORK=mainnet NETWORK_NAME=mainnet TS_NODE_TRANSPILE_ONLY=1 hardhat --max-memory 4096 test test/test-opty/migration/003_upgrade/vault-upgrade-test.ts",
"test-fast:vaultv6-upgrade-test:polygon": "env SKIP_LOAD=true FORK=polygon NETWORK_NAME=polygon TS_NODE_TRANSPILE_ONLY=1 hardhat --max-memory 4096 test test/test-opty/migration/003_upgrade/vault-upgrade-test.ts",
"test-fast:mainnet": "env SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 FORK=mainnet NETWORK_NAME=mainnet hardhat --max-memory 4096 test test/test-opty/2_vault.spec.ts --deploy-fixture",
"test-fast:emergency-brake": "env SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 FORK=mainnet NETWORK_NAME=mainnet hardhat --max-memory 4096 test test/test-opty/emergency-brake.spec.ts --deploy-fixture",
"test-fast:vault-strategy:polygon": "env SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 FORK=polygon NETWORK_NAME=polygon hardhat --max-memory 4096 test test/test-opty/3_vault_strategies.spec.ts --deploy-fixture",
"test-fast:vault-strategy:mainnet": "env SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 FORK=mainnet NETWORK_NAME=mainnet hardhat --max-memory 4096 test test/test-opty/3_vault_strategies.spec.ts --deploy-fixture",
"test-fast:vault-strategy:avalanche": "env SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 FORK=avalanche NETWORK_NAME=avalanche FORK_BLOCK_NUMBER=13936470 hardhat --max-memory 4096 test test/test-opty/3_vault_strategies.spec.ts --deploy-fixture",
"test-fast:integration:mainnet": "env SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 FORK=mainnet NETWORK_NAME=mainnet hardhat --max-memory 4096 test test/test-opty/integration.spec.ts",
"test-fast:strategy-manager:mainnet": "env SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 FORK=mainnet NETWORK_NAME=mainnet hardhat --max-memory 4096 test test/test-opty/strategy-manager.spec.ts",
"test-fast:strategy-manager:polygon": "env SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 FORK=polygon NETWORK_NAME=polygon hardhat --max-memory 4096 test test/test-opty/strategy-manager.spec.ts",
"test-fast:strategy-manager:avalanche": "env SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 FORK=avalanche NETWORK_NAME=avalanche hardhat --max-memory 4096 test test/test-opty/strategy-manager.spec.ts",
"watch:test": "hardhat --max-memory 4096 watch test",
"coverage": "cross-env CODE_COVERAGE=true hardhat --max-memory 4096 coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles \"./test/test-opty/*.spec.ts\"",
"typechain": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat --max-memory 4096 typechain",
"solhint": "./node_modules/.bin/solhint -f table contracts/**/*.sol ",
"gas-report": "env REPORT_GAS=true yarn test",
"generate-doc": "env GENERATE_DOC_ON_COMPILE=true yarn compile",
"hardhat:local": "hardhat --max-memory 4096 --network localhost",
"hardhat:staging": "hardhat --max-memory 4096 --network staging",
"hardhat:kovan": "hardhat --max-memory 4096 --network kovan",
"deploy-infra": "hardhat --max-memory 4096 deploy-infra",
"deploy-infra:local": "npm run hardhat:local deploy-infra",
"deploy-infra:staging": "npm run hardhat:staging deploy-infra",
"deploy-adapters": "hardhat --max-memory 4096 deploy-adapters",
"deploy-adapters:kovan": "npm run hardhat:kovan deploy-adapters --",
"setup": "hardhat --max-memory 4096 setup",
"setup:local": "npm run hardhat:local setup",
"setup:staging": "npm run hardhat:staging setup"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@chainlink/contracts": "^0.3.1",
"@openzeppelin/contracts": "3.4.0",
"@openzeppelin/contracts-0.8.x": "npm:@openzeppelin/[email protected]",
"@optyfi/defi-legos": "v0.1.0-rc.48",
"@uniswap/v2-core": "^1.0.1",
"@uniswap/v2-periphery": "^1.1.0-beta.0",
"@uniswap/v3-core": "^1.0.1",
"@uniswap/v3-periphery": "^1.4.2",
"hardhat-contract-sizer": "^2.6.1"
}
}