git.delta.rocks / unique-network / refs/commits / 429358c2bb85

difftreelog

source

pallets/scheduler/README.md1.4 KiBsourcehistory
1# Scheduler2A module for scheduling dispatches.34- [`scheduler::Trait`](https://docs.rs/pallet-scheduler/latest/pallet_scheduler/trait.Trait.html)5- [`Call`](https://docs.rs/pallet-scheduler/latest/pallet_scheduler/enum.Call.html)6- [`Module`](https://docs.rs/pallet-scheduler/latest/pallet_scheduler/struct.Module.html)78## Overview910This module exposes capabilities for scheduling dispatches to occur at a11specified block number or at a specified period. These scheduled dispatches12may be named or anonymous and may be canceled.1314**NOTE:** The scheduled calls will be dispatched with the default filter15for the origin: namely `frame_system::Config::BaseCallFilter` for all origin16except root which will get no filter. And not the filter contained in origin17use to call `fn schedule`.1819If a call is scheduled using proxy or whatever mecanism which adds filter,20then those filter will not be used when dispatching the schedule call.2122## Interface2324### Dispatchable Functions2526* `schedule` - schedule a dispatch, which may be periodic, to occur at a27  specified block and with a specified priority.28* `cancel` - cancel a scheduled dispatch, specified by block number and29  index.30* `schedule_named` - augments the `schedule` interface with an additional31  `Vec<u8>` parameter that can be used for identification.32* `cancel_named` - the named complement to the cancel function.3334License: Unlicense