-
Notifications
You must be signed in to change notification settings - Fork 0
First instance - simple OFT token #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 20 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
f49f53b
forge install: devtools
gfournierPro 06c09ee
forge install: layerzero-v2
gfournierPro 8bb6a85
forge install: rlc-faucet-contract
gfournierPro 91c7a70
forge install: openzeppelin-contracts
gfournierPro fcb4ee0
feat: Implement RLCAdapter and RLCOFT contracts with deployment scripts
gfournierPro 0fd43c7
refactor: Clean up whitespace and formatting in contract scripts
gfournierPro 5ff3398
feat: Implement cross-chain transfer scripts for RLC tokens between A…
gfournierPro c400115
feat: Update deployment scripts to use environment variables for addr…
gfournierPro dfd6e42
Refactor Ethereum to Arbitrum transfer scripts and update transaction…
gfournierPro 1d2795a
feat: Add .env.template for Ethereum and Arbitrum Sepolia configurations
gfournierPro 6eefe3a
refactor: Remove Foundry section and enhance README with detailed bri…
gfournierPro 7a713a6
feat: Add detailed transaction data for cross-chain transfers from Ar…
gfournierPro dcc2ef6
feat: Add transaction details and receipts for Ethereum to Arbitrum t…
gfournierPro 52e5b76
refactor: Clean up Makefile by removing unused targets and help section
gfournierPro 3b71cff
refactor: Simplify README by removing detailed .env configuration sec…
gfournierPro 22d9aea
feat: Implement EnvUtils library for updating environment variables i…
gfournierPro 6ef8db5
Refactor code structure for improved readability and maintainability
gfournierPro e4d5e19
fix: Update RPC URLs for Ethereum and Arbitrum Sepolia configurations
gfournierPro db42713
feat(rlcoft.sol): Override decimals function to return 9 for the token
gfournierPro 09b05f3
fix: Correct API key variable name for Blockscan to ETHERSCAN_API_KEY
gfournierPro f1b607f
feat(Makefile): Add verification targets for RLCAdapter and RLCOFT on…
gfournierPro 5f6a184
fix(.gitignore): Update ignore rules for Foundry broadcast files
gfournierPro 70d212d
add run latest
gfournierPro 822f69e
clean up unnecessary transaction data.
gfournierPro f5c1400
feat: Add initial changelog for RLC OFT bridge system implementation
gfournierPro bf41432
refactor: Update environment variable names for LayerZero configuration
gfournierPro 87e205c
refactor: Rename environment variables for RLC adapter and OFT addresses
gfournierPro f1a0a3d
fix: Update Arbitrum Sepolia RPC URL to the correct endpoint
gfournierPro 1d74f14
refactor: Rename token configuration variables for RLC OFT
gfournierPro 0a71ee3
fix: add EOF blank line
gfournierPro a4351e8
refactor(MakeFile): Move test and clean targets to the top
gfournierPro c15e285
fix(README): Update repository clone URL in
gfournierPro 6212a9c
docs(README): Add instructions for creating and editing .env file
gfournierPro 78e7521
refactor(Makefile): Rename configuration and token transfer targets f…
gfournierPro e932c70
fix: Correct constructor order in RLCAdapter and RLCOFT contracts
gfournierPro e1cf4ca
fix: Update SPDX license identifiers from UNLICENSED to Apache-2.0 in…
gfournierPro 20b2a14
docs(RLCOFT): Improve comment clarity for approveAndCall function
gfournierPro 9c6eccc
feat: Introduce ITokenSpender interface and update RLCOFT to use it
gfournierPro 84f348b
refactor: Simplify contract names in deployment and configuration scr…
gfournierPro 67af7c0
fix: Rename DELEGATE_ADDRESS and RECEIVER_ADDRESS to SENDER_ADDRESS i…
gfournierPro d50588c
refactor: Change variable declarations for RLCAdapter and RLCOFT to l…
gfournierPro e046bcb
fix(Makefile): Remove unnecessary source command in send-tokens-to-se…
gfournierPro f9c877f
docs: Update README for clarity and add contract overview section
gfournierPro 47297f4
docs: Update usage section in README for clarity on bridging RLC tokens
gfournierPro 72cf079
chore: Comment out test step in CI workflow for future implementation
gfournierPro b3c2972
fix(Makefile): Remove unused .PHONY target for send-tokens-to-arbitru…
gfournierPro 07144df
style: Clean up whitespace in multiple Solidity scripts for consistency
gfournierPro feadf9b
fix: Rename environment variable for Arbitrum Sepolia RLC OFT address…
gfournierPro a1238c1
fix: Rename scripts and Makefile targets for clarity and consistency
gfournierPro cabe6da
style: Add TODO comment to extract and document gas estimation function
gfournierPro fac839e
fix: Change behavior on missing .env file to revert instead of returning
gfournierPro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,4 +16,4 @@ docs/ | |
|
|
||
| # Dotenv file | ||
| .env | ||
| .last_deploy.json | ||
| .last_deploy.json | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,21 @@ | ||
| // script/ConfigureRLCAdapter.s.sol | ||
| // SPDX-License-Identifier: UNLICENSED | ||
| // SPDX-FileCopyrightText: 2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| pragma solidity ^0.8.22; | ||
|
|
||
| import {Script, console} from "forge-std/Script.sol"; | ||
| import {RLCAdapter} from "../src/RLCAdapter.sol"; | ||
|
|
||
| contract ConfigureRLCAdapter is Script { | ||
| contract Configure is Script { | ||
| function run() external { | ||
| vm.startBroadcast(); | ||
|
|
||
| // RLCAdapter on Ethereum Sepolia | ||
| address adapterAddress = vm.envAddress("SEPOLIA_ADAPTER_ADDRESS"); // Add your RLCAdapter address here | ||
| address adapterAddress = vm.envAddress("RLC_SEPOLIA_ADAPTER_ADDRESS"); // Add your RLCAdapter address here | ||
| RLCAdapter adapter = RLCAdapter(adapterAddress); | ||
|
|
||
| // RLCOFT on Arbitrum Sepolia | ||
| address oftAddress = vm.envAddress("ARBITRUM_SEPOLIA_OFT_ADDRESS"); | ||
| uint16 arbitrumSepoliaChainId = uint16(vm.envUint("ARBITRUM_SEPOLIA_CHAIN_ID")); | ||
| address oftAddress = vm.envAddress("ARBITRUM_SEPOLIA_RLC_OFT_ADDRESS"); | ||
| uint16 arbitrumSepoliaChainId = uint16(vm.envUint("LAYER_ZERO_ARBITRUM_SEPOLIA_CHAIN_ID")); | ||
|
|
||
| // Set trusted remote | ||
| adapter.setPeer(arbitrumSepoliaChainId, bytes32(uint256(uint160(oftAddress)))); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,21 @@ | ||
| // script/ConfigureRLCOFT.s.sol | ||
| // SPDX-License-Identifier: UNLICENSED | ||
| // SPDX-FileCopyrightText: 2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| pragma solidity ^0.8.22; | ||
|
|
||
| import {Script, console} from "forge-std/Script.sol"; | ||
| import {RLCOFT} from "../src/RLCOFT.sol"; | ||
|
|
||
| contract ConfigureRLCOFT is Script { | ||
| contract Configure is Script { | ||
| function run() external { | ||
| vm.startBroadcast(); | ||
|
|
||
| // RLCOFT on Arbitrum Sepolia | ||
| address oftAddress = vm.envAddress("ARBITRUM_SEPOLIA_OFT_ADDRESS"); | ||
| address oftAddress = vm.envAddress("ARBITRUM_SEPOLIA_RLC_OFT_ADDRESS"); | ||
| RLCOFT oft = RLCOFT(oftAddress); | ||
|
|
||
| // RLCAdapter on Ethereum Sepolia | ||
| address adapterAddress = vm.envAddress("SEPOLIA_ADAPTER_ADDRESS");// Add your RLCAdapter address here | ||
| uint16 ethereumSepoliaChainId = uint16(vm.envUint("SEPOLIA_CHAIN_ID")); // LayerZero chain ID for Ethereum Sepolia | ||
| address adapterAddress = vm.envAddress("RLC_SEPOLIA_ADAPTER_ADDRESS");// Add your RLCAdapter address here | ||
| uint16 ethereumSepoliaChainId = uint16(vm.envUint("LAYER_ZERO_SEPOLIA_CHAIN_ID")); // LayerZero chain ID for Ethereum Sepolia | ||
|
|
||
| // Set trusted remote | ||
| oft.setPeer(ethereumSepoliaChainId, bytes32(uint256(uint160(adapterAddress)))); | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.