Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SEPOLIA_RPC ?= $(SEPOLIA_INFURA_URL)
BASE_SEPOLIA_RPC ?= $(BASE_SEPOLIA_INFURA_URL)

# Sender addresses
BASE_SENDER ?= 0xc9C88391e50eEADb43647fAC514fA26f8dFd7E7F
BASE_SENDER ?= 0xC710b407f46823cBbdbDE6D344B8992c3062012F
SEPOLIA_SENDER ?= 0x39053B170bBD9580d0b86e8317c685aEFB65f1ec

# Common Forge script flags
Expand All @@ -24,6 +24,12 @@ FORGE_COMMON_FLAGS = \
--verify \
--optimize

# Base-specific flags
BASE_FLAGS = $(FORGE_COMMON_FLAGS) --etherscan-api-key $(BASE_ETHERSCAN_API_KEY)

# Sepolia-specific flags
SEPOLIA_FLAGS = $(FORGE_COMMON_FLAGS) --etherscan-api-key $(ETH_ETHERSCAN_API_KEY)

# ---------------------------------------------------------------------------
# Deployment & Setup Targets
# ---------------------------------------------------------------------------
Expand All @@ -32,24 +38,14 @@ FORGE_COMMON_FLAGS = \
deposit-count recipient-nonces flatten \
test-escrow test-escrow-with-fee gas create-payments

# ----------------------
# Deploy to "base"
# ----------------------
deploy:
forge clean
forge script script/Deploy.s.sol \
--rpc-url $(BASE_RPC) \
--sender $(BASE_SENDER) \
$(FORGE_COMMON_FLAGS)

# ----------------------
# Deploy to Sepolia
# ----------------------
deploy-sepolia:
forge script script/Deploy.Sepolia.sol \
--rpc-url $(SEPOLIA_RPC) \
--sender $(SEPOLIA_SENDER) \
$(FORGE_COMMON_FLAGS)
$(SEPOLIA_FLAGS)

# ----------------------
# Deploy to Base Sepolia
Expand All @@ -58,7 +54,7 @@ deploy-base-sepolia:
forge script script/Deploy.BaseSepolia.s.sol \
--rpc-url $(BASE_SEPOLIA_RPC) \
--sender $(SEPOLIA_SENDER) \
$(FORGE_COMMON_FLAGS)
$(BASE_FLAGS)

# ----------------------
# Deploy to Base Mainnet
Expand All @@ -68,7 +64,7 @@ deploy-base:
forge script script/Deploy.Base.s.sol \
--rpc-url $(BASE_RPC) \
--sender $(BASE_SENDER) \
$(FORGE_COMMON_FLAGS)
$(BASE_FLAGS)

# ---------------------------------------------------------------------------
# Testing Targets
Expand Down
Loading
Loading