Trait StateReader

pub trait StateReader: Send + Sync {
    type Receipt: Send + Sync;

    // Required method
    fn get_state(
        &self,
        block: u64,
    ) -> Result<Option<ExecutionOutcome<Self::Receipt>>, ProviderError>;
}
Available on crate feature provider only.
Expand description

This just receives state, or ExecutionOutcome, from the provider

Required Associated Types§

type Receipt: Send + Sync

Receipt type in ExecutionOutcome.

Required Methods§

fn get_state( &self, block: u64, ) -> Result<Option<ExecutionOutcome<Self::Receipt>>, ProviderError>

Get the ExecutionOutcome for the given block

Implementations on Foreign Types§

§

impl<'a, T> StateReader for &'a T
where T: 'a + StateReader + ?Sized, &'a T: Send + Sync,

§

impl<T> StateReader for Box<T>
where T: StateReader + ?Sized, Box<T>: Send + Sync,

§

impl<T> StateReader for Arc<T>
where T: StateReader + ?Sized, Arc<T>: Send + Sync,

Implementors§

§

impl<N> StateReader for BlockchainProvider<N>

§

impl<T, ChainSpec> StateReader for MockEthProvider<T, ChainSpec>
where T: Transaction, ChainSpec: EthChainSpec,

§

type Receipt = Receipt