Trait orml_authority::AuthorityConfig

source ·
pub trait AuthorityConfig<Origin, PalletsOrigin, BlockNumber> {
    // Required methods
    fn check_schedule_dispatch(
        origin: Origin,
        priority: Priority
    ) -> DispatchResult;
    fn check_fast_track_schedule(
        origin: Origin,
        initial_origin: &PalletsOrigin,
        new_delay: BlockNumber
    ) -> DispatchResult;
    fn check_delay_schedule(
        origin: Origin,
        initial_origin: &PalletsOrigin
    ) -> DispatchResult;
    fn check_cancel_schedule(
        origin: Origin,
        initial_origin: &PalletsOrigin
    ) -> DispatchResult;
}
Expand description

Config for orml-authority

Required Methods§

source

fn check_schedule_dispatch(origin: Origin, priority: Priority) -> DispatchResult

Check if the origin is allowed to schedule a dispatchable call with a given priority.

source

fn check_fast_track_schedule( origin: Origin, initial_origin: &PalletsOrigin, new_delay: BlockNumber ) -> DispatchResult

Check if the origin is allow to fast track a scheduled task that initially created by initial_origin. new_delay is number of blocks this dispatchable will be dispatched from now after fast track.

source

fn check_delay_schedule( origin: Origin, initial_origin: &PalletsOrigin ) -> DispatchResult

Check if the origin is allow to delay a scheduled task that initially created by initial_origin.

source

fn check_cancel_schedule( origin: Origin, initial_origin: &PalletsOrigin ) -> DispatchResult

Check if the origin is allow to cancel a scheduled task that initially created by initial_origin.

Object Safety§

This trait is not object safe.

Implementors§