pub trait BeefyMmrApi<Block: BlockT, H>: Core<Block>where
    BeefyAuthoritySet<H>: Decode,{
    // Provided methods
    fn authority_set_proof(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<BeefyAuthoritySet<H>, ApiError> { ... }
    fn authority_set_proof_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<BeefyAuthoritySet<H>, ApiError> { ... }
    fn next_authority_set_proof(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<BeefyNextAuthoritySet<H>, ApiError> { ... }
    fn next_authority_set_proof_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<BeefyNextAuthoritySet<H>, ApiError> { ... }
}
Expand description

API useful for BEEFY light clients.

Provided Methods§

source

fn authority_set_proof( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<BeefyAuthoritySet<H>, ApiError>

Return the currently active BEEFY authority set proof.

source

fn authority_set_proof_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<BeefyAuthoritySet<H>, ApiError>

Return the currently active BEEFY authority set proof.

source

fn next_authority_set_proof( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<BeefyNextAuthoritySet<H>, ApiError>

Return the next/queued BEEFY authority set proof.

source

fn next_authority_set_proof_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<BeefyNextAuthoritySet<H>, ApiError>

Return the next/queued BEEFY authority set proof.

Trait Implementations§

source§

impl<Block: BlockT, H> RuntimeApiInfo for dyn BeefyMmrApi<Block, H>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§