BabeEpochConfiguration
Composite 716 v393sp_consensus_babe::BabeEpochConfiguration
About This Type
Structured type: BabeEpochConfiguration.
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 (2)
| # | Name | Type |
|---|---|---|
| 0 | c | (u64, u64) |
| 1 | allowed_slots | AllowedSlots |
SCALE Encoding
- Rule
- 2 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 2 fields = c: (u64, u64), allowed_slots: AllowedSlots
0x<field0><field1>field 0 c: (u64, u64)field 1 allowed_slots: AllowedSlotsCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode BabeEpochConfiguration
const value = registry.createType("BabeEpochConfiguration", {
c: 0,
allowed_slots: 0
});
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 716
- Kind
- Composite
- Path
- sp_consensus_babe::BabeEpochConfiguration
- Runtime
- v393