Trait fuel_core_txpool::ports::TxPoolDb
source · 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>;
}