UNPKG

1.26 kBTypeScriptView Raw
1import type { AnyU8a, Registry } from '@polkadot/types-codec/types';
2import { U8aFixed } from '@polkadot/types-codec';
3/**
4 * @name GenericEthereumAccountId
5 * @description
6 * A wrapper around an Ethereum-compatible AccountId. Since we are dealing with
7 * underlying addresses (20 bytes in length), we extend from U8aFixed which is
8 * just a Uint8Array wrapper with a fixed length.
9 */
10export declare class GenericEthereumAccountId 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 Converts the value in a best-fit primitive form
26 */
27 toPrimitive(): string;
28 /**
29 * @description Returns the string representation of the value
30 */
31 toString(): string;
32 /**
33 * @description Returns the base runtime type name for this instance
34 */
35 toRawType(): string;
36}