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§
sourcefn is_valid_sudo_call(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsic: Vec<u8>,
) -> Result<bool, ApiError>
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
sourcefn construct_domain_sudo_extrinsic(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
inner: Vec<u8>,
) -> Result<Block::Extrinsic, ApiError>
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.