pub trait StateReader: Send {
type Receipt: Send + Sync;
// Required method
fn get_state(
&self,
block: BlockNumber,
) -> ProviderResult<Option<ExecutionOutcome<Self::Receipt>>>;
}Expand description
This just receives state, or ExecutionOutcome, from the provider
Required Associated Types§
Sourcetype Receipt: Send + Sync
type Receipt: Send + Sync
Receipt type in ExecutionOutcome.
Required Methods§
Sourcefn get_state(
&self,
block: BlockNumber,
) -> ProviderResult<Option<ExecutionOutcome<Self::Receipt>>>
fn get_state( &self, block: BlockNumber, ) -> ProviderResult<Option<ExecutionOutcome<Self::Receipt>>>
Get the ExecutionOutcome for the given block