-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
131 lines (131 loc) · 10.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
{
"name": "@pooltogether/v4-mainnet",
"version": "1.9.0",
"main": "index.js",
"repository": "git@github.com:pooltogether/v4-mainnet.git",
"author": "PoolTogether Inc.",
"license": "GPL-3.0",
"scripts": {
"hh": "hardhat",
"addPrizes": "hardhat run ./scripts/addPrizes.js --network ",
"clean": "rm -rf cache/ artifacts/",
"compile": "hardhat compile",
"console": "hardhat console --network localhost",
"prepare-deploy": "yarn clean && yarn compile",
"prepack": "yarn generate",
"reinstall": "rm -rf node_modules/ && yarn cache clean && yarn",
"docs": "hardhat deploy-markdown-export --name 'V4 Mainnet' --npm-package-name @pooltogether/v4-mainnet --github-base-url 'https://github.com/pooltogether/v4-mainnet/tree/master' --output-filepath mainnet.md",
"disburse": "hardhat run ./scripts/disburse.js --network ",
"deposit": "hardhat run ./scripts/deposit.js --network ",
"generate": "ts-node ./scripts/generateContractList.ts",
"format": "prettier --config .prettierrc --write \"**/*.*.{ts,js}\"",
"format:file": "prettier --config .prettierrc --write",
"deploy:v1.0.1.mainnet": "DEPLOY=mainnet hardhat deploy --network mainnet",
"deploy:v1.0.1.polygon": "DEPLOY=polygon hardhat deploy --network polygon",
"deploy:v1.1.0.avalanche": "DEPLOY=v1.1.0.avalanche hardhat deploy --network avalanche",
"deploy:v1.1.0.mainnet": "DEPLOY=v1.1.0.mainnet hardhat deploy --network mainnet",
"deploy:v1.1.0.polygon": "DEPLOY=v1.1.0.polygon hardhat deploy --network polygon",
"deploy:v1.2.1.avalanche": "DEPLOY=v1.2.1.avalanche hardhat deploy --network avalanche",
"deploy:v1.2.1.mainnet": "DEPLOY=v1.2.1.mainnet hardhat deploy --network mainnet",
"deploy:v1.2.1.polygon": "DEPLOY=v1.2.1.polygon hardhat deploy --network polygon",
"deploy:v1.3.0.avalanche": "DEPLOY=v1.3.0.avalanche hardhat deploy --network avalanche",
"deploy:v1.3.0.mainnet": "DEPLOY=v1.3.0.mainnet hardhat deploy --network mainnet",
"deploy:v1.3.0.polygon": "DEPLOY=v1.3.0.polygon hardhat deploy --network polygon",
"deploy:v1.4.0.avalanche": "DEPLOY=v1.4.0.avalanche hardhat deploy --network avalanche",
"deploy:v1.4.0.mainnet": "DEPLOY=v1.4.0.mainnet hardhat deploy --network mainnet",
"deploy:v1.4.0.polygon": "DEPLOY=v1.4.0.polygon hardhat deploy --network polygon",
"deploy:v1.5.0.mainnet": "DEPLOY=v1.5.0.mainnet hardhat deploy --network mainnet",
"deploy:v1.6.0.optimism": "DEPLOY=v1.6.0.optimism hardhat deploy --network optimism",
"deploy:v1.6.1.optimism": "DEPLOY=v1.6.1.optimism hardhat deploy --network optimism",
"deploy:v1.7.0.polygon": "DEPLOY=v1.7.0.polygon hardhat deploy --network polygon",
"deploy:v1.8.0.avalanche": "DEPLOY=v1.8.0.avalanche hardhat deploy --network avalanche",
"deploy:v1.9.0.mainnet": "DEPLOY=v1.9.0.mainnet hardhat deploy --network mainnet",
"deploy:v1.9.0.optimism": "DEPLOY=v1.9.0.optimism hardhat deploy --network optimism",
"deploy:v1.9.0.polygon": "DEPLOY=v1.9.0.polygon hardhat deploy --network polygon",
"deploy:v1.9.0.avalanche": "DEPLOY=v1.9.0.avalanche hardhat deploy --network avalanche",
"simulate:mainnet": "hardhat --config hardhat.config.ts run ./scripts/fork/beacon.mainnet.forkRunUpgradeV110.ts --network localhost",
"simulate:polygon": "hardhat --config hardhat.config.ts run ./scripts/fork/receiver.polygon.forkRunUpgradeV110.ts --network localhost",
"node:ethereum": "DEPLOY=mainnet hardhat node --network hardhat",
"node:polygon": "DEPLOY=polygon hardhat node --network hardhat",
"node:avalanche": "DEPLOY=v1.1.0.avalanche hardhat node --network hardhat",
"node:optimism": "DEPLOY=v1.6.1.optimism hardhat node --network hardhat",
"upgrade:mainnet": "DEPLOY=v1.1.0.mainnet hardhat deploy --network mainnet",
"upgrade:polygon": "DEPLOY=v1.1.0.polygon hardhat deploy --network polygon",
"upgrade:mainnet:test": "DEPLOY=v1.1.0.mainnet hardhat deploy --network localhost",
"upgrade:polygon:test": "DEPLOY=v1.1.0.polygon hardhat deploy --network localhost",
"verify:mainnet": "hardhat --config hardhat.config.ts run ./scripts/verify.ts --network mainnet",
"verify:polygon": "hardhat --config hardhat.config.polygon.ts run ./scripts/verify.ts --network polygon",
"verify:avalanche": "hardhat --config hardhat.config.avalanche.ts run ./scripts/verify.ts --network avalanche",
"verify:optimism": "hardhat --config hardhat.config.optimism.ts run ./scripts/verify.ts --network optimism",
"test:v1.0.1.mainnet": "yarn mainnetForkSetup; FORK_CHAIN_ID=$MAINNET_CHAIN_ID FORK_BLOCK_NUMBER=$MAINNET_FORK_BLOCK_NUMBER FORK_RPC_URL=$MAINNET_RPC_URL FORK_ENABLED=true DEPLOY=mainnet hardhat node --no-reset --network hardhat",
"test:v1.0.1.polygon": "yarn polygonForkSetup; FORK_CHAIN_ID=$POLYGON_CHAIN_ID FORK_BLOCK_NUMBER=$POLYGON_FORK_BLOCK_NUMBER FORK_RPC_URL=$POLYGON_RPC_URL FORK_ENABLED=true DEPLOY=polygon hardhat node --no-reset --network hardhat",
"test:v1.1.0.mainnet": "yarn mainnetForkSetup; FORK_CHAIN_ID=$MAINNET_CHAIN_ID FORK_BLOCK_NUMBER=$MAINNET_FORK_BLOCK_NUMBER FORK_RPC_URL=$MAINNET_RPC_URL FORK_ENABLED=true DEPLOY=v1.1.0.mainnet hardhat node --no-reset --network hardhat",
"test:v1.1.0.polygon": "yarn polygonForkSetup; FORK_CHAIN_ID=$POLYGON_CHAIN_ID FORK_BLOCK_NUMBER=$POLYGON_FORK_BLOCK_NUMBER FORK_RPC_URL=$POLYGON_RPC_URL FORK_ENABLED=true DEPLOY=v1.1.0.polygon hardhat node --no-reset --network hardhat",
"test:v1.1.0.avalanche": "FORK_CHAIN_ID=$AVALANCHE_CHAIN_ID FORK_BLOCK_NUMBER=$AVALANCHE_FORK_BLOCK_NUMBER FORK_RPC_URL=$AVALANCHE_RPC_URL FORK_ENABLED=true DEPLOY=v1.1.0.avalanche hardhat node --no-reset --network hardhat",
"test:v1.2.1.mainnet": "yarn mainnetForkSetup; FORK_CHAIN_ID=$MAINNET_CHAIN_ID FORK_BLOCK_NUMBER=$MAINNET_FORK_BLOCK_NUMBER FORK_RPC_URL=$MAINNET_RPC_URL FORK_ENABLED=true DEPLOY=v1.2.1.mainnet hardhat node --no-reset --network hardhat",
"test:v1.2.1.polygon": "yarn polygonForkSetup; FORK_CHAIN_ID=$POLYGON_CHAIN_ID FORK_BLOCK_NUMBER=$POLYGON_FORK_BLOCK_NUMBER FORK_RPC_URL=$POLYGON_RPC_URL FORK_ENABLED=true DEPLOY=v1.2.1.polygon hardhat node --no-reset --network hardhat",
"test:v1.2.1.avalanche": "yarn avalancheForkSetup; FORK_CHAIN_ID=$AVALANCHE_CHAIN_ID FORK_BLOCK_NUMBER=$AVALANCHE_FORK_BLOCK_NUMBER FORK_RPC_URL=$AVALANCHE_RPC_URL FORK_ENABLED=true DEPLOY=v1.2.1.avalanche hardhat node --no-reset --network hardhat",
"test:v1.3.0.mainnet": "yarn mainnetForkSetup; FORK_CHAIN_ID=$MAINNET_CHAIN_ID FORK_BLOCK_NUMBER=$MAINNET_FORK_BLOCK_NUMBER FORK_RPC_URL=$MAINNET_RPC_URL FORK_ENABLED=true DEPLOY=v1.3.0.mainnet hardhat node --no-reset --network hardhat",
"test:v1.3.0.polygon": "yarn polygonForkSetup; FORK_CHAIN_ID=$POLYGON_CHAIN_ID FORK_BLOCK_NUMBER=$POLYGON_FORK_BLOCK_NUMBER FORK_RPC_URL=$POLYGON_RPC_URL FORK_ENABLED=true DEPLOY=v1.3.0.polygon hardhat node --no-reset --network hardhat",
"test:v1.3.0.avalanche": "yarn avalancheForkSetup; FORK_CHAIN_ID=$AVALANCHE_CHAIN_ID FORK_BLOCK_NUMBER=$AVALANCHE_FORK_BLOCK_NUMBER FORK_RPC_URL=$AVALANCHE_RPC_URL FORK_ENABLED=true DEPLOY=v1.3.0.avalanche hardhat node --no-reset --network hardhat",
"test:v1.4.0.mainnet": "yarn mainnetForkSetup; FORK_CHAIN_ID=$MAINNET_CHAIN_ID FORK_BLOCK_NUMBER=$MAINNET_FORK_BLOCK_NUMBER FORK_RPC_URL=$MAINNET_RPC_URL FORK_ENABLED=true DEPLOY=v1.4.0.mainnet hardhat node --no-reset --network hardhat",
"test:v1.4.0.polygon": "yarn polygonForkSetup; FORK_CHAIN_ID=$POLYGON_CHAIN_ID FORK_BLOCK_NUMBER=$POLYGON_FORK_BLOCK_NUMBER FORK_RPC_URL=$POLYGON_RPC_URL FORK_ENABLED=true DEPLOY=v1.4.0.polygon hardhat node --no-reset --network hardhat",
"test:v1.4.0.avalanche": "yarn avalancheForkSetup; FORK_CHAIN_ID=$AVALANCHE_CHAIN_ID FORK_BLOCK_NUMBER=$AVALANCHE_FORK_BLOCK_NUMBER FORK_RPC_URL=$AVALANCHE_RPC_URL FORK_ENABLED=true DEPLOY=v1.4.0.avalanche hardhat node --no-reset --network hardhat",
"test:v1.5.0.mainnet": "yarn mainnetForkSetup; FORK_CHAIN_ID=$MAINNET_CHAIN_ID FORK_BLOCK_NUMBER=$MAINNET_FORK_BLOCK_NUMBER FORK_RPC_URL=$MAINNET_RPC_URL FORK_ENABLED=true DEPLOY=v1.5.0.mainnet hardhat node --no-reset --network hardhat",
"test:v1.6.0.optimism": "yarn optimismForkSetup; FORK_CHAIN_ID=$OPTIMISM_CHAIN_ID FORK_BLOCK_NUMBER=$OPTIMISM_FORK_BLOCK_NUMBER FORK_RPC_URL=$OPTIMISM_RPC_URL FORK_ENABLED=true DEPLOY=v1.6.0.optimism hardhat node --no-reset --network hardhat",
"test:v1.6.1.optimism": "yarn optimismForkSetup; FORK_CHAIN_ID=$OPTIMISM_CHAIN_ID FORK_BLOCK_NUMBER=$OPTIMISM_FORK_BLOCK_NUMBER FORK_RPC_URL=$OPTIMISM_RPC_URL FORK_ENABLED=true DEPLOY=v1.6.1.optimism hardhat node --no-reset --network hardhat",
"mainnetForkSetup": "rm -rf deployments/localhost ; cp -r deployments/mainnet deployments/localhost",
"polygonForkSetup": "rm -rf deployments/localhost ; cp -r deployments/polygon deployments/localhost",
"avalancheForkSetup": "rm -rf deployments/localhost ; cp -r deployments/avalanche deployments/localhost",
"optimismForkSetup": "rm -rf deployments/localhost ; cp -r deployments/optimism deployments/localhost"
},
"dependencies": {
"@chainlink/contracts": "0.4.0",
"@openzeppelin/contracts": "4.4.2",
"@pooltogether/aave-v3-yield-source": "1.1.1",
"@pooltogether/aave-yield-source": "1.2.1",
"@pooltogether/draw-calculator-js": "1.0.3-beta.4",
"@pooltogether/owner-manager-contracts": "1.1.0",
"@pooltogether/pooltogether-rng-contracts": "1.5.1",
"@pooltogether/v4-core": "1.3.1",
"@pooltogether/v4-periphery": "1.4.0",
"@pooltogether/v4-timelocks": "1.1.0",
"@pooltogether/v4-twab-delegator": "1.0.0",
"@pooltogether/yield-source-interface": "1.3.0",
"find": "0.3.0",
"glob": "7.2.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"@ethersproject/hardware-wallets": "5.6.0",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers",
"@nomiclabs/hardhat-etherscan": "3.0.0",
"@pooltogether/hardhat-deploy-markdown-export": "0.3.5",
"@types/jsonfile": "6.0.1",
"@types/node": "17.0.12",
"ajv": "8.9.0",
"chalk": "4.1.2",
"colors": "1.4.0",
"debug": "4.3.3",
"ethers": "5.6.1",
"hardhat": "2.9.1",
"hardhat-dependency-compiler": "1.1.2",
"hardhat-deploy": "0.11.0",
"hardhat-deploy-ethers": "0.3.0-beta.13",
"idx": "2.5.6",
"jsonfile": "6.1.0",
"luxon": "2.3.0",
"prettier": "2.5.1",
"ts-node": "10.4.0",
"typescript": "4.5.5"
},
"peerDependencies": {},
"files": [
"artifacts",
"deployments/polygon",
"deployments/mainnet",
"deployments/avalanche",
"deployments/optimism",
"contracts.json"
]
}