-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fe/cctp router update #1622
Fe/cctp router update #1622
Conversation
WalkthroughThe recent updates across multiple files involve a uniform change of contract addresses to a new value. This change affects how the application interacts with blockchain networks by updating the addresses it references for contract interactions. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ? TipsChat with CodeRabbit Bot (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (3)
- packages/explorer-ui/constants/networks.ts (1 hunks)
- packages/sdk-router/src/constants/addresses.ts (1 hunks)
- packages/synapse-interface/utils/actions/fetchPortfolioBalances.tsx (1 hunks)
Additional comments: 5
packages/explorer-ui/constants/networks.ts (1)
- 602-607: The updated contract addresses for
CCTP_CONTRACTS
are consistent with the PR's objective to update the CCTP Router addresses across the codebase. Ensure that the new addresses are valid Ethereum addresses and that they are correctly deployed and functional on their respective networks.packages/sdk-router/src/constants/addresses.ts (3)
43-43: The update to the
CCTP_ROUTER_ADDRESS
constant is consistent with the PR's objective to update contract addresses for the CCTP Router.46-46: The
CCTP_ROUTER_ADDRESS_MAP
is correctly using the newCCTP_ROUTER_ADDRESS
constant to generate address mappings for supported chain IDs.43-43: The search for the old
CCTP_ROUTER_ADDRESS
value did not yield any results in the codebase. This suggests that the old address is not being used elsewhere, which aligns with the PR's objective to update the contract addresses for the CCTP Router.Based on the information provided, it appears that the update has been carried out correctly and there are no references to the old address left in the codebase.
Analysis chain
To ensure that the old
CCTP_ROUTER_ADDRESS
is not used elsewhere in the codebase, a search for the old address should be conducted.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for the old CCTP_ROUTER_ADDRESS value in the codebase. rg '0xD359bc471554504f683fbd4f6e36848612349DDF'Length of output: 47
packages/synapse-interface/utils/actions/fetchPortfolioBalances.tsx (1)
- 7-8: The addition of
CCTP_ROUTER_ADDRESS
is consistent with the PR's objective to update CCTP Router addresses. However, it's important to verify if this new constant is intended to replace the existingROUTER_ADDRESS
or if it should be used in conjunction with it. Additionally, ensure that the new constant is being used wherever necessary across the codebase.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1622 +/- ##
=============================================
Coverage 51.35585% 51.35585%
=============================================
Files 362 362
Lines 24634 24634
Branches 284 284
=============================================
Hits 12651 12651
Misses 10763 10763
Partials 1220 1220
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Deploying with Cloudflare Pages
|
@@ -40,7 +40,7 @@ export const ROUTER_ADDRESS_MAP: AddressMap = generateAddressMap( | |||
/** | |||
* SynapseCCTP contract address for all chains except ones from CCTP_ROUTER_EXCEPTION_MAP. | |||
*/ | |||
const CCTP_ROUTER_ADDRESS = '0xD359bc471554504f683fbd4f6e36848612349DDF' | |||
const CCTP_ROUTER_ADDRESS = '0xd5a597d6e7ddf373a92C8f477DAAA673b0902F48' |
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.
Let's revert this change: this is dealt with in #1617
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.
Updated in 49dae15
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.
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- packages/synapse-interface/utils/actions/fetchPortfolioBalances.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- packages/synapse-interface/utils/actions/fetchPortfolioBalances.tsx
Closing this: the router address update was moved to #1627 |
Update CCTP Router Addresses
Summary by CodeRabbit
f3d8f8a3dfc0da9fc41021bbb2b6b53aff5a43fa: explorer-ui preview link
f3d8f8a3dfc0da9fc41021bbb2b6b53aff5a43fa: synapse-interface preview link
352e3b14ccf9d62e4dc0739a540714f8170d0e3a: explorer-ui preview link
352e3b14ccf9d62e4dc0739a540714f8170d0e3a: synapse-interface preview link
4ddc1d311109fa9989b56ba1ebee2c115449ecee: explorer-ui preview link
4ddc1d311109fa9989b56ba1ebee2c115449ecee: synapse-interface preview link
f874688921ca7f95d78a9218872d709feb7f0128: explorer-ui preview link
f874688921ca7f95d78a9218872d709feb7f0128: synapse-interface preview link