Scheduler::Call
Variant 167 v393pallet_scheduler::pallet::Call
Contains a variant per dispatchable extrinsic that this pallet has.
About This Type
Call enum for the Call pallet.
Contains all dispatchable functions (extrinsics) for the Call pallet. Each variant represents a different callable function with its parameters.
Variants (10)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | schedule | Anonymously schedule a task. | |
| 1 | cancel | Cancel an anonymously scheduled task. | |
| 2 | schedule_named | Schedule a named task. | |
| 3 | cancel_named | id: [u8; 32] | Cancel a named scheduled task. |
| 4 | schedule_after | Anonymously schedule a task after a delay. | |
| 5 | schedule_named_after | Schedule a named task after a delay. | |
| 6 | set_retry | Set a retry configuration for a task so that, in case its scheduled run fails, it will be retried after `period` blocks, for a total amount of `retries` retries or until it succeeds. Tasks which need to be scheduled for a retry are still subject to weight metering and agenda space, same as a regular task. If a periodic task fails, it will be scheduled normally while the task is retrying. Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic clones of the original task. Their retry configuration will be derived from the original task's configuration, but will have a lower value for `remaining` than the original `total_retries`. | |
| 7 | set_retry_named | Set a retry configuration for a named task so that, in case its scheduled run fails, it will be retried after `period` blocks, for a total amount of `retries` retries or until it succeeds. Tasks which need to be scheduled for a retry are still subject to weight metering and agenda space, same as a regular task. If a periodic task fails, it will be scheduled normally while the task is retrying. Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic clones of the original task. Their retry configuration will be derived from the original task's configuration, but will have a lower value for `remaining` than the original `total_retries`. | |
| 8 | cancel_retry | task: (u32, u32) | Removes the retry configuration of a task. |
| 9 | cancel_retry_named | id: [u8; 32] | Cancel the retry configuration of a named task. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 10 possible variants.
- Size
- variable (1+ bytes)
Examples
schedule = schedule(when, maybe_periodic, priority, call)
0x00<field0><field1><field2><field3>00 Variant index 0 = schedulefield 0 when: u32field 1 maybe_periodic: Optionfield 2 priority: u8field 3 call: RuntimeCallcancel = cancel(when, index)
0x01<field0><field1>01 Variant index 1 = cancelfield 0 when: u32field 1 index: u32schedule_named = schedule_named(id, when, maybe_periodic, priority, call)
0x02<field0><field1><field2><field3><field4>02 Variant index 2 = schedule_namedfield 0 id: [u8; 32]field 1 when: u32field 2 maybe_periodic: Optionfield 3 priority: u8field 4 call: RuntimeCallCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Scheduler::Call — variant "schedule"
const value = registry.createType("Scheduler::Call", { schedule: { when: 1000000, maybe_periodic: 0, priority: 42, call: 0 } });
console.log("Hex:", value.toHex());Type Parameters
T
Referenced By (23)
#123 RuntimeCall via System#123 RuntimeCall via Timestamp#123 RuntimeCall via Grandpa#123 RuntimeCall via Balances#123 RuntimeCall via SubtensorModule#123 RuntimeCall via Utility#123 RuntimeCall via Sudo#123 RuntimeCall via Multisig#123 RuntimeCall via Preimage#123 RuntimeCall via Scheduler#123 RuntimeCall via Proxy#123 RuntimeCall via Registry#123 RuntimeCall via Commitments#123 RuntimeCall via AdminUtils#123 RuntimeCall via SafeMode#123 RuntimeCall via Ethereum#123 RuntimeCall via EVM#123 RuntimeCall via BaseFee#123 RuntimeCall via Drand#123 RuntimeCall via Crowdloan
and 3 more...
Also See
Type Information
- Type ID
- 167
- Kind
- Variant
- Path
- pallet_scheduler::pallet::Call
- Runtime
- v393