[][src]Trait sunshine_util::traits::BankSpends

pub trait BankSpends<AccountId, GovernanceConfig, Currency>: OnChainBank + RegisterBankAccount<AccountId, GovernanceConfig, Currency> {
    fn spend_from_free(
        from_bank_id: Self::TreasuryId,
        to: AccountId,
        amount: Currency
    ) -> DispatchResult;
fn spend_from_transfers(
        from_bank_id: Self::TreasuryId,
        id: u32,
        to: AccountId,
        amount: Currency
    ) -> Result<Currency, DispatchError>; }

Required methods

fn spend_from_free(
    from_bank_id: Self::TreasuryId,
    to: AccountId,
    amount: Currency
) -> DispatchResult

fn spend_from_transfers(
    from_bank_id: Self::TreasuryId,
    id: u32,
    to: AccountId,
    amount: Currency
) -> Result<Currency, DispatchError>

Loading content...

Implementors

Loading content...