Trait fuel_core::query::BalanceQueryData

source ·
pub trait BalanceQueryData: Send + Sync {
    // Required methods
    fn balance(
        &self,
        owner: Address,
        asset_id: AssetId,
        base_asset_id: AssetId,
    ) -> StorageResult<AddressBalance>;
    fn balances(
        &self,
        owner: Address,
        direction: IterDirection,
        base_asset_id: AssetId,
    ) -> BoxedIter<'_, StorageResult<AddressBalance>>;
}

Required Methods§

source

fn balance( &self, owner: Address, asset_id: AssetId, base_asset_id: AssetId, ) -> StorageResult<AddressBalance>

source

fn balances( &self, owner: Address, direction: IterDirection, base_asset_id: AssetId, ) -> BoxedIter<'_, StorageResult<AddressBalance>>

Implementors§