-
Notifications
You must be signed in to change notification settings - Fork 54
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
Deprecate stargate v1 and amarok #1002
Conversation
WalkthroughThis pull request introduces a new JSON configuration file for the Stargate protocol, detailing sections for endpoint mappings, chain IDs, contract addresses for composers, and routers. It also updates the import paths in two demo scripts to reflect a change in the directory structure for configuration files. Additionally, the legacy sections have been removed from an existing Stargate configuration file, streamlining the overall JSON format. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (4)
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 your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
archive/config/stargateV1.json (2)
134-185
: Thorough "composers" Address Mapping
This section assigns contract addresses to various network identifiers. The inclusion of keys like"abstract"
(set to the zero address) should be double-checked to ensure it is an intentional placeholder rather than an oversight. Additionally, consider whether using checksummed addresses (EIP-55) might improve readability and prevent potential errors from incorrectly formatted addresses.
186-229
: Comprehensive "routers" Address Configuration
The "routers" section is clearly laid out, associating each network with its designated router address. While the structure is clear, it would be beneficial to verify that all provided addresses conform to checksum standards if applicable to your ecosystem. Also, double-check that the addresses reflect the most recent deployments.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
archive/config/stargateV1.json
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: generate-tag
🔇 Additional comments (2)
archive/config/stargateV1.json (2)
1-71
: Clear and Organized "endpointIds" Configuration
The "endpointIds" section provides a straightforward mapping between blockchainchainId
s and their correspondingendpointId
s. Each mapping is clearly formatted, and the numeric values appear consistent.
72-133
: Consistent and Well-Mapped "chains" Section
The "chains" array maps eachchainId
to a correspondinglzChainId
for LayerZero. Ensure that the inclusion (or omission) of certain chain IDs—such as the presence of chainId 5000 here but not in "endpointIds"—is intentional and documented in your design rationale.
Test Coverage ReportLine Coverage: 78.75% (2079 / 2640 lines) |
…stargateV1-and-Amarok
…stargateV1-and-Amarok
Which Jira task belongs to this PR?
https://lifi.atlassian.net/browse/LF-12447
Why did I implement it this way?
Checklist before requesting a review
Checklist for reviewer (DO NOT DEPLOY and contracts BEFORE CHECKING THIS!!!)