UNPKG

1.14 kBTypeScriptView Raw
1import type { AnyU8a, Registry } from '@polkadot/types-codec/types';
2import { U8aFixed } from '@polkadot/types-codec';
3/**
4 * @name GenericAccountId
5 * @description
6 * A wrapper around an AccountId/PublicKey representation. Since we are dealing with
7 * underlying PublicKeys (32 bytes in length), we extend from U8aFixed which is
8 * just a Uint8Array wrapper with a fixed length.
9 */
10export declare class GenericAccountId extends U8aFixed {
11 constructor(registry: Registry, value?: AnyU8a);
12 /**
13 * @description Compares the value of the input to see if there is a match
14 */
15 eq(other?: unknown): boolean;
16 /**
17 * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
18 */
19 toHuman(): string;
20 /**
21 * @description Converts the Object to JSON, typically used for RPC transfers
22 */
23 toJSON(): string;
24 /**
25 * @description Returns the string representation of the value
26 */
27 toString(): string;
28 /**
29 * @description Returns the base runtime type name for this instance
30 */
31 toRawType(): string;
32}