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§
sourcefn 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 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.
sourcefn fraud_proof_storage_key(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
req: FraudProofStorageKeyRequest<NumberFor<Block>>,
) -> Result<Vec<u8>, ApiError>
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