pub trait HistoryHost {
    // Required methods
    fn consensus_state_at(&self, height: u64) -> Result<ConsensusState, Error>;
    fn consensus_events_at(
        &self,
        height: u64,
        kind: EventKind
    ) -> Result<Vec<Event>, Error>;
}
Expand description

Interface to the runtime host to fetch historic information.

Required Methods§

source

fn consensus_state_at(&self, height: u64) -> Result<ConsensusState, Error>

Fetch historic consensus state after executing the block at given height.

source

fn consensus_events_at( &self, height: u64, kind: EventKind ) -> Result<Vec<Event>, Error>

Fetch events emitted during execution of the block at given height.

Trait Implementations§

source§

impl HistoryHost for Box<dyn HistoryHost>

source§

fn consensus_state_at(&self, height: u64) -> Result<ConsensusState, Error>

Fetch historic consensus state after executing the block at given height.
source§

fn consensus_events_at( &self, height: u64, kind: EventKind ) -> Result<Vec<Event>, Error>

Fetch events emitted during execution of the block at given height.

Implementations on Foreign Types§

source§

impl HistoryHost for Box<dyn HistoryHost>

Implementors§