1 | import type { Inspect, Registry } from '@polkadot/types-codec/types';
|
2 | import type { HexString } from '@polkadot/util/types';
|
3 | import type { ExtrinsicEra } from '../../interfaces/extrinsics';
|
4 | import type { Hash } from '../../interfaces/runtime';
|
5 | import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../../types';
|
6 | import { Bytes, Struct } from '@polkadot/types-codec';
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare class GenericExtrinsicPayloadV4 extends Struct {
|
14 | #private;
|
15 | constructor(registry: Registry, value?: ExtrinsicPayloadValue | Uint8Array | HexString);
|
16 | /**
|
17 | * @description Returns a breakdown of the hex encoding for this Codec
|
18 | */
|
19 | inspect(): Inspect;
|
20 | /**
|
21 | * @description The block [[Hash]] the signature applies to (mortal/immortal)
|
22 | */
|
23 | get blockHash(): Hash;
|
24 | /**
|
25 | * @description The [[ExtrinsicEra]]
|
26 | */
|
27 | get era(): ExtrinsicEra;
|
28 | /**
|
29 | * @description The genesis [[Hash]] the signature applies to (mortal/immortal)
|
30 | */
|
31 | get genesisHash(): Hash;
|
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 for this signature
|
42 | */
|
43 | get specVersion(): INumber;
|
44 | /**
|
45 | * @description The tip [[Balance]]
|
46 | */
|
47 | get tip(): ICompact<INumber>;
|
48 | /**
|
49 | * @description The transactionVersion for this signature
|
50 | */
|
51 | get transactionVersion(): INumber;
|
52 | /**
|
53 | * @description
|
54 | * The (optional) asset id for this signature for chains that support transaction fees in assets
|
55 | */
|
56 | get assetId(): IOption<INumber>;
|
57 | /**
|
58 | * @description Sign the payload with the keypair
|
59 | */
|
60 | sign(signerPair: IKeyringPair): Uint8Array;
|
61 | }
|