Scheduled
Composite 484 v393pallet_scheduler::Scheduled
About This Type
Structured type: Scheduled.
A struct-like type where each field is encoded in declaration order.
Encoding: Fields encoded consecutively in declaration order, no field names or separators.
Fields (5)
| # | Name | Type |
|---|---|---|
| 0 | maybe_id | Option |
| 1 | priority | u8 |
| 2 | call | Bounded |
| 3 | maybe_periodic | Option |
| 4 | origin | OriginCaller |
SCALE Encoding
- Rule
- 5 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 5 fields = maybe_id: Option, priority: u8, call: Bounded, maybe_periodic: Option, origin: OriginCaller
0x<field0><field1><field2><field3><field4>field 0 maybe_id: Optionfield 1 priority: u8field 2 call: Boundedfield 3 maybe_periodic: Optionfield 4 origin: OriginCallerCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Scheduled
const value = registry.createType("Scheduled", {
maybe_id: 0,
priority: 42,
call: 0,
maybe_periodic: 0,
origin: 0
});
console.log("Hex:", value.toHex());Type Parameters
Name = [u8; 32]
Call = Bounded
BlockNumber = u32
PalletsOrigin = OriginCaller
AccountId = AccountId
Referenced By (1)
Type Information
- Type ID
- 484
- Kind
- Composite
- Path
- pallet_scheduler::Scheduled
- Runtime
- v393