AdjustmentDirection

Variant 142 v393

pallet_balances::types::AdjustmentDirection

About This Type

Enum type: AdjustmentDirection.

A tagged union where the first byte selects which variant is active, followed by that variant's data.

Encoding: 1-byte variant index followed by the selected variant's field data.

Variants (2)

IndexNameFieldsDocs
0Increasenone
1Decreasenone

SCALE Encoding

Rule
1-byte variant index followed by variant-specific field data. 2 possible variants.
Size
variable (1+ bytes)

Examples

Increase
0x00
00 Variant index 0 = Increase
Decrease
0x01
01 Variant index 1 = Decrease

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode AdjustmentDirection — variant "Increase"
const value = registry.createType("AdjustmentDirection", "Increase");
console.log("Hex:", value.toHex());

Referenced By (1)

Type Information

Type ID
142
Kind
Variant
Path
pallet_balances::types::AdjustmentDirection
Runtime
v393