Skip to content

Commit 8d9627b

Browse files
committed
pr feedback
1 parent fc46887 commit 8d9627b

5 files changed

Lines changed: 15 additions & 13 deletions

File tree

base/Makefile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,19 @@ USER_REMOTE_ETH_ATA ?= 0x3e506b04e88dab39a3687fc5eb822c18f8301fc09cfe945c3394fc6
3030

3131
AMOUNT ?= 1000000000
3232

33-
# Contract addresses (read from deployment file)
33+
# Contract addresses (read from deployment file, only when ENV is set)
34+
LOCAL_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
35+
36+
ifdef DEPLOYMENT_FILE
3437
BRIDGE = $(shell jq -r '.Bridge' $(DEPLOYMENT_FILE))
3538
LOCAL_SOL = $(shell jq -r '.WrappedSOL' $(DEPLOYMENT_FILE))
3639
REMOTE_SOL = $(shell jq -r '.RemoteSOL' $(DEPLOYMENT_FILE))
3740
LOCAL_SPL = $(shell jq -r '.WrappedSPL' $(DEPLOYMENT_FILE))
3841
REMOTE_SPL = $(shell jq -r '.RemoteSPL' $(DEPLOYMENT_FILE))
3942
REMOTE_ERC20 = $(shell jq -r '.RemoteERC20' $(DEPLOYMENT_FILE))
4043
REMOTE_ETH = $(shell jq -r '.RemoteETH' $(DEPLOYMENT_FILE))
41-
42-
LOCAL_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
43-
LOCAL_ERC20 = 0x4870D23984Dd663005EB8E2b616e4Ef62630183c
44+
LOCAL_ERC20 = $(shell jq -r '.LocalERC20' $(DEPLOYMENT_FILE))
45+
endif
4446

4547
# Environment validation
4648
.PHONY: validate-env
@@ -70,7 +72,6 @@ help:
7072
@echo "Deployment targets (require ENV):"
7173
@echo " deploy Deploy bridge contracts"
7274
@echo " upgrade Upgrade bridge contracts"
73-
@echo " dev-deploy Deploy + create wrapped tokens"
7475
@echo " create-wrapped-spl Create wrapped SPL token"
7576
@echo " create-mock-token Deploy a mock ERC20"
7677
@echo ""
@@ -88,7 +89,7 @@ help:
8889
@echo " SOLANA_SOL_RECEIVER SOL recipient address"
8990
@echo " LEDGER_ACCOUNT Ledger HD account index (default: 0)"
9091

91-
check:
92+
check: validate-env
9293
@echo $(REMOTE_ERC20)
9394

9495
.PHONY: deps
@@ -116,9 +117,6 @@ bindings:
116117
coverage:
117118
@ forge coverage --no-match-coverage "(script|test)"
118119

119-
.PHONY: dev-deploy
120-
dev-deploy: deploy create-wrapped-sol create-wrapped-spl
121-
122120
.PHONY: deploy
123121
deploy: validate-env
124122
BRIDGE_ENVIRONMENT=$(BRIDGE_ENV) forge script DeployScript --account testnet-admin --rpc-url $(BASE_RPC) --sender $(shell cast wallet address --account testnet-admin) --broadcast -vvvv

base/deployments/base_mainnet.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
"RemoteERC20": "",
1010
"RemoteETH": "",
1111
"WrappedSOL": "0x311935Cd80B76769bF2ecC9D8Ab7635b2139cf82",
12-
"WrappedSPL": ""
12+
"WrappedSPL": "",
13+
"LocalERC20": "0x4870D23984Dd663005EB8E2b616e4Ef62630183c"
1314
}

base/deployments/base_sepolia_alpha.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
"RemoteERC20": "0xba6a03ad9fe4921c8a5a4e8d3ef0a8d76ac6137ea1213879512abc24c6ab4376",
1010
"RemoteETH": "0x79f4f1fa82df5ae874eaff38c8288c15a0317eab263a6a2f4ed32ca9224ba62c",
1111
"WrappedSOL": "0x003512146Fd54b71f926C7Fd4B7bd20Fc84E22c5",
12-
"WrappedSPL": "0x80351342c4dd23C78c0837C640E041a239e67cD8"
12+
"WrappedSPL": "0x80351342c4dd23C78c0837C640E041a239e67cD8",
13+
"LocalERC20": "0x62C1332822983B8412A6Ffda0fd77cd7d5733Ee9"
1314
}

base/deployments/base_sepolia_prod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
"RemoteERC20": "0xc7cfe164b0b61064d6f23734f906c8141788be442d94495852d8af53b40e3212",
1010
"RemoteETH": "0xcb3d6f70c63eee106144cdf6cf934901b684be88171380e87a3f8d03f720a185",
1111
"WrappedSOL": "0xCace0c896714DaF7098FFD8CC54aFCFe0338b4BC",
12-
"WrappedSPL": "0x955C7356776F9304feD38ed5AeC5699436C7C614"
12+
"WrappedSPL": "0x955C7356776F9304feD38ed5AeC5699436C7C614",
13+
"LocalERC20": "0x62C1332822983B8412A6Ffda0fd77cd7d5733Ee9"
1314
}

base/deployments/template.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
"WrappedSOL": "",
1010
"WrappedSPL": "",
1111
"RemoteERC20": "",
12-
"RemoteETH": ""
12+
"RemoteETH": "",
13+
"LocalERC20": ""
1314
}

0 commit comments

Comments
 (0)