Trait pallet_uniques::pallet::Config
source · 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§
sourcetype CollectionId: Member + Parameter + MaxEncodedLen + Copy
type CollectionId: Member + Parameter + MaxEncodedLen + Copy
Identifier for the collection of item.
sourcetype ItemId: Member + Parameter + MaxEncodedLen + Copy
type ItemId: Member + Parameter + MaxEncodedLen + Copy
The type used to identify a unique item within a collection.
sourcetype Currency: ReservableCurrency<Self::AccountId>
type Currency: ReservableCurrency<Self::AccountId>
The currency mechanism, used for paying for reserves.
sourcetype ForceOrigin: EnsureOrigin<Self::Origin>
type ForceOrigin: EnsureOrigin<Self::Origin>
The origin which may forcibly create or destroy an item or otherwise alter privileged attributes.
sourcetype CreateOrigin: EnsureOriginWithArg<Self::Origin, Self::CollectionId, Success = Self::AccountId>
type CreateOrigin: EnsureOriginWithArg<Self::Origin, Self::CollectionId, Success = Self::AccountId>
Standard collection creation is only allowed if the origin attempting it and the collection are in this set.
sourcetype Locker: Locker<Self::CollectionId, Self::ItemId>
type Locker: Locker<Self::CollectionId, Self::ItemId>
Locker trait to enable Locking mechanism downstream.
sourcetype CollectionDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>
type CollectionDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>
The basic amount of funds that must be reserved for collection.
sourcetype ItemDeposit: 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>
The basic amount of funds that must be reserved for an item.
sourcetype MetadataDepositBase: 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>
The basic amount of funds that must be reserved when adding metadata to your item.
sourcetype AttributeDepositBase: 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>
The basic amount of funds that must be reserved when adding an attribute to an item.
sourcetype DepositPerByte: 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>
The additional funds that must be reserved for the number of bytes store in metadata, either “normal” metadata or attribute metadata.
sourcetype StringLimit: Get<u32>
type StringLimit: Get<u32>
The maximum length of data stored on-chain.
sourcetype ValueLimit: Get<u32>
type ValueLimit: Get<u32>
The maximum length of an attribute value.
sourcetype Helper: BenchmarkHelper<Self::CollectionId, Self::ItemId>
type Helper: BenchmarkHelper<Self::CollectionId, Self::ItemId>
A set of helper functions for benchmarking.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.