1 | import type { Text, Vec } from '@polkadot/types-codec';
|
2 | import type { Registry } from '@polkadot/types-codec/types';
|
3 | import type { HexString } from '@polkadot/util/types';
|
4 | import type { Address, BlockHash, Call, ExtrinsicEra, Hash, MultiLocation } from '../interfaces/index.js';
|
5 | import type { Codec, ICompact, INumber, IOption, IRuntimeVersion, ISignerPayload, SignerPayloadJSON, SignerPayloadRaw } from '../types/index.js';
|
6 | import { Struct } from '@polkadot/types-codec';
|
7 | export interface SignerPayloadType extends Codec {
|
8 | address: Address;
|
9 | assetId: IOption<INumber | MultiLocation>;
|
10 | blockHash: Hash;
|
11 | blockNumber: INumber;
|
12 | era: ExtrinsicEra;
|
13 | genesisHash: Hash;
|
14 | metadataHash: IOption<Hash>;
|
15 | method: Call;
|
16 | mode: INumber;
|
17 | nonce: ICompact<INumber>;
|
18 | runtimeVersion: IRuntimeVersion;
|
19 | signedExtensions: Vec<Text>;
|
20 | tip: ICompact<INumber>;
|
21 | version: INumber;
|
22 | }
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | export declare class GenericSignerPayload extends Struct implements ISignerPayload, SignerPayloadType {
|
29 | #private;
|
30 | constructor(registry: Registry, value?: HexString | Record<string, unknown> | Map<unknown, unknown> | unknown[]);
|
31 | get address(): Address;
|
32 | get blockHash(): BlockHash;
|
33 | get blockNumber(): INumber;
|
34 | get era(): ExtrinsicEra;
|
35 | get genesisHash(): BlockHash;
|
36 | get method(): Call;
|
37 | get nonce(): ICompact<INumber>;
|
38 | get runtimeVersion(): IRuntimeVersion;
|
39 | get signedExtensions(): Vec<Text>;
|
40 | get tip(): ICompact<INumber>;
|
41 | get assetId(): IOption<INumber | MultiLocation>;
|
42 | get version(): INumber;
|
43 | get mode(): INumber;
|
44 | get metadataHash(): IOption<Hash>;
|
45 | get withSignedTransaction(): boolean;
|
46 | /**
|
47 | * @description Creates an representation of the structure as an ISignerPayload JSON
|
48 | */
|
49 | toPayload(): SignerPayloadJSON;
|
50 | /**
|
51 | * @description Creates a representation of the payload in raw Exrinsic form
|
52 | */
|
53 | toRaw(): SignerPayloadRaw;
|
54 | }
|