[][src]Trait pallet_commodities::Trait

pub trait Trait<I = DefaultInstance>: Trait {
    type CommodityAdmin: EnsureOrigin<Self::Origin>;
    type CommodityInfo: Hashable + Member + Debug + Default + FullCodec;
    type CommodityLimit: Get<u128>;
    type UserCommodityLimit: Get<u64>;
    type Event: From<Event<Self, I>> + Into<Self::Event>;
}

Associated Types

type CommodityAdmin: EnsureOrigin<Self::Origin>

The dispatch origin that is able to mint new instances of this type of commodity.

type CommodityInfo: Hashable + Member + Debug + Default + FullCodec

The data type that is used to describe this type of commodity.

type CommodityLimit: Get<u128>

The maximum number of this type of commodity that may exist (minted - burned).

type UserCommodityLimit: Get<u64>

The maximum number of this type of commodity that any single account may own.

type Event: From<Event<Self, I>> + Into<Self::Event>

Loading content...

Implementors

Loading content...