fuel_core::query

Trait MessageProofData

source
pub trait MessageProofData {
    // Required methods
    fn block(&self, id: &BlockHeight) -> StorageResult<CompressedBlock>;
    fn receipts(&self, transaction_id: &TxId) -> StorageResult<Vec<Receipt>>;
    fn transaction_status(
        &self,
        transaction_id: &TxId,
    ) -> StorageResult<TransactionStatus>;
    fn block_history_proof(
        &self,
        message_block_height: &BlockHeight,
        commit_block_height: &BlockHeight,
    ) -> StorageResult<MerkleProof>;
}
Expand description

Trait that specifies all the data required by the output message query.

Required Methods§

source

fn block(&self, id: &BlockHeight) -> StorageResult<CompressedBlock>

Get the block.

source

fn receipts(&self, transaction_id: &TxId) -> StorageResult<Vec<Receipt>>

Return all receipts in the given transaction.

source

fn transaction_status( &self, transaction_id: &TxId, ) -> StorageResult<TransactionStatus>

Get the status of a transaction.

source

fn block_history_proof( &self, message_block_height: &BlockHeight, commit_block_height: &BlockHeight, ) -> StorageResult<MerkleProof>

Gets the MerkleProof for the message block at message_block_height height relatively to the commit block where message block <= commit block.

Implementors§