Trait polkadot_runtime_common::assigned_slots::pallet::Config
source · pub trait Config: Config + Config + Config {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type AssignSlotOrigin: EnsureOrigin<<Self as Config>::Origin>;
type Leaser: Leaser<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>;
type PermanentSlotLeasePeriodLength: Get<u32>;
type TemporarySlotLeasePeriodLength: Get<u32>;
type MaxPermanentSlots: Get<u32>;
type MaxTemporarySlots: Get<u32>;
type MaxTemporarySlotPerLeasePeriod: Get<u32>;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
sourcetype AssignSlotOrigin: EnsureOrigin<<Self as Config>::Origin>
type AssignSlotOrigin: EnsureOrigin<<Self as Config>::Origin>
Origin for assigning slots.
sourcetype Leaser: Leaser<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>
type Leaser: Leaser<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>
The type representing the leasing system.
sourcetype PermanentSlotLeasePeriodLength: Get<u32>
type PermanentSlotLeasePeriodLength: Get<u32>
The number of lease periods a permanent parachain slot lasts.
sourcetype TemporarySlotLeasePeriodLength: Get<u32>
type TemporarySlotLeasePeriodLength: Get<u32>
The number of lease periods a temporary parachain slot lasts.
sourcetype MaxPermanentSlots: Get<u32>
type MaxPermanentSlots: Get<u32>
The max number of permanent slots that can be assigned.
sourcetype MaxTemporarySlots: Get<u32>
type MaxTemporarySlots: Get<u32>
The max number of temporary slots that can be assigned.
sourcetype MaxTemporarySlotPerLeasePeriod: Get<u32>
type MaxTemporarySlotPerLeasePeriod: Get<u32>
The max number of temporary slots to be scheduled per lease periods.