pub trait Create<AccountId>: Inspect<AccountId> {
    // Required method
    fn create(
        id: Self::AssetId,
        admin: AccountId,
        is_sufficient: bool,
        min_balance: Self::Balance
    ) -> DispatchResult;
}
Expand description

Trait for providing the ability to create new fungible assets.

Required Methods§

source

fn create( id: Self::AssetId, admin: AccountId, is_sufficient: bool, min_balance: Self::Balance ) -> DispatchResult

Create a new fungible asset.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Left: Inspect<AccountId>, Right: Inspect<AccountId, Balance = Left::Balance> + Create<AccountId>, Criterion: Convert<AssetKind, Either<(), Right::AssetId>>, AssetKind: AssetId, AccountId> Create<AccountId> for frame_support::traits::tokens::fungible::UnionOf<Left, Right, Criterion, AssetKind, AccountId>

source§

impl<Left: Inspect<AccountId> + Create<AccountId>, Right: Inspect<AccountId, Balance = Left::Balance> + Create<AccountId>, Criterion: Convert<AssetKind, Either<Left::AssetId, Right::AssetId>>, AssetKind: AssetId, AccountId> Create<AccountId> for frame_support::traits::tokens::fungibles::UnionOf<Left, Right, Criterion, AssetKind, AccountId>