pub trait Config<I: 'static = ()>: Config {
Show 17 associated items type Event: From<Event<Self, I>> + IsType<<Self as Config>::Event>; type CollectionId: Member + Parameter + MaxEncodedLen + Copy; type ItemId: Member + Parameter + MaxEncodedLen + Copy; type Currency: ReservableCurrency<Self::AccountId>; type ForceOrigin: EnsureOrigin<Self::Origin>; type CreateOrigin: EnsureOriginWithArg<Self::Origin, Self::CollectionId, Success = Self::AccountId>; type Locker: Locker<Self::CollectionId, Self::ItemId>; type CollectionDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>; type ItemDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>; type MetadataDepositBase: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>; type AttributeDepositBase: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>; type DepositPerByte: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>; type StringLimit: Get<u32>; type KeyLimit: Get<u32>; type ValueLimit: Get<u32>; type Helper: BenchmarkHelper<Self::CollectionId, Self::ItemId>; type WeightInfo: WeightInfo;
}
Expand description

The module configuration trait.

Required Associated Types§

The overarching event type.

Identifier for the collection of item.

The type used to identify a unique item within a collection.

The currency mechanism, used for paying for reserves.

The origin which may forcibly create or destroy an item or otherwise alter privileged attributes.

Standard collection creation is only allowed if the origin attempting it and the collection are in this set.

Locker trait to enable Locking mechanism downstream.

The basic amount of funds that must be reserved for collection.

The basic amount of funds that must be reserved for an item.

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

The basic amount of funds that must be reserved when adding an attribute to an item.

The additional funds that must be reserved for the number of bytes store in metadata, either “normal” metadata or attribute metadata.

The maximum length of data stored on-chain.

The maximum length of an attribute key.

The maximum length of an attribute value.

A set of helper functions for benchmarking.

Weight information for extrinsics in this pallet.

Implementors§