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

Refactor soroban-simulation to use the e2e_invoke #1354

Merged
merged 12 commits into from
Feb 28, 2024

Commits on Feb 24, 2024

  1. Refactor soroban-env-host for better simulation support:

    - Simplify `SnapshotSource` interface
    - Expose some useful functions as public and decoupled from `Host`
    - Expose most of the test utils for e2e testing
    dmkozh committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    e503bf3 View commit details
    Browse the repository at this point in the history
  2. Refactor soroban-simulation to use the e2e_invoke and also to be mo…

    …re modular/reusable.
    
    - Use e2e_invoke for invoking host functions in recording mode
    - Separate network config and adjustment config into separate structs for easier testing/caching etc.
    - Clean up the storage logic to clearly distinguish between snapshots with and without archive access
    - Added some documentation for public functions/structs
    - Added some basic test coverage. I didn't try to verify the math for every number, but I did sanity-check them. The host function simulation accuracy is mostly covered on `e2e_invoke` side.
    dmkozh committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    5c3ab79 View commit details
    Browse the repository at this point in the history
  3. !fixup Clippy fixes

    dmkozh committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    cd4f0fa View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. !fixup build fix

    dmkozh committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    e2edf7f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    66767c1 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. Fix semver check by introducing an 'unstable' feature.

    This feature has to be used for changes that are considered 'breaking' from the semver standpoint, but those that we still want to integrate to RPC/SDK/Core.
    dmkozh committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    8b05bee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cffecc3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2d2e7fa View commit details
    Browse the repository at this point in the history
  4. !fixup build fixes

    dmkozh committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    dbfe6e2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c968d7e View commit details
    Browse the repository at this point in the history
  6. !fixup clippy fixes

    dmkozh committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    3bdf926 View commit details
    Browse the repository at this point in the history
  7. !fixup build fix

    dmkozh committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    790deea View commit details
    Browse the repository at this point in the history