pub trait Config:
Config<RuntimeOrigin: Into<Result<Origin<Self>, Self::RuntimeOrigin>> + From<Origin<Self>>, RuntimeCall: IsSubType<Call<Self>>>
+ Send
+ Sync
+ Config<RuntimeEvent: From<Event<Self>>> {
Show 14 associated items
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type WeightInfo: WeightInfo;
type UnixTime: UnixTime;
type Balance: Balance;
type Consideration: Consideration<Self::AccountId, BalanceOf<Self>>;
type CollectionDeposit: Convert<Footprint, BalanceOf<Self>>;
type ItemDeposit: Convert<Footprint, BalanceOf<Self>>;
type InstanceDeposit: Convert<Footprint, BalanceOf<Self>>;
type MetadataDeposit: Convert<Footprint, BalanceOf<Self>>;
type MaxKeyLen: Get<u32>;
type MaxValueLen: Get<u32>;
type MaxInstanceMetadata: Get<u32>;
type LockPeriod: Get<u64>;
type MaxTransferPriority: Get<TransactionPriority>;
}Expand description
Configuration trait of this pallet.
The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.
Consequently, a runtime that wants to include this pallet must implement this trait.
Required Associated Types§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
A type representing the weights required by the dispatchables of this pallet.
Sourcetype UnixTime: UnixTime
type UnixTime: UnixTime
Unix time source for minted_at, last_moved, rest-time priority, and failure locks.
Sourcetype Consideration: Consideration<Self::AccountId, BalanceOf<Self>>
type Consideration: Consideration<Self::AccountId, BalanceOf<Self>>
Cost mechanism backing one collection’s aggregate storage deposit.
The input is the exact sum produced by the deposit converters below. Keeping one ticket per collection makes ownership handoff constant-time without constraining the runtime to fungible balance holds.
Sourcetype CollectionDeposit: Convert<Footprint, BalanceOf<Self>>
type CollectionDeposit: Convert<Footprint, BalanceOf<Self>>
Price of a collection record.
Sourcetype ItemDeposit: Convert<Footprint, BalanceOf<Self>>
type ItemDeposit: Convert<Footprint, BalanceOf<Self>>
Price of an item definition.
Sourcetype InstanceDeposit: Convert<Footprint, BalanceOf<Self>>
type InstanceDeposit: Convert<Footprint, BalanceOf<Self>>
Price of one ordinary minted instance.
Sourcetype MetadataDeposit: Convert<Footprint, BalanceOf<Self>>
type MetadataDeposit: Convert<Footprint, BalanceOf<Self>>
Price of one metadata entry.
The footprint contains one logical record plus the encoded key and value. Trie-key and hash-prefix overhead can be priced through the converter’s per-record base.
Sourcetype MaxValueLen: Get<u32>
type MaxValueLen: Get<u32>
Maximum byte length of one metadata value.
Sourcetype MaxInstanceMetadata: Get<u32>
type MaxInstanceMetadata: Get<u32>
Maximum number of metadata overrides stored on one live instance.
This bounds burn cleanup independently of how many mutation calls are submitted.
Sourcetype LockPeriod: Get<u64>
type LockPeriod: Get<u64>
Base lock period after a failed purse-key dispatch, in seconds.
Sourcetype MaxTransferPriority: Get<TransactionPriority>
type MaxTransferPriority: Get<TransactionPriority>
Priority ceiling for rested NFT transfers.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.