pub trait AuraApi<Block, AuthorityId>: Core<Block>where
    Block: Block,
    AuthorityId: Codec,{
    // Provided methods
    fn slot_duration(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash
    ) -> Result<SlotDuration, ApiError> { ... }
    fn authorities(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash
    ) -> Result<Vec<AuthorityId, Global>, ApiError> { ... }
}
Expand description

API necessary for block authorship with aura.

Provided Methods§

source

fn slot_duration( &self, __runtime_api_at_param__: <Block as Block>::Hash ) -> Result<SlotDuration, ApiError>

Returns the slot duration for Aura.

Currently, only the value provided by this type at genesis will be used.

source

fn authorities( &self, __runtime_api_at_param__: <Block as Block>::Hash ) -> Result<Vec<AuthorityId, Global>, ApiError>

Return the current set of authorities.

Trait Implementations§

source§

impl<Block, AuthorityId> RuntimeApiInfo for dyn AuraApi<Block, AuthorityId> + 'staticwhere Block: Block, AuthorityId: Codec,

source§

const ID: [u8; 8] = [221u8, 113u8, 141u8, 92u8, 197u8, 50u8, 98u8, 212u8]

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§