fuel_core_txpool::ports

Trait TxPoolPersistentStorage

source
pub trait TxPoolPersistentStorage:
    Clone
    + PredicateStorageRequirements
    + Send
    + Sync
    + 'static {
    // Required methods
    fn utxo(&self, utxo_id: &UtxoId) -> StorageResult<Option<CompressedCoin>>;
    fn contract_exist(&self, contract_id: &ContractId) -> StorageResult<bool>;
    fn blob_exist(&self, blob_id: &BlobId) -> StorageResult<bool>;
    fn message(&self, message_id: &Nonce) -> StorageResult<Option<Message>>;
}

Required Methods§

source

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

Get the UTXO by its ID.

source

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

Check if the contract with the given ID exists.

source

fn blob_exist(&self, blob_id: &BlobId) -> StorageResult<bool>

Check if the blob with the given ID exists.

source

fn message(&self, message_id: &Nonce) -> StorageResult<Option<Message>>

Get the message by its ID.

Object Safety§

This trait is not object safe.

Implementors§