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