1 | import type { Hash, MultiLocation } from '@polkadot/types/interfaces';
|
2 | import type { Bytes } from '@polkadot/types-codec';
|
3 | import type { Inspect, Registry } from '@polkadot/types-codec/types';
|
4 | import type { HexString } from '@polkadot/util/types';
|
5 | import type { BlockHash } from '../../interfaces/chain/index.js';
|
6 | import type { ExtrinsicEra } from '../../interfaces/extrinsics/index.js';
|
7 | import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../../types/index.js';
|
8 | import { Struct } from '@polkadot/types-codec';
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare class GenericExtrinsicPayloadV5 extends Struct {
|
16 | constructor(registry: Registry, value?: ExtrinsicPayloadValue | Uint8Array | HexString);
|
17 | /**
|
18 | * @description Returns a breakdown of the hex encoding for this Codec
|
19 | */
|
20 | inspect(): Inspect;
|
21 | /**
|
22 | * @description The block [[BlockHash]] the signature applies to (mortal/immortal)
|
23 | */
|
24 | get blockHash(): BlockHash;
|
25 | /**
|
26 | * @description The [[ExtrinsicEra]]
|
27 | */
|
28 | get era(): ExtrinsicEra;
|
29 | /**
|
30 | * @description The genesis [[BlockHash]] the signature applies to (mortal/immortal)
|
31 | */
|
32 | get genesisHash(): BlockHash;
|
33 | /**
|
34 | * @description The [[Bytes]] contained in the payload
|
35 | */
|
36 | get method(): Bytes;
|
37 | /**
|
38 | * @description The [[Index]]
|
39 | */
|
40 | get nonce(): ICompact<INumber>;
|
41 | /**
|
42 | * @description The specVersion for this signature
|
43 | */
|
44 | get specVersion(): INumber;
|
45 | /**
|
46 | * @description The tip [[Balance]]
|
47 | */
|
48 | get tip(): ICompact<INumber>;
|
49 | /**
|
50 | * @description The transactionVersion for this signature
|
51 | */
|
52 | get transactionVersion(): INumber;
|
53 | /**
|
54 | * @description The (optional) asset id for this signature for chains that support transaction fees in assets
|
55 | */
|
56 | get assetId(): IOption<INumber | MultiLocation>;
|
57 | /**
|
58 | * @description The (optional) metadataHash proof for the CheckMetadataHash TransactionExtension
|
59 | */
|
60 | get metadataHash(): IOption<Hash>;
|
61 | /**
|
62 | * @description Sign the payload with the keypair
|
63 | *
|
64 | * [Disabled for ExtrinsicV5]
|
65 | */
|
66 | sign(_signerPair: IKeyringPair): Uint8Array;
|
67 | }
|