referrerpolicy=no-referrer-when-downgrade

Config

Trait Config 

Source
pub trait Config: Config + Config<RuntimeEvent: From<Event<Self>>> {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type ParaOrigin: EnsureOrigin<Self::RuntimeOrigin>;
    type SendToPara: SendToPara;
    type Registrar: ParachainRegistrar<AccountId = Self::AccountId>;
    type MaxHeadDataSize: Get<u32>;
    type MaxCodeSize: Get<u32>;
    type MaxPendingRegistrations: Get<u32>;
    type UnsignedPriority: Get<TransactionPriority>;
    type WeightInfo: WeightInfo;
}
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>

The overarching event type.

Source

type ParaOrigin: EnsureOrigin<Self::RuntimeOrigin>

A trusted parachain parachain authorized to drive registrations.

Source

type SendToPara: SendToPara

Sends messages to the parachain.

Source

type Registrar: ParachainRegistrar<AccountId = Self::AccountId>

The relay chain’s parachain registry.

Source

type MaxHeadDataSize: Get<u32>

The largest head data this pallet will hold onto while waiting for code.

Should be at least the relay chain’s max_head_data_size.

Source

type MaxCodeSize: Get<u32>

The largest validation code Pallet::apply_authorized_code will accept.

Should be at least the relay chain’s max_code_size.

Source

type MaxPendingRegistrations: Get<u32>

How many registrations may be waiting on their code at once.

Bounds the head data this pallet stores while no deposit is held here. Entries only ever leave by the code landing or by the parachain cancelling, so a manager who does neither occupies a slot for as long as they keep paying the deposit on the parachain.

Source

type UnsignedPriority: Get<TransactionPriority>

Priority given to a valid Pallet::apply_authorized_code in the transaction pool.

Source

type WeightInfo: WeightInfo

Weight information for the extrinsics in this pallet.

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§