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

CLI & Emulator Feature: Flow network snapshots #4

Closed
srinjoyc opened this issue Sep 7, 2021 · 1 comment
Closed

CLI & Emulator Feature: Flow network snapshots #4

srinjoyc opened this issue Sep 7, 2021 · 1 comment
Assignees
Labels
Local Development Tools Tier 2 Medium task, spanning 2-3 milestones requiring a moderate level of domain knowledge.

Comments

@srinjoyc
Copy link
Contributor

srinjoyc commented Sep 7, 2021

Description (Problem Statement)

The developer should be able to get a snapshot of the Flow mainnet/testnet blockchain at a specific time in history and inspect it locally using the emulator. This would allow developers to debug their contracts but also to compose on top of other existing applications deployed to the network. The CLI should be extended to support this functionality by implementing AN APIs to fetch the snapshot and then start the emulator configured to read from it.

Experience Required

  • Experience with Go
  • Understanding of the Flow's architecture
  • Understanding of Cadence

Minimum Feature Set (Acceptance Criteria)

  • The CLI supports fetching the snapshot from the Flow blockchain at a specified time (block height)
  • The emulator is modified so it can start from the provided snapshot and allow read operations on it

Extension (Optional) Feature Set

  • Interoperability with Emulator GUI for state inspection, loading the state and all other functionality possible with this feature

Milestone Requirements

  1. Provide documentation on the implementation process and details
  2. Implement snapshot fetching functionality in the CLI
  3. Implement the emulator so it can be started from the provided snapshot

Software Requirements

Maintainability

  • Code should be written with good practices in mind and allow extensibility

Testing

  • This feature should have good test code coverage

Other Requirements

Documentation

This feature must be sufficiently documented in the CLI and the Emulator.

Code Standards, Guidelines

  • follow code standards already in place
  • follow the CLI guidelines
  • follow contribution guide

Judging Criteria

  • Technical & High-Level Judging Criteria apply
  • How effectively does the tool help developers in the building process in making it easy for them to debug, test, and verify their logic?

Resources

@srinjoyc srinjoyc added Tier 2 Medium task, spanning 2-3 milestones requiring a moderate level of domain knowledge. Local Development Tools labels Sep 7, 2021
@srinjoyc srinjoyc assigned bebner and sideninja and unassigned bebner Sep 7, 2021
@srinjoyc srinjoyc changed the title Flow Network Snapshots via CLI & Emulator CLI & Emulator Feature: Flow Network Snapshots Sep 9, 2021
@psiemens
Copy link
Contributor

Unfortunately it's not yet possible to implement this feature due to changes needed in the Flow access node and Access API.

@psiemens psiemens changed the title CLI & Emulator Feature: Flow Network Snapshots CLI & Emulator Feature: Flow network snapshots Sep 15, 2021
MaxStalker pushed a commit that referenced this issue Nov 5, 2021
…TeamExponential

Playground Feature: Markdown READMEs - Milestone 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Local Development Tools Tier 2 Medium task, spanning 2-3 milestones requiring a moderate level of domain knowledge.
Projects
None yet
Development

No branches or pull requests

4 participants