referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::tokens::fungibles::Create

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

Trait for providing the ability to create new fungible assets.

Required Methods§

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

Create a new fungible asset.

Object Safety§

This trait is not object safe.

Implementors§

§

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

§

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