[][src]Trait sp_block_builder::BlockBuilder

pub trait BlockBuilder<Block: BlockT>: Core<Block> {
    pub fn apply_extrinsic(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        extrinsic: <Block as BlockT>::Extrinsic
    ) -> Result<ApplyExtrinsicResult, Self::Error> { ... }
pub fn apply_extrinsic_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        extrinsic: <Block as BlockT>::Extrinsic
    ) -> Result<ApplyExtrinsicResult, Self::Error> { ... }
pub fn finalize_block(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<<Block as BlockT>::Header, Self::Error> { ... }
pub fn finalize_block_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<<Block as BlockT>::Header, Self::Error> { ... }
pub fn inherent_extrinsics(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        inherent: InherentData
    ) -> Result<Vec<<Block as BlockT>::Extrinsic>, Self::Error> { ... }
pub fn inherent_extrinsics_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        inherent: InherentData
    ) -> Result<Vec<<Block as BlockT>::Extrinsic>, Self::Error> { ... }
pub fn check_inherents(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        block: Block,
        data: InherentData
    ) -> Result<CheckInherentsResult, Self::Error> { ... }
pub fn check_inherents_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        block: Block,
        data: InherentData
    ) -> Result<CheckInherentsResult, Self::Error> { ... }
pub fn random_seed(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<<Block as BlockT>::Hash, Self::Error> { ... }
pub fn random_seed_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<<Block as BlockT>::Hash, Self::Error> { ... } }

The BlockBuilder api trait that provides the required functionality for building a block.

Provided methods

pub fn apply_extrinsic(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    extrinsic: <Block as BlockT>::Extrinsic
) -> Result<ApplyExtrinsicResult, Self::Error>
[src]

Apply the given extrinsic.

Returns an inclusion outcome which specifies if this extrinsic is included in this block or not.

pub fn apply_extrinsic_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    extrinsic: <Block as BlockT>::Extrinsic
) -> Result<ApplyExtrinsicResult, Self::Error>
[src]

Apply the given extrinsic.

Returns an inclusion outcome which specifies if this extrinsic is included in this block or not.

pub fn finalize_block(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<<Block as BlockT>::Header, Self::Error>
[src]

Finish the current block.

pub fn finalize_block_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext
) -> Result<<Block as BlockT>::Header, Self::Error>
[src]

Finish the current block.

pub fn inherent_extrinsics(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    inherent: InherentData
) -> Result<Vec<<Block as BlockT>::Extrinsic>, Self::Error>
[src]

Generate inherent extrinsics. The inherent data will vary from chain to chain.

pub fn inherent_extrinsics_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    inherent: InherentData
) -> Result<Vec<<Block as BlockT>::Extrinsic>, Self::Error>
[src]

Generate inherent extrinsics. The inherent data will vary from chain to chain.

pub fn check_inherents(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    block: Block,
    data: InherentData
) -> Result<CheckInherentsResult, Self::Error>
[src]

Check that the inherents are valid. The inherent data will vary from chain to chain.

pub fn check_inherents_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    block: Block,
    data: InherentData
) -> Result<CheckInherentsResult, Self::Error>
[src]

Check that the inherents are valid. The inherent data will vary from chain to chain.

pub fn random_seed(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<<Block as BlockT>::Hash, Self::Error>
[src]

Generate a random seed.

pub fn random_seed_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext
) -> Result<<Block as BlockT>::Hash, Self::Error>
[src]

Generate a random seed.

Loading content...

Trait Implementations

impl<Block: BlockT, __Sr_Api_Error__> RuntimeApiInfo for dyn BlockBuilder<Block, Error = __Sr_Api_Error__>[src]

Implementors

Loading content...