Trait pallet_scheduler::Trait[][src]

pub trait Trait: Trait {
    type Event: From<Event<Self>> + Into<Self::Event>;
    type Origin: OriginTrait<PalletsOrigin = Self::PalletsOrigin> + From<Self::PalletsOrigin> + IsType<Self::Origin>;
    type PalletsOrigin: From<RawOrigin<Self::AccountId>> + Codec + Clone + Eq;
    type Call: Parameter + Dispatchable<Origin = Self::Origin> + GetDispatchInfo + From<Call<Self>>;
    type MaximumWeight: Get<Weight>;
    type ScheduleOrigin: EnsureOrigin<Self::Origin>;
    type MaxScheduledPerBlock: Get<u32>;
    type WeightInfo: WeightInfo;
}

Our pallet’s configuration trait. All our types and constants go in here. If the pallet is dependent on specific other pallets, then their configuration traits should be added to our implied traits list.

system::Trait should always be included in our implied traits.

Associated Types

type Event: From<Event<Self>> + Into<Self::Event>[src]

The overarching event type.

type Origin: OriginTrait<PalletsOrigin = Self::PalletsOrigin> + From<Self::PalletsOrigin> + IsType<Self::Origin>[src]

The aggregated origin which the dispatch will take.

type PalletsOrigin: From<RawOrigin<Self::AccountId>> + Codec + Clone + Eq[src]

The caller origin, overarching type of all pallets origins.

type Call: Parameter + Dispatchable<Origin = Self::Origin> + GetDispatchInfo + From<Call<Self>>[src]

The aggregated call type.

type MaximumWeight: Get<Weight>[src]

The maximum weight that may be scheduled per block for any dispatchables of less priority than schedule::HARD_DEADLINE.

type ScheduleOrigin: EnsureOrigin<Self::Origin>[src]

Required origin to schedule or cancel calls.

type MaxScheduledPerBlock: Get<u32>[src]

The maximum number of scheduled calls in the queue for a single block. Not strictly enforced, but used for weight estimation.

type WeightInfo: WeightInfo[src]

Weight information for extrinsics in this pallet.

Loading content...

Implementors

Loading content...