pub trait Transfer<AccountId>: Inspect<AccountId> {
    // Required method
    fn transfer(
        source: &AccountId,
        dest: &AccountId,
        amount: Self::Balance,
        keep_alive: bool
    ) -> Result<Self::Balance, DispatchError>;

    // Provided methods
    fn deactivate(_: Self::Balance) { ... }
    fn reactivate(_: Self::Balance) { ... }
}
Expand description

Trait for providing a fungible asset which can only be transferred.

Required Methods§

source

fn transfer( source: &AccountId, dest: &AccountId, amount: Self::Balance, keep_alive: bool ) -> Result<Self::Balance, DispatchError>

Transfer funds from one account into another.

Provided Methods§

source

fn deactivate(_: Self::Balance)

Reduce the active issuance by some amount.

source

fn reactivate(_: Self::Balance)

Increase the active issuance by some amount, up to the outstanding amount reduced.

Implementors§

source§

impl<F: Transfer<AccountId>, A: Get<<F as Inspect<AccountId>>::AssetId>, AccountId> Transfer<AccountId> for ItemOf<F, A, AccountId>