Merged
Conversation
|
👋 aelmanaa, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
94f9a5e to
fd19909
Compare
khadni
approved these changes
Nov 7, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request adds new Hardhat tasks and supporting code for deploying and interacting with the
EtherSenderReceivercontract, enabling cross-chain native token transfers using Chainlink's CCIP. The main changes include registering the new contract type, adding deployment and utility tasks, and updating the build configuration to include the new contract.Support for EtherSenderReceiver contract and native token CCIP transfers:
EtherSenderReceiverto theCCIPContractNameenum, allowing it to be referenced throughout the codebase.npmFilesToBuild) to includeEtherSenderReceiver.sol.New Hardhat tasks for native gas transfers:
deployTokenSenderReceivertask to deploy and optionally verify theEtherSenderReceivercontract, with detailed logging and error handling.estimateFeetask to estimate CCIP fees for cross-chain native token transfers, including parameter validation, fee calculation, and wallet balance checks.deployTokenSenderReceiver,sendTokens, andestimateFee) in the Hardhat task index, making them available for use. [1] [2]native-gas-sender-receiver/index.ts) for all native gas sender/receiver tasks, types, and utilities for easier imports and code organization.Below is a summarization created by an LLM (gpt-4-turbo-2024-04-09). Be mindful of hallucinations and verify accuracy.
Why
This pull request introduces the
EtherSenderReceivercontract and associated tasks to facilitate cross-chain native token transfers using the Chainlink CCIP protocol. This enhancement addresses the need for efficient and secure bridging of native tokens like ETH, AVAX, and MATIC across different blockchain networks, improving interoperability and user experience in decentralized applications.What
This PR integrates a new contract and task suite for handling cross-chain native token transfers.
New Contract and Enum Addition
EtherSenderReceivertoCCIPContractNameenum for easy reference.EtherSenderReceivercontract for cross-chain transfers.Task Enhancements and Additions
EtherSenderReceivercontract.deployTokenSenderReceiver,sendTokens, andestimateFeetasks to facilitate operations.Documentation and Setup
native-gas-sender-receiverdirectory detailing setup, usage, and testing.Testing and Security
Error Handling and Validation
Utility Functions and Types
This update aims to enhance the blockchain developer toolkit with robust tools for cross-chain interactions, fostering a more interconnected and efficient ecosystem.