Skip to content

Commit

Permalink
Merge branch 'feat/hashed-post-state-provider' into feat/hashed-stora…
Browse files Browse the repository at this point in the history
…ge-provider
  • Loading branch information
frisitano committed Nov 25, 2024
2 parents 9a66c9d + 593587e commit 59a99c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/storage/storage-api/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ pub trait StateProvider:
}

/// Trait implemented for database providers that can provide the [`StateCommitment`] type.
pub trait StateCommitmentProvider {
pub trait StateCommitmentProvider: Send + Sync {
/// The [`StateCommitment`] type that can be used to perform state commitment operations.
type StateCommitment: StateCommitment;
}

/// Trait that provides the hashed state from various sources.
#[auto_impl(&, Arc, Box)]
pub trait HashedPostStateProvider {
pub trait HashedPostStateProvider: Send + Sync {
/// Returns the `HashedPostState` of the provided [`BundleState`].
fn hashed_post_state(&self, bundle_state: &BundleState) -> HashedPostState;
}
Expand Down

0 comments on commit 59a99c8

Please sign in to comment.