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§
Sourcefn get_main_chain_scripts(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<Option<MainChainScripts>, ApiError>
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.
Sourcefn initialized(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<bool, ApiError>
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.