referrerpolicy=no-referrer-when-downgrade

Config

Trait Config 

Source
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§

Source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

Source

type WeightInfo: WeightInfo

A type representing the weights required by the dispatchables of this pallet.

Source

type UnixTime: UnixTime

Unix time source for minted_at, last_moved, rest-time priority, and failure locks.

Source

type Balance: Balance

Unit in which the pallet calculates aggregate storage deposits.

Source

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.

Source

type CollectionDeposit: Convert<Footprint, BalanceOf<Self>>

Price of a collection record.

Source

type ItemDeposit: Convert<Footprint, BalanceOf<Self>>

Price of an item definition.

Source

type InstanceDeposit: Convert<Footprint, BalanceOf<Self>>

Price of one ordinary minted instance.

Source

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.

Source

type MaxKeyLen: Get<u32>

Maximum byte length of one metadata key.

Source

type MaxValueLen: Get<u32>

Maximum byte length of one metadata value.

Source

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.

Source

type LockPeriod: Get<u64>

Base lock period after a failed purse-key dispatch, in seconds.

Source

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.

Implementors§