Trait noble_scheduler::Config[][src]

pub trait Config: Config {
    type Event: From<Event<Self>> + Into<Self::Event>;
    type Origin: OriginTrait<NoblesOrigin = Self::NoblesOrigin> + From<Self::NoblesOrigin> + IsType<Self::Origin>;
    type NoblesOrigin: 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 noble’s configuration trait. All our types and constants go in here. If the noble is dependent on specific other nobles, then their configuration traits should be added to our implied traits list.

system::Config 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<NoblesOrigin = Self::NoblesOrigin> + From<Self::NoblesOrigin> + IsType<Self::Origin>[src]

The aggregated origin which the dispatch will take.

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

The caller origin, overarching type of all nobles 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 noble.

Loading content...

Implementors

Loading content...