Trait frame_support::traits::tokens::fungibles::approvals::Mutate

source ·
pub trait Mutate<AccountId>: Inspect<AccountId> {
    // Required methods
    fn approve(
        asset: Self::AssetId,
        owner: &AccountId,
        delegate: &AccountId,
        amount: Self::Balance,
    ) -> DispatchResult;
    fn transfer_from(
        asset: Self::AssetId,
        owner: &AccountId,
        delegate: &AccountId,
        dest: &AccountId,
        amount: Self::Balance,
    ) -> DispatchResult;
}

Required Methods§

source

fn approve( asset: Self::AssetId, owner: &AccountId, delegate: &AccountId, amount: Self::Balance, ) -> DispatchResult

source

fn transfer_from( asset: Self::AssetId, owner: &AccountId, delegate: &AccountId, dest: &AccountId, amount: Self::Balance, ) -> DispatchResult

Object Safety§

This trait is not object safe.

Implementors§