@dedot/api 0.18.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/chaintypes/substrate/consts.d.ts +2 -2
  2. package/chaintypes/substrate/consts.js +1 -0
  3. package/chaintypes/substrate/errors.d.ts +909 -909
  4. package/chaintypes/substrate/errors.js +1 -0
  5. package/chaintypes/substrate/events.d.ts +664 -664
  6. package/chaintypes/substrate/events.js +1 -0
  7. package/chaintypes/substrate/index.d.ts +13 -16
  8. package/chaintypes/substrate/index.js +1 -0
  9. package/chaintypes/substrate/json-rpc.d.ts +2 -2
  10. package/chaintypes/substrate/json-rpc.js +1 -0
  11. package/chaintypes/substrate/query.d.ts +509 -527
  12. package/chaintypes/substrate/query.js +1 -0
  13. package/chaintypes/substrate/runtime.d.ts +123 -123
  14. package/chaintypes/substrate/runtime.js +1 -0
  15. package/chaintypes/substrate/tx.d.ts +1311 -1311
  16. package/chaintypes/substrate/tx.js +1 -0
  17. package/chaintypes/substrate/types.js +1 -0
  18. package/chaintypes/substrate/view-functions.d.ts +2 -2
  19. package/chaintypes/substrate/view-functions.js +1 -0
  20. package/cjs/chaintypes/substrate/consts.js +1 -0
  21. package/cjs/chaintypes/substrate/errors.js +1 -0
  22. package/cjs/chaintypes/substrate/events.js +1 -0
  23. package/cjs/chaintypes/substrate/index.js +1 -0
  24. package/cjs/chaintypes/substrate/json-rpc.js +1 -0
  25. package/cjs/chaintypes/substrate/query.js +1 -0
  26. package/cjs/chaintypes/substrate/runtime.js +1 -0
  27. package/cjs/chaintypes/substrate/tx.js +1 -0
  28. package/cjs/chaintypes/substrate/types.js +1 -0
  29. package/cjs/chaintypes/substrate/view-functions.js +1 -0
  30. package/cjs/client/BaseSubstrateClient.js +45 -2
  31. package/cjs/client/DedotClient.js +356 -224
  32. package/cjs/client/LegacyClient.js +99 -23
  33. package/cjs/client/V2Client.js +316 -0
  34. package/cjs/client/explorer/LegacyBlockExplorer.js +263 -0
  35. package/cjs/client/explorer/V2BlockExplorer.js +74 -0
  36. package/cjs/client/explorer/index.js +18 -0
  37. package/cjs/client/utils.js +57 -0
  38. package/cjs/executor/EventExecutor.js +1 -0
  39. package/cjs/executor/RuntimeApiExecutor.js +49 -2
  40. package/cjs/executor/StorageQueryExecutor.js +114 -2
  41. package/cjs/executor/ViewFunctionExecutor.js +21 -2
  42. package/cjs/executor/v2/StorageQueryExecutorV2.js +7 -1
  43. package/cjs/executor/validation-helpers.js +181 -0
  44. package/cjs/extrinsic/submittable/BaseSubmittableExtrinsic.js +86 -2
  45. package/cjs/extrinsic/submittable/SubmittableExtrinsic.js +38 -16
  46. package/cjs/extrinsic/submittable/SubmittableExtrinsicV2.js +12 -2
  47. package/cjs/json-rpc/group/ChainHead/ChainHead.js +226 -21
  48. package/cjs/storage/QueryableStorage.js +1 -0
  49. package/client/BaseSubstrateClient.d.ts +34 -18
  50. package/client/BaseSubstrateClient.js +47 -4
  51. package/client/DedotClient.d.ts +346 -49
  52. package/client/DedotClient.js +356 -224
  53. package/client/LegacyClient.d.ts +22 -17
  54. package/client/LegacyClient.js +101 -25
  55. package/client/V2Client.d.ts +75 -0
  56. package/client/V2Client.js +312 -0
  57. package/client/explorer/LegacyBlockExplorer.d.ts +68 -0
  58. package/client/explorer/LegacyBlockExplorer.js +259 -0
  59. package/client/explorer/V2BlockExplorer.d.ts +40 -0
  60. package/client/explorer/V2BlockExplorer.js +70 -0
  61. package/client/explorer/index.d.ts +2 -0
  62. package/client/explorer/index.js +2 -0
  63. package/client/utils.d.ts +18 -0
  64. package/client/utils.js +52 -0
  65. package/executor/ConstantExecutor.d.ts +1 -2
  66. package/executor/ErrorExecutor.d.ts +2 -2
  67. package/executor/EventExecutor.d.ts +2 -2
  68. package/executor/EventExecutor.js +1 -0
  69. package/executor/Executor.d.ts +4 -5
  70. package/executor/RuntimeApiExecutor.d.ts +2 -2
  71. package/executor/RuntimeApiExecutor.js +27 -3
  72. package/executor/StorageQueryExecutor.d.ts +3 -2
  73. package/executor/StorageQueryExecutor.js +92 -3
  74. package/executor/TxExecutor.d.ts +2 -2
  75. package/executor/ViewFunctionExecutor.d.ts +2 -2
  76. package/executor/ViewFunctionExecutor.js +22 -3
  77. package/executor/v2/RuntimeApiExecutorV2.d.ts +2 -3
  78. package/executor/v2/StorageQueryExecutorV2.d.ts +3 -3
  79. package/executor/v2/StorageQueryExecutorV2.js +8 -2
  80. package/executor/v2/TxExecutorV2.d.ts +5 -5
  81. package/executor/v2/ViewFunctionExecutorV2.d.ts +2 -3
  82. package/executor/validation-helpers.d.ts +36 -0
  83. package/executor/validation-helpers.js +174 -0
  84. package/extrinsic/extensions/SignedExtension.d.ts +1 -1
  85. package/extrinsic/submittable/BaseSubmittableExtrinsic.d.ts +7 -3
  86. package/extrinsic/submittable/BaseSubmittableExtrinsic.js +64 -3
  87. package/extrinsic/submittable/SubmittableExtrinsic.d.ts +4 -1
  88. package/extrinsic/submittable/SubmittableExtrinsic.js +39 -17
  89. package/extrinsic/submittable/SubmittableExtrinsicV2.d.ts +6 -3
  90. package/extrinsic/submittable/SubmittableExtrinsicV2.js +13 -3
  91. package/json-rpc/JsonRpcClient.d.ts +6 -6
  92. package/json-rpc/group/Archive.d.ts +1 -1
  93. package/json-rpc/group/ChainHead/ChainHead.d.ts +18 -2
  94. package/json-rpc/group/ChainHead/ChainHead.js +226 -21
  95. package/json-rpc/group/ChainSpec.d.ts +3 -3
  96. package/json-rpc/group/Transaction.d.ts +1 -1
  97. package/json-rpc/group/TransactionWatch.d.ts +1 -1
  98. package/package.json +9 -9
  99. package/proxychain.d.ts +3 -4
  100. package/storage/NewStorageQuery.d.ts +3 -3
  101. package/storage/QueryableStorage.js +1 -0
  102. package/types.d.ts +94 -6
@@ -1,7 +1,7 @@
1
1
  import type { AccountId32, AccountId32Like, Bytes, BytesLike, DispatchError, FixedBytes, H160, H256, Header, Result, RuntimeVersion, U256, UncheckedExtrinsic, UncheckedExtrinsicLike } from '@dedot/codecs';
2
- import type { GenericRuntimeApiMethod, GenericRuntimeApis, RpcVersion } from '@dedot/types';
2
+ import type { GenericRuntimeApiMethod, GenericRuntimeApis } from '@dedot/types';
3
3
  import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, KitchensinkRuntimeRuntimeCallLike, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesContractResultResult, PalletContractsWasmDeterminism, PalletReviveEvmApiDebugRpcTypesTrace, PalletReviveEvmApiDebugRpcTypesTracerType, PalletReviveEvmApiRpcTypesGenGenericTransaction, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResult, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthTransactError, PalletRevivePrimitivesEthTransactInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBabeOpaqueKeyOwnershipProof, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpConsensusSlotsSlot, SpCoreCryptoKeyTypeId, SpCoreOpaqueMetadata, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesEncodableOpaqueLeaf, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeExtrinsicInclusionMode, SpRuntimeOpaqueValue, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpWeightsWeightV2Weight } from './types.js';
4
- export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
4
+ export interface RuntimeApis extends GenericRuntimeApis {
5
5
  /**
6
6
  * @runtimeapi: Core - 0xdf6acb689907609b
7
7
  **/
@@ -11,25 +11,25 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
11
11
  *
12
12
  * @callname: Core_version
13
13
  **/
14
- version: GenericRuntimeApiMethod<Rv, () => Promise<RuntimeVersion>>;
14
+ version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
15
15
  /**
16
16
  * Execute the given block.
17
17
  *
18
18
  * @callname: Core_execute_block
19
19
  * @param {SpRuntimeBlock} block
20
20
  **/
21
- executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
21
+ executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
22
22
  /**
23
23
  * Initialize a block with the given header and return the runtime executive mode.
24
24
  *
25
25
  * @callname: Core_initialize_block
26
26
  * @param {Header} header
27
27
  **/
28
- initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
28
+ initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
29
29
  /**
30
30
  * Generic runtime api call
31
31
  **/
32
- [method: string]: GenericRuntimeApiMethod<Rv>;
32
+ [method: string]: GenericRuntimeApiMethod;
33
33
  };
34
34
  /**
35
35
  * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
@@ -40,7 +40,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
40
40
  *
41
41
  * @callname: Metadata_metadata
42
42
  **/
43
- metadata: GenericRuntimeApiMethod<Rv, () => Promise<SpCoreOpaqueMetadata>>;
43
+ metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
44
44
  /**
45
45
  * Returns the metadata at a given version.
46
46
  *
@@ -50,7 +50,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
50
50
  * @callname: Metadata_metadata_at_version
51
51
  * @param {number} version
52
52
  **/
53
- metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
53
+ metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
54
54
  /**
55
55
  * Returns the supported metadata versions.
56
56
  *
@@ -58,11 +58,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
58
58
  *
59
59
  * @callname: Metadata_metadata_versions
60
60
  **/
61
- metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
61
+ metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
62
62
  /**
63
63
  * Generic runtime api call
64
64
  **/
65
- [method: string]: GenericRuntimeApiMethod<Rv>;
65
+ [method: string]: GenericRuntimeApiMethod;
66
66
  };
67
67
  /**
68
68
  * @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
@@ -75,11 +75,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
75
75
  * @param {FrameSupportViewFunctionsViewFunctionId} query_id
76
76
  * @param {BytesLike} input
77
77
  **/
78
- executeViewFunction: GenericRuntimeApiMethod<Rv, (queryId: FrameSupportViewFunctionsViewFunctionId, input: BytesLike) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>>;
78
+ executeViewFunction: GenericRuntimeApiMethod<(queryId: FrameSupportViewFunctionsViewFunctionId, input: BytesLike) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>>;
79
79
  /**
80
80
  * Generic runtime api call
81
81
  **/
82
- [method: string]: GenericRuntimeApiMethod<Rv>;
82
+ [method: string]: GenericRuntimeApiMethod;
83
83
  };
84
84
  /**
85
85
  * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
@@ -94,20 +94,20 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
94
94
  * @callname: BlockBuilder_apply_extrinsic
95
95
  * @param {UncheckedExtrinsicLike} extrinsic
96
96
  **/
97
- applyExtrinsic: GenericRuntimeApiMethod<Rv, (extrinsic: UncheckedExtrinsicLike) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
97
+ applyExtrinsic: GenericRuntimeApiMethod<(extrinsic: UncheckedExtrinsicLike) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
98
98
  /**
99
99
  * Finish the current block.
100
100
  *
101
101
  * @callname: BlockBuilder_finalize_block
102
102
  **/
103
- finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
103
+ finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
104
104
  /**
105
105
  * Generate inherent extrinsics. The inherent data will vary from chain to chain.
106
106
  *
107
107
  * @callname: BlockBuilder_inherent_extrinsics
108
108
  * @param {SpInherentsInherentData} inherent
109
109
  **/
110
- inherentExtrinsics: GenericRuntimeApiMethod<Rv, (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>>;
110
+ inherentExtrinsics: GenericRuntimeApiMethod<(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>>;
111
111
  /**
112
112
  * Check that the inherents are valid. The inherent data will vary from chain to chain.
113
113
  *
@@ -115,11 +115,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
115
115
  * @param {SpRuntimeBlock} block
116
116
  * @param {SpInherentsInherentData} data
117
117
  **/
118
- checkInherents: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>>;
118
+ checkInherents: GenericRuntimeApiMethod<(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>>;
119
119
  /**
120
120
  * Generic runtime api call
121
121
  **/
122
- [method: string]: GenericRuntimeApiMethod<Rv>;
122
+ [method: string]: GenericRuntimeApiMethod;
123
123
  };
124
124
  /**
125
125
  * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
@@ -141,11 +141,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
141
141
  * @param {UncheckedExtrinsicLike} tx
142
142
  * @param {H256} block_hash
143
143
  **/
144
- validateTransaction: GenericRuntimeApiMethod<Rv, (source: SpRuntimeTransactionValidityTransactionSource, tx: UncheckedExtrinsicLike, blockHash: H256) => Promise<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
144
+ validateTransaction: GenericRuntimeApiMethod<(source: SpRuntimeTransactionValidityTransactionSource, tx: UncheckedExtrinsicLike, blockHash: H256) => Promise<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
145
145
  /**
146
146
  * Generic runtime api call
147
147
  **/
148
- [method: string]: GenericRuntimeApiMethod<Rv>;
148
+ [method: string]: GenericRuntimeApiMethod;
149
149
  };
150
150
  /**
151
151
  * @runtimeapi: ValidateStatement - 0xbe9fb0c91a8046cf
@@ -158,11 +158,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
158
158
  * @param {SpStatementStoreRuntimeApiStatementSource} source
159
159
  * @param {SpStatementStoreStatement} statement
160
160
  **/
161
- validateStatement: GenericRuntimeApiMethod<Rv, (source: SpStatementStoreRuntimeApiStatementSource, statement: SpStatementStoreStatement) => Promise<Result<SpStatementStoreRuntimeApiValidStatement, SpStatementStoreRuntimeApiInvalidStatement>>>;
161
+ validateStatement: GenericRuntimeApiMethod<(source: SpStatementStoreRuntimeApiStatementSource, statement: SpStatementStoreStatement) => Promise<Result<SpStatementStoreRuntimeApiValidStatement, SpStatementStoreRuntimeApiInvalidStatement>>>;
162
162
  /**
163
163
  * Generic runtime api call
164
164
  **/
165
- [method: string]: GenericRuntimeApiMethod<Rv>;
165
+ [method: string]: GenericRuntimeApiMethod;
166
166
  };
167
167
  /**
168
168
  * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
@@ -174,11 +174,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
174
174
  * @callname: OffchainWorkerApi_offchain_worker
175
175
  * @param {Header} header
176
176
  **/
177
- offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
177
+ offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
178
178
  /**
179
179
  * Generic runtime api call
180
180
  **/
181
- [method: string]: GenericRuntimeApiMethod<Rv>;
181
+ [method: string]: GenericRuntimeApiMethod;
182
182
  };
183
183
  /**
184
184
  * @runtimeapi: GrandpaApi - 0xed99c5acb25eedf5
@@ -194,7 +194,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
194
194
  *
195
195
  * @callname: GrandpaApi_grandpa_authorities
196
196
  **/
197
- grandpaAuthorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<[SpConsensusGrandpaAppPublic, bigint]>>>;
197
+ grandpaAuthorities: GenericRuntimeApiMethod<() => Promise<Array<[SpConsensusGrandpaAppPublic, bigint]>>>;
198
198
  /**
199
199
  * Submits an unsigned extrinsic to report an equivocation. The caller
200
200
  * must provide the equivocation proof and a key ownership proof
@@ -209,7 +209,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
209
209
  * @param {SpConsensusGrandpaEquivocationProof} equivocation_proof
210
210
  * @param {SpRuntimeOpaqueValue} key_owner_proof
211
211
  **/
212
- submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<Rv, (equivocationProof: SpConsensusGrandpaEquivocationProof, keyOwnerProof: SpRuntimeOpaqueValue) => Promise<[] | undefined>>;
212
+ submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<(equivocationProof: SpConsensusGrandpaEquivocationProof, keyOwnerProof: SpRuntimeOpaqueValue) => Promise<[] | undefined>>;
213
213
  /**
214
214
  * Generates a proof of key ownership for the given authority in the
215
215
  * given set. An example usage of this module is coupled with the
@@ -227,17 +227,17 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
227
227
  * @param {bigint} set_id
228
228
  * @param {SpConsensusGrandpaAppPublic} authority_id
229
229
  **/
230
- generateKeyOwnershipProof: GenericRuntimeApiMethod<Rv, (setId: bigint, authorityId: SpConsensusGrandpaAppPublic) => Promise<SpRuntimeOpaqueValue | undefined>>;
230
+ generateKeyOwnershipProof: GenericRuntimeApiMethod<(setId: bigint, authorityId: SpConsensusGrandpaAppPublic) => Promise<SpRuntimeOpaqueValue | undefined>>;
231
231
  /**
232
232
  * Get current GRANDPA authority set id.
233
233
  *
234
234
  * @callname: GrandpaApi_current_set_id
235
235
  **/
236
- currentSetId: GenericRuntimeApiMethod<Rv, () => Promise<bigint>>;
236
+ currentSetId: GenericRuntimeApiMethod<() => Promise<bigint>>;
237
237
  /**
238
238
  * Generic runtime api call
239
239
  **/
240
- [method: string]: GenericRuntimeApiMethod<Rv>;
240
+ [method: string]: GenericRuntimeApiMethod;
241
241
  };
242
242
  /**
243
243
  * @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
@@ -249,7 +249,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
249
249
  * @callname: NominationPoolsApi_pending_rewards
250
250
  * @param {AccountId32Like} who
251
251
  **/
252
- pendingRewards: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
252
+ pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
253
253
  /**
254
254
  * Returns the equivalent balance of `points` for a given pool.
255
255
  *
@@ -257,7 +257,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
257
257
  * @param {number} pool_id
258
258
  * @param {bigint} points
259
259
  **/
260
- pointsToBalance: GenericRuntimeApiMethod<Rv, (poolId: number, points: bigint) => Promise<bigint>>;
260
+ pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
261
261
  /**
262
262
  * Returns the equivalent points of `new_funds` for a given pool.
263
263
  *
@@ -265,14 +265,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
265
265
  * @param {number} pool_id
266
266
  * @param {bigint} new_funds
267
267
  **/
268
- balanceToPoints: GenericRuntimeApiMethod<Rv, (poolId: number, newFunds: bigint) => Promise<bigint>>;
268
+ balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
269
269
  /**
270
270
  * Returns the pending slash for a given pool.
271
271
  *
272
272
  * @callname: NominationPoolsApi_pool_pending_slash
273
273
  * @param {number} pool_id
274
274
  **/
275
- poolPendingSlash: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
275
+ poolPendingSlash: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
276
276
  /**
277
277
  * Returns the pending slash for a given pool member.
278
278
  *
@@ -282,7 +282,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
282
282
  * @callname: NominationPoolsApi_member_pending_slash
283
283
  * @param {AccountId32Like} member
284
284
  **/
285
- memberPendingSlash: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<bigint>>;
285
+ memberPendingSlash: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<bigint>>;
286
286
  /**
287
287
  * Returns true if the pool with `pool_id` needs migration.
288
288
  *
@@ -296,7 +296,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
296
296
  * @callname: NominationPoolsApi_pool_needs_delegate_migration
297
297
  * @param {number} pool_id
298
298
  **/
299
- poolNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<boolean>>;
299
+ poolNeedsDelegateMigration: GenericRuntimeApiMethod<(poolId: number) => Promise<boolean>>;
300
300
  /**
301
301
  * Returns true if the delegated funds of the pool `member` needs migration.
302
302
  *
@@ -309,32 +309,32 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
309
309
  * @callname: NominationPoolsApi_member_needs_delegate_migration
310
310
  * @param {AccountId32Like} member
311
311
  **/
312
- memberNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<boolean>>;
312
+ memberNeedsDelegateMigration: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<boolean>>;
313
313
  /**
314
314
  * Returns the total contribution of a pool member including any balance that is unbonding.
315
315
  *
316
316
  * @callname: NominationPoolsApi_member_total_balance
317
317
  * @param {AccountId32Like} who
318
318
  **/
319
- memberTotalBalance: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
319
+ memberTotalBalance: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
320
320
  /**
321
321
  * Total balance contributed to the pool.
322
322
  *
323
323
  * @callname: NominationPoolsApi_pool_balance
324
324
  * @param {number} pool_id
325
325
  **/
326
- poolBalance: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
326
+ poolBalance: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
327
327
  /**
328
328
  * Returns the bonded account and reward account associated with the pool_id.
329
329
  *
330
330
  * @callname: NominationPoolsApi_pool_accounts
331
331
  * @param {number} pool_id
332
332
  **/
333
- poolAccounts: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<[AccountId32, AccountId32]>>;
333
+ poolAccounts: GenericRuntimeApiMethod<(poolId: number) => Promise<[AccountId32, AccountId32]>>;
334
334
  /**
335
335
  * Generic runtime api call
336
336
  **/
337
- [method: string]: GenericRuntimeApiMethod<Rv>;
337
+ [method: string]: GenericRuntimeApiMethod;
338
338
  };
339
339
  /**
340
340
  * @runtimeapi: StakingApi - 0x18ef58a3b67ba770
@@ -346,7 +346,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
346
346
  * @callname: StakingApi_nominations_quota
347
347
  * @param {bigint} balance
348
348
  **/
349
- nominationsQuota: GenericRuntimeApiMethod<Rv, (balance: bigint) => Promise<number>>;
349
+ nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
350
350
  /**
351
351
  * Returns the page count of exposures for a validator `account` in a given era.
352
352
  *
@@ -354,7 +354,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
354
354
  * @param {number} era
355
355
  * @param {AccountId32Like} account
356
356
  **/
357
- erasStakersPageCount: GenericRuntimeApiMethod<Rv, (era: number, account: AccountId32Like) => Promise<number>>;
357
+ erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
358
358
  /**
359
359
  * Returns true if validator `account` has pages to be claimed for the given era.
360
360
  *
@@ -362,11 +362,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
362
362
  * @param {number} era
363
363
  * @param {AccountId32Like} account
364
364
  **/
365
- pendingRewards: GenericRuntimeApiMethod<Rv, (era: number, account: AccountId32Like) => Promise<boolean>>;
365
+ pendingRewards: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<boolean>>;
366
366
  /**
367
367
  * Generic runtime api call
368
368
  **/
369
- [method: string]: GenericRuntimeApiMethod<Rv>;
369
+ [method: string]: GenericRuntimeApiMethod;
370
370
  };
371
371
  /**
372
372
  * @runtimeapi: BabeApi - 0xcbca25e39f142387
@@ -377,26 +377,26 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
377
377
  *
378
378
  * @callname: BabeApi_configuration
379
379
  **/
380
- configuration: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusBabeBabeConfiguration>>;
380
+ configuration: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeBabeConfiguration>>;
381
381
  /**
382
382
  * Returns the slot that started the current epoch.
383
383
  *
384
384
  * @callname: BabeApi_current_epoch_start
385
385
  **/
386
- currentEpochStart: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusSlotsSlot>>;
386
+ currentEpochStart: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlot>>;
387
387
  /**
388
388
  * Returns information regarding the current epoch.
389
389
  *
390
390
  * @callname: BabeApi_current_epoch
391
391
  **/
392
- currentEpoch: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusBabeEpoch>>;
392
+ currentEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
393
393
  /**
394
394
  * Returns information regarding the next epoch (which was already
395
395
  * previously announced).
396
396
  *
397
397
  * @callname: BabeApi_next_epoch
398
398
  **/
399
- nextEpoch: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusBabeEpoch>>;
399
+ nextEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
400
400
  /**
401
401
  * Generates a proof of key ownership for the given authority in the
402
402
  * current epoch. An example usage of this module is coupled with the
@@ -414,7 +414,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
414
414
  * @param {SpConsensusSlotsSlot} slot
415
415
  * @param {SpConsensusBabeAppPublic} authority_id
416
416
  **/
417
- generateKeyOwnershipProof: GenericRuntimeApiMethod<Rv, (slot: SpConsensusSlotsSlot, authorityId: SpConsensusBabeAppPublic) => Promise<SpConsensusBabeOpaqueKeyOwnershipProof | undefined>>;
417
+ generateKeyOwnershipProof: GenericRuntimeApiMethod<(slot: SpConsensusSlotsSlot, authorityId: SpConsensusBabeAppPublic) => Promise<SpConsensusBabeOpaqueKeyOwnershipProof | undefined>>;
418
418
  /**
419
419
  * Submits an unsigned extrinsic to report an equivocation. The caller
420
420
  * must provide the equivocation proof and a key ownership proof
@@ -429,11 +429,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
429
429
  * @param {SpConsensusSlotsEquivocationProof} equivocation_proof
430
430
  * @param {SpConsensusBabeOpaqueKeyOwnershipProof} key_owner_proof
431
431
  **/
432
- submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<Rv, (equivocationProof: SpConsensusSlotsEquivocationProof, keyOwnerProof: SpConsensusBabeOpaqueKeyOwnershipProof) => Promise<[] | undefined>>;
432
+ submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<(equivocationProof: SpConsensusSlotsEquivocationProof, keyOwnerProof: SpConsensusBabeOpaqueKeyOwnershipProof) => Promise<[] | undefined>>;
433
433
  /**
434
434
  * Generic runtime api call
435
435
  **/
436
- [method: string]: GenericRuntimeApiMethod<Rv>;
436
+ [method: string]: GenericRuntimeApiMethod;
437
437
  };
438
438
  /**
439
439
  * @runtimeapi: AuthorityDiscoveryApi - 0x687ad44ad37f03c2
@@ -444,11 +444,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
444
444
  *
445
445
  * @callname: AuthorityDiscoveryApi_authorities
446
446
  **/
447
- authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpAuthorityDiscoveryAppPublic>>>;
447
+ authorities: GenericRuntimeApiMethod<() => Promise<Array<SpAuthorityDiscoveryAppPublic>>>;
448
448
  /**
449
449
  * Generic runtime api call
450
450
  **/
451
- [method: string]: GenericRuntimeApiMethod<Rv>;
451
+ [method: string]: GenericRuntimeApiMethod;
452
452
  };
453
453
  /**
454
454
  * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
@@ -460,11 +460,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
460
460
  * @callname: AccountNonceApi_account_nonce
461
461
  * @param {AccountId32Like} account
462
462
  **/
463
- accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
463
+ accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
464
464
  /**
465
465
  * Generic runtime api call
466
466
  **/
467
- [method: string]: GenericRuntimeApiMethod<Rv>;
467
+ [method: string]: GenericRuntimeApiMethod;
468
468
  };
469
469
  /**
470
470
  * @runtimeapi: AssetsApi - 0x8453b50b22293977
@@ -476,11 +476,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
476
476
  * @callname: AssetsApi_account_balances
477
477
  * @param {AccountId32Like} account
478
478
  **/
479
- accountBalances: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<Array<[number, bigint]>>>;
479
+ accountBalances: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<Array<[number, bigint]>>>;
480
480
  /**
481
481
  * Generic runtime api call
482
482
  **/
483
- [method: string]: GenericRuntimeApiMethod<Rv>;
483
+ [method: string]: GenericRuntimeApiMethod;
484
484
  };
485
485
  /**
486
486
  * @runtimeapi: ContractsApi - 0x68b66ba122c93fa7
@@ -499,7 +499,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
499
499
  * @param {bigint | undefined} storage_deposit_limit
500
500
  * @param {BytesLike} input_data
501
501
  **/
502
- call: GenericRuntimeApiMethod<Rv, (origin: AccountId32Like, dest: AccountId32Like, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, inputData: BytesLike) => Promise<PalletContractsPrimitivesContractResult>>;
502
+ call: GenericRuntimeApiMethod<(origin: AccountId32Like, dest: AccountId32Like, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, inputData: BytesLike) => Promise<PalletContractsPrimitivesContractResult>>;
503
503
  /**
504
504
  * Instantiate a new contract.
505
505
  *
@@ -514,7 +514,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
514
514
  * @param {BytesLike} data
515
515
  * @param {BytesLike} salt
516
516
  **/
517
- instantiate: GenericRuntimeApiMethod<Rv, (origin: AccountId32Like, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, code: PalletContractsPrimitivesCode, data: BytesLike, salt: BytesLike) => Promise<PalletContractsPrimitivesContractResultResult>>;
517
+ instantiate: GenericRuntimeApiMethod<(origin: AccountId32Like, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, code: PalletContractsPrimitivesCode, data: BytesLike, salt: BytesLike) => Promise<PalletContractsPrimitivesContractResultResult>>;
518
518
  /**
519
519
  * Upload new code without instantiating a contract from it.
520
520
  *
@@ -526,7 +526,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
526
526
  * @param {bigint | undefined} storage_deposit_limit
527
527
  * @param {PalletContractsWasmDeterminism} determinism
528
528
  **/
529
- uploadCode: GenericRuntimeApiMethod<Rv, (origin: AccountId32Like, code: BytesLike, storageDepositLimit: bigint | undefined, determinism: PalletContractsWasmDeterminism) => Promise<Result<PalletContractsPrimitivesCodeUploadReturnValue, DispatchError>>>;
529
+ uploadCode: GenericRuntimeApiMethod<(origin: AccountId32Like, code: BytesLike, storageDepositLimit: bigint | undefined, determinism: PalletContractsWasmDeterminism) => Promise<Result<PalletContractsPrimitivesCodeUploadReturnValue, DispatchError>>>;
530
530
  /**
531
531
  * Query a given storage key in a given contract.
532
532
  *
@@ -538,11 +538,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
538
538
  * @param {AccountId32Like} address
539
539
  * @param {BytesLike} key
540
540
  **/
541
- getStorage: GenericRuntimeApiMethod<Rv, (address: AccountId32Like, key: BytesLike) => Promise<Result<Bytes | undefined, PalletContractsPrimitivesContractAccessError>>>;
541
+ getStorage: GenericRuntimeApiMethod<(address: AccountId32Like, key: BytesLike) => Promise<Result<Bytes | undefined, PalletContractsPrimitivesContractAccessError>>>;
542
542
  /**
543
543
  * Generic runtime api call
544
544
  **/
545
- [method: string]: GenericRuntimeApiMethod<Rv>;
545
+ [method: string]: GenericRuntimeApiMethod;
546
546
  };
547
547
  /**
548
548
  * @runtimeapi: ReviveApi - 0x8c403e5c4a9fd442
@@ -553,27 +553,27 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
553
553
  *
554
554
  * @callname: ReviveApi_block_gas_limit
555
555
  **/
556
- blockGasLimit: GenericRuntimeApiMethod<Rv, () => Promise<U256>>;
556
+ blockGasLimit: GenericRuntimeApiMethod<() => Promise<U256>>;
557
557
  /**
558
558
  * Returns the free balance of the given `[H160]` address, using EVM decimals.
559
559
  *
560
560
  * @callname: ReviveApi_balance
561
561
  * @param {H160} address
562
562
  **/
563
- balance: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<U256>>;
563
+ balance: GenericRuntimeApiMethod<(address: H160) => Promise<U256>>;
564
564
  /**
565
565
  * Returns the gas price.
566
566
  *
567
567
  * @callname: ReviveApi_gas_price
568
568
  **/
569
- gasPrice: GenericRuntimeApiMethod<Rv, () => Promise<U256>>;
569
+ gasPrice: GenericRuntimeApiMethod<() => Promise<U256>>;
570
570
  /**
571
571
  * Returns the nonce of the given `[H160]` address.
572
572
  *
573
573
  * @callname: ReviveApi_nonce
574
574
  * @param {H160} address
575
575
  **/
576
- nonce: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<number>>;
576
+ nonce: GenericRuntimeApiMethod<(address: H160) => Promise<number>>;
577
577
  /**
578
578
  * Perform a call from a specified account to a given contract.
579
579
  *
@@ -587,7 +587,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
587
587
  * @param {bigint | undefined} storage_deposit_limit
588
588
  * @param {BytesLike} input_data
589
589
  **/
590
- call: GenericRuntimeApiMethod<Rv, (origin: AccountId32Like, dest: H160, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, inputData: BytesLike) => Promise<PalletRevivePrimitivesContractResult>>;
590
+ call: GenericRuntimeApiMethod<(origin: AccountId32Like, dest: H160, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, inputData: BytesLike) => Promise<PalletRevivePrimitivesContractResult>>;
591
591
  /**
592
592
  * Instantiate a new contract.
593
593
  *
@@ -602,7 +602,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
602
602
  * @param {BytesLike} data
603
603
  * @param {FixedBytes<32> | undefined} salt
604
604
  **/
605
- instantiate: GenericRuntimeApiMethod<Rv, (origin: AccountId32Like, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, code: PalletRevivePrimitivesCode, data: BytesLike, salt?: FixedBytes<32> | undefined) => Promise<PalletRevivePrimitivesContractResultInstantiateReturnValue>>;
605
+ instantiate: GenericRuntimeApiMethod<(origin: AccountId32Like, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, code: PalletRevivePrimitivesCode, data: BytesLike, salt?: FixedBytes<32> | undefined) => Promise<PalletRevivePrimitivesContractResultInstantiateReturnValue>>;
606
606
  /**
607
607
  * Perform an Ethereum call.
608
608
  *
@@ -611,7 +611,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
611
611
  * @callname: ReviveApi_eth_transact
612
612
  * @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
613
613
  **/
614
- ethTransact: GenericRuntimeApiMethod<Rv, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>>;
614
+ ethTransact: GenericRuntimeApiMethod<(tx: PalletReviveEvmApiRpcTypesGenGenericTransaction) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>>;
615
615
  /**
616
616
  * Upload new code without instantiating a contract from it.
617
617
  *
@@ -622,7 +622,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
622
622
  * @param {BytesLike} code
623
623
  * @param {bigint | undefined} storage_deposit_limit
624
624
  **/
625
- uploadCode: GenericRuntimeApiMethod<Rv, (origin: AccountId32Like, code: BytesLike, storageDepositLimit?: bigint | undefined) => Promise<Result<PalletRevivePrimitivesCodeUploadReturnValue, DispatchError>>>;
625
+ uploadCode: GenericRuntimeApiMethod<(origin: AccountId32Like, code: BytesLike, storageDepositLimit?: bigint | undefined) => Promise<Result<PalletRevivePrimitivesCodeUploadReturnValue, DispatchError>>>;
626
626
  /**
627
627
  * Query a given storage key in a given contract.
628
628
  *
@@ -634,7 +634,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
634
634
  * @param {H160} address
635
635
  * @param {FixedBytes<32>} key
636
636
  **/
637
- getStorage: GenericRuntimeApiMethod<Rv, (address: H160, key: FixedBytes<32>) => Promise<Result<Bytes | undefined, PalletRevivePrimitivesContractAccessError>>>;
637
+ getStorage: GenericRuntimeApiMethod<(address: H160, key: FixedBytes<32>) => Promise<Result<Bytes | undefined, PalletRevivePrimitivesContractAccessError>>>;
638
638
  /**
639
639
  * Traces the execution of an entire block and returns call traces.
640
640
  *
@@ -647,7 +647,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
647
647
  * @param {SpRuntimeBlock} block
648
648
  * @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
649
649
  **/
650
- traceBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock, config: PalletReviveEvmApiDebugRpcTypesTracerType) => Promise<Array<[number, PalletReviveEvmApiDebugRpcTypesTrace]>>>;
650
+ traceBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock, config: PalletReviveEvmApiDebugRpcTypesTracerType) => Promise<Array<[number, PalletReviveEvmApiDebugRpcTypesTrace]>>>;
651
651
  /**
652
652
  * Traces the execution of a specific transaction within a block.
653
653
  *
@@ -661,7 +661,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
661
661
  * @param {number} tx_index
662
662
  * @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
663
663
  **/
664
- traceTx: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock, txIndex: number, config: PalletReviveEvmApiDebugRpcTypesTracerType) => Promise<PalletReviveEvmApiDebugRpcTypesTrace | undefined>>;
664
+ traceTx: GenericRuntimeApiMethod<(block: SpRuntimeBlock, txIndex: number, config: PalletReviveEvmApiDebugRpcTypesTracerType) => Promise<PalletReviveEvmApiDebugRpcTypesTrace | undefined>>;
665
665
  /**
666
666
  * Dry run and return the trace of the given call.
667
667
  *
@@ -671,11 +671,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
671
671
  * @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
672
672
  * @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
673
673
  **/
674
- traceCall: GenericRuntimeApiMethod<Rv, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction, config: PalletReviveEvmApiDebugRpcTypesTracerType) => Promise<Result<PalletReviveEvmApiDebugRpcTypesTrace, PalletRevivePrimitivesEthTransactError>>>;
674
+ traceCall: GenericRuntimeApiMethod<(tx: PalletReviveEvmApiRpcTypesGenGenericTransaction, config: PalletReviveEvmApiDebugRpcTypesTracerType) => Promise<Result<PalletReviveEvmApiDebugRpcTypesTrace, PalletRevivePrimitivesEthTransactError>>>;
675
675
  /**
676
676
  * Generic runtime api call
677
677
  **/
678
- [method: string]: GenericRuntimeApiMethod<Rv>;
678
+ [method: string]: GenericRuntimeApiMethod;
679
679
  };
680
680
  /**
681
681
  * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
@@ -687,30 +687,30 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
687
687
  * @param {UncheckedExtrinsicLike} uxt
688
688
  * @param {number} len
689
689
  **/
690
- queryInfo: GenericRuntimeApiMethod<Rv, (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
690
+ queryInfo: GenericRuntimeApiMethod<(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
691
691
  /**
692
692
  *
693
693
  * @callname: TransactionPaymentApi_query_fee_details
694
694
  * @param {UncheckedExtrinsicLike} uxt
695
695
  * @param {number} len
696
696
  **/
697
- queryFeeDetails: GenericRuntimeApiMethod<Rv, (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
697
+ queryFeeDetails: GenericRuntimeApiMethod<(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
698
698
  /**
699
699
  *
700
700
  * @callname: TransactionPaymentApi_query_weight_to_fee
701
701
  * @param {SpWeightsWeightV2Weight} weight
702
702
  **/
703
- queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
703
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
704
704
  /**
705
705
  *
706
706
  * @callname: TransactionPaymentApi_query_length_to_fee
707
707
  * @param {number} length
708
708
  **/
709
- queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
709
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
710
710
  /**
711
711
  * Generic runtime api call
712
712
  **/
713
- [method: string]: GenericRuntimeApiMethod<Rv>;
713
+ [method: string]: GenericRuntimeApiMethod;
714
714
  };
715
715
  /**
716
716
  * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
@@ -728,7 +728,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
728
728
  * @param {bigint} amount
729
729
  * @param {boolean} include_fee
730
730
  **/
731
- quotePriceTokensForExactTokens: GenericRuntimeApiMethod<Rv, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId, amount: bigint, includeFee: boolean) => Promise<bigint | undefined>>;
731
+ quotePriceTokensForExactTokens: GenericRuntimeApiMethod<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId, amount: bigint, includeFee: boolean) => Promise<bigint | undefined>>;
732
732
  /**
733
733
  * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
734
734
  *
@@ -741,7 +741,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
741
741
  * @param {bigint} amount
742
742
  * @param {boolean} include_fee
743
743
  **/
744
- quotePriceExactTokensForTokens: GenericRuntimeApiMethod<Rv, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId, amount: bigint, includeFee: boolean) => Promise<bigint | undefined>>;
744
+ quotePriceExactTokensForTokens: GenericRuntimeApiMethod<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId, amount: bigint, includeFee: boolean) => Promise<bigint | undefined>>;
745
745
  /**
746
746
  * Returns the size of the liquidity pool for the given asset pair.
747
747
  *
@@ -749,11 +749,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
749
749
  * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset1
750
750
  * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset2
751
751
  **/
752
- getReserves: GenericRuntimeApiMethod<Rv, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId) => Promise<[bigint, bigint] | undefined>>;
752
+ getReserves: GenericRuntimeApiMethod<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId) => Promise<[bigint, bigint] | undefined>>;
753
753
  /**
754
754
  * Generic runtime api call
755
755
  **/
756
- [method: string]: GenericRuntimeApiMethod<Rv>;
756
+ [method: string]: GenericRuntimeApiMethod;
757
757
  };
758
758
  /**
759
759
  * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
@@ -766,7 +766,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
766
766
  * @param {KitchensinkRuntimeRuntimeCallLike} call
767
767
  * @param {number} len
768
768
  **/
769
- queryCallInfo: GenericRuntimeApiMethod<Rv, (call: KitchensinkRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
769
+ queryCallInfo: GenericRuntimeApiMethod<(call: KitchensinkRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
770
770
  /**
771
771
  * Query fee details of a given encoded `Call`.
772
772
  *
@@ -774,25 +774,25 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
774
774
  * @param {KitchensinkRuntimeRuntimeCallLike} call
775
775
  * @param {number} len
776
776
  **/
777
- queryCallFeeDetails: GenericRuntimeApiMethod<Rv, (call: KitchensinkRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
777
+ queryCallFeeDetails: GenericRuntimeApiMethod<(call: KitchensinkRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
778
778
  /**
779
779
  * Query the output of the current `WeightToFee` given some input.
780
780
  *
781
781
  * @callname: TransactionPaymentCallApi_query_weight_to_fee
782
782
  * @param {SpWeightsWeightV2Weight} weight
783
783
  **/
784
- queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
784
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
785
785
  /**
786
786
  * Query the output of the current `LengthToFee` given some input.
787
787
  *
788
788
  * @callname: TransactionPaymentCallApi_query_length_to_fee
789
789
  * @param {number} length
790
790
  **/
791
- queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
791
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
792
792
  /**
793
793
  * Generic runtime api call
794
794
  **/
795
- [method: string]: GenericRuntimeApiMethod<Rv>;
795
+ [method: string]: GenericRuntimeApiMethod;
796
796
  };
797
797
  /**
798
798
  * @runtimeapi: NftsApi - 0x899a250cbe84f250
@@ -804,13 +804,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
804
804
  * @param {number} collection
805
805
  * @param {number} item
806
806
  **/
807
- owner: GenericRuntimeApiMethod<Rv, (collection: number, item: number) => Promise<AccountId32 | undefined>>;
807
+ owner: GenericRuntimeApiMethod<(collection: number, item: number) => Promise<AccountId32 | undefined>>;
808
808
  /**
809
809
  *
810
810
  * @callname: NftsApi_collection_owner
811
811
  * @param {number} collection
812
812
  **/
813
- collectionOwner: GenericRuntimeApiMethod<Rv, (collection: number) => Promise<AccountId32 | undefined>>;
813
+ collectionOwner: GenericRuntimeApiMethod<(collection: number) => Promise<AccountId32 | undefined>>;
814
814
  /**
815
815
  *
816
816
  * @callname: NftsApi_attribute
@@ -818,7 +818,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
818
818
  * @param {number} item
819
819
  * @param {BytesLike} key
820
820
  **/
821
- attribute: GenericRuntimeApiMethod<Rv, (collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>>;
821
+ attribute: GenericRuntimeApiMethod<(collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>>;
822
822
  /**
823
823
  *
824
824
  * @callname: NftsApi_custom_attribute
@@ -827,7 +827,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
827
827
  * @param {number} item
828
828
  * @param {BytesLike} key
829
829
  **/
830
- customAttribute: GenericRuntimeApiMethod<Rv, (account: AccountId32Like, collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>>;
830
+ customAttribute: GenericRuntimeApiMethod<(account: AccountId32Like, collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>>;
831
831
  /**
832
832
  *
833
833
  * @callname: NftsApi_system_attribute
@@ -835,18 +835,18 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
835
835
  * @param {number | undefined} item
836
836
  * @param {BytesLike} key
837
837
  **/
838
- systemAttribute: GenericRuntimeApiMethod<Rv, (collection: number, item: number | undefined, key: BytesLike) => Promise<Bytes | undefined>>;
838
+ systemAttribute: GenericRuntimeApiMethod<(collection: number, item: number | undefined, key: BytesLike) => Promise<Bytes | undefined>>;
839
839
  /**
840
840
  *
841
841
  * @callname: NftsApi_collection_attribute
842
842
  * @param {number} collection
843
843
  * @param {BytesLike} key
844
844
  **/
845
- collectionAttribute: GenericRuntimeApiMethod<Rv, (collection: number, key: BytesLike) => Promise<Bytes | undefined>>;
845
+ collectionAttribute: GenericRuntimeApiMethod<(collection: number, key: BytesLike) => Promise<Bytes | undefined>>;
846
846
  /**
847
847
  * Generic runtime api call
848
848
  **/
849
- [method: string]: GenericRuntimeApiMethod<Rv>;
849
+ [method: string]: GenericRuntimeApiMethod;
850
850
  };
851
851
  /**
852
852
  * @runtimeapi: BeefyApi - 0x49eaaf1b548a0cb0
@@ -857,13 +857,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
857
857
  *
858
858
  * @callname: BeefyApi_beefy_genesis
859
859
  **/
860
- beefyGenesis: GenericRuntimeApiMethod<Rv, () => Promise<number | undefined>>;
860
+ beefyGenesis: GenericRuntimeApiMethod<() => Promise<number | undefined>>;
861
861
  /**
862
862
  * Return the current active BEEFY validator set
863
863
  *
864
864
  * @callname: BeefyApi_validator_set
865
865
  **/
866
- validatorSet: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusBeefyValidatorSet | undefined>>;
866
+ validatorSet: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyValidatorSet | undefined>>;
867
867
  /**
868
868
  * Submits an unsigned extrinsic to report a double voting equivocation. The caller
869
869
  * must provide the double voting proof and a key ownership proof
@@ -878,7 +878,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
878
878
  * @param {SpConsensusBeefyDoubleVotingProof} equivocation_proof
879
879
  * @param {SpRuntimeOpaqueValue} key_owner_proof
880
880
  **/
881
- submitReportDoubleVotingUnsignedExtrinsic: GenericRuntimeApiMethod<Rv, (equivocationProof: SpConsensusBeefyDoubleVotingProof, keyOwnerProof: SpRuntimeOpaqueValue) => Promise<[] | undefined>>;
881
+ submitReportDoubleVotingUnsignedExtrinsic: GenericRuntimeApiMethod<(equivocationProof: SpConsensusBeefyDoubleVotingProof, keyOwnerProof: SpRuntimeOpaqueValue) => Promise<[] | undefined>>;
882
882
  /**
883
883
  * Submits an unsigned extrinsic to report a fork voting equivocation. The caller
884
884
  * must provide the fork voting proof (the ancestry proof should be obtained using
@@ -893,7 +893,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
893
893
  * @param {SpConsensusBeefyForkVotingProofOpaqueValue} equivocation_proof
894
894
  * @param {SpRuntimeOpaqueValue} key_owner_proof
895
895
  **/
896
- submitReportForkVotingUnsignedExtrinsic: GenericRuntimeApiMethod<Rv, (equivocationProof: SpConsensusBeefyForkVotingProofOpaqueValue, keyOwnerProof: SpRuntimeOpaqueValue) => Promise<[] | undefined>>;
896
+ submitReportForkVotingUnsignedExtrinsic: GenericRuntimeApiMethod<(equivocationProof: SpConsensusBeefyForkVotingProofOpaqueValue, keyOwnerProof: SpRuntimeOpaqueValue) => Promise<[] | undefined>>;
897
897
  /**
898
898
  * Submits an unsigned extrinsic to report a future block voting equivocation. The caller
899
899
  * must provide the future block voting proof and a key ownership proof
@@ -908,7 +908,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
908
908
  * @param {SpConsensusBeefyFutureBlockVotingProof} equivocation_proof
909
909
  * @param {SpRuntimeOpaqueValue} key_owner_proof
910
910
  **/
911
- submitReportFutureBlockVotingUnsignedExtrinsic: GenericRuntimeApiMethod<Rv, (equivocationProof: SpConsensusBeefyFutureBlockVotingProof, keyOwnerProof: SpRuntimeOpaqueValue) => Promise<[] | undefined>>;
911
+ submitReportFutureBlockVotingUnsignedExtrinsic: GenericRuntimeApiMethod<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof, keyOwnerProof: SpRuntimeOpaqueValue) => Promise<[] | undefined>>;
912
912
  /**
913
913
  * Generates a proof of key ownership for the given authority in the
914
914
  * given set. An example usage of this module is coupled with the
@@ -926,7 +926,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
926
926
  * @param {bigint} set_id
927
927
  * @param {SpConsensusBeefyEcdsaCryptoPublic} authority_id
928
928
  **/
929
- generateKeyOwnershipProof: GenericRuntimeApiMethod<Rv, (setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>>;
929
+ generateKeyOwnershipProof: GenericRuntimeApiMethod<(setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>>;
930
930
  /**
931
931
  * Generates a proof that the `prev_block_number` is part of the canonical chain at
932
932
  * `best_known_block_number`.
@@ -935,11 +935,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
935
935
  * @param {number} prev_block_number
936
936
  * @param {number | undefined} best_known_block_number
937
937
  **/
938
- generateAncestryProof: GenericRuntimeApiMethod<Rv, (prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>>;
938
+ generateAncestryProof: GenericRuntimeApiMethod<(prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>>;
939
939
  /**
940
940
  * Generic runtime api call
941
941
  **/
942
- [method: string]: GenericRuntimeApiMethod<Rv>;
942
+ [method: string]: GenericRuntimeApiMethod;
943
943
  };
944
944
  /**
945
945
  * @runtimeapi: MmrApi - 0x91d5df18b0d2cf58
@@ -950,13 +950,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
950
950
  *
951
951
  * @callname: MmrApi_mmr_root
952
952
  **/
953
- mmrRoot: GenericRuntimeApiMethod<Rv, () => Promise<Result<H256, SpMmrPrimitivesError>>>;
953
+ mmrRoot: GenericRuntimeApiMethod<() => Promise<Result<H256, SpMmrPrimitivesError>>>;
954
954
  /**
955
955
  * Return the number of MMR blocks in the chain.
956
956
  *
957
957
  * @callname: MmrApi_mmr_leaf_count
958
958
  **/
959
- mmrLeafCount: GenericRuntimeApiMethod<Rv, () => Promise<Result<bigint, SpMmrPrimitivesError>>>;
959
+ mmrLeafCount: GenericRuntimeApiMethod<() => Promise<Result<bigint, SpMmrPrimitivesError>>>;
960
960
  /**
961
961
  * Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,
962
962
  * use historical MMR state at given block height `n`. Else, use current MMR state.
@@ -965,7 +965,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
965
965
  * @param {Array<number>} block_numbers
966
966
  * @param {number | undefined} best_known_block_number
967
967
  **/
968
- generateProof: GenericRuntimeApiMethod<Rv, (blockNumbers: Array<number>, bestKnownBlockNumber?: number | undefined) => Promise<Result<[Array<SpMmrPrimitivesEncodableOpaqueLeaf>, SpMmrPrimitivesLeafProof], SpMmrPrimitivesError>>>;
968
+ generateProof: GenericRuntimeApiMethod<(blockNumbers: Array<number>, bestKnownBlockNumber?: number | undefined) => Promise<Result<[Array<SpMmrPrimitivesEncodableOpaqueLeaf>, SpMmrPrimitivesLeafProof], SpMmrPrimitivesError>>>;
969
969
  /**
970
970
  * Verify MMR proof against on-chain MMR for a batch of leaves.
971
971
  *
@@ -977,7 +977,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
977
977
  * @param {Array<SpMmrPrimitivesEncodableOpaqueLeaf>} leaves
978
978
  * @param {SpMmrPrimitivesLeafProof} proof
979
979
  **/
980
- verifyProof: GenericRuntimeApiMethod<Rv, (leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>, proof: SpMmrPrimitivesLeafProof) => Promise<Result<[], SpMmrPrimitivesError>>>;
980
+ verifyProof: GenericRuntimeApiMethod<(leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>, proof: SpMmrPrimitivesLeafProof) => Promise<Result<[], SpMmrPrimitivesError>>>;
981
981
  /**
982
982
  * Verify MMR proof against given root hash for a batch of leaves.
983
983
  *
@@ -992,11 +992,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
992
992
  * @param {Array<SpMmrPrimitivesEncodableOpaqueLeaf>} leaves
993
993
  * @param {SpMmrPrimitivesLeafProof} proof
994
994
  **/
995
- verifyProofStateless: GenericRuntimeApiMethod<Rv, (root: H256, leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>, proof: SpMmrPrimitivesLeafProof) => Promise<Result<[], SpMmrPrimitivesError>>>;
995
+ verifyProofStateless: GenericRuntimeApiMethod<(root: H256, leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>, proof: SpMmrPrimitivesLeafProof) => Promise<Result<[], SpMmrPrimitivesError>>>;
996
996
  /**
997
997
  * Generic runtime api call
998
998
  **/
999
- [method: string]: GenericRuntimeApiMethod<Rv>;
999
+ [method: string]: GenericRuntimeApiMethod;
1000
1000
  };
1001
1001
  /**
1002
1002
  * @runtimeapi: MixnetApi - 0x6fd7c327202e4a8d
@@ -1007,19 +1007,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1007
1007
  *
1008
1008
  * @callname: MixnetApi_session_status
1009
1009
  **/
1010
- sessionStatus: GenericRuntimeApiMethod<Rv, () => Promise<SpMixnetSessionStatus>>;
1010
+ sessionStatus: GenericRuntimeApiMethod<() => Promise<SpMixnetSessionStatus>>;
1011
1011
  /**
1012
1012
  * Get the mixnode set for the previous session.
1013
1013
  *
1014
1014
  * @callname: MixnetApi_prev_mixnodes
1015
1015
  **/
1016
- prevMixnodes: GenericRuntimeApiMethod<Rv, () => Promise<Result<Array<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
1016
+ prevMixnodes: GenericRuntimeApiMethod<() => Promise<Result<Array<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
1017
1017
  /**
1018
1018
  * Get the mixnode set for the current session.
1019
1019
  *
1020
1020
  * @callname: MixnetApi_current_mixnodes
1021
1021
  **/
1022
- currentMixnodes: GenericRuntimeApiMethod<Rv, () => Promise<Result<Array<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
1022
+ currentMixnodes: GenericRuntimeApiMethod<() => Promise<Result<Array<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
1023
1023
  /**
1024
1024
  * Try to register a mixnode for the next session.
1025
1025
  *
@@ -1041,11 +1041,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1041
1041
  * @param {number} session_index
1042
1042
  * @param {SpMixnetMixnode} mixnode
1043
1043
  **/
1044
- maybeRegister: GenericRuntimeApiMethod<Rv, (sessionIndex: number, mixnode: SpMixnetMixnode) => Promise<boolean>>;
1044
+ maybeRegister: GenericRuntimeApiMethod<(sessionIndex: number, mixnode: SpMixnetMixnode) => Promise<boolean>>;
1045
1045
  /**
1046
1046
  * Generic runtime api call
1047
1047
  **/
1048
- [method: string]: GenericRuntimeApiMethod<Rv>;
1048
+ [method: string]: GenericRuntimeApiMethod;
1049
1049
  };
1050
1050
  /**
1051
1051
  * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
@@ -1063,7 +1063,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1063
1063
  * @callname: SessionKeys_generate_session_keys
1064
1064
  * @param {BytesLike | undefined} seed
1065
1065
  **/
1066
- generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
1066
+ generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
1067
1067
  /**
1068
1068
  * Decode the given public session keys.
1069
1069
  *
@@ -1072,11 +1072,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1072
1072
  * @callname: SessionKeys_decode_session_keys
1073
1073
  * @param {BytesLike} encoded
1074
1074
  **/
1075
- decodeSessionKeys: GenericRuntimeApiMethod<Rv, (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>>;
1075
+ decodeSessionKeys: GenericRuntimeApiMethod<(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>>;
1076
1076
  /**
1077
1077
  * Generic runtime api call
1078
1078
  **/
1079
- [method: string]: GenericRuntimeApiMethod<Rv>;
1079
+ [method: string]: GenericRuntimeApiMethod;
1080
1080
  };
1081
1081
  /**
1082
1082
  * @runtimeapi: AssetRewards - 0x65f855d6e093c2f1
@@ -1089,11 +1089,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1089
1089
  *
1090
1090
  * @callname: AssetRewards_pool_creation_cost
1091
1091
  **/
1092
- poolCreationCost: GenericRuntimeApiMethod<Rv, () => Promise<bigint>>;
1092
+ poolCreationCost: GenericRuntimeApiMethod<() => Promise<bigint>>;
1093
1093
  /**
1094
1094
  * Generic runtime api call
1095
1095
  **/
1096
- [method: string]: GenericRuntimeApiMethod<Rv>;
1096
+ [method: string]: GenericRuntimeApiMethod;
1097
1097
  };
1098
1098
  /**
1099
1099
  * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
@@ -1114,7 +1114,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1114
1114
  * @callname: GenesisBuilder_build_state
1115
1115
  * @param {BytesLike} json
1116
1116
  **/
1117
- buildState: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
1117
+ buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
1118
1118
  /**
1119
1119
  * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
1120
1120
  * `id`.
@@ -1134,7 +1134,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1134
1134
  * @callname: GenesisBuilder_get_preset
1135
1135
  * @param {string | undefined} id
1136
1136
  **/
1137
- getPreset: GenericRuntimeApiMethod<Rv, (id?: string | undefined) => Promise<Bytes | undefined>>;
1137
+ getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
1138
1138
  /**
1139
1139
  * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
1140
1140
  *
@@ -1143,10 +1143,10 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1143
1143
  *
1144
1144
  * @callname: GenesisBuilder_preset_names
1145
1145
  **/
1146
- presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
1146
+ presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
1147
1147
  /**
1148
1148
  * Generic runtime api call
1149
1149
  **/
1150
- [method: string]: GenericRuntimeApiMethod<Rv>;
1150
+ [method: string]: GenericRuntimeApiMethod;
1151
1151
  };
1152
1152
  }