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§

source

type OnDust: OnDust<AccountId, CurrencyId, Balance>

Handler to burn or transfer account’s dust.

source

type OnSlash: OnSlash<AccountId, CurrencyId, Balance>

Hook to run before slashing an account.

source

type PreDeposit: OnDeposit<AccountId, CurrencyId, Balance>

Hook to run before depositing into an account.

source

type PostDeposit: OnDeposit<AccountId, CurrencyId, Balance>

Hook to run after depositing into an account.

source

type PreTransfer: OnTransfer<AccountId, CurrencyId, Balance>

Hook to run before transferring from an account to another.

source

type PostTransfer: OnTransfer<AccountId, CurrencyId, Balance>

Hook to run after transferring from an account to another.

source

type OnNewTokenAccount: Happened<(AccountId, CurrencyId)>

Handler for when an account was created.

source

type OnKilledTokenAccount: Happened<(AccountId, CurrencyId)>

Handler for when an account was killed.

Implementations on Foreign Types§

source§

impl<AccountId, CurrencyId, Balance> MutationHooks<AccountId, CurrencyId, Balance> for ()

Implementors§