[][src]Trait srml_balances::Trait

pub trait Trait<I: Instance = DefaultInstance>: Trait {
    type Balance: Parameter + Member + SimpleArithmetic + Codec + Default + Copy + As<usize> + As<u64> + MaybeSerializeDebug;
    type OnFreeBalanceZero: OnFreeBalanceZero<Self::AccountId>;
    type OnNewAccount: OnNewAccount<Self::AccountId>;
    type TransactionPayment: OnUnbalanced<NegativeImbalance<Self, I>>;
    type TransferPayment: OnUnbalanced<NegativeImbalance<Self, I>>;
    type DustRemoval: OnUnbalanced<NegativeImbalance<Self, I>>;
    type Event: From<Event<Self, I>> + Into<Self::Event>;
}

Associated Types

type Balance: Parameter + Member + SimpleArithmetic + Codec + Default + Copy + As<usize> + As<u64> + MaybeSerializeDebug

The balance of an account.

type OnFreeBalanceZero: OnFreeBalanceZero<Self::AccountId>

A function that is invoked when the free-balance has fallen below the existential deposit and has been reduced to zero.

Gives a chance to clean up resources associated with the given account.

type OnNewAccount: OnNewAccount<Self::AccountId>

Handler for when a new account is created.

type TransactionPayment: OnUnbalanced<NegativeImbalance<Self, I>>

Handler for the unbalanced reduction when taking transaction fees.

type TransferPayment: OnUnbalanced<NegativeImbalance<Self, I>>

Handler for the unbalanced reduction when taking fees associated with balance transfer (which may also include account creation).

type DustRemoval: OnUnbalanced<NegativeImbalance<Self, I>>

Handler for the unbalanced reduction when removing a dust account.

type Event: From<Event<Self, I>> + Into<Self::Event>

The overarching event type.

Loading content...

Implementors

Loading content...