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

Add a TypedEvent conversion trait for ABCI events. #1288

Merged
merged 3 commits into from
Apr 16, 2023

Commits on Apr 16, 2023

  1. abci: add TypedEvent conversion trait

    This commit adds a marker trait for types that can be converted to and from
    [`Event`]s.  It doesn't make any assumptions about how the conversion is
    performed, but it does allow downstream users to declare a single source of
    truth about how event data is structured.
    hdevalence committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    eb228e7 View commit details
    Browse the repository at this point in the history
  2. abci: impl Hash for ABCI Event, EventAttribute

    As suggested by @romac, this also adds `hash_ignoring_index` methods that
    ignore the nondeterministic `index` field.
    hdevalence committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    58cc9e1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    639bf6a View commit details
    Browse the repository at this point in the history