Trait fuel_core::query::CoinQueryData
source · pub trait CoinQueryData: Send + Sync {
// Required methods
fn coin(&self, utxo_id: UtxoId) -> StorageResult<Coin>;
fn owned_coins_ids(
&self,
owner: &Address,
start_coin: Option<UtxoId>,
direction: IterDirection
) -> BoxedIter<'_, StorageResult<UtxoId>>;
fn owned_coins(
&self,
owner: &Address,
start_coin: Option<UtxoId>,
direction: IterDirection
) -> BoxedIter<'_, StorageResult<Coin>>;
}