1 |
|
2 | import type { Inspect, Registry } from '@polkadot/types-codec/types';
|
3 | import type { BN } from '@polkadot/util';
|
4 | import type { HexString } from '@polkadot/util/types';
|
5 | import { AbstractBase } from '@polkadot/types-codec';
|
6 | import { GenericAccountId } from './AccountId.js';
|
7 | import { GenericAccountIndex } from './AccountIndex.js';
|
8 | type AnyAddress = bigint | BN | GenericLookupSource | GenericAccountId | GenericAccountIndex | number[] | Uint8Array | number | string;
|
9 | export declare const ACCOUNT_ID_PREFIX: Uint8Array;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare class GenericLookupSource extends AbstractBase<GenericAccountId | GenericAccountIndex> {
|
19 | constructor(registry: Registry, value?: AnyAddress);
|
20 | /**
|
21 | * @description The length of the value when encoded as a Uint8Array
|
22 | */
|
23 | get encodedLength(): number;
|
24 | /**
|
25 | * @description The length of the raw value, either AccountIndex or AccountId
|
26 | */
|
27 | protected get _rawLength(): number;
|
28 | /**
|
29 | * @description Returns a breakdown of the hex encoding for this Codec
|
30 | */
|
31 | inspect(): Inspect;
|
32 | /**
|
33 | * @description Returns a hex string representation of the value
|
34 | */
|
35 | toHex(): HexString;
|
36 | /**
|
37 | * @description Returns the base runtime type name for this instance
|
38 | */
|
39 | toRawType(): string;
|
40 | /**
|
41 | * @description Encodes the value as a Uint8Array as per the SCALE specifications
|
42 | * @param isBare true when the value has none of the type-specific prefixes (internal)
|
43 | */
|
44 | toU8a(isBare?: boolean): Uint8Array;
|
45 | }
|
46 | export {};
|