Trait frame_support::traits::AccountTouch
source · 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§
Required Methods§
sourcefn deposit_required(asset: AssetId) -> Self::Balance
fn deposit_required(asset: AssetId) -> Self::Balance
The deposit amount of a native currency required for creating an account of the asset
.
sourcefn touch(asset: AssetId, who: AccountId, depositor: AccountId) -> DispatchResult
fn touch(asset: AssetId, who: AccountId, depositor: AccountId) -> DispatchResult
Create an account for who
of the asset
with a deposit taken from the depositor
.