-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 785 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 785 Bytes
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
# include .env file and export its env vars
-include .env
test-invariant :; forge test --match-path "test/**/invariant/**/*.sol" --show-progress
test-ui :; forge test --no-match-path "test/**/invariant/**/*.sol"
ifeq ($(VERIFIER),etherscan)
VERIFIER_PARAMS := --verifier etherscan --etherscan-api-key $(ETHERSCAN_API_KEY)
endif
ifeq ($(VERIFIER),blockscout)
VERIFIER_PARAMS := --verifier blockscout --verifier-url "$(VERIFIER_URL)"
endif
predeploy :; forge script Deploy --rpc-url $(RPC_URL)
deploy:; forge script Deploy \
--rpc-url $(RPC_URL) \
--retries 5 \
--delay 7 \
--broadcast \
--verify \
$(VERIFIER_PARAMS)
deployMerkl:; forge script DeployMerkl \
--rpc-url $(RPC_URL) \
--retries 6 \
--delay 15 \
--broadcast \
--verify \
$(VERIFIER_PARAMS)