Trait NativeTokenManagementApi

Source
pub trait NativeTokenManagementApi<Block: BlockT>: Core<Block> {
    // Provided methods
    fn get_main_chain_scripts(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<Option<MainChainScripts>, ApiError> { ... }
    fn initialized(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<bool, ApiError> { ... }
}
Expand description

Runtime API exposing configuration and initialization status of the Native Token Management pallet

Provided Methods§

Source

fn get_main_chain_scripts( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<Option<MainChainScripts>, ApiError>

Returns the current main chain scripts configured in the pallet or None if they are not set.

Source

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

Gets current initializaion status and set it to true afterwards. This check is used to determine whether historical data from the beginning of main chain should be queried.

Trait Implementations§

Source§

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

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§