Trait GetSidechainStatus

Source
pub trait GetSidechainStatus<Block: BlockT>: Core<Block> {
    // Provided method
    fn get_sidechain_status(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<SidechainStatus, ApiError> { ... }
}
👎Deprecated since 1.7.0: Code that needs this data should define its own runtime API instead.
Expand description

Runtime API for getting information about current Partner Chain slot and epoch

Provided Methods§

Source

fn get_sidechain_status( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<SidechainStatus, ApiError>

👎Deprecated since 1.7.0: Code that needs this data should define its own runtime API instead.

Returns current Partner Chain slot and epoch

Trait Implementations§

Source§

impl<Block: BlockT> RuntimeApiInfo for dyn GetSidechainStatus<Block>

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§