Scheduler::Event
Variant 62 v393pallet_scheduler::pallet::Event
Events type.
About This Type
Event enum for the Event pallet.
Contains all possible events emitted by the Event pallet. Each variant represents a different event type with its own data fields.
Variants (10)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Scheduled | Scheduled some task. | |
| 1 | Canceled | Canceled some task. | |
| 2 | Dispatched | Dispatched some task. | |
| 3 | RetrySet | Set a retry configuration for some task. | |
| 4 | RetryCancelled | task: (u32, u32) id: Option | Cancel a retry configuration for some task. |
| 5 | CallUnavailable | task: (u32, u32) id: Option | The call for the provided hash was not found so the task has been aborted. |
| 6 | PeriodicFailed | task: (u32, u32) id: Option | The given task was unable to be renewed since the agenda is full at that block. |
| 7 | RetryFailed | task: (u32, u32) id: Option | The given task was unable to be retried since the agenda is full at that block or there was not enough weight to reschedule it. |
| 8 | PermanentlyOverweight | task: (u32, u32) id: Option | The given task can never be executed since it is overweight. |
| 9 | AgendaIncomplete | when: u32 | Agenda is incomplete from `when`. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 10 possible variants.
- Size
- variable (1+ bytes)
Examples
Scheduled = Scheduled(when, index)
0x00<field0><field1>00 Variant index 0 = Scheduledfield 0 when: u32field 1 index: u32Canceled = Canceled(when, index)
0x01<field0><field1>01 Variant index 1 = Canceledfield 0 when: u32field 1 index: u32Dispatched = Dispatched(task, id, result)
0x02<field0><field1><field2>02 Variant index 2 = Dispatchedfield 0 task: (u32, u32)field 1 id: Optionfield 2 result: ResultCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Scheduler::Event — variant "Scheduled"
const value = registry.createType("Scheduler::Event", { Scheduled: { when: 1000000, index: 1000000 } });
console.log("Hex:", value.toHex());Type Parameters
T
Referenced By (23)
#21 RuntimeEvent via System#21 RuntimeEvent via Grandpa#21 RuntimeEvent via Balances#21 RuntimeEvent via TransactionPayment#21 RuntimeEvent via SubtensorModule#21 RuntimeEvent via Utility#21 RuntimeEvent via Sudo#21 RuntimeEvent via Multisig#21 RuntimeEvent via Preimage#21 RuntimeEvent via Scheduler#21 RuntimeEvent via Proxy#21 RuntimeEvent via Registry#21 RuntimeEvent via Commitments#21 RuntimeEvent via AdminUtils#21 RuntimeEvent via SafeMode#21 RuntimeEvent via Ethereum#21 RuntimeEvent via EVM#21 RuntimeEvent via BaseFee#21 RuntimeEvent via Drand#21 RuntimeEvent via Crowdloan
and 3 more...
Also See
Type Information
- Type ID
- 62
- Kind
- Variant
- Path
- pallet_scheduler::pallet::Event
- Runtime
- v393