Trait mmr_gadget::MmrClient

source ·
pub trait MmrClient<B, BE>: BlockchainEvents<B> + HeaderBackend<B> + HeaderMetadata<B> + ProvideRuntimeApi<B>where
    B: Block,
    BE: Backend<B>,
    Self::Api: MmrApi<B, MmrRootHash, NumberFor<B>>,{
    // Provided method
    fn first_mmr_block_num(
        &self,
        notification: &FinalityNotification<B>
    ) -> Option<NumberFor<B>> { ... }
}
Expand description

A convenience MMR client trait that defines all the type bounds a MMR client has to satisfy and defines some helper methods.

Provided Methods§

source

fn first_mmr_block_num( &self, notification: &FinalityNotification<B> ) -> Option<NumberFor<B>>

Get the block number where the mmr pallet was added to the runtime.

Implementors§

source§

impl<B, BE, T> MmrClient<B, BE> for Twhere B: Block, BE: Backend<B>, T: BlockchainEvents<B> + HeaderBackend<B> + HeaderMetadata<B> + ProvideRuntimeApi<B>, T::Api: MmrApi<B, MmrRootHash, NumberFor<B>>,