pub trait Config: Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type Leaser: Leaser<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>;
    type Registrar: Registrar<AccountId = Self::AccountId>;
    type EndingPeriod: Get<Self::BlockNumber>;
    type SampleLength: Get<Self::BlockNumber>;
    type Randomness: Randomness<Self::Hash, Self::BlockNumber>;
    type InitiateOrigin: EnsureOrigin<Self::RuntimeOrigin>;
    type WeightInfo: WeightInfo;
}
Expand description

The module’s configuration trait.

Required Associated Types§

source

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

The overarching event type.

source

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

The type representing the leasing system.

source

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

The parachain registrar type.

source

type EndingPeriod: Get<Self::BlockNumber>

The number of blocks over which an auction may be retroactively ended.

source

type SampleLength: Get<Self::BlockNumber>

The length of each sample to take during the ending period.

EndingPeriod / SampleLength = Total # of Samples

source

type Randomness: Randomness<Self::Hash, Self::BlockNumber>

Something that provides randomness in the runtime.

source

type InitiateOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin which may initiate auctions.

source

type WeightInfo: WeightInfo

Weight Information for the Extrinsics in the Pallet

Implementors§