pub trait TxPoolDb: Send + Sync {
    // Required methods
    fn utxo(&self, utxo_id: &UtxoId) -> StorageResult<Option<CompressedCoin>>;
    fn contract_exist(&self, contract_id: &ContractId) -> StorageResult<bool>;
    fn message(
        &self,
        message_id: &MessageId
    ) -> StorageResult<Option<CompressedMessage>>;
    fn is_message_spent(&self, message_id: &MessageId) -> StorageResult<bool>;
    fn current_block_height(&self) -> StorageResult<BlockHeight>;
}

Required Methods§

source

fn utxo(&self, utxo_id: &UtxoId) -> StorageResult<Option<CompressedCoin>>

source

fn contract_exist(&self, contract_id: &ContractId) -> StorageResult<bool>

source

fn message( &self, message_id: &MessageId ) -> StorageResult<Option<CompressedMessage>>

source

fn is_message_spent(&self, message_id: &MessageId) -> StorageResult<bool>

source

fn current_block_height(&self) -> StorageResult<BlockHeight>

Implementors§