Trait pallet_moonbeam_orbiters::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type AccountLookup: AccountLookup<Self::AccountId>;
type AddCollatorOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type Currency: NamedReservableCurrency<Self::AccountId>;
type DelCollatorOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type MaxPoolSize: Get<u32>;
type MaxRoundArchive: Get<Self::RoundIndex>;
type OrbiterReserveIdentifier: Get<ReserveIdentifierOf<Self>>;
type RotatePeriod: Get<Self::RoundIndex>;
type RoundIndex: Parameter + Member + MaybeSerializeDeserialize + Debug + Default + MaybeDisplay + AtLeast32Bit + Copy;
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§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Overarching event type.
sourcetype AccountLookup: AccountLookup<Self::AccountId>
type AccountLookup: AccountLookup<Self::AccountId>
A type to convert between AuthorId and AccountId. This pallet wrap the lookup to allow orbiters authoring.
sourcetype AddCollatorOrigin: EnsureOrigin<Self::RuntimeOrigin>
type AddCollatorOrigin: EnsureOrigin<Self::RuntimeOrigin>
Origin that is allowed to add a collator in orbiters program.
sourcetype DelCollatorOrigin: EnsureOrigin<Self::RuntimeOrigin>
type DelCollatorOrigin: EnsureOrigin<Self::RuntimeOrigin>
Origin that is allowed to remove a collator from orbiters program.
sourcetype MaxPoolSize: Get<u32>
type MaxPoolSize: Get<u32>
Maximum number of orbiters per collator.
sourcetype MaxRoundArchive: Get<Self::RoundIndex>
type MaxRoundArchive: Get<Self::RoundIndex>
Maximum number of round to keep on storage.
sourcetype OrbiterReserveIdentifier: Get<ReserveIdentifierOf<Self>>
type OrbiterReserveIdentifier: Get<ReserveIdentifierOf<Self>>
Reserve identifier for this pallet instance.
sourcetype RotatePeriod: Get<Self::RoundIndex>
type RotatePeriod: Get<Self::RoundIndex>
Number of rounds before changing the selected orbiter.
WARNING: when changing RotatePeriod
, you need a migration code that sets
ForceRotation
to true to avoid holes in OrbiterPerRound
.
sourcetype RoundIndex: Parameter + Member + MaybeSerializeDeserialize + Debug + Default + MaybeDisplay + AtLeast32Bit + Copy
type RoundIndex: Parameter + Member + MaybeSerializeDeserialize + Debug + Default + MaybeDisplay + AtLeast32Bit + Copy
Round index type.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.