Skip to content
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

feat(WIP): chain data importer+exporter #3259

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

feat(WIP): chain data importer+exporter #3259

wants to merge 13 commits into from

Conversation

encody
Copy link
Member

@encody encody commented Nov 12, 2024

What ❔

Introduces the requisite functionality to create a chain with a custom genesis state:

  • Export the state (storage logs, initial writes, factory dependencies) from a ZK chain database to a portable export file.
  • Inject the state from such a file during the genesis of a new chain.

Why ❔

Migrating an application with large state to a ZK chain can be expensive if done via conventional means (i.e. performing a large set of import transactions over many batches). It is much cheaper to spin up a chain with a custom genesis state instead.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zkstack dev fmt and zkstack dev lint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant