referrerpolicy=no-referrer-when-downgrade

Trait Create

Source
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.

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.

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>