Skip to content

Commit 87e205c

Browse files
committed
refactor: Rename environment variables for RLC adapter and OFT addresses
1 parent bf41432 commit 87e205c

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

.env.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
SEPOLIA_RPC_URL="https://gateway.tenderly.co/public/sepolia"
33
LAYER_ZERO_SEPOLIA_ENDPOINT_ADDRESS=0x6EDCE65403992e310A62460808c4b910D972f10f
44
LAYER_ZERO_SEPOLIA_CHAIN_ID=40161 # LayerZero chain ID for Ethereum Sepolia
5-
SEPOLIA_ADAPTER_ADDRESS=0x<deployed-rlc-adapter-address-on-sepolia>
5+
RLC_SEPOLIA_ADAPTER_ADDRESS=0x<deployed-rlc-adapter-address-on-sepolia>
66
RLC_SEPOLIA_ADDRESS=0x<rlc-token-address-on-sepolia>
77

88
# Arbitrum Sepolia Configuration
99
ARBITRUM_SEPOLIA_RPC_URL="https://arbitrum-sepolia-rpc.publicnode.com"
1010
LAYER_ZERO_ARBITRUM_SEPOLIA_ENDPOINT_ADDRESS=0x6EDCE65403992e310A62460808c4b910D972f10f
1111
LAYER_ZERO_ARBITRUM_SEPOLIA_CHAIN_ID=40231 # LayerZero chain ID for Arbitrum Sepolia
12-
ARBITRUM_SEPOLIA_OFT_ADDRESS=0x<deployed-rlcoft-address-on-arbitrum-sepolia>
12+
ARBITRUM_SEPOLIA_RLC_OFT_ADDRESS=0x<deployed-rlcoft-address-on-arbitrum-sepolia>
1313

1414
# Token Configuration for OFT
1515
TOKEN_NAME="RLC OFT"

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ verify-adapter:
5757
--watch \
5858
--constructor-args $(shell cast abi-encode "constructor(address,address,address)" $(RLC_SEPOLIA_ADDRESS) $(LAYER_ZERO_SEPOLIA_ENDPOINT_ADDRESS) $(DELEGATE_ADDRESS)) \
5959
--etherscan-api-key $(ETHERSCAN_API_KEY) \
60-
$(SEPOLIA_ADAPTER_ADDRESS) \
60+
$(RLC_SEPOLIA_ADAPTER_ADDRESS) \
6161
src/RLCAdapter.sol:RLCAdapter
6262

6363
verify-oft:
@@ -67,7 +67,7 @@ verify-oft:
6767
--watch \
6868
--constructor-args $(shell cast abi-encode "constructor(string,string,address,address)" $(TOKEN_NAME) $(TOKEN_SYMBOL) $(LAYER_ZERO_ARBITRUM_SEPOLIA_ENDPOINT_ADDRESS) $(DELEGATE_ADDRESS)) \
6969
--etherscan-api-key $(ARBISCAN_API_KEY) \
70-
$(ARBITRUM_SEPOLIA_OFT_ADDRESS) \
70+
$(ARBITRUM_SEPOLIA_RLC_OFT_ADDRESS) \
7171
src/RLCOFT.sol:RLCOFT
7272

7373
# Combined verification target

script/ConfigureRLCAdapter.s.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ contract ConfigureRLCAdapter is Script {
1010
vm.startBroadcast();
1111

1212
// RLCAdapter on Ethereum Sepolia
13-
address adapterAddress = vm.envAddress("SEPOLIA_ADAPTER_ADDRESS"); // Add your RLCAdapter address here
13+
address adapterAddress = vm.envAddress("RLC_SEPOLIA_ADAPTER_ADDRESS"); // Add your RLCAdapter address here
1414
RLCAdapter adapter = RLCAdapter(adapterAddress);
1515

1616
// RLCOFT on Arbitrum Sepolia
17-
address oftAddress = vm.envAddress("ARBITRUM_SEPOLIA_OFT_ADDRESS");
17+
address oftAddress = vm.envAddress("ARBITRUM_SEPOLIA_RLC_OFT_ADDRESS");
1818
uint16 arbitrumSepoliaChainId = uint16(vm.envUint("LAYER_ZERO_ARBITRUM_SEPOLIA_CHAIN_ID"));
1919

2020
// Set trusted remote

script/ConfigureRLCOFT.s.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ contract ConfigureRLCOFT is Script {
1010
vm.startBroadcast();
1111

1212
// RLCOFT on Arbitrum Sepolia
13-
address oftAddress = vm.envAddress("ARBITRUM_SEPOLIA_OFT_ADDRESS");
13+
address oftAddress = vm.envAddress("ARBITRUM_SEPOLIA_RLC_OFT_ADDRESS");
1414
RLCOFT oft = RLCOFT(oftAddress);
1515

1616
// RLCAdapter on Ethereum Sepolia
17-
address adapterAddress = vm.envAddress("SEPOLIA_ADAPTER_ADDRESS");// Add your RLCAdapter address here
17+
address adapterAddress = vm.envAddress("RLC_SEPOLIA_ADAPTER_ADDRESS");// Add your RLCAdapter address here
1818
uint16 ethereumSepoliaChainId = uint16(vm.envUint("LAYER_ZERO_SEPOLIA_CHAIN_ID")); // LayerZero chain ID for Ethereum Sepolia
1919

2020
// Set trusted remote

script/RLCAdapter.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ contract DeployRLCAdapter is Script {
2222

2323
vm.stopBroadcast();
2424

25-
EnvUtils.updateEnvVariable("SEPOLIA_ADAPTER_ADDRESS", address(rlcAdapter));
25+
EnvUtils.updateEnvVariable("RLC_SEPOLIA_ADAPTER_ADDRESS", address(rlcAdapter));
2626
}
2727
}

script/RLCOFT.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ contract DeployRLCOFT is Script {
2323

2424
vm.stopBroadcast();
2525

26-
EnvUtils.updateEnvVariable("ARBITRUM_SEPOLIA_OFT_ADDRESS", address(rlcOFT));
26+
EnvUtils.updateEnvVariable("ARBITRUM_SEPOLIA_RLC_OFT_ADDRESS", address(rlcOFT));
2727
}
2828
}

script/SendArbitrumToEthereum.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ contract SendArbitrumToEthereum is Script {
2020
vm.startBroadcast();
2121

2222
// Contract addresses
23-
address oftAddress = vm.envAddress("ARBITRUM_SEPOLIA_OFT_ADDRESS"); // Your RLCOFT address on Arbitrum Sepolia
23+
address oftAddress = vm.envAddress("ARBITRUM_SEPOLIA_RLC_OFT_ADDRESS"); // Your RLCOFT address on Arbitrum Sepolia
2424

2525
// Transfer parameters
2626
uint16 destinationChainId = uint16(vm.envUint("LAYER_ZERO_SEPOLIA_CHAIN_ID")); // LayerZero chain ID for Ethereum Sepolia

script/SendEthereumToArbitrum.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ contract SendEthereumToArbitrum is Script {
2222
vm.startBroadcast();
2323

2424
// Contract addresses
25-
address adapterAddress = vm.envAddress("SEPOLIA_ADAPTER_ADDRESS");// Your RLCAdapter address
25+
address adapterAddress = vm.envAddress("RLC_SEPOLIA_ADAPTER_ADDRESS");// Your RLCAdapter address
2626
address rlcTokenAddress = vm.envAddress("RLC_SEPOLIA_ADDRESS"); // RLC token address on sepolia testnet
2727

2828
// Transfer parameters

0 commit comments

Comments
 (0)