[][src]Trait sunshine_util::traits::DepositSpendOps

pub trait DepositSpendOps<Currency>: Sized {
    fn deposit_into_free(&self, amount: Currency) -> Self;
fn deposit_into_reserved(&self, amount: Currency) -> Self;
fn spend_from_free(&self, amount: Currency) -> Option<Self>;
fn spend_from_reserved(&self, amount: Currency) -> Option<Self>; }

Required methods

fn deposit_into_free(&self, amount: Currency) -> Self

fn deposit_into_reserved(&self, amount: Currency) -> Self

fn spend_from_free(&self, amount: Currency) -> Option<Self>

fn spend_from_reserved(&self, amount: Currency) -> Option<Self>

Loading content...

Implementors

impl<GovernanceConfig: Clone + PartialEq, Currency: Zero + AtLeast32Bit + Clone> DepositSpendOps<Currency> for BankState<GovernanceConfig, Currency>[src]

Loading content...