fuel_core_compression::ports

Trait HistoryLookup

source
pub trait HistoryLookup {
    // Required methods
    fn utxo_id(&self, c: CompressedUtxoId) -> Result<UtxoId>;
    fn coin(&self, utxo_id: UtxoId) -> Result<CoinInfo>;
    fn message(&self, nonce: Nonce) -> Result<MessageInfo>;
}
Expand description

Lookup for history of UTXOs and messages, used for decompression.

Required Methods§

source

fn utxo_id(&self, c: CompressedUtxoId) -> Result<UtxoId>

source

fn coin(&self, utxo_id: UtxoId) -> Result<CoinInfo>

source

fn message(&self, nonce: Nonce) -> Result<MessageInfo>

Implementors§