-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (17 loc) · 904 Bytes
/
Copy pathMakefile
File metadata and controls
19 lines (17 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: all test clean deploy fund help install snapshot format anvil
NETWORK ?= anvil
NETWORK_ARGS := --rpc-url http://127.0.0.1:8545 --account $(LOCAL_ACCOUNT) --broadcast -vvvv
ifeq ($(NETWORK),anvil)
NETWORK_ARGS := --rpc-url http://127.0.0.1:8545 --account $(LOCAL_ACCOUNT) --broadcast -vvvv
else ifeq ($(NETWORK),base_sepolia)
NETWORK_ARGS := --rpc-url $(SEPOLIA_RPC_URL) --account $(SEPOLIA_KEY) --broadcast --verify --verifier etherscan --etherscan-api-key $(ETHERSCAN_API_KEY) -vvvv
else ifeq ($(NETWORK),mainnet)
NETWORK_ARGS := --rpc-url $(BASE_RPC_URL) --account $(BASE_KEY) --broadcast --verify --verifier etherscan --etherscan-api-key $(ETHERSCAN_API_KEY) -vvvv
else
$(error Unknown NETWORK '$(NETWORK)'; choose anvil, sepolia or mainnet)
endif
CONTRACT ?= Verifier
SCRIPT := script/$(CONTRACT).s.sol
EXTRA_ARGS ?=
deploy:
forge script $(SCRIPT) $(EXTRA_ARGS) $(NETWORK_ARGS)