sp_domain_sudo

Trait DomainSudoApi

source
pub trait DomainSudoApi<Block: BlockT>: Core<Block> {
    // Provided methods
    fn is_valid_sudo_call(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        extrinsic: Vec<u8>,
    ) -> Result<bool, ApiError> { ... }
    fn construct_domain_sudo_extrinsic(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        inner: Vec<u8>,
    ) -> Result<Block::Extrinsic, ApiError> { ... }
}
Expand description

Api to check and verify the Sudo calls

Provided Methods§

source

fn is_valid_sudo_call( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, extrinsic: Vec<u8>, ) -> Result<bool, ApiError>

Returns true if the domain_sudo exists in the runtime and extrinsic is valid

source

fn construct_domain_sudo_extrinsic( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, inner: Vec<u8>, ) -> Result<Block::Extrinsic, ApiError>

Returns an encoded extrinsic for domain sudo call.

Trait Implementations§

source§

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

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§