referrerpolicy=no-referrer-when-downgrade

TransferAllAssets

Trait TransferAllAssets 

Source
pub trait TransferAllAssets<AccountId> {
    // Required method
    fn force_transfer_all_assets(
        from: &AccountId,
        to: &AccountId,
    ) -> DispatchResult;
}
Expand description

Transfer all assets that an account holds.

Required Methods§

Source

fn force_transfer_all_assets(from: &AccountId, to: &AccountId) -> DispatchResult

Transfer all assets from one account to another.

This will possibly dust and reap the origin account and endow the receiver.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<AccountId> TransferAllAssets<AccountId> for ()

Implementors§

Source§

impl<AccountId, Fungibles, RelevantAssets> TransferAllAssets<AccountId> for TransferAllFungibles<AccountId, Fungibles, RelevantAssets>
where Fungibles: FungiblesMutate<AccountId>, RelevantAssets: Get<Vec<<Fungibles as FungiblesInspect<AccountId>>::AssetId>>, AccountId: Eq,