#dispatch #scheduled #authority #module #origin #delay #dispatchable

no-std orml-authority

Utility pallet to perform ROOT calls in a PoA network

18 releases (1 stable)

1.0.0 Aug 1, 2024
0.13.0 Jun 26, 2024
0.12.0 Jun 3, 2024
0.8.0 Mar 18, 2024
0.1.1 Jun 5, 2020

#7 in #scheduled

Download history 3/week @ 2024-06-15 165/week @ 2024-06-22 7/week @ 2024-06-29 29/week @ 2024-07-06 208/week @ 2024-07-27 5/week @ 2024-08-03 29/week @ 2024-09-14 11/week @ 2024-09-21 18/week @ 2024-09-28

58 downloads per month

Apache-2.0

48KB
1K SLoC

Authority module

Overview

Authority module to provide features for governance including dispatch method on behalf other accounts and schdule dispatchables.

  • dispatch_as can dispatch a dispatchable on behalf of other origin.
  • schedule_dispatch can schdule a dispatchable to be dispatched at later block.
  • fast_track_scheduled_dispatch can fast track a scheduled dispatchable.
  • delay_scheduled_dispatch can delay a scheduled dispatchable.
  • cancel_scheduled_dispatch can cancel a scheduled dispatchable.

lib.rs:

Authority

A module to provide features for governance including dispatch method on behalf of other accounts and schedule dispatchables.

Overview

Two functionalities are provided by this module:

  • schedule a dispatchable
  • dispatch method with on behalf of other origins

NOTE:

In order to derive a feasible max encoded len for DelayedOrigin, it is assumed that there are no nested DelayedOrigin in OriginCaller. In practice, this means there should not be nested schedule_dispatch. Otherwise the proof size estimation may not be accurate.

Dependencies

~20–34MB
~573K SLoC