-
Notifications
You must be signed in to change notification settings - Fork 116
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
chore: change snapshots API on contrib/localnet/scripts to consume state exports #2819
Conversation
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughWalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Script
participant API
User->>Script: Request data import
Script->>API: Fetch latest state export URL from new endpoint
API-->>Script: Return JSON with snapshots array
Script->>Script: Parse JSON to extract URL from snapshots
Script->>API: Download data from extracted URL
API-->>Script: Return data
Script-->>User: Data import complete
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
Documentation and Community
|
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: 1
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- contrib/localnet/scripts/import-data.sh (1 hunks)
Additional context used
Path-based instructions (1)
contrib/localnet/scripts/import-data.sh (1)
Pattern
**/*.sh
: Review the shell scripts, point out issues relative to security, performance, and maintainability.
…ate exports (#2819) * Refactor contrib/rpc and contrib/docker-scripts to use snapshots API * Replace Snapshot API on localnet scripts for consuming state exports --------- Co-authored-by: Julian Rubino <julian@zetachain.com>
…ate exports (#2819) * Refactor contrib/rpc and contrib/docker-scripts to use snapshots API * Replace Snapshot API on localnet scripts for consuming state exports --------- Co-authored-by: Julian Rubino <julian@zetachain.com>
Description
We have recently changed the API that serves state exports.
How Has This Been Tested?
This change wasn't tested yet.
Summary by CodeRabbit
Bug Fixes
Chores