@@ -7,10 +7,17 @@ help: ## 📚 Show help for each of the Makefile recipes
77# Deployments
88
99RPC_URL? =http://localhost:8545
10- PRIVATE_KEY? =0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
10+ PRIVATE_KEY? =0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a
1111
1212deploy-all : # # 🚀 Deploy all contracts
13- cd script && forge script DeployAll.s.sol --private-key $(PRIVATE_KEY ) --rpc-url $(RPC_URL ) --broadcast
13+ cd script && \
14+ forge script DeployAll.s.sol \
15+ --sig " run(string)" \
16+ $(CONFIG ) \
17+ --private-key $(PRIVATE_KEY ) \
18+ --rpc-url $(RPC_URL ) \
19+ --broadcast \
20+ -vvv
1421
1522CONFIG? =example
1623deploy-token : # # 🚀 Deploy the token contract
@@ -20,58 +27,24 @@ deploy-token: ## 🚀 Deploy the token contract
2027 $(CONFIG ) \
2128 --private-key $(PRIVATE_KEY ) \
2229 --rpc-url $(RPC_URL ) \
23- --broadcast
30+ --broadcast \
31+ --verbosity 3
2432
25- MINT? ="1 ether"
26- OWNER? =0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
27- BENEFICIARY1? =0x70997970C51812dc3A010C7d01b50e0d17dc79C8
28- BENEFICIARY2? =0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC
29- BENEFICIARY3? =0x90F79bf6EB2c4f870365E785982E1f101E93b906
30-
31- CLAIM_TIME_LIMIT? =1632960000
32- MERKLE_ROOT? =0x90076b5fb9a6c81d9fce83dfd51760987b8c49e7c861ea25b328e6e63d2cd3df
33- TOKEN_OWNER? =$(OWNER )
34-
35- deploy-proxy-admin : # # 🚀 Deploy the ProxyAdmin contract
36- cd script/proxy_admin && \
37- forge script DeployProxyAdmin.s.sol \
38- --sig " run(address)" \
39- $(OWNER ) \
40- --rpc-url $(RPC_URL ) \
41- --private-key $(PRIVATE_KEY ) \
42- --broadcast
4333
44- deploy-aligned-token-implementation : # # 🚀 Deploy the AlignedToken implementation contract
45- cd script/aligned_token && \
46- forge script DeployAlignedTokenImplementation.s.sol \
47- --rpc-url $(RPC_URL ) \
48- --private-key $(PRIVATE_KEY ) \
49- --broadcast
34+ update_token_proxy :
35+ @NEW_TOKEN_PROXY=$$(jq -r '.tokenProxy' "script-out/deployed_token_addresses.json" ) && \
36+ jq --arg new_proxy " $$ NEW_TOKEN_PROXY" ' .tokenProxy = $$new_proxy' $(CONFIG ) > $(CONFIG ) .tmp \
37+ && mv $(CONFIG ) .tmp $(CONFIG )
5038
51- deploy-aligned-token-proxy : # # 🚀 Deploy the AlignedToken proxy contract
52- cd script/aligned_token && \
53- forge script DeployAlignedTokenProxy.s.sol \
54- --sig " run(address,address,address,address,address,address,uint256)" \
55- $(PROXY_ADMIN ) $(IMPLEMENTATION ) $(OWNER ) $(BENEFICIARY1 ) $(BENEFICIARY2 ) $(BENEFICIARY3 ) $(MINT ) \
56- --rpc-url $(RPC_URL ) \
39+ upgrade-token : # # 🚀 Upgrade the token contract
40+ cd script && \
41+ forge script UpgradeToken.s.sol \
42+ --sig " run(string)" \
43+ $(CONFIG ) \
5744 --private-key $(PRIVATE_KEY ) \
58- --broadcast
59-
60- deploy-claimable-airdrop-implementation : # # 🚀 Deploy the ClaimableAirdrop implementation contract
61- cd script/claimable_airdrop && \
62- forge script DeployClaimableAirdropImplementation.s.sol \
6345 --rpc-url $(RPC_URL ) \
64- --private-key $(PRIVATE_KEY ) \
65- --broadcast
66-
67- deploy-claimable-airdrop-proxy : # # 🚀 Deploy the ClaimableAirdrop proxy contract
68- cd script/claimable_airdrop && \
69- forge script DeployClaimableAirdropProxy.s.sol \
70- --sig " run(address,address,address,address,address,uint256,bytes32)" \
71- $(PROXY_ADMIN ) $(IMPLEMENTATION ) $(OWNER ) $(TOKEN ) $(BENEFICIARY1 ) $(CLAIM_TIME_LIMIT ) $(MERKLE_ROOT ) \
72- --rpc-url $(RPC_URL ) \
73- --private-key $(PRIVATE_KEY ) \
74- --broadcast
46+ --broadcast \
47+ --verbosity 3
7548
7649# Upgrades
7750
@@ -84,57 +57,11 @@ upgrade-aligned-token-implementation: ## 🚀 Upgrade the AlignedToken implement
8457 --private-key $(PRIVATE_KEY ) \
8558 --broadcast
8659
87- # Deployment Data
88-
89- aligned-token-proxy-deploy-data : # # 🚀 Generate the deployment data for the AlignedToken proxy contract
90- cd script/aligned_token && \
91- forge script AlignedTokenProxyDeploymentData.s.sol \
92- --sig " run(address,uint256, address,address,address,address,uint256)" \
93- $(IMPLEMENTATION ) $(VERSION ) $(OWNER ) $(BENEFICIARY1 ) $(BENEFICIARY2 ) $(BENEFICIARY3 ) $(MINT )
94-
95- aligned-token-init-data : # # 🚀 Generate the init data for the AlignedToken proxy contract
96- cd script/aligned_token && \
97- forge script AlignedTokenInitData.s.sol \
98- --sig " run(address,uint256, address,address,address,address,uint256)" \
99- $(IMPLEMENTATION ) $(VERSION ) $(OWNER ) $(BENEFICIARY1 ) $(BENEFICIARY2 ) $(BENEFICIARY3 ) $(MINT )
100-
101- aligned-token-upgrade-data : # # 🚀 Generate the upgrade data for the AlignedToken proxy contract
102- cd script/aligned_token && \
103- forge script AlignedTokenUpgradeData.s.sol \
104- --sig " run(address,uint256, address,address,address,address,uint256)" \
105- $(IMPLEMENTATION ) $(VERSION ) $(OWNER ) $(BENEFICIARY1 ) $(BENEFICIARY2 ) $(BENEFICIARY3 ) $(MINT )
106-
107- SALT? =0x0000000000000000000000000000000000000000000000000000000000000000
108- # Sepolia Safe CreateCall contract.
109- DEPLOYER? =0x9b35Af71d77eaf8d7e40252370304687390A1A52
110-
111- aligned-token-create2 : # # 🚀 Generate the create2 data for the AlignedToken proxy contract
112- cd script/aligned_token && \
113- forge script AlignedTokenCreate2.s.sol \
114- --sig " run(uint256,bytes32,address)" \
115- $(VERSION ) $(SALT ) $(DEPLOYER )
116-
117- aligned-token-proxy-create2 : # # 🚀 Generate the create2 data for the AlignedToken proxy contract
118- cd script/aligned_token && \
119- forge script AlignedTokenCreate2.s.sol \
120- --sig " run(address,uint256, address,address,address,address,uint256,bytes32,address)" \
121- $(IMPLEMENTATION ) $(VERSION ) $(OWNER ) $(BENEFICIARY1 ) $(BENEFICIARY2 ) $(BENEFICIARY3 ) $(MINT ) $(SALT ) $(DEPLOYER
122-
123- # Misc
124-
125- approve :
126- cd script && \
127- forge script ApproveERC20.s.sol \
128- --sig " run(address,address,uint256)" \
129- $(TOKEN ) $(AIRDROP ) $(AMOUNT ) \
130- --rpc-url $(RPC_URL ) \
131- --private-key $(HOLDER_PRIVATE_KEY ) \
132- --broadcast
133-
13460# Test targets
13561
13662test-token :
13763 cast call $(ADDRESS ) " name()(string)" --rpc-url $(RPC_URL )
64+ cast call $(ADDRESS ) " symbol()(string)" --rpc-url $(RPC_URL )
13865 cast call $(ADDRESS ) " totalSupply()(uint256)" --rpc-url $(RPC_URL )
13966
14067# The following target needs the proof API running on localhost:4000
0 commit comments