forked from Gauntlet-xyz/aave-risk-stewards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
83 lines (65 loc) · 6.76 KB
/
Makefile
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
# include .env file and export its env vars
# (-include to ignore error if it does not exist)
-include .env
# deps
update:; forge update
# Build & test
build :; forge build --sizes
test :; forge test -vvv
# Utilities
download :; cast etherscan-source --chain ${chain} -d src/etherscan/${chain}_${address} ${address}
git-diff :
@mkdir -p diffs
@printf '%s\n%s\n%s\n' "\`\`\`diff" "$$(git diff --no-index --diff-algorithm=patience --ignore-space-at-eol ${before} ${after})" "\`\`\`" > diffs/${out}.md
mainnet-contract:; forge script ${contract_path} --rpc-url mainnet --sig "run(bool)" false -vv
optimism-contract:; forge script ${contract_path} --rpc-url optimism --sig "run(bool)" false -vv
arbitrum-contract:; forge script ${contract_path} --rpc-url arbitrum --sig "run(bool)" false -vv
metis-contract:; forge script ${contract_path} --rpc-url metis --sig "run(bool)" false -vv
base-contract:; forge script ${contract_path} --rpc-url base --sig "run(bool)" false -vv
# only emit
mainnet-example:; forge script src/MainnetExample.s.sol:MainnetExample --rpc-url mainnet --sig "run(bool)" false -vv
polygon-example:; forge script src/PolygonExample.s.sol:PolygonExample --rpc-url polygon --sig "run(bool)" false -vv
metis-example:; forge script src/MetisExample.s.sol:MetisExample --rpc-url metis --sig "run(bool)" false -vv
optimism-example:; forge script src/OptimismExample.s.sol:OptimismExample --rpc-url optimism --sig "run(bool)" false -vv
arbitrum-example:; forge script src/ArbitrumExample.s.sol:ArbitrumExample --rpc-url arbitrum --sig "run(bool)" false -vv
avalanche-example:; forge script src/AvalancheExample.s.sol:AvalancheExample --rpc-url avalanche --sig "run(bool)" false -vv
# Broadcast to safe backend
safe-mainnet-example:; forge script src/MainnetExample.s.sol:MainnetExample --rpc-url mainnet --sig "run(bool)" true -vv
safe-polygon-example:; forge script src/PolygonExample.s.sol:PolygonExample --rpc-url polygon --sig "run(bool)" true -vv
safe-metis-example:; forge script src/MetisExample.s.sol:MetisExample --rpc-url metis --sig "run(bool)" true -vv
safe-optimism-example:; forge script src/OptimismExample.s.sol:OptimismExample --rpc-url optimism --sig "run(bool)" true -vv
safe-arbitrum-example:; forge script src/ArbitrumExample.s.sol:ArbitrumExample --rpc-url arbitrum --sig "run(bool)" true -vv
safe-avalanche-example:; forge script src/AvalancheExample.s.sol:AvalancheExample --rpc-url avalanche --sig "run(bool)" true -vv
# Increase Supply Caps for LSTs on AAVE V3 Ethereum 20230530
mainnet-supply-caps-increase-20230530:; forge script src/MainnetLSTsSupplyCapsIncrease_20230530.s.sol:MainnetLSTsSupplyCapsIncrease_20230530 --rpc-url mainnet --sig "run(bool)" false -vv
safe-mainnet-supply-caps-increase-20230530:; forge script src/MainnetLSTsSupplyCapsIncrease_20230530.s.sol:MainnetLSTsSupplyCapsIncrease_20230530 --rpc-url mainnet --sig "run(bool)" true -vv
# Increase Supply Caps for LSTs on AAVE V3 Arbitrum 20230530
arbitrum-supply-caps-increase-20230530:; forge script src/ArbitrumLSTsSupplyCapsIncrease_20230530.s.sol:ArbitrumLSTsSupplyCapsIncrease_20230530 --rpc-url arbitrum --sig "run(bool)" false -vv
safe-arbitrum-supply-caps-increase-20230530:; forge script src/ArbitrumLSTsSupplyCapsIncrease_20230530.s.sol:ArbitrumLSTsSupplyCapsIncrease_20230530 --rpc-url arbitrum --sig "run(bool)" true -vv
# Increase Supply Caps for LSTs on AAVE V3 Optimism 20230530
optimism-supply-caps-increase-20230530:; forge script src/OptimismLSTsSupplyCapsIncrease_20230530.s.sol:OptimismLSTsSupplyCapsIncrease_20230530 --rpc-url optimism --sig "run(bool)" false -vv
safe-optimism-supply-caps-increase-20230530:; forge script src/OptimismLSTsSupplyCapsIncrease_20230530.s.sol:OptimismLSTsSupplyCapsIncrease_20230530 --rpc-url optimism --sig "run(bool)" true -vv
# Increase Supply Caps AAVE V3 Polygon 20230602
polygon-caps-increase-20230602:; forge script src/PolygonCapsIncrease_20230602.s.sol:PolygonCapsIncrease_20230602 --rpc-url polygon --sig "run(bool)" false -vv
safe-polygon-caps-increase-20230602:; forge script src/PolygonCapsIncrease_20230602.s.sol:PolygonCapsIncrease_20230602 --rpc-url polygon --sig "run(bool)" true -vv
# Increase Supply Caps AAVE V3 Polygon 20230607
polygon-caps-increase-20230607:; forge script src/PolygonCapsIncrease_20230607.s.sol:PolygonCapsIncrease_20230607 --rpc-url polygon --sig "run(bool)" false -vv
safe-polygon-caps-increase-20230607:; forge script src/PolygonCapsIncrease_20230607.s.sol:PolygonCapsIncrease_20230607 --rpc-url polygon --sig "run(bool)" true -vv
# Increase Caps AAVE V3 Arbitrum 20230608
arbitrum-caps-increase-20230608:; forge script src/ArbitrumCapsIncrease_20230608.s.sol:ArbitrumCapsIncrease_20230608 --rpc-url arbitrum --sig "run(bool)" false -vv
safe-arbitrum-caps-increase-20230608:; forge script src/ArbitrumCapsIncrease_20230608.s.sol:ArbitrumCapsIncrease_20230608 --rpc-url arbitrum --sig "run(bool)" true -vv
# Increase Caps AAVE V3 Arbitrum 20230608
arbitrum-weth-borrow-cap-increase-20230608:; forge script src/ArbitrumWETHBorrowCapIncrease_20230608.s.sol:ArbitrumWETHBorrowCapIncrease_20230608 --rpc-url arbitrum --sig "run(bool)" false
safe-arbitrum-weth-borrow-cap-increase-20230608:; forge script src/ArbitrumWETHBorrowCapIncrease_20230608.s.sol:ArbitrumWETHBorrowCapIncrease_20230608 --rpc-url arbitrum --sig "run(bool)" true -vv
# Increase Caps AAVE V3 Arbitrum 20230608
avalanche-caps-increase-20230608:; forge script src/AvalancheSupplyCapsIncrease_20230608.s.sol:AvalancheSupplyCapsIncrease_20230608 --rpc-url avalanche --sig "run(bool)" false -vv
safe-avalanche-caps-increase-20230608:; forge script src/AvalancheSupplyCapsIncrease_20230608.s.sol:AvalancheSupplyCapsIncrease_20230608 --rpc-url avalanche --sig "run(bool)" true -vv
# Increase Caps AAVE V3 Metis 20230629
metis-caps-increase-20230629:; forge script src/MetisCapsIncrease_20230629.s.sol:MetisCapsIncrease20230629 --rpc-url metis --sig "run(bool)" false
safe-metis-caps-increase-20230629:; forge script src/MetisCapsIncrease_20230629.s.sol:MetisCapsIncrease20230629 --rpc-url metis --sig "run(bool)" true -vv
# Increase Caps AAVE V3 Arbitrum 20230630
arbitrum-caps-increase-20230630:; forge script src/ArbitrumCapsIncrease_20230630.s.sol:ArbitrumCapsIncrease_20230630 --rpc-url arbitrum --sig "run(bool)" false
safe-arbitrum-caps-increase-20230630:; forge script src/ArbitrumCapsIncrease_20230630.s.sol:ArbitrumCapsIncrease_20230630 --rpc-url arbitrum --sig "run(bool)" true -vv
# Increase Supply Caps for wstETH on AAVE V3 Ethereum 20230618
mainnet-supply-caps-increase-20230618:; forge script src/MainnetwstETHSupplyCapsIncrease_20230618.s.sol:MainnetwstETHSupplyCapsIncrease_20230618 --rpc-url mainnet --sig "run(bool)" false -vv
safe-mainnet-supply-caps-increase-20230618:; forge script src/MainnetwstETHSupplyCapsIncrease_20230618.s.sol:MainnetwstETHSupplyCapsIncrease_20230618 --rpc-url mainnet --sig "run(bool)" true -vv