-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
53 lines (46 loc) · 1.34 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
src_dir := packages/contracts/src
script_dir := packages/contracts/script
deploy_dir := $(script_dir)/deploy
PRIVATE_KEY?=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
ETHERSCAN_API_KEY?=VEJ7GISNRKFUESRPC4W4D3ZEM2P9B4J6C4
.PHONY: deploy-arb
include .env
deploy-arb-l1:
@set -e; \
echo "Deploying ArbitrumVerifier..." && \
forge script $(deploy_dir)/ArbitrumVerifier.sol \
--rpc-url sepolia \
--broadcast \
-vvv \
--private-key $(PRIVATE_KEY) \
--verify && \
echo "Deploying L1ArbitrumResolver..." && \
forge script $(deploy_dir)/L1ArbitrumResolver.sol \
--rpc-url sepolia \
--broadcast \
-vvv \
--private-key $(PRIVATE_KEY) \
--verify;
deploy-arb-resolver:
@set -e; \
echo "Deploying L2ArbitrumResolver..." && \
forge script $(deploy_dir)/L2ArbitrumResolver.sol \
--rpc-url arb_sepolia \
--broadcast \
-vvv \
--private-key $(PRIVATE_KEY) \
--verify;
CONTRACTS := ENSRegistry ReverseRegistrar BaseRegistrarImplementation NameWrapper ETHRegistrarController SubdomainController L2ArbitrumResolver
deploy-arb-full:
@set -e; \
$(foreach contract,$(CONTRACTS),\
echo "Deploying $(contract)..." && \
forge script $(deploy_dir)/$(contract).sol \
--rpc-url arb_sepolia \
--broadcast \
-vvv \
--private-key $(PRIVATE_KEY) \
--verify \
&& \
) true; \
echo "All contracts deployed successfully."