[][src]Trait sp_api::Core

pub trait Core<Block: BlockT>: 'static + Send + Sync + ApiErrorExt {
    pub fn version(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<RuntimeVersion, Self::Error> { ... }
pub fn version_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<RuntimeVersion, Self::Error> { ... }
pub fn version_before_version_3(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<OldRuntimeVersion, Self::Error> { ... }
pub fn version_before_version_3_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<OldRuntimeVersion, Self::Error> { ... }
pub fn execute_block(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        block: Block
    ) -> Result<(), Self::Error> { ... }
pub fn execute_block_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        block: Block
    ) -> Result<(), Self::Error> { ... }
pub fn initialize_block(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        header: &<Block as BlockT>::Header
    ) -> Result<(), Self::Error> { ... }
pub fn initialize_block_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        header: &<Block as BlockT>::Header
    ) -> Result<(), Self::Error> { ... } }

The Core runtime api that every Substrate runtime needs to implement.

Provided methods

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

Returns the version of the runtime.

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

Returns the version of the runtime.

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

👎 Deprecated

Returns the version of the runtime.

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

👎 Deprecated

Returns the version of the runtime.

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

Execute the given block.

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

Execute the given block.

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

Initialize a block with the given header.

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

Initialize a block with the given header.

Loading content...

Trait Implementations

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

Implementors

Loading content...