-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
49 lines (42 loc) · 1.64 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
-include .env
# Common build command with local profile to ensure AST generation
BUILD = FOUNDRY_PROFILE=local forge clean && FOUNDRY_PROFILE=local forge build
# Deploy all contracts
deploy_verify_arbitrum_sepolia_all :; $(BUILD) && \
FOUNDRY_PROFILE=local forge script script/DeployAllContracts.s.sol \
--rpc-url $(ARBITRUM_SEPOLIA_RPC_URL) \
--private-key $(PRIVATE_KEY) \
--verify \
--etherscan-api-key $(ARBISCAN_API_KEY) \
--broadcast
deploy_arbitrum_sepolia_all :; $(BUILD) && \
FOUNDRY_PROFILE=local forge script script/DeployAllContracts.s.sol \
--rpc-url $(ARBITRUM_SEPOLIA_RPC_URL) \
--private-key $(PRIVATE_KEY) \
--broadcast
# Deploy only ChatterPay contract
deploy_verify_arbitrum_sepolia_only_chatterpay :; $(BUILD) && \
FOUNDRY_PROFILE=local forge script script/DeployChatterPay.s.sol \
--rpc-url $(ARBITRUM_SEPOLIA_RPC_URL) \
--private-key $(PRIVATE_KEY) \
--verify \
--etherscan-api-key $(ARBISCAN_API_KEY) \
--broadcast
deploy_arbitrum_sepolia_only_chatterpay :; $(BUILD) && \
FOUNDRY_PROFILE=local forge script script/DeployChatterPay.s.sol \
--rpc-url $(ARBITRUM_SEPOLIA_RPC_URL) \
--private-key $(PRIVATE_KEY) \
--broadcast
# Deploy only Paymaster contract
deploy_verify_arbitrum_sepolia_only_paymaster :; $(BUILD) && \
FOUNDRY_PROFILE=local forge script script/DeployPaymaster.s.sol \
--rpc-url $(ARBITRUM_SEPOLIA_RPC_URL) \
--private-key $(PRIVATE_KEY) \
--verify \
--etherscan-api-key $(ARBISCAN_API_KEY) \
--broadcast
deploy_arbitrum_sepolia_only_paymaster :; $(BUILD) && \
FOUNDRY_PROFILE=local forge script script/DeployPaymaster.s.sol \
--rpc-url $(ARBITRUM_SEPOLIA_RPC_URL) \
--private-key $(PRIVATE_KEY) \
--broadcast