Utility::Event
Variant 56 v393pallet_subtensor_utility::pallet::Event
The `Event` enum of this pallet
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 (8)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | BatchInterrupted | index: u32 error: DispatchError | Batch of dispatches did not complete fully. Index of first failing dispatch given, as well as the error. |
| 1 | BatchCompleted | none | Batch of dispatches completed fully with no error. |
| 2 | BatchCompletedWithErrors | none | Batch of dispatches completed but has errors. |
| 3 | ItemCompleted | none | A single item within a Batch of dispatches has completed with no error. |
| 4 | ItemFailed | error: DispatchError | A single item within a Batch of dispatches has completed with error. |
| 5 | DispatchedAs | result: Result | A call was dispatched. |
| 6 | IfElseMainSuccess | none | Main call was dispatched. |
| 7 | IfElseFallbackCalled | main_error: DispatchError | The fallback call was dispatched. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 8 possible variants.
- Size
- variable (1+ bytes)
Examples
BatchInterrupted = BatchInterrupted(index, error)
0x00<field0><field1>00 Variant index 0 = BatchInterruptedfield 0 index: u32field 1 error: DispatchErrorBatchCompleted
0x0101 Variant index 1 = BatchCompletedBatchCompletedWithErrors
0x0202 Variant index 2 = BatchCompletedWithErrorsCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Utility::Event — variant "BatchInterrupted"
const value = registry.createType("Utility::Event", { BatchInterrupted: { index: 1000000, error: 0 } });
console.log("Hex:", value.toHex());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
- 56
- Kind
- Variant
- Path
- pallet_subtensor_utility::pallet::Event
- Runtime
- v393