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>

Return 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§