-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
97 lines (92 loc) · 11.3 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
{
"name": "@pooltogether/foundry-template",
"version": "1.0.0",
"description": "Template to kickstart a Foundry project",
"author": {
"name": "PoolTogether Inc.",
"url": "https://github.com/pooltogether"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pooltogether/foundry-template.git"
},
"scripts": {
"clean": "forge clean",
"compile": "forge compile",
"coverage": "forge coverage --report lcov && lcov --extract lcov.info -o lcov.info 'src/*' && genhtml lcov.info -o coverage",
"----------LOCAL-DEPLOYMENT-SCRIPTS----------": "",
"deploy:pool:local": "forge script script/deploy/DeployPool.s.sol:DeployPool --ffi --rpc-url http://localhost:8545 --sender $SENDER --broadcast",
"deploy:stable-token:local": "forge script script/deploy/DeployStableToken.s.sol:DeployStableToken --ffi --rpc-url http://localhost:8545 --sender $SENDER --broadcast",
"deploy:token:local": "forge script script/deploy/DeployToken.s.sol:DeployToken --ffi --rpc-url http://localhost:8545 --sender $SENDER --broadcast",
"deploy:set-token-price:local": "forge script script/deploy/SetTokenPrice.s.sol:SetTokenPrice --ffi --rpc-url http://localhost:8545 --sender $SENDER --broadcast",
"deploy:set-stable-token-role:local": "forge script script/deploy/SetStableTokenRole.s.sol:SetStableTokenRole --ffi --rpc-url http://localhost:8545 --sender $SENDER --broadcast",
"deploy:set-token-role:local": "forge script script/deploy/SetTokenRole.s.sol:SetTokenRole --ffi --rpc-url http://localhost:8545 --sender $SENDER --broadcast",
"deploy:yield-vault:local": "forge script script/deploy/DeployYieldVault.s.sol:DeployYieldVault --ffi --rpc-url http://localhost:8545 --sender $SENDER --broadcast",
"deploy:set-vault-role:local": "forge script script/deploy/SetVaultRole.s.sol:SetVaultRole --ffi --rpc-url http://localhost:8545 --sender $SENDER --broadcast",
"deploy:set-yield-vault-role:local": "forge script script/deploy/SetYieldVaultRole.s.sol:SetYieldVaultRole --ffi --rpc-url http://localhost:8545 --sender $SENDER --broadcast",
"deploy:vault:local": "forge script script/deploy/DeployVault.s.sol:DeployVault --ffi --rpc-url http://localhost:8545 --sender $SENDER --broadcast",
"deploy:contracts:local": "npm run deploy:stable-token:local && npm run deploy:token:local && npm run deploy:pool:local && npm run deploy:yield-vault:local && npm run deploy:vault:local",
"deploy:config-contracts:local": "npm run deploy:set-token-price:local && npm run deploy:set-stable-token-role:local && npm run deploy:set-token-role:local && npm run deploy:set-vault-role:local && npm run deploy:set-yield-vault-role:local",
"----------ETH-GOERLI-DEPLOYMENT-SCRIPTS----------": "",
"deploy:pool:ethGoerli": "forge script script/deploy/DeployPool.s.sol:DeployPool --ffi --rpc-url $GOERLI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:stable-token:ethGoerli": "forge script script/deploy/DeployStableToken.s.sol:DeployStableToken --ffi --rpc-url $GOERLI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:token:ethGoerli": "forge script script/deploy/DeployToken.s.sol:DeployToken --ffi --rpc-url $GOERLI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:set-token-price:ethGoerli": "forge script script/deploy/SetTokenPrice.s.sol:SetTokenPrice --ffi --rpc-url $GOERLI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:set-stable-token-role:ethGoerli": "forge script script/deploy/SetStableTokenRole.s.sol:SetStableTokenRole --ffi --rpc-url $GOERLI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:set-token-role:ethGoerli": "forge script script/deploy/SetTokenRole.s.sol:SetTokenRole --ffi --rpc-url $GOERLI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:yield-vault:ethGoerli": "forge script script/deploy/DeployYieldVault.s.sol:DeployYieldVault --ffi --rpc-url $GOERLI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:set-vault-role:ethGoerli": "forge script script/deploy/SetVaultRole.s.sol:SetVaultRole --ffi --rpc-url $GOERLI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:set-yield-vault-role:ethGoerli": "forge script script/deploy/SetYieldVaultRole.s.sol:SetYieldVaultRole --ffi --rpc-url $GOERLI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:vault:ethGoerli": "forge script script/deploy/DeployVault.s.sol:DeployVault --ffi --rpc-url $GOERLI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:contracts:ethGoerli": "npm run deploy:stable-token:ethGoerli && npm run deploy:token:ethGoerli && npm run deploy:pool:ethGoerli && npm run deploy:yield-vault:ethGoerli && npm run deploy:vault:ethGoerli",
"deploy:config-contracts:ethGoerli": "npm run deploy:set-token-price:ethGoerli && npm run deploy:set-stable-token-role:ethGoerli && npm run deploy:set-token-role:ethGoerli && npm run deploy:set-vault-role:ethGoerli && npm run deploy:set-yield-vault-role:ethGoerli",
"----------ETH-SEPOLIA-DEPLOYMENT-SCRIPTS----------": "",
"deploy:pool:ethSepolia": "forge script script/deploy/DeployPool.s.sol:DeployPool --ffi --rpc-url $SEPOLIA_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:stable-token:ethSepolia": "forge script script/deploy/DeployStableToken.s.sol:DeployStableToken --ffi --rpc-url $SEPOLIA_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:token:ethSepolia": "forge script script/deploy/DeployToken.s.sol:DeployToken --ffi --rpc-url $SEPOLIA_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:set-token-price:ethSepolia": "forge script script/deploy/SetTokenPrice.s.sol:SetTokenPrice --ffi --rpc-url $SEPOLIA_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:set-stable-token-role:ethSepolia": "forge script script/deploy/SetStableTokenRole.s.sol:SetStableTokenRole --ffi --rpc-url $SEPOLIA_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:set-token-role:ethSepolia": "forge script script/deploy/SetTokenRole.s.sol:SetTokenRole --ffi --rpc-url $SEPOLIA_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:yield-vault:ethSepolia": "forge script script/deploy/DeployYieldVault.s.sol:DeployYieldVault --ffi --rpc-url $SEPOLIA_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:set-vault-role:ethSepolia": "forge script script/deploy/SetVaultRole.s.sol:SetVaultRole --ffi --rpc-url $SEPOLIA_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:set-yield-vault-role:ethSepolia": "forge script script/deploy/SetYieldVaultRole.s.sol:SetYieldVaultRole --ffi --rpc-url $SEPOLIA_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:vault:ethSepolia": "forge script script/deploy/DeployVault.s.sol:DeployVault --ffi --rpc-url $SEPOLIA_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY",
"deploy:contracts:ethSepolia": "npm run deploy:stable-token:ethSepolia && npm run deploy:token:ethSepolia && npm run deploy:pool:ethSepolia && npm run deploy:yield-vault:ethSepolia && npm run deploy:vault:ethSepolia",
"deploy:config-contracts:ethSepolia": "npm run deploy:set-token-price:ethSepolia && npm run deploy:set-stable-token-role:ethSepolia && npm run deploy:set-token-role:ethSepolia && npm run deploy:set-vault-role:ethSepolia && npm run deploy:set-yield-vault-role:ethSepolia",
"----------MUMBAI-DEPLOYMENT-SCRIPTS----------": "",
"deploy:pool:mumbai": "forge script script/deploy/DeployPool.s.sol:DeployPool --ffi --rpc-url $POLYGON_MUMBAI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $POLYGONSCAN_API_KEY",
"deploy:stable-token:mumbai": "forge script script/deploy/DeployStableToken.s.sol:DeployStableToken --ffi --rpc-url $POLYGON_MUMBAI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $POLYGONSCAN_API_KEY",
"deploy:token:mumbai": "forge script script/deploy/DeployToken.s.sol:DeployToken --ffi --rpc-url $POLYGON_MUMBAI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $POLYGONSCAN_API_KEY",
"deploy:set-token-price:mumbai": "forge script script/deploy/SetTokenPrice.s.sol:SetTokenPrice --ffi --rpc-url $POLYGON_MUMBAI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $POLYGONSCAN_API_KEY",
"deploy:set-stable-token-role:mumbai": "forge script script/deploy/SetStableTokenRole.s.sol:SetStableTokenRole --ffi --rpc-url $POLYGON_MUMBAI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $POLYGONSCAN_API_KEY",
"deploy:set-token-role:mumbai": "forge script script/deploy/SetTokenRole.s.sol:SetTokenRole --ffi --rpc-url $POLYGON_MUMBAI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $POLYGONSCAN_API_KEY",
"deploy:yield-vault:mumbai": "forge script script/deploy/DeployYieldVault.s.sol:DeployYieldVault --ffi --rpc-url $POLYGON_MUMBAI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $POLYGONSCAN_API_KEY",
"deploy:set-vault-role:mumbai": "forge script script/deploy/SetVaultRole.s.sol:SetVaultRole --ffi --rpc-url $POLYGON_MUMBAI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $POLYGONSCAN_API_KEY",
"deploy:set-yield-vault-role:mumbai": "forge script script/deploy/SetYieldVaultRole.s.sol:SetYieldVaultRole --ffi --rpc-url $POLYGON_MUMBAI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $POLYGONSCAN_API_KEY",
"deploy:vault:mumbai": "forge script script/deploy/DeployVault.s.sol:DeployVault --ffi --rpc-url $POLYGON_MUMBAI_RPC_URL --sender $SENDER --broadcast --verify --etherscan-api-key $POLYGONSCAN_API_KEY",
"deploy:contracts:mumbai": "npm run deploy:stable-token:mumbai && npm run deploy:token:mumbai && npm run deploy:pool:mumbai && npm run deploy:yield-vault:mumbai && npm run deploy:vault:mumbai",
"deploy:config-contracts:mumbai": "npm run deploy:set-token-price:mumbai && npm run deploy:set-stable-token-role:mumbai && npm run deploy:set-token-role:mumbai && npm run deploy:set-vault-role:mumbai && npm run deploy:set-yield-vault-role:mumbai",
"format": "prettier --config .prettierrc --write \"**/*.{json,md,ts,sol,yml}\"",
"format:file": "prettier --config .prettierrc --write",
"gen:local": "ts-node ./script/utils/generateLocalList.ts",
"gen:testnet": "ts-node ./script/utils/generateTestnetList.ts",
"hint": "solhint --config \"./.solhint.json\" \"{src,test}/**/*.sol\"",
"lint-staged": "lint-staged",
"prepack": "npm run clean && npm run compile",
"prepare": "husky install",
"test": "forge test"
},
"devDependencies": {
"husky": "8.0.3",
"lint-staged": "13.1.0",
"prettier": "2.8.3",
"prettier-plugin-solidity": "1.1.1",
"solhint": "3.3.8",
"solhint-plugin-prettier": "0.0.5",
"ts-node": "10.9.1"
},
"files": [
"src/**",
"out/**"
]
}