Trait orml_traits::currency::MutationHooks
source · pub trait MutationHooks<AccountId, CurrencyId, Balance> {
type OnDust: OnDust<AccountId, CurrencyId, Balance>;
type OnSlash: OnSlash<AccountId, CurrencyId, Balance>;
type PreDeposit: OnDeposit<AccountId, CurrencyId, Balance>;
type PostDeposit: OnDeposit<AccountId, CurrencyId, Balance>;
type PreTransfer: OnTransfer<AccountId, CurrencyId, Balance>;
type PostTransfer: OnTransfer<AccountId, CurrencyId, Balance>;
type OnNewTokenAccount: Happened<(AccountId, CurrencyId)>;
type OnKilledTokenAccount: Happened<(AccountId, CurrencyId)>;
}
Required Associated Types§
sourcetype OnDust: OnDust<AccountId, CurrencyId, Balance>
type OnDust: OnDust<AccountId, CurrencyId, Balance>
Handler to burn or transfer account’s dust.
sourcetype PreDeposit: OnDeposit<AccountId, CurrencyId, Balance>
type PreDeposit: OnDeposit<AccountId, CurrencyId, Balance>
Hook to run before depositing into an account.
sourcetype PostDeposit: OnDeposit<AccountId, CurrencyId, Balance>
type PostDeposit: OnDeposit<AccountId, CurrencyId, Balance>
Hook to run after depositing into an account.
sourcetype PreTransfer: OnTransfer<AccountId, CurrencyId, Balance>
type PreTransfer: OnTransfer<AccountId, CurrencyId, Balance>
Hook to run before transferring from an account to another.
sourcetype PostTransfer: OnTransfer<AccountId, CurrencyId, Balance>
type PostTransfer: OnTransfer<AccountId, CurrencyId, Balance>
Hook to run after transferring from an account to another.
sourcetype OnNewTokenAccount: Happened<(AccountId, CurrencyId)>
type OnNewTokenAccount: Happened<(AccountId, CurrencyId)>
Handler for when an account was created.
sourcetype OnKilledTokenAccount: Happened<(AccountId, CurrencyId)>
type OnKilledTokenAccount: Happened<(AccountId, CurrencyId)>
Handler for when an account was killed.