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§
sourcefn block(&self, id: &BlockHeight) -> StorageResult<CompressedBlock>
fn block(&self, id: &BlockHeight) -> StorageResult<CompressedBlock>
Get the block.
sourcefn receipts(&self, transaction_id: &TxId) -> StorageResult<Vec<Receipt>>
fn receipts(&self, transaction_id: &TxId) -> StorageResult<Vec<Receipt>>
Return all receipts in the given transaction.
sourcefn transaction_status(
&self,
transaction_id: &TxId,
) -> StorageResult<TransactionStatus>
fn transaction_status( &self, transaction_id: &TxId, ) -> StorageResult<TransactionStatus>
Get the status of a transaction.
sourcefn block_history_proof(
&self,
message_block_height: &BlockHeight,
commit_block_height: &BlockHeight,
) -> StorageResult<MerkleProof>
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.