SubnetIdentityV3
Composite 154 v393pallet_subtensor::pallet::SubnetIdentityV3
About This Type
Structured type: SubnetIdentityV3.
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 (8)
SCALE Encoding
- Rule
- 8 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 8 fields = subnet_name: Vec<u8>, github_repo: Vec<u8>, subnet_contact: Vec<u8>, subnet_url: Vec<u8>, discord: Vec<u8>, description: Vec<u8>, logo_url: Vec<u8>, additional: Vec<u8>
0x<field0><field1><field2><field3><field4><field5><field6><field7>field 0 subnet_name: Vec<u8>field 1 github_repo: Vec<u8>field 2 subnet_contact: Vec<u8>field 3 subnet_url: Vec<u8>field 4 discord: Vec<u8>field 5 description: Vec<u8>field 6 logo_url: Vec<u8>field 7 additional: Vec<u8>Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode SubnetIdentityV3
const value = registry.createType("SubnetIdentityV3", {
subnet_name: 0,
github_repo: 0,
subnet_contact: 0,
subnet_url: 0,
discord: 0,
description: 0,
logo_url: 0,
additional: 0
});
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 154
- Kind
- Composite
- Path
- pallet_subtensor::pallet::SubnetIdentityV3
- Runtime
- v393