sp_domains_fraud_proof

Trait FraudProofApi

source
pub trait FraudProofApi<Block: BlockT, DomainHeader: HeaderT>: Core<Block> {
    // Provided methods
    fn submit_fraud_proof_unsigned(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        fraud_proof: FraudProof<NumberFor<Block>, Block::Hash, DomainHeader, H256>,
    ) -> Result<(), ApiError> { ... }
    fn fraud_proof_storage_key(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        req: FraudProofStorageKeyRequest<NumberFor<Block>>,
    ) -> Result<Vec<u8>, ApiError> { ... }
}
Expand description

API necessary for fraud proof.

Provided Methods§

source

fn submit_fraud_proof_unsigned( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, fraud_proof: FraudProof<NumberFor<Block>, Block::Hash, DomainHeader, H256>, ) -> Result<(), ApiError>

Submit the fraud proof via an unsigned extrinsic.

source

fn fraud_proof_storage_key( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, req: FraudProofStorageKeyRequest<NumberFor<Block>>, ) -> Result<Vec<u8>, ApiError>

Reture the storage key used in fraud proof

Trait Implementations§

source§

impl<Block: BlockT, DomainHeader: HeaderT> RuntimeApiInfo for dyn FraudProofApi<Block, DomainHeader>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§