1 | import type { Bytes } from '@polkadot/types-codec';
|
2 | import type { AnyJson, BareOpts, Registry } from '@polkadot/types-codec/types';
|
3 | import type { HexString } from '@polkadot/util/types';
|
4 | import type { BlockHash } from '../interfaces/chain/index.js';
|
5 | import type { ExtrinsicPayloadV4 } from '../interfaces/extrinsics/index.js';
|
6 | import type { Hash, MultiLocation } from '../interfaces/types.js';
|
7 | import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../types/index.js';
|
8 | import type { GenericExtrinsicEra } from './ExtrinsicEra.js';
|
9 | import { AbstractBase } from '@polkadot/types-codec';
|
10 | interface ExtrinsicPayloadOptions {
|
11 | version?: number;
|
12 | }
|
13 | type ExtrinsicPayloadVx = ExtrinsicPayloadV4;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare class GenericExtrinsicPayload extends AbstractBase<ExtrinsicPayloadVx> {
|
21 | constructor(registry: Registry, value?: Partial<ExtrinsicPayloadValue> | Uint8Array | string, { version }?: ExtrinsicPayloadOptions);
|
22 | /**
|
23 | * @description The block [[BlockHash]] the signature applies to (mortal/immortal)
|
24 | */
|
25 | get blockHash(): BlockHash;
|
26 | /**
|
27 | * @description The [[ExtrinsicEra]]
|
28 | */
|
29 | get era(): GenericExtrinsicEra;
|
30 | /**
|
31 | * @description The genesis block [[BlockHash]] the signature applies to
|
32 | */
|
33 | get genesisHash(): BlockHash;
|
34 | /**
|
35 | * @description The [[Bytes]] contained in the payload
|
36 | */
|
37 | get method(): Bytes;
|
38 | /**
|
39 | * @description The [[Index]]
|
40 | */
|
41 | get nonce(): ICompact<INumber>;
|
42 | /**
|
43 | * @description The specVersion as a [[u32]] for this payload
|
44 | */
|
45 | get specVersion(): INumber;
|
46 | /**
|
47 | * @description The [[Balance]]
|
48 | */
|
49 | get tip(): ICompact<INumber>;
|
50 | /**
|
51 | * @description The transaction version as a [[u32]] for this payload
|
52 | */
|
53 | get transactionVersion(): INumber;
|
54 | /**
|
55 | * @description The (optional) asset id as a [[u32]] or [[MultiLocation]] for this payload
|
56 | */
|
57 | get assetId(): IOption<INumber | MultiLocation>;
|
58 | /**
|
59 | * @description The (optional) [[Hash]] of the genesis metadata for this payload
|
60 | */
|
61 | get metadataHash(): IOption<Hash>;
|
62 | /**
|
63 | * @description Compares the value of the input to see if there is a match
|
64 | */
|
65 | eq(other?: unknown): boolean;
|
66 | /**
|
67 | * @description Sign the payload with the keypair
|
68 | */
|
69 | sign(signerPair: IKeyringPair): {
|
70 | signature: HexString;
|
71 | };
|
72 | |
73 |
|
74 |
|
75 | toHuman(isExtended?: boolean, disableAscii?: boolean): AnyJson;
|
76 | |
77 |
|
78 |
|
79 | toJSON(): any;
|
80 | |
81 |
|
82 |
|
83 | toRawType(): string;
|
84 | |
85 |
|
86 |
|
87 | toString(): string;
|
88 | |
89 |
|
90 |
|
91 | toU8a(isBare?: BareOpts): Uint8Array;
|
92 | }
|
93 | export {};
|