[][src]Trait sc_consensus_aura::AuraApi

pub trait AuraApi<Block, AuthorityId>: Core<Block> where
    Block: Block,
    AuthorityId: Codec
{ pub fn slot_duration(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<u64, Self::Error> { ... }
pub fn slot_duration_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<u64, Self::Error> { ... }
pub fn authorities(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Vec<AuthorityId, Global>, Self::Error> { ... }
pub fn authorities_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Vec<AuthorityId, Global>, Self::Error> { ... } }

API necessary for block authorship with aura.

Provided methods

pub fn slot_duration(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<u64, Self::Error>
[src]

Return the slot duration in seconds for Aura. Currently, only the value provided by this type at genesis will be used.

Dynamic slot duration may be supported in the future.

pub fn slot_duration_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext
) -> Result<u64, Self::Error>
[src]

Return the slot duration in seconds for Aura. Currently, only the value provided by this type at genesis will be used.

Dynamic slot duration may be supported in the future.

pub fn authorities(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<AuthorityId, Global>, Self::Error>
[src]

pub fn authorities_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext
) -> Result<Vec<AuthorityId, Global>, Self::Error>
[src]

Loading content...

Trait Implementations

impl<Block, AuthorityId, __Sr_Api_Error__> RuntimeApiInfo for dyn AuraApi<Block, AuthorityId, Error = __Sr_Api_Error__> + 'static where
    Block: Block,
    AuthorityId: Codec
[src]

Implementors

Loading content...