forked from alpaca-finance/xALPACA-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
174 lines (174 loc) · 13.5 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
{
"name": "@alpaca-finance/xalpaca-contract",
"version": "1.0.6",
"scripts": {
"build": "yarn run build:cjs",
"build:cjs": "tsc -p tsconfig.cjs.json",
"compile8.10": "hardhat typechain --config hardhat.config.ts",
"compile8.19": "hardhat typechain --config hardhat.config.8.19.ts",
"compile": "yarn compile8.10 && yarn compile8.19",
"mainnet": "hardhat console --no-compile --network mainnet",
"fantom_mainnet": "hardhat console --no-compile --network fantom_mainnet",
"badges": "istanbul-badges-readme --coverageDir=./",
"test:case": "mocha tests --require hardhat/register --file tests/**/* --extension ts -g",
"test:parallel": "mocha --require hardhat/register --recursive --parallel --extension ts --exit",
"test": "hardhat test",
"integration-test": "hardhat test --config hardhat.config.forking.ts",
"test:feeder": "hardhat test ./tests/unit/AlpacaFeeder.test.ts",
"test:feeder02": "hardhat test --no-compile ./tests/unit/AlpacaFeeder02.test.ts",
"test:scientixFeeder": "hardhat test ./tests/unit/ScientixFeeder.test.ts",
"test:gateway": "hardhat test ./tests/unit/GrassHouseGateway.test.ts",
"test:xAlpaca": "hardhat test ./tests/unit/xALPACA.test.ts",
"test:grassHouse": "hardhat test ./tests/unit/GrassHouse.test.ts",
"test:tribute": "hardhat test ./tests/unit/Tribute.test.ts",
"test:taxfeeder": "hardhat test ./tests/unit/TaxFeeder.test.ts",
"test:mainnetfork:grass-house": "hardhat --network mainnetfork run --no-compile ./scripts/forks/grass-house.ts",
"testnet": "hardhat console --no-compile --network testnet",
"integration-test:feeder-fairlaunch": "hardhat test --no-compile ./tests/integration/AlpacaFeederWithFairLaunch.test.ts --config hardhat.config.forking.ts",
"integration-test:feeder02-minifl": "hardhat test --no-compile ./tests/integration/AlpacaFeeder02WithMiniFL.test.ts --config hardhat.config.ftm.forking.ts",
"integration-test:feeder-worker": "hardhat test --no-compile ./tests/integration/AlpacaFeederWithWorker.test.ts --config hardhat.config.forking.ts",
"fork-test:upgrade-grasshouse": "hardhat test --no-compile ./tests/fork-tests/UpgradeGrassHouseWhitelistedCallers.test.ts --config hardhat.config.forking.ts",
"coverage": "hardhat coverage",
"solhint": "./node_modules/.bin/solhint -f table contracts/**/*.sol",
"prettier:solidity": "./node_modules/.bin/prettier --write contracts/**/*.sol",
"mainnet-fork": "hardhat node --show-stack-traces --config hardhat.config.forking.ts",
"script:mainnetfork:prepare-xalpaca": "hardhat run --network mainnetfork ./scripts/prepare-xalpaca-environment.ts --config hardhat.config.forking.ts --show-stack-traces",
"script:mainnet:validate-config-16-dec": "hardhat --network mainnet run --no-compile ./scripts/validate-config/validate-config-16-dec.ts",
"script:mainnet:validate-config-17-dec": "hardhat --network mainnet run --no-compile ./scripts/validate-config/validate-config-17-dec.ts",
"script:mainnet:validate-config-23-dec": "hardhat --network mainnet run --no-compile ./scripts/validate-config/validate-config-23-dec.ts",
"script:testnet:validate-config-16-dec": "hardhat --network testnet run --no-compile ./scripts/validate-config/validate-config-16-dec.ts",
"script:testnet:validate-config-17-dec": "hardhat --network testnet run --no-compile ./scripts/validate-config/validate-config-17-dec.ts",
"script:testnet:validate-config-23-dec": "hardhat --network testnet run --no-compile ./scripts/validate-config/validate-config-23-dec.ts",
"task:set-timestamp-startweek": "hardhat set-timestamp-startweek --config hardhat.config.forking.ts --network mainnetfork",
"task:advancetime": "hardhat advance-time --config hardhat.config.forking.ts --network mainnetfork",
"task:checkpoint": "hardhat checkpoint --config hardhat.config.forking.ts --network mainnetfork",
"task:enable-checkpoint": "hardhat enable-checkpoint --config hardhat.config.forking.ts --network mainnetfork",
"task:checkpoint-total-supply": "hardhat checkpoint-total-supply --config hardhat.config.forking.ts --network mainnetfork",
"task:feed-grasshouse": "hardhat feed-grasshouse --config hardhat.config.forking.ts --network mainnetfork",
"task:deploy-grasshouse": "hardhat deploy-grasshouse --config hardhat.config.forking.ts --network mainnetfork",
"task:deploy-grasshouse-dynamic-token": "hardhat deploy-grasshouse-dynamic-token --config hardhat.config.forking.ts --network mainnetfork",
"task:feed-alpaca-grasshouse": "hardhat feed-alpaca-grasshouse --config hardhat.config.forking.ts --network mainnetfork",
"task:deploy-grasshouse-gateway": "hardhat deploy-grasshouse-gateway --config hardhat.config.forking.ts --network mainnetfork",
"deploy:testnet:proxy-token": "hardhat --network testnet deploy --no-compile --reset --tags ProxyToken",
"deploy:testnet:xalpaca": "hardhat --network testnet deploy --no-compile --reset --tags XAlpaca",
"deploy:testnet:grasshouse": "hardhat --network testnet deploy --no-compile --reset --tags GrassHouse",
"deploy:testnet:grasshouse-gateway": "hardhat --network testnet deploy --no-compile --reset --tags GrassHouseGateway",
"deploy:testnet:grasshouse-checkpoint": "hardhat --network testnet deploy --no-compile --reset --tags GrassHouseCheckpoint",
"deploy:testnet:grasshouse-enable-checkpoint": "hardhat --network testnet deploy --no-compile --reset --tags GrassHouseEnableCheckpoint",
"deploy:testnet:alpaca-feeder": "hardhat --network testnet deploy --no-compile --reset --tags AlpacaFeeder",
"deploy:testnet:scix-feeder": "hardhat --network testnet deploy --no-compile --reset --tags ScientixFeeder",
"deploy:testnet:grasshouse:upgrade": "hardhat --network testnet deploy --no-compile --reset --tags UpgradeGrassHouse",
"deploy:mainnet:proxy-token": "hardhat --network mainnet deploy --no-compile --reset --tags ProxyToken",
"deploy:mainnet:xalpaca": "hardhat --network mainnet deploy --no-compile --reset --tags XAlpaca",
"deploy:mainnet:grasshouse": "hardhat --network mainnet deploy --no-compile --reset --tags GrassHouse",
"deploy:mainnet:grasshouse-gateway": "hardhat --network mainnet deploy --no-compile --reset --tags GrassHouseGateway",
"deploy:mainnet:grasshouse-checkpoint": "hardhat --network mainnet deploy --no-compile --reset --tags GrassHouseCheckpoint",
"deploy:mainnet:grasshouse-enable-checkpoint": "hardhat --network mainnet deploy --no-compile --reset --tags GrassHouseEnableCheckpoint",
"deploy:mainnet:alpaca-feeder": "hardhat --network mainnet deploy --no-compile --reset --tags AlpacaFeeder",
"deploy:mainnet:alpaca-feeder:upgrade": "hardhat --network mainnet deploy --no-compile --reset --tags UpgradeAlpacaFeeder",
"deploy:mainnet:scix-feeder": "hardhat --network mainnet deploy --no-compile --reset --tags ScientixFeeder",
"deploy:mainnet:grasshouse:upgrade": "hardhat --network mainnet deploy --no-compile --reset --tags UpgradeGrassHouse",
"deploy:mainnet:xalpaca:upgrade": "hardhat --network mainnet deploy --no-compile --reset --tags UpgradeXALPACA",
"deploy:mainnet:xalpaca:config:set-xalpaca-v2": "hardhat --network mainnet deploy --no-compile --reset --tags SetxALPACAv2",
"deploy:mainnet:xalpaca:config:withdraw-acc-redistribute": "hardhat --network mainnet deploy --no-compile --reset --tags WithdrawAccRedistribute",
"deploy:mainnet:xalpaca-v2:deploy": "hardhat --network mainnet deploy --no-compile --reset --tags DeployxALPACAv2",
"deploy:mainnet:xalpaca-v2:config:set-whitelisted-redistributors": "hardhat --network mainnet deploy --no-compile --reset --tags SetWhitelistedRedistributorxALPACAv2",
"deploy:mainnet:xalpaca-v2-revenue-distributor:deploy": "hardhat --network mainnet deploy --no-compile --reset --tags DeployxALPACAv2RevenueDistributor",
"deploy:mainnet:xalpaca-v2-revenue-distributor:config:set-whitelisted-callers": "hardhat --network mainnet deploy --no-compile --reset --tags SetWhitelistedCallersxALPACAv2RevenueDistributor",
"deploy:mainnet:xalpaca-v2-revenue-distributor:config:set-whitelisted-feeders": "hardhat --network mainnet deploy --no-compile --reset --tags SetWhitelistedFeedersxALPACAv2RevenueDistributor",
"deploy:mainnet:xalpaca-v2-revenue-distributor:config:add-rewarders": "hardhat --network mainnet deploy --no-compile --reset --tags AddRewardersxALPACAv2RevenueDistributor",
"deploy:mainnet:xalpaca-v2-rewarder:deploy": "hardhat --network mainnet deploy --no-compile --reset --tags DeployxALPACAv2Rewarder",
"deploy:fantom_testnet:proxy-token:deploy:proxy-token": "hardhat --network fantom_testnet deploy --no-compile --reset --tags ProxyToken",
"deploy:fantom_testnet:xalpaca:deploy:xalpaca": "hardhat --network fantom_testnet deploy --no-compile --reset --tags XAlpaca",
"deploy:fantom_testnet:grasshouse:deploy:grasshouse": "hardhat --network fantom_testnet deploy --no-compile --reset --tags GrassHouse",
"deploy:fantom_testnet:alpaca-feeder:deploy:alpaca-feeder02": "hardhat --network fantom_testnet deploy --no-compile --reset --tags AlpacaFeeder02",
"deploy:fantom_testnet:grasshouse:deploy:grasshouse-gateway": "hardhat --network fantom_testnet deploy --no-compile --reset --tags GrassHouseGateway",
"deploy:fantom_testnet:tribute": "hardhat --network fantom_testnet deploy --no-compile --reset --tags Tribute",
"deploy:fantom_testnet:rootstorage": "hardhat --network fantom_testnet deploy --no-compile --reset --tags RootStorage",
"deploy:fantom_mainnet:proxy-token:deploy:proxy-token": "hardhat --network fantom_mainnet deploy --no-compile --reset --tags ProxyToken",
"deploy:fantom_mainnet:xalpaca:deploy:xalpaca": "hardhat --network fantom_mainnet deploy --no-compile --reset --tags XAlpaca",
"deploy:fantom_mainnet:grasshouse:deploy:grasshouse": "hardhat --network fantom_mainnet deploy --no-compile --reset --tags GrassHouse",
"deploy:fantom_mainnet:alpaca-feeder:deploy:alpaca-feeder02": "hardhat --network fantom_mainnet deploy --no-compile --reset --tags AlpacaFeeder02",
"deploy:fantom_mainnet:grasshouse:deploy:grasshouse-gateway": "hardhat --network fantom_mainnet deploy --no-compile --reset --tags GrassHouseGateway",
"deploy:fantom_mainnet:tribute": "hardhat --network fantom_mainnet deploy --no-compile --reset --tags Tribute",
"deploy:fantom_mainnet:rootstorage": "hardhat --network fantom_mainnet deploy --no-compile --reset --tags RootStorage",
"deploy:fantom_mainnet:xalpaca:upgrade": "hardhat --network fantom_mainnet deploy --no-compile --reset --tags UpgradeXALPACA",
"deploy:fantom_mainnetfork:proxy-token:deploy:proxy-token": "hardhat --network fantom_mainnetfork deploy --no-compile --reset --tags ProxyToken",
"deploy:fantom_mainnetfork:xalpaca:deploy:xalpaca": "hardhat --network fantom_mainnetfork deploy --no-compile --reset --tags XAlpaca",
"deploy:fantom_mainnetfork:grasshouse:deploy:grasshouse": "hardhat --network fantom_mainnetfork deploy --no-compile --reset --tags GrassHouse",
"deploy:fantom_mainnetfork:alpaca-feeder:deploy:alpaca-feeder02": "hardhat --network fantom_mainnetfork deploy --no-compile --reset --tags AlpacaFeeder02",
"deploy:fantom_mainnetfork:grasshouse:deploy:grasshouse-gateway": "hardhat --network fantom_mainnetfork deploy --no-compile --reset --tags GrassHouseGateway",
"deploy:fantom_mainnetfork:tribute": "hardhat --network fantom_mainnetfork deploy --no-compile --reset --tags Tribute",
"deploy:fantom_mainnetfork:rootstorage": "hardhat --network fantom_mainnetfork deploy --no-compile --reset --tags RootStorage",
"deploy:fantom_mainnetfork:xalpaca:upgrade": "hardhat --network fantom_mainnetfork deploy --no-compile --reset --tags UpgradeXALPACA"
},
"devDependencies": {
"@alpaca-finance/alpaca-contract": "1.2.27",
"@ethersproject/bignumber": "^5.0.14",
"@nomiclabs/hardhat-ethers": "^2.0.1",
"@nomiclabs/hardhat-etherscan": "^2.1.1",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@openzeppelin/contracts": "^4.7.1",
"@openzeppelin/contracts-upgradeable": "^4.7.1",
"@openzeppelin/hardhat-upgrades": "^1.9.0",
"@typechain/ethers-v5": "^5.0.0",
"@types/chai": "^4.2.15",
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.28",
"chai": "^4.3.0",
"chai-bn": "^0.2.1",
"dotenv": "^8.2.0",
"ethereum-waffle": "^3.4.0",
"ethereumjs-util": "^7.0.10",
"ethers": "^5.0.31",
"hardhat": "^2.0.10",
"hardhat-deploy": "^0.7.0-beta.45",
"hardhat-typechain": "^0.3.5",
"prettier": "^2.3.0",
"prettier-plugin-solidity": "^1.0.0-beta.10",
"solhint": "^3.3.4",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.7.15",
"synthetix": "^2.39.2",
"ts-generator": "^0.1.1",
"ts-node": "^9.1.1",
"typechain": "^4.0.1",
"typescript": "^4.1.5"
},
"files": [
"typechain",
"artifacts",
"contracts",
"merkle-distribution-info",
".testnet.json",
".staging.json",
".mainnet.json"
],
"engines": {
"node": ">=14"
},
"dependencies": {
"@openzeppelin/test-helpers": "^0.5.15",
"@safe-global/safe-core-sdk": "^3.3.2",
"@safe-global/safe-ethers-lib": "^1.9.2",
"@safe-global/safe-service-client": "^2.0.0",
"follow-redirects": "^1.14.7",
"node-fetch": "^2.6.7",
"underscore": "^1.12.1",
"web3": "^1.7.0"
},
"resolutions": {
"shelljs": "^0.8.5",
"follow-redirects": "^1.14.7",
"glob-parent": "^5.1.2",
"yargs-parser": "^13.1.2",
"mem": "^4.0.0",
"json-schema": "^0.4.0",
"ansi-regex": "^5.0.1",
"lodash": "^4.17.21",
"underscore": "^1.12.1",
"node-fetch": "^2.6.7",
"simple-get": "^2.8.2",
"web3": "^1.7.0"
}
}