ProxyDefinition

Composite 492 v393

pallet_subtensor_proxy::ProxyDefinition

About This Type

Structured type: ProxyDefinition.

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 (3)

#NameType
0delegateAccountId
1proxy_typeProxyType
2delayu32

SCALE Encoding

Rule
3 fields encoded consecutively in declaration order. No field names or delimiters.
Size
sum of field sizes

Examples

Struct with 3 fields = delegate: AccountId, proxy_type: ProxyType, delay: u32
0x<field0><field1><field2>
field 0 delegate: AccountId
field 1 proxy_type: ProxyType
field 2 delay: u32

Code Examples

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

const registry = new TypeRegistry();

// Encode ProxyDefinition
const value = registry.createType("ProxyDefinition", {
  delegate: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
  proxy_type: 0,
  delay: 1000000
});
console.log("Hex:", value.toHex());

Type Parameters

AccountId = AccountId
ProxyType = ProxyType
BlockNumber = u32

Referenced By (1)

Type Information

Type ID
492
Kind
Composite
Path
pallet_subtensor_proxy::ProxyDefinition
Runtime
v393