Skip to content

Commit 7729603

Browse files
authored
Merge pull request #72 from Merit-Systems/feat/base-sepolia-flags
Add Base/Sepolia flags to Makefile
2 parents fc873d4 + b7c771d commit 7729603

File tree

2 files changed

+79
-24
lines changed

2 files changed

+79
-24
lines changed

Makefile

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SEPOLIA_RPC ?= $(SEPOLIA_INFURA_URL)
1212
BASE_SEPOLIA_RPC ?= $(BASE_SEPOLIA_INFURA_URL)
1313

1414
# Sender addresses
15-
BASE_SENDER ?= 0xc9C88391e50eEADb43647fAC514fA26f8dFd7E7F
15+
BASE_SENDER ?= 0xC710b407f46823cBbdbDE6D344B8992c3062012F
1616
SEPOLIA_SENDER ?= 0x39053B170bBD9580d0b86e8317c685aEFB65f1ec
1717

1818
# Common Forge script flags
@@ -24,6 +24,12 @@ FORGE_COMMON_FLAGS = \
2424
--verify \
2525
--optimize
2626

27+
# Base-specific flags
28+
BASE_FLAGS = $(FORGE_COMMON_FLAGS) --etherscan-api-key $(BASE_ETHERSCAN_API_KEY)
29+
30+
# Sepolia-specific flags
31+
SEPOLIA_FLAGS = $(FORGE_COMMON_FLAGS) --etherscan-api-key $(ETH_ETHERSCAN_API_KEY)
32+
2733
# ---------------------------------------------------------------------------
2834
# Deployment & Setup Targets
2935
# ---------------------------------------------------------------------------
@@ -32,24 +38,14 @@ FORGE_COMMON_FLAGS = \
3238
deposit-count recipient-nonces flatten \
3339
test-escrow test-escrow-with-fee gas create-payments
3440

35-
# ----------------------
36-
# Deploy to "base"
37-
# ----------------------
38-
deploy:
39-
forge clean
40-
forge script script/Deploy.s.sol \
41-
--rpc-url $(BASE_RPC) \
42-
--sender $(BASE_SENDER) \
43-
$(FORGE_COMMON_FLAGS)
44-
4541
# ----------------------
4642
# Deploy to Sepolia
4743
# ----------------------
4844
deploy-sepolia:
4945
forge script script/Deploy.Sepolia.sol \
5046
--rpc-url $(SEPOLIA_RPC) \
5147
--sender $(SEPOLIA_SENDER) \
52-
$(FORGE_COMMON_FLAGS)
48+
$(SEPOLIA_FLAGS)
5349

5450
# ----------------------
5551
# Deploy to Base Sepolia
@@ -58,7 +54,7 @@ deploy-base-sepolia:
5854
forge script script/Deploy.BaseSepolia.s.sol \
5955
--rpc-url $(BASE_SEPOLIA_RPC) \
6056
--sender $(SEPOLIA_SENDER) \
61-
$(FORGE_COMMON_FLAGS)
57+
$(BASE_FLAGS)
6258

6359
# ----------------------
6460
# Deploy to Base Mainnet
@@ -68,7 +64,7 @@ deploy-base:
6864
forge script script/Deploy.Base.s.sol \
6965
--rpc-url $(BASE_RPC) \
7066
--sender $(BASE_SENDER) \
71-
$(FORGE_COMMON_FLAGS)
67+
$(BASE_FLAGS)
7268

7369
# ---------------------------------------------------------------------------
7470
# Testing Targets

0 commit comments

Comments
 (0)