1 |
|
2 | import type { 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 { GenericAccountIndex } from '../generic/AccountIndex.js';
|
7 | import { GenericEthereumAccountId } from './AccountId.js';
|
8 | type AnyAddress = bigint | BN | GenericEthereumLookupSource | GenericEthereumAccountId | 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 GenericEthereumLookupSource extends AbstractBase<GenericEthereumAccountId | 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 hex string representation of the value
|
30 | */
|
31 | toHex(): HexString;
|
32 | /**
|
33 | * @description Returns the base runtime type name for this instance
|
34 | */
|
35 | toRawType(): string;
|
36 | /**
|
37 | * @description Encodes the value as a Uint8Array as per the SCALE specifications
|
38 | * @param isBare true when the value has none of the type-specific prefixes (internal)
|
39 | */
|
40 | toU8a(isBare?: boolean): Uint8Array;
|
41 | }
|
42 | export {};
|