pub trait AccountTouch<AssetId, AccountId> {
    type Balance;

    // Required methods
    fn deposit_required(asset: AssetId) -> Self::Balance;
    fn touch(
        asset: AssetId,
        who: AccountId,
        depositor: AccountId
    ) -> DispatchResult;
}
Expand description

Trait for creating an asset account with a deposit taken from a designated depositor specified by the client.

Required Associated Types§

source

type Balance

The type for currency units of the deposit.

Required Methods§

source

fn deposit_required(asset: AssetId) -> Self::Balance

The deposit amount of a native currency required for creating an account of the asset.

source

fn touch(asset: AssetId, who: AccountId, depositor: AccountId) -> DispatchResult

Create an account for who of the asset with a deposit taken from the depositor.

Implementors§