Trait noble_assets::Config[][src]

pub trait Config: Config {
    type Event: From<Event<Self>> + Into<Self::Event>;
    type Balance: Member + Parameter + AtLeast32BitUnsigned + Default + Copy;
    type AssetId: Member + Parameter + Default + Copy + HasCompact;
    type Currency: ReservableCurrency<Self::AccountId>;
    type ForceOrigin: EnsureOrigin<Self::Origin>;
    type AssetDepositBase: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>;
    type AssetDepositPerZombie: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>;
    type StringLimit: Get<u32>;
    type MetadataDepositBase: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>;
    type MetadataDepositPerByte: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>;
    type WeightInfo: WeightInfo;
}

The module configuration trait.

Associated Types

type Event: From<Event<Self>> + Into<Self::Event>[src]

The overarching event type.

type Balance: Member + Parameter + AtLeast32BitUnsigned + Default + Copy[src]

The units in which we record balances.

type AssetId: Member + Parameter + Default + Copy + HasCompact[src]

The arithmetic type of asset identifier.

type Currency: ReservableCurrency<Self::AccountId>[src]

The currency mechanism.

type ForceOrigin: EnsureOrigin<Self::Origin>[src]

The origin which may forcibly create or destroy an asset.

type AssetDepositBase: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>[src]

The basic amount of funds that must be reserved when creating a new asset class.

type AssetDepositPerZombie: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>[src]

The additional funds that must be reserved for every zombie account that an asset class supports.

type StringLimit: Get<u32>[src]

The maximum length of a name or symbol stored on-chain.

type MetadataDepositBase: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>[src]

The basic amount of funds that must be reserved when adding metadata to your asset.

type MetadataDepositPerByte: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>[src]

The additional funds that must be reserved for the number of bytes you store in your metadata.

type WeightInfo: WeightInfo[src]

Weight information for extrinsics in this noble.

Loading content...

Implementors

Loading content...