-
Notifications
You must be signed in to change notification settings - Fork 29
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
Gho ccip bridge (#7) #347
base: master
Are you sure you want to change the base?
Gho ccip bridge (#7) #347
Conversation
|
||
### Deployed Addresses | ||
|
||
Mainnet: [0x5648f519b2064ff30385828e76fefda749749ac2](https://etherscan.io/address/0x5648f519b2064ff30385828e76fefda749749ac2), Arbitrum: [0x03f589a825ee129c5c6d2f6ef5c259870019567b](https://arbiscan.io/address/0x03f589a825ee129c5c6d2f6ef5c259870019567b) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update with final deployment addresses
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not deployed yet for production and these addresses are deployed address to test main functionality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will update this address after fix all feedbacks
Can you clarify why all issues are considered resolved, although the code is not updated and does not compile with current versions? We just don't understand a little, if the changes are in another PR, can you send a link? |
@pavelvm5 maybe you should run |
the problem is not yarn, it's that the new version has a You either need to set the commit in the solidity-utils library to the old one in foundry.toml config, or write an implementation for the new version. I recommend doing the second version, solidity-utils will not be updated anytime soon. The same goes for the chainlink dependency, which now requires 9 arguments instead of 6. And the same about guardians, their addresses exist in address-book for now. |
Can you try after run chainlink packages updated and this updates only applied for testnet. so we should use prev persion and I configured this on package.json correctly now. |
eebbcd2
to
83f6ab5
Compare
d288da4
to
64631dc
Compare
Tests fail
There is a custom error on There is another error as well, please check the above |
AaveCcipGhoBridge Smart Contract
Overview
The
AaveCcipGhoBridge
smart contract facilitates the secure bridging of GHO tokens across different blockchain networks using Chainlink's Cross-Chain Interoperability Protocol (CCIP). By leveraging Chainlink's decentralized infrastructure, it ensures reliable and transparent cross-chain token transfers while using GHO tokens exclusively for fees.Key Components
Router and GHO Addresses:
ROUTER
: The Chainlink CCIP router address for cross-chain communication.GHO
: Address of the GHO token, which the contract bridges across chains.Bridges Mapping:
Main Functionalities
Token Transfers:
checkDestination
modifier ensures that the destination chain and bridge are properly configured before any transfer.Fee Payment:
Cross-Chain Message Handling:
_ccipReceive
function.Quote Transfer:
quoteTransfer
function allows users to estimate the GHO fee required for a transfer without executing the transfer.Setting Destination Bridges:
setDestinationBridge
function.Security Features
Role-Based Access Control:
Uses
AccessControl
to manage permissions:DEFAULT_ADMIN_ROLE
: Grants administrative rights.BRIDGER_ROLE
: Restricts who can initiate bridging operations.This ensures that only authorized users can perform critical functions.
Destination Validation:
The
checkDestination
modifier ensures that the destination chain and bridge address are properly configured before executing transfers.Token Approval Management:
Securely handles GHO token approvals for the router, mitigating over-approval risks.
Rescue Functionality:
Implements a
Rescuable
mechanism, allowing theEXECUTOR
to rescue funds in emergencies while maintaining security boundaries.CCIP Sender and Receiver Validation:
Events
Error Handling
Deployed Addresses
Mainnet: 0x5648f519b2064ff30385828e76fefda749749ac2, Arbitrum: 0x03f589a825ee129c5c6d2f6ef5c259870019567b
Confirmed Bridges:
Conclusion
The
AaveCcipGhoBridge
smart contract provides a robust mechanism for bridging GHO tokens across multiple chains via Chainlink's CCIP. It offers flexibility in fee payments, supports secure cross-chain transfers, and allows for easy configuration of destination bridges.