Skip to content

Commit bf41432

Browse files
committed
refactor: Update environment variable names for LayerZero configuration
1 parent f5c1400 commit bf41432

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

.env.template

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Ethereum Sepolia Configuration
22
SEPOLIA_RPC_URL="https://gateway.tenderly.co/public/sepolia"
3-
SEPOLIA_ENDPOINT_ADDRESS=0x<layerzero-endpoint-address-on-sepolia>
4-
SEPOLIA_CHAIN_ID=SEPOLIA_CHAIN_ID=40161 # LayerZero chain ID for Ethereum Sepolia
3+
LAYER_ZERO_SEPOLIA_ENDPOINT_ADDRESS=0x6EDCE65403992e310A62460808c4b910D972f10f
4+
LAYER_ZERO_SEPOLIA_CHAIN_ID=40161 # LayerZero chain ID for Ethereum Sepolia
55
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"
10-
ARBITRUM_SEPOLIA_ENDPOINT_ADDRESS=0x<layerzero-endpoint-address-on-arbitrum-sepolia>
11-
ARBITRUM_SEPOLIA_CHAIN_ID=40231 # LayerZero chain ID for Arbitrum Sepolia
10+
LAYER_ZERO_ARBITRUM_SEPOLIA_ENDPOINT_ADDRESS=0x6EDCE65403992e310A62460808c4b910D972f10f
11+
LAYER_ZERO_ARBITRUM_SEPOLIA_CHAIN_ID=40231 # LayerZero chain ID for Arbitrum Sepolia
1212
ARBITRUM_SEPOLIA_OFT_ADDRESS=0x<deployed-rlcoft-address-on-arbitrum-sepolia>
1313

1414
# Token Configuration for OFT

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ verify-adapter:
5555
forge verify-contract \
5656
--chain-id 11155111 \
5757
--watch \
58-
--constructor-args $(shell cast abi-encode "constructor(address,address,address)" $(RLC_SEPOLIA_ADDRESS) $(SEPOLIA_ENDPOINT_ADDRESS) $(DELEGATE_ADDRESS)) \
58+
--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) \
6060
$(SEPOLIA_ADAPTER_ADDRESS) \
6161
src/RLCAdapter.sol:RLCAdapter
@@ -65,7 +65,7 @@ verify-oft:
6565
forge verify-contract \
6666
--chain-id 421614 \
6767
--watch \
68-
--constructor-args $(shell cast abi-encode "constructor(string,string,address,address)" $(TOKEN_NAME) $(TOKEN_SYMBOL) $(ARBITRUM_SEPOLIA_ENDPOINT_ADDRESS) $(DELEGATE_ADDRESS)) \
68+
--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) \
7070
$(ARBITRUM_SEPOLIA_OFT_ADDRESS) \
7171
src/RLCOFT.sol:RLCOFT

script/ConfigureRLCAdapter.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ contract ConfigureRLCAdapter is Script {
1515

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

2020
// Set trusted remote
2121
adapter.setPeer(arbitrumSepoliaChainId, bytes32(uint256(uint160(oftAddress))));

script/ConfigureRLCOFT.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ contract ConfigureRLCOFT is Script {
1515

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

2020
// Set trusted remote
2121
oft.setPeer(ethereumSepoliaChainId, bytes32(uint256(uint160(adapterAddress))));

script/RLCAdapter.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ contract DeployRLCAdapter is Script {
1414
vm.startBroadcast();
1515

1616
address rlcToken = vm.envAddress("RLC_SEPOLIA_ADDRESS"); // RLC token address on sepolia testnet
17-
address lzEndpoint = vm.envAddress("SEPOLIA_ENDPOINT_ADDRESS"); // LayerZero sepolia endpoint
17+
address lzEndpoint = vm.envAddress("LAYER_ZERO_SEPOLIA_ENDPOINT_ADDRESS"); // LayerZero sepolia endpoint
1818
address delegate = vm.envAddress("DELEGATE_ADDRESS"); // Your actual wallet address
1919

2020
rlcAdapter = new RLCAdapter(rlcToken, lzEndpoint, delegate);

script/RLCOFT.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ contract DeployRLCOFT is Script {
1515

1616
string memory name = vm.envString("TOKEN_NAME");
1717
string memory symbol = vm.envString("TOKEN_SYMBOL");
18-
address lzEndpoint = vm.envAddress("ARBITRUM_SEPOLIA_ENDPOINT_ADDRESS");
18+
address lzEndpoint = vm.envAddress("LAYER_ZERO_ARBITRUM_SEPOLIA_ENDPOINT_ADDRESS");
1919
address delegate = vm.envAddress("DELEGATE_ADDRESS");
2020

2121
rlcOFT = new RLCOFT(name, symbol, lzEndpoint, delegate);

script/SendArbitrumToEthereum.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ contract SendArbitrumToEthereum is Script {
2323
address oftAddress = vm.envAddress("ARBITRUM_SEPOLIA_OFT_ADDRESS"); // Your RLCOFT address on Arbitrum Sepolia
2424

2525
// Transfer parameters
26-
uint16 destinationChainId = uint16(vm.envUint("SEPOLIA_CHAIN_ID")); // LayerZero chain ID for Ethereum Sepolia
26+
uint16 destinationChainId = uint16(vm.envUint("LAYER_ZERO_SEPOLIA_CHAIN_ID")); // LayerZero chain ID for Ethereum Sepolia
2727
address recipientAddress = vm.envAddress("RECEIVER_ADDRESS"); // Recipient on Ethereum Sepolia
2828
console.log("Recipient: %s", recipientAddress);
2929

script/SendEthereumToArbitrum.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ contract SendEthereumToArbitrum is Script {
2626
address rlcTokenAddress = vm.envAddress("RLC_SEPOLIA_ADDRESS"); // RLC token address on sepolia testnet
2727

2828
// Transfer parameters
29-
uint16 destinationChainId = uint16(vm.envUint("ARBITRUM_SEPOLIA_CHAIN_ID")); // LayerZero chain ID for Arbitrum Sepolia
29+
uint16 destinationChainId = uint16(vm.envUint("LAYER_ZERO_ARBITRUM_SEPOLIA_CHAIN_ID")); // LayerZero chain ID for Arbitrum Sepolia
3030
address recipientAddress = vm.envAddress("RECEIVER_ADDRESS"); // Recipient on Arbitrum (your address)
3131
uint256 amount = 5 * 10 ** 9; // RLC tokens (adjust the amount as needed)
3232

0 commit comments

Comments
 (0)