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: runtime-mock and invariants #695

Merged
merged 89 commits into from
May 25, 2024
Merged

feat: runtime-mock and invariants #695

merged 89 commits into from
May 25, 2024

Conversation

vgantchev
Copy link
Contributor

@vgantchev vgantchev commented Oct 30, 2023

This PR adds:

  • runtime-mock - TestExternalities of the HydraDX runtime with rich data setup. This is used by the fuzzer and can be used by local (runtime integration) tests
  • invariants - these are implemented as runtime panics! in try-runtime (function-level invariants) and try_state (system-level invariants)

@vgantchev vgantchev changed the title Runtime fuzzer feat: Runtime fuzzer Dec 7, 2023
@vgantchev vgantchev changed the title feat: Runtime fuzzer feat: Runtime invariants and mock Feb 22, 2024
@vgantchev vgantchev requested a review from mrq1911 March 1, 2024 15:48
@vgantchev vgantchev marked this pull request as ready for review March 1, 2024 15:48
@vgantchev vgantchev changed the title feat: Runtime invariants and mock feat: runtime-mock and invariants Mar 1, 2024
Copy link
Member

@mrq1911 mrq1911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix tests & LGTM

new_in_state,
old_in_state
);
/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will margin checks be added back?

@mrq1911 mrq1911 merged commit 9ba485a into master May 25, 2024
4 checks passed
@vgantchev vgantchev deleted the fuzz branch May 25, 2024 15:48
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.

3 participants