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§
sourcefn utxo(&self, utxo_id: &UtxoId) -> StorageResult<Option<CompressedCoin>>
fn utxo(&self, utxo_id: &UtxoId) -> StorageResult<Option<CompressedCoin>>
Get the UTXO by its ID.
sourcefn contract_exist(&self, contract_id: &ContractId) -> StorageResult<bool>
fn contract_exist(&self, contract_id: &ContractId) -> StorageResult<bool>
Check if the contract with the given ID exists.
sourcefn blob_exist(&self, blob_id: &BlobId) -> StorageResult<bool>
fn blob_exist(&self, blob_id: &BlobId) -> StorageResult<bool>
Check if the blob with the given ID exists.
Object Safety§
This trait is not object safe.