FixedI128
Composite 325 v393substrate_fixed::FixedI128
About This Type
Structured type: FixedI128.
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 (1)
| # | Name | Type |
|---|---|---|
| 0 | bits | i128 |
SCALE Encoding
- Rule
- 1 field encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 1 field = bits: i128
0x<field0>field 0 bits: i128Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode FixedI128
const value = registry.createType("FixedI128", {
bits: 0
});
console.log("Hex:", value.toHex());Type Parameters
Frac = UInt
Referenced By (11)
#308 AdminUtils::Call via sudo_set_subnet_moving_alpha.alpha#308 AdminUtils::Call via sudo_set_tao_flow_cutoff.flow_cutoff#433 (u64, FixedI128) #460 (u16, FixedI128) #536 Tick via fees_out_tao#536 Tick via fees_out_alpha#538 Position via fees_tao#538 Position via fees_alpha#662 DynamicInfo via moving_price#668 Metagraph via moving_price#688 Option via Some
Type Information
- Type ID
- 325
- Kind
- Composite
- Path
- substrate_fixed::FixedI128
- Runtime
- v393