[][src]Trait interledger_service_util::BalanceStore

pub trait BalanceStore: AccountStore {
    fn get_balance(
        &self,
        account: &Self::Account
    ) -> Box<dyn Future<Item = u64, Error = ()> + Send>;
fn update_balances(
        &self,
        from_account: &Self::Account,
        incoming_amount: u64,
        to_account: &Self::Account,
        outgoing_amount: u64
    ) -> Box<dyn Future<Item = (), Error = ()> + Send>; }

Required methods

fn get_balance(
    &self,
    account: &Self::Account
) -> Box<dyn Future<Item = u64, Error = ()> + Send>

fn update_balances(
    &self,
    from_account: &Self::Account,
    incoming_amount: u64,
    to_account: &Self::Account,
    outgoing_amount: u64
) -> Box<dyn Future<Item = (), Error = ()> + Send>

Loading content...

Implementors

Loading content...