Trait pallet_scheduler::pallet::Config
source · pub trait Config: Config {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type Origin: OriginTrait<PalletsOrigin = Self::PalletsOrigin> + From<Self::PalletsOrigin> + IsType<<Self as Config>::Origin>;
type PalletsOrigin: From<RawOrigin<Self::AccountId>> + Codec + Clone + Eq + TypeInfo;
type Call: Parameter + Dispatchable<Origin = <Self as Config>::Origin, PostInfo = PostDispatchInfo> + GetDispatchInfo + From<Call<Self>>;
type MaximumWeight: Get<Weight>;
type ScheduleOrigin: EnsureOrigin<<Self as Config>::Origin>;
type OriginPrivilegeCmp: PrivilegeCmp<Self::PalletsOrigin>;
type MaxScheduledPerBlock: Get<u32>;
type WeightInfo: WeightInfo;
type PreimageProvider: PreimageProviderAndMaybeRecipient<Self::Hash>;
type NoPreimagePostponement: Get<Option<Self::BlockNumber>>;
}
Expand description
system::Config
should always be included in our implied traits.
Required Associated Types§
sourcetype Origin: OriginTrait<PalletsOrigin = Self::PalletsOrigin> + From<Self::PalletsOrigin> + IsType<<Self as Config>::Origin>
type Origin: OriginTrait<PalletsOrigin = Self::PalletsOrigin> + From<Self::PalletsOrigin> + IsType<<Self as Config>::Origin>
The aggregated origin which the dispatch will take.
sourcetype PalletsOrigin: From<RawOrigin<Self::AccountId>> + Codec + Clone + Eq + TypeInfo
type PalletsOrigin: From<RawOrigin<Self::AccountId>> + Codec + Clone + Eq + TypeInfo
The caller origin, overarching type of all pallets origins.
sourcetype Call: Parameter + Dispatchable<Origin = <Self as Config>::Origin, PostInfo = PostDispatchInfo> + GetDispatchInfo + From<Call<Self>>
type Call: Parameter + Dispatchable<Origin = <Self as Config>::Origin, PostInfo = PostDispatchInfo> + GetDispatchInfo + From<Call<Self>>
The aggregated call type.
sourcetype MaximumWeight: Get<Weight>
type MaximumWeight: Get<Weight>
The maximum weight that may be scheduled per block for any dispatchables of less
priority than schedule::HARD_DEADLINE
.
sourcetype ScheduleOrigin: EnsureOrigin<<Self as Config>::Origin>
type ScheduleOrigin: EnsureOrigin<<Self as Config>::Origin>
Required origin to schedule or cancel calls.
sourcetype OriginPrivilegeCmp: PrivilegeCmp<Self::PalletsOrigin>
type OriginPrivilegeCmp: PrivilegeCmp<Self::PalletsOrigin>
Compare the privileges of origins.
This will be used when canceling a task, to ensure that the origin that tries to cancel has greater or equal privileges as the origin that created the scheduled task.
For simplicity the EqualPrivilegeOnly
can
be used. This will only check if two given origins are equal.
sourcetype MaxScheduledPerBlock: Get<u32>
type MaxScheduledPerBlock: Get<u32>
The maximum number of scheduled calls in the queue for a single block. Not strictly enforced, but used for weight estimation.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
sourcetype PreimageProvider: PreimageProviderAndMaybeRecipient<Self::Hash>
type PreimageProvider: PreimageProviderAndMaybeRecipient<Self::Hash>
The preimage provider with which we look up call hashes to get the call.
sourcetype NoPreimagePostponement: Get<Option<Self::BlockNumber>>
type NoPreimagePostponement: Get<Option<Self::BlockNumber>>
If Some
then the number of blocks to postpone execution for when the item is delayed.