pub trait Config: Config + Config + Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type AssignSlotOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin>;
    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§

source

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

The overarching event type.

source

type AssignSlotOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin>

Origin for assigning slots.

source

type Leaser: Leaser<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>

The type representing the leasing system.

source

type PermanentSlotLeasePeriodLength: Get<u32>

The number of lease periods a permanent parachain slot lasts.

source

type TemporarySlotLeasePeriodLength: Get<u32>

The number of lease periods a temporary parachain slot lasts.

source

type MaxPermanentSlots: Get<u32>

The max number of permanent slots that can be assigned.

source

type MaxTemporarySlots: Get<u32>

The max number of temporary slots that can be assigned.

source

type MaxTemporarySlotPerLeasePeriod: Get<u32>

The max number of temporary slots to be scheduled per lease periods.

Implementors§