@dedot/chaintypes 0.194.0 → 0.196.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.
- package/aleph/consts.d.ts +2 -2
- package/aleph/errors.d.ts +228 -228
- package/aleph/events.d.ts +122 -226
- package/aleph/index.d.ts +15 -17
- package/aleph/json-rpc.d.ts +3 -3
- package/aleph/query.d.ts +171 -207
- package/aleph/runtime.d.ts +47 -63
- package/aleph/tx.d.ts +377 -550
- package/aleph/view-functions.d.ts +2 -2
- package/astar/consts.d.ts +2 -2
- package/astar/errors.d.ts +431 -431
- package/astar/events.d.ts +232 -401
- package/astar/index.d.ts +15 -17
- package/astar/json-rpc.d.ts +3 -3
- package/astar/query.d.ts +243 -289
- package/astar/runtime.d.ts +59 -87
- package/astar/tx.d.ts +671 -980
- package/astar/view-functions.d.ts +2 -2
- package/basilisk/consts.d.ts +2 -2
- package/basilisk/errors.d.ts +489 -489
- package/basilisk/events.d.ts +187 -408
- package/basilisk/index.d.ts +15 -17
- package/basilisk/json-rpc.d.ts +3 -3
- package/basilisk/query.d.ts +213 -272
- package/basilisk/runtime.d.ts +27 -28
- package/basilisk/tx.d.ts +579 -842
- package/basilisk/view-functions.d.ts +2 -2
- package/hydration/consts.d.ts +47 -14
- package/hydration/errors.d.ts +827 -737
- package/hydration/events.d.ts +639 -527
- package/hydration/index.d.ts +16 -18
- package/hydration/json-rpc.d.ts +3 -3
- package/hydration/query.d.ts +530 -396
- package/hydration/runtime.d.ts +181 -89
- package/hydration/tx.d.ts +1130 -1167
- package/hydration/types.d.ts +889 -42
- package/hydration/view-functions.d.ts +2 -2
- package/kusama/consts.d.ts +2 -2
- package/kusama/errors.d.ts +571 -571
- package/kusama/events.d.ts +216 -477
- package/kusama/index.d.ts +15 -17
- package/kusama/json-rpc.d.ts +3 -3
- package/kusama/query.d.ts +360 -502
- package/kusama/runtime.d.ts +82 -131
- package/kusama/tx.d.ts +851 -1246
- package/kusama/view-functions.d.ts +7 -12
- package/kusama-asset-hub/consts.d.ts +2 -2
- package/kusama-asset-hub/errors.d.ts +653 -653
- package/kusama-asset-hub/events.d.ts +286 -629
- package/kusama-asset-hub/index.d.ts +16 -17
- package/kusama-asset-hub/json-rpc.d.ts +3 -3
- package/kusama-asset-hub/query.d.ts +316 -448
- package/kusama-asset-hub/runtime.d.ts +74 -111
- package/kusama-asset-hub/tx.d.ts +1059 -1558
- package/kusama-asset-hub/view-functions.d.ts +7 -9
- package/kusama-people/consts.d.ts +2 -2
- package/kusama-people/errors.d.ts +160 -160
- package/kusama-people/events.d.ts +89 -176
- package/kusama-people/index.d.ts +15 -17
- package/kusama-people/json-rpc.d.ts +3 -3
- package/kusama-people/query.d.ts +114 -145
- package/kusama-people/runtime.d.ts +45 -65
- package/kusama-people/tx.d.ts +246 -356
- package/kusama-people/view-functions.d.ts +3 -5
- package/moonbeam/consts.d.ts +2 -2
- package/moonbeam/errors.d.ts +478 -478
- package/moonbeam/events.d.ts +182 -426
- package/moonbeam/index.d.ts +15 -17
- package/moonbeam/json-rpc.d.ts +11 -3
- package/moonbeam/query.d.ts +234 -294
- package/moonbeam/runtime.d.ts +61 -89
- package/moonbeam/tx.d.ts +618 -901
- package/moonbeam/view-functions.d.ts +2 -2
- package/package.json +6 -3
- package/paseo/consts.d.ts +2 -2
- package/paseo/errors.d.ts +513 -513
- package/paseo/events.d.ts +197 -430
- package/paseo/index.d.ts +16 -18
- package/paseo/json-rpc.d.ts +3 -3
- package/paseo/query.d.ts +329 -450
- package/paseo/runtime.d.ts +107 -131
- package/paseo/tx.d.ts +787 -1151
- package/paseo/types.d.ts +7 -0
- package/paseo/view-functions.d.ts +7 -12
- package/paseo-asset-hub/consts.d.ts +2 -2
- package/paseo-asset-hub/errors.d.ts +605 -605
- package/paseo-asset-hub/events.d.ts +268 -600
- package/paseo-asset-hub/index.d.ts +17 -18
- package/paseo-asset-hub/json-rpc.d.ts +3 -3
- package/paseo-asset-hub/query.d.ts +293 -413
- package/paseo-asset-hub/runtime.d.ts +96 -104
- package/paseo-asset-hub/tx.d.ts +997 -1466
- package/paseo-asset-hub/types.d.ts +7 -0
- package/paseo-asset-hub/view-functions.d.ts +7 -9
- package/paseo-hydration/consts.d.ts +13 -3
- package/paseo-hydration/errors.d.ts +756 -745
- package/paseo-hydration/events.d.ts +277 -554
- package/paseo-hydration/index.d.ts +16 -18
- package/paseo-hydration/json-rpc.d.ts +3 -3
- package/paseo-hydration/query.d.ts +321 -411
- package/paseo-hydration/runtime.d.ts +95 -106
- package/paseo-hydration/tx.d.ts +923 -1226
- package/paseo-hydration/types.d.ts +91 -50
- package/paseo-hydration/view-functions.d.ts +2 -2
- package/paseo-people/consts.d.ts +2 -2
- package/paseo-people/errors.d.ts +162 -162
- package/paseo-people/events.d.ts +91 -181
- package/paseo-people/index.d.ts +16 -18
- package/paseo-people/json-rpc.d.ts +3 -3
- package/paseo-people/query.d.ts +116 -143
- package/paseo-people/runtime.d.ts +70 -65
- package/paseo-people/tx.d.ts +257 -372
- package/paseo-people/types.d.ts +7 -0
- package/paseo-people/view-functions.d.ts +3 -5
- package/polkadot/consts.d.ts +2 -2
- package/polkadot/errors.d.ts +501 -501
- package/polkadot/events.d.ts +195 -426
- package/polkadot/index.d.ts +15 -17
- package/polkadot/json-rpc.d.ts +3 -3
- package/polkadot/query.d.ts +329 -450
- package/polkadot/runtime.d.ts +83 -133
- package/polkadot/tx.d.ts +765 -1119
- package/polkadot/view-functions.d.ts +7 -12
- package/polkadot-asset-hub/consts.d.ts +2 -2
- package/polkadot-asset-hub/errors.d.ts +554 -554
- package/polkadot-asset-hub/events.d.ts +261 -585
- package/polkadot-asset-hub/index.d.ts +16 -17
- package/polkadot-asset-hub/json-rpc.d.ts +3 -3
- package/polkadot-asset-hub/query.d.ts +279 -396
- package/polkadot-asset-hub/runtime.d.ts +65 -93
- package/polkadot-asset-hub/tx.d.ts +952 -1400
- package/polkadot-asset-hub/view-functions.d.ts +7 -9
- package/polkadot-people/consts.d.ts +2 -2
- package/polkadot-people/errors.d.ts +160 -160
- package/polkadot-people/events.d.ts +89 -176
- package/polkadot-people/index.d.ts +15 -17
- package/polkadot-people/json-rpc.d.ts +3 -3
- package/polkadot-people/query.d.ts +114 -145
- package/polkadot-people/runtime.d.ts +46 -67
- package/polkadot-people/tx.d.ts +246 -356
- package/polkadot-people/view-functions.d.ts +3 -5
- package/substrate/consts.d.ts +2 -2
- package/substrate/errors.d.ts +909 -909
- package/substrate/events.d.ts +389 -794
- package/substrate/index.d.ts +16 -17
- package/substrate/json-rpc.d.ts +3 -3
- package/substrate/query.d.ts +458 -572
- package/substrate/runtime.d.ts +82 -126
- package/substrate/tx.d.ts +1317 -1936
- package/substrate/view-functions.d.ts +2 -2
- package/vara/consts.d.ts +9 -37
- package/vara/errors.d.ts +402 -382
- package/vara/events.d.ts +172 -310
- package/vara/index.d.ts +16 -18
- package/vara/json-rpc.d.ts +7 -3
- package/vara/query.d.ts +299 -331
- package/vara/runtime.d.ts +61 -79
- package/vara/tx.d.ts +573 -754
- package/vara/types.d.ts +71 -26
- package/vara/view-functions.d.ts +2 -2
- package/westend/consts.d.ts +2 -2
- package/westend/errors.d.ts +532 -532
- package/westend/events.d.ts +205 -462
- package/westend/index.d.ts +15 -17
- package/westend/json-rpc.d.ts +3 -3
- package/westend/query.d.ts +312 -434
- package/westend/runtime.d.ts +83 -135
- package/westend/tx.d.ts +807 -1179
- package/westend/view-functions.d.ts +7 -12
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/errors.d.ts +605 -605
- package/westend-asset-hub/events.d.ts +265 -614
- package/westend-asset-hub/index.d.ts +16 -17
- package/westend-asset-hub/json-rpc.d.ts +3 -3
- package/westend-asset-hub/query.d.ts +293 -418
- package/westend-asset-hub/runtime.d.ts +83 -123
- package/westend-asset-hub/tx.d.ts +918 -1348
- package/westend-asset-hub/view-functions.d.ts +8 -13
- package/westend-people/consts.d.ts +2 -2
- package/westend-people/errors.d.ts +160 -160
- package/westend-people/events.d.ts +93 -186
- package/westend-people/index.d.ts +15 -17
- package/westend-people/json-rpc.d.ts +3 -3
- package/westend-people/query.d.ts +114 -145
- package/westend-people/runtime.d.ts +46 -67
- package/westend-people/tx.d.ts +251 -363
- package/westend-people/view-functions.d.ts +3 -5
package/westend/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericRuntimeApis, GenericRuntimeApiMethod
|
|
3
|
+
import type { GenericRuntimeApis, GenericRuntimeApiMethod } from 'dedot/types';
|
|
4
4
|
import type {
|
|
5
5
|
RuntimeVersion,
|
|
6
6
|
Header,
|
|
@@ -93,7 +93,7 @@ import type {
|
|
|
93
93
|
XcmVersionedAsset,
|
|
94
94
|
} from './types.js';
|
|
95
95
|
|
|
96
|
-
export interface RuntimeApis
|
|
96
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
97
97
|
/**
|
|
98
98
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
99
99
|
**/
|
|
@@ -103,7 +103,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
103
103
|
*
|
|
104
104
|
* @callname: Core_version
|
|
105
105
|
**/
|
|
106
|
-
version: GenericRuntimeApiMethod<
|
|
106
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Execute the given block.
|
|
@@ -111,7 +111,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
111
111
|
* @callname: Core_execute_block
|
|
112
112
|
* @param {SpRuntimeBlock} block
|
|
113
113
|
**/
|
|
114
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
114
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -119,12 +119,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
119
119
|
* @callname: Core_initialize_block
|
|
120
120
|
* @param {Header} header
|
|
121
121
|
**/
|
|
122
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
122
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Generic runtime api call
|
|
126
126
|
**/
|
|
127
|
-
[method: string]: GenericRuntimeApiMethod
|
|
127
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
130
130
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -135,7 +135,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
135
135
|
*
|
|
136
136
|
* @callname: Metadata_metadata
|
|
137
137
|
**/
|
|
138
|
-
metadata: GenericRuntimeApiMethod<
|
|
138
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* Returns the metadata at a given version.
|
|
@@ -146,7 +146,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
146
146
|
* @callname: Metadata_metadata_at_version
|
|
147
147
|
* @param {number} version
|
|
148
148
|
**/
|
|
149
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
149
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* Returns the supported metadata versions.
|
|
@@ -155,12 +155,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
155
155
|
*
|
|
156
156
|
* @callname: Metadata_metadata_versions
|
|
157
157
|
**/
|
|
158
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
158
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* Generic runtime api call
|
|
162
162
|
**/
|
|
163
|
-
[method: string]: GenericRuntimeApiMethod
|
|
163
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
164
164
|
};
|
|
165
165
|
/**
|
|
166
166
|
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
@@ -174,7 +174,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
174
174
|
* @param {BytesLike} input
|
|
175
175
|
**/
|
|
176
176
|
executeViewFunction: GenericRuntimeApiMethod<
|
|
177
|
-
Rv,
|
|
178
177
|
(
|
|
179
178
|
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
180
179
|
input: BytesLike,
|
|
@@ -184,7 +183,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
184
183
|
/**
|
|
185
184
|
* Generic runtime api call
|
|
186
185
|
**/
|
|
187
|
-
[method: string]: GenericRuntimeApiMethod
|
|
186
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
188
187
|
};
|
|
189
188
|
/**
|
|
190
189
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -200,7 +199,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
200
199
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
201
200
|
**/
|
|
202
201
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
203
|
-
Rv,
|
|
204
202
|
(
|
|
205
203
|
extrinsic: UncheckedExtrinsicLike,
|
|
206
204
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -211,7 +209,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
211
209
|
*
|
|
212
210
|
* @callname: BlockBuilder_finalize_block
|
|
213
211
|
**/
|
|
214
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
212
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
215
213
|
|
|
216
214
|
/**
|
|
217
215
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -220,7 +218,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
220
218
|
* @param {SpInherentsInherentData} inherent
|
|
221
219
|
**/
|
|
222
220
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
223
|
-
Rv,
|
|
224
221
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
225
222
|
>;
|
|
226
223
|
|
|
@@ -232,14 +229,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
232
229
|
* @param {SpInherentsInherentData} data
|
|
233
230
|
**/
|
|
234
231
|
checkInherents: GenericRuntimeApiMethod<
|
|
235
|
-
Rv,
|
|
236
232
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
237
233
|
>;
|
|
238
234
|
|
|
239
235
|
/**
|
|
240
236
|
* Generic runtime api call
|
|
241
237
|
**/
|
|
242
|
-
[method: string]: GenericRuntimeApiMethod
|
|
238
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
243
239
|
};
|
|
244
240
|
/**
|
|
245
241
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -262,7 +258,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
262
258
|
* @param {H256} block_hash
|
|
263
259
|
**/
|
|
264
260
|
validateTransaction: GenericRuntimeApiMethod<
|
|
265
|
-
Rv,
|
|
266
261
|
(
|
|
267
262
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
268
263
|
tx: UncheckedExtrinsicLike,
|
|
@@ -275,7 +270,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
275
270
|
/**
|
|
276
271
|
* Generic runtime api call
|
|
277
272
|
**/
|
|
278
|
-
[method: string]: GenericRuntimeApiMethod
|
|
273
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
279
274
|
};
|
|
280
275
|
/**
|
|
281
276
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -287,12 +282,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
287
282
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
288
283
|
* @param {Header} header
|
|
289
284
|
**/
|
|
290
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
285
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
291
286
|
|
|
292
287
|
/**
|
|
293
288
|
* Generic runtime api call
|
|
294
289
|
**/
|
|
295
|
-
[method: string]: GenericRuntimeApiMethod
|
|
290
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
296
291
|
};
|
|
297
292
|
/**
|
|
298
293
|
* @runtimeapi: ParachainHost - 0xaf2c0297a23e6d3d
|
|
@@ -303,7 +298,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
303
298
|
*
|
|
304
299
|
* @callname: ParachainHost_validators
|
|
305
300
|
**/
|
|
306
|
-
validators: GenericRuntimeApiMethod<
|
|
301
|
+
validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorAppPublic>>>;
|
|
307
302
|
|
|
308
303
|
/**
|
|
309
304
|
* Returns the validator groups and rotation info localized based on the hypothetical child
|
|
@@ -313,7 +308,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
313
308
|
* @callname: ParachainHost_validator_groups
|
|
314
309
|
**/
|
|
315
310
|
validatorGroups: GenericRuntimeApiMethod<
|
|
316
|
-
Rv,
|
|
317
311
|
() => Promise<[Array<Array<PolkadotPrimitivesV8ValidatorIndex>>, PolkadotPrimitivesV8GroupRotationInfo]>
|
|
318
312
|
>;
|
|
319
313
|
|
|
@@ -323,7 +317,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
323
317
|
*
|
|
324
318
|
* @callname: ParachainHost_availability_cores
|
|
325
319
|
**/
|
|
326
|
-
availabilityCores: GenericRuntimeApiMethod<
|
|
320
|
+
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCoreState>>>;
|
|
327
321
|
|
|
328
322
|
/**
|
|
329
323
|
* Yields the persisted validation data for the given `ParaId` along with an assumption that
|
|
@@ -337,7 +331,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
337
331
|
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
338
332
|
**/
|
|
339
333
|
persistedValidationData: GenericRuntimeApiMethod<
|
|
340
|
-
Rv,
|
|
341
334
|
(
|
|
342
335
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
343
336
|
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
@@ -354,7 +347,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
354
347
|
* @param {H256} expected_persisted_validation_data_hash
|
|
355
348
|
**/
|
|
356
349
|
assumedValidationData: GenericRuntimeApiMethod<
|
|
357
|
-
Rv,
|
|
358
350
|
(
|
|
359
351
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
360
352
|
expectedPersistedValidationDataHash: H256,
|
|
@@ -372,7 +364,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
372
364
|
* @param {PolkadotPrimitivesV8CandidateCommitments} outputs
|
|
373
365
|
**/
|
|
374
366
|
checkValidationOutputs: GenericRuntimeApiMethod<
|
|
375
|
-
Rv,
|
|
376
367
|
(
|
|
377
368
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
378
369
|
outputs: PolkadotPrimitivesV8CandidateCommitments,
|
|
@@ -386,7 +377,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
386
377
|
*
|
|
387
378
|
* @callname: ParachainHost_session_index_for_child
|
|
388
379
|
**/
|
|
389
|
-
sessionIndexForChild: GenericRuntimeApiMethod<
|
|
380
|
+
sessionIndexForChild: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
390
381
|
|
|
391
382
|
/**
|
|
392
383
|
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
|
@@ -399,7 +390,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
399
390
|
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
400
391
|
**/
|
|
401
392
|
validationCode: GenericRuntimeApiMethod<
|
|
402
|
-
Rv,
|
|
403
393
|
(
|
|
404
394
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
405
395
|
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
@@ -414,7 +404,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
414
404
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
415
405
|
**/
|
|
416
406
|
candidatePendingAvailability: GenericRuntimeApiMethod<
|
|
417
|
-
Rv,
|
|
418
407
|
(
|
|
419
408
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
420
409
|
) => Promise<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2 | undefined>
|
|
@@ -425,7 +414,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
425
414
|
*
|
|
426
415
|
* @callname: ParachainHost_candidate_events
|
|
427
416
|
**/
|
|
428
|
-
candidateEvents: GenericRuntimeApiMethod<
|
|
417
|
+
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCandidateEvent>>>;
|
|
429
418
|
|
|
430
419
|
/**
|
|
431
420
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
@@ -434,7 +423,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
434
423
|
* @param {PolkadotParachainPrimitivesPrimitivesId} recipient
|
|
435
424
|
**/
|
|
436
425
|
dmqContents: GenericRuntimeApiMethod<
|
|
437
|
-
Rv,
|
|
438
426
|
(
|
|
439
427
|
recipient: PolkadotParachainPrimitivesPrimitivesId,
|
|
440
428
|
) => Promise<Array<PolkadotCorePrimitivesInboundDownwardMessage>>
|
|
@@ -448,7 +436,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
448
436
|
* @param {PolkadotParachainPrimitivesPrimitivesId} recipient
|
|
449
437
|
**/
|
|
450
438
|
inboundHrmpChannelsContents: GenericRuntimeApiMethod<
|
|
451
|
-
Rv,
|
|
452
439
|
(
|
|
453
440
|
recipient: PolkadotParachainPrimitivesPrimitivesId,
|
|
454
441
|
) => Promise<Array<[PolkadotParachainPrimitivesPrimitivesId, Array<PolkadotCorePrimitivesInboundHrmpMessage>]>>
|
|
@@ -461,7 +448,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
461
448
|
* @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} hash
|
|
462
449
|
**/
|
|
463
450
|
validationCodeByHash: GenericRuntimeApiMethod<
|
|
464
|
-
Rv,
|
|
465
451
|
(
|
|
466
452
|
hash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
467
453
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
|
|
@@ -472,7 +458,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
472
458
|
*
|
|
473
459
|
* @callname: ParachainHost_on_chain_votes
|
|
474
460
|
**/
|
|
475
|
-
onChainVotes: GenericRuntimeApiMethod<
|
|
461
|
+
onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined>>;
|
|
476
462
|
|
|
477
463
|
/**
|
|
478
464
|
* Get the session info for the given session, if stored.
|
|
@@ -482,7 +468,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
482
468
|
* @callname: ParachainHost_session_info
|
|
483
469
|
* @param {number} index
|
|
484
470
|
**/
|
|
485
|
-
sessionInfo: GenericRuntimeApiMethod<
|
|
471
|
+
sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV8SessionInfo | undefined>>;
|
|
486
472
|
|
|
487
473
|
/**
|
|
488
474
|
* Submits a PVF pre-checking statement into the transaction pool.
|
|
@@ -494,7 +480,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
494
480
|
* @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
|
|
495
481
|
**/
|
|
496
482
|
submitPvfCheckStatement: GenericRuntimeApiMethod<
|
|
497
|
-
Rv,
|
|
498
483
|
(stmt: PolkadotPrimitivesV8PvfCheckStatement, signature: PolkadotPrimitivesV8ValidatorAppSignature) => Promise<[]>
|
|
499
484
|
>;
|
|
500
485
|
|
|
@@ -506,7 +491,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
506
491
|
* @callname: ParachainHost_pvfs_require_precheck
|
|
507
492
|
**/
|
|
508
493
|
pvfsRequirePrecheck: GenericRuntimeApiMethod<
|
|
509
|
-
Rv,
|
|
510
494
|
() => Promise<Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>>
|
|
511
495
|
>;
|
|
512
496
|
|
|
@@ -520,7 +504,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
520
504
|
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
521
505
|
**/
|
|
522
506
|
validationCodeHash: GenericRuntimeApiMethod<
|
|
523
|
-
Rv,
|
|
524
507
|
(
|
|
525
508
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
526
509
|
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
@@ -533,7 +516,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
533
516
|
* @callname: ParachainHost_disputes
|
|
534
517
|
**/
|
|
535
518
|
disputes: GenericRuntimeApiMethod<
|
|
536
|
-
Rv,
|
|
537
519
|
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8DisputeState]>>
|
|
538
520
|
>;
|
|
539
521
|
|
|
@@ -544,7 +526,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
544
526
|
* @param {number} session_index
|
|
545
527
|
**/
|
|
546
528
|
sessionExecutorParams: GenericRuntimeApiMethod<
|
|
547
|
-
Rv,
|
|
548
529
|
(sessionIndex: number) => Promise<PolkadotPrimitivesV8ExecutorParams | undefined>
|
|
549
530
|
>;
|
|
550
531
|
|
|
@@ -555,7 +536,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
555
536
|
* @callname: ParachainHost_unapplied_slashes
|
|
556
537
|
**/
|
|
557
538
|
unappliedSlashes: GenericRuntimeApiMethod<
|
|
558
|
-
Rv,
|
|
559
539
|
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8SlashingPendingSlashes]>>
|
|
560
540
|
>;
|
|
561
541
|
|
|
@@ -567,7 +547,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
567
547
|
* @param {PolkadotPrimitivesV8ValidatorAppPublic} validator_id
|
|
568
548
|
**/
|
|
569
549
|
keyOwnershipProof: GenericRuntimeApiMethod<
|
|
570
|
-
Rv,
|
|
571
550
|
(
|
|
572
551
|
validatorId: PolkadotPrimitivesV8ValidatorAppPublic,
|
|
573
552
|
) => Promise<PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof | undefined>
|
|
@@ -583,7 +562,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
583
562
|
* @param {PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof} key_ownership_proof
|
|
584
563
|
**/
|
|
585
564
|
submitReportDisputeLost: GenericRuntimeApiMethod<
|
|
586
|
-
Rv,
|
|
587
565
|
(
|
|
588
566
|
disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
|
|
589
567
|
keyOwnershipProof: PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
|
|
@@ -596,7 +574,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
596
574
|
*
|
|
597
575
|
* @callname: ParachainHost_minimum_backing_votes
|
|
598
576
|
**/
|
|
599
|
-
minimumBackingVotes: GenericRuntimeApiMethod<
|
|
577
|
+
minimumBackingVotes: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
600
578
|
|
|
601
579
|
/**
|
|
602
580
|
* Returns the state of parachain backing for a given para.
|
|
@@ -605,7 +583,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
605
583
|
* @param {PolkadotParachainPrimitivesPrimitivesId} __runtime_api_generated_name_0__
|
|
606
584
|
**/
|
|
607
585
|
paraBackingState: GenericRuntimeApiMethod<
|
|
608
|
-
Rv,
|
|
609
586
|
(
|
|
610
587
|
runtimeApiGeneratedName0: PolkadotParachainPrimitivesPrimitivesId,
|
|
611
588
|
) => Promise<PolkadotPrimitivesVstagingAsyncBackingBackingState | undefined>
|
|
@@ -616,14 +593,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
616
593
|
*
|
|
617
594
|
* @callname: ParachainHost_async_backing_params
|
|
618
595
|
**/
|
|
619
|
-
asyncBackingParams: GenericRuntimeApiMethod<
|
|
596
|
+
asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8AsyncBackingAsyncBackingParams>>;
|
|
620
597
|
|
|
621
598
|
/**
|
|
622
599
|
* Returns a list of all disabled validators at the given block.
|
|
623
600
|
*
|
|
624
601
|
* @callname: ParachainHost_disabled_validators
|
|
625
602
|
**/
|
|
626
|
-
disabledValidators: GenericRuntimeApiMethod<
|
|
603
|
+
disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
|
|
627
604
|
|
|
628
605
|
/**
|
|
629
606
|
* Get node features.
|
|
@@ -631,14 +608,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
631
608
|
*
|
|
632
609
|
* @callname: ParachainHost_node_features
|
|
633
610
|
**/
|
|
634
|
-
nodeFeatures: GenericRuntimeApiMethod<
|
|
611
|
+
nodeFeatures: GenericRuntimeApiMethod<() => Promise<BitSequence>>;
|
|
635
612
|
|
|
636
613
|
/**
|
|
637
614
|
* Approval voting configuration parameters
|
|
638
615
|
*
|
|
639
616
|
* @callname: ParachainHost_approval_voting_params
|
|
640
617
|
**/
|
|
641
|
-
approvalVotingParams: GenericRuntimeApiMethod<
|
|
618
|
+
approvalVotingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8ApprovalVotingParams>>;
|
|
642
619
|
|
|
643
620
|
/**
|
|
644
621
|
* Claim queue
|
|
@@ -646,7 +623,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
646
623
|
* @callname: ParachainHost_claim_queue
|
|
647
624
|
**/
|
|
648
625
|
claimQueue: GenericRuntimeApiMethod<
|
|
649
|
-
Rv,
|
|
650
626
|
() => Promise<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
|
|
651
627
|
>;
|
|
652
628
|
|
|
@@ -657,7 +633,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
657
633
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
658
634
|
**/
|
|
659
635
|
candidatesPendingAvailability: GenericRuntimeApiMethod<
|
|
660
|
-
Rv,
|
|
661
636
|
(
|
|
662
637
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
663
638
|
) => Promise<Array<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2>>
|
|
@@ -668,7 +643,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
668
643
|
*
|
|
669
644
|
* @callname: ParachainHost_validation_code_bomb_limit
|
|
670
645
|
**/
|
|
671
|
-
validationCodeBombLimit: GenericRuntimeApiMethod<
|
|
646
|
+
validationCodeBombLimit: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
672
647
|
|
|
673
648
|
/**
|
|
674
649
|
* Returns the constraints on the actions that can be taken by a new parachain
|
|
@@ -678,7 +653,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
678
653
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
679
654
|
**/
|
|
680
655
|
backingConstraints: GenericRuntimeApiMethod<
|
|
681
|
-
Rv,
|
|
682
656
|
(
|
|
683
657
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
684
658
|
) => Promise<PolkadotPrimitivesVstagingAsyncBackingConstraints | undefined>
|
|
@@ -689,19 +663,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
689
663
|
*
|
|
690
664
|
* @callname: ParachainHost_scheduling_lookahead
|
|
691
665
|
**/
|
|
692
|
-
schedulingLookahead: GenericRuntimeApiMethod<
|
|
666
|
+
schedulingLookahead: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
693
667
|
|
|
694
668
|
/**
|
|
695
669
|
* Retrieve paraids at relay parent
|
|
696
670
|
*
|
|
697
671
|
* @callname: ParachainHost_para_ids
|
|
698
672
|
**/
|
|
699
|
-
paraIds: GenericRuntimeApiMethod<
|
|
673
|
+
paraIds: GenericRuntimeApiMethod<() => Promise<Array<PolkadotParachainPrimitivesPrimitivesId>>>;
|
|
700
674
|
|
|
701
675
|
/**
|
|
702
676
|
* Generic runtime api call
|
|
703
677
|
**/
|
|
704
|
-
[method: string]: GenericRuntimeApiMethod
|
|
678
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
705
679
|
};
|
|
706
680
|
/**
|
|
707
681
|
* @runtimeapi: BeefyApi - 0x49eaaf1b548a0cb0
|
|
@@ -712,14 +686,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
712
686
|
*
|
|
713
687
|
* @callname: BeefyApi_beefy_genesis
|
|
714
688
|
**/
|
|
715
|
-
beefyGenesis: GenericRuntimeApiMethod<
|
|
689
|
+
beefyGenesis: GenericRuntimeApiMethod<() => Promise<number | undefined>>;
|
|
716
690
|
|
|
717
691
|
/**
|
|
718
692
|
* Return the current active BEEFY validator set
|
|
719
693
|
*
|
|
720
694
|
* @callname: BeefyApi_validator_set
|
|
721
695
|
**/
|
|
722
|
-
validatorSet: GenericRuntimeApiMethod<
|
|
696
|
+
validatorSet: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyValidatorSet | undefined>>;
|
|
723
697
|
|
|
724
698
|
/**
|
|
725
699
|
* Submits an unsigned extrinsic to report a double voting equivocation. The caller
|
|
@@ -736,7 +710,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
736
710
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
737
711
|
**/
|
|
738
712
|
submitReportDoubleVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
739
|
-
Rv,
|
|
740
713
|
(
|
|
741
714
|
equivocationProof: SpConsensusBeefyDoubleVotingProof,
|
|
742
715
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -758,7 +731,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
758
731
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
759
732
|
**/
|
|
760
733
|
submitReportForkVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
761
|
-
Rv,
|
|
762
734
|
(
|
|
763
735
|
equivocationProof: SpConsensusBeefyForkVotingProofOpaqueValue,
|
|
764
736
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -780,7 +752,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
780
752
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
781
753
|
**/
|
|
782
754
|
submitReportFutureBlockVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
783
|
-
Rv,
|
|
784
755
|
(
|
|
785
756
|
equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
|
|
786
757
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -805,7 +776,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
805
776
|
* @param {SpConsensusBeefyEcdsaCryptoPublic} authority_id
|
|
806
777
|
**/
|
|
807
778
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
808
|
-
Rv,
|
|
809
779
|
(setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
810
780
|
>;
|
|
811
781
|
|
|
@@ -818,14 +788,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
818
788
|
* @param {number | undefined} best_known_block_number
|
|
819
789
|
**/
|
|
820
790
|
generateAncestryProof: GenericRuntimeApiMethod<
|
|
821
|
-
Rv,
|
|
822
791
|
(prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
823
792
|
>;
|
|
824
793
|
|
|
825
794
|
/**
|
|
826
795
|
* Generic runtime api call
|
|
827
796
|
**/
|
|
828
|
-
[method: string]: GenericRuntimeApiMethod
|
|
797
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
829
798
|
};
|
|
830
799
|
/**
|
|
831
800
|
* @runtimeapi: MmrApi - 0x91d5df18b0d2cf58
|
|
@@ -836,14 +805,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
836
805
|
*
|
|
837
806
|
* @callname: MmrApi_mmr_root
|
|
838
807
|
**/
|
|
839
|
-
mmrRoot: GenericRuntimeApiMethod<
|
|
808
|
+
mmrRoot: GenericRuntimeApiMethod<() => Promise<Result<H256, SpMmrPrimitivesError>>>;
|
|
840
809
|
|
|
841
810
|
/**
|
|
842
811
|
* Return the number of MMR blocks in the chain.
|
|
843
812
|
*
|
|
844
813
|
* @callname: MmrApi_mmr_leaf_count
|
|
845
814
|
**/
|
|
846
|
-
mmrLeafCount: GenericRuntimeApiMethod<
|
|
815
|
+
mmrLeafCount: GenericRuntimeApiMethod<() => Promise<Result<bigint, SpMmrPrimitivesError>>>;
|
|
847
816
|
|
|
848
817
|
/**
|
|
849
818
|
* Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,
|
|
@@ -854,7 +823,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
854
823
|
* @param {number | undefined} best_known_block_number
|
|
855
824
|
**/
|
|
856
825
|
generateProof: GenericRuntimeApiMethod<
|
|
857
|
-
Rv,
|
|
858
826
|
(
|
|
859
827
|
blockNumbers: Array<number>,
|
|
860
828
|
bestKnownBlockNumber?: number | undefined,
|
|
@@ -873,7 +841,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
873
841
|
* @param {SpMmrPrimitivesLeafProof} proof
|
|
874
842
|
**/
|
|
875
843
|
verifyProof: GenericRuntimeApiMethod<
|
|
876
|
-
Rv,
|
|
877
844
|
(
|
|
878
845
|
leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
|
|
879
846
|
proof: SpMmrPrimitivesLeafProof,
|
|
@@ -895,7 +862,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
895
862
|
* @param {SpMmrPrimitivesLeafProof} proof
|
|
896
863
|
**/
|
|
897
864
|
verifyProofStateless: GenericRuntimeApiMethod<
|
|
898
|
-
Rv,
|
|
899
865
|
(
|
|
900
866
|
root: H256,
|
|
901
867
|
leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
|
|
@@ -906,7 +872,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
906
872
|
/**
|
|
907
873
|
* Generic runtime api call
|
|
908
874
|
**/
|
|
909
|
-
[method: string]: GenericRuntimeApiMethod
|
|
875
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
910
876
|
};
|
|
911
877
|
/**
|
|
912
878
|
* @runtimeapi: BeefyMmrApi - 0x2a5e924655399e60
|
|
@@ -917,19 +883,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
917
883
|
*
|
|
918
884
|
* @callname: BeefyMmrApi_authority_set_proof
|
|
919
885
|
**/
|
|
920
|
-
authoritySetProof: GenericRuntimeApiMethod<
|
|
886
|
+
authoritySetProof: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
|
921
887
|
|
|
922
888
|
/**
|
|
923
889
|
* Return the next/queued BEEFY authority set proof.
|
|
924
890
|
*
|
|
925
891
|
* @callname: BeefyMmrApi_next_authority_set_proof
|
|
926
892
|
**/
|
|
927
|
-
nextAuthoritySetProof: GenericRuntimeApiMethod<
|
|
893
|
+
nextAuthoritySetProof: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
|
928
894
|
|
|
929
895
|
/**
|
|
930
896
|
* Generic runtime api call
|
|
931
897
|
**/
|
|
932
|
-
[method: string]: GenericRuntimeApiMethod
|
|
898
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
933
899
|
};
|
|
934
900
|
/**
|
|
935
901
|
* @runtimeapi: GrandpaApi - 0xed99c5acb25eedf5
|
|
@@ -945,7 +911,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
945
911
|
*
|
|
946
912
|
* @callname: GrandpaApi_grandpa_authorities
|
|
947
913
|
**/
|
|
948
|
-
grandpaAuthorities: GenericRuntimeApiMethod<
|
|
914
|
+
grandpaAuthorities: GenericRuntimeApiMethod<() => Promise<Array<[SpConsensusGrandpaAppPublic, bigint]>>>;
|
|
949
915
|
|
|
950
916
|
/**
|
|
951
917
|
* Submits an unsigned extrinsic to report an equivocation. The caller
|
|
@@ -962,7 +928,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
962
928
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
963
929
|
**/
|
|
964
930
|
submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
965
|
-
Rv,
|
|
966
931
|
(
|
|
967
932
|
equivocationProof: SpConsensusGrandpaEquivocationProof,
|
|
968
933
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -987,7 +952,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
987
952
|
* @param {SpConsensusGrandpaAppPublic} authority_id
|
|
988
953
|
**/
|
|
989
954
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
990
|
-
Rv,
|
|
991
955
|
(setId: bigint, authorityId: SpConsensusGrandpaAppPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
992
956
|
>;
|
|
993
957
|
|
|
@@ -996,12 +960,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
996
960
|
*
|
|
997
961
|
* @callname: GrandpaApi_current_set_id
|
|
998
962
|
**/
|
|
999
|
-
currentSetId: GenericRuntimeApiMethod<
|
|
963
|
+
currentSetId: GenericRuntimeApiMethod<() => Promise<bigint>>;
|
|
1000
964
|
|
|
1001
965
|
/**
|
|
1002
966
|
* Generic runtime api call
|
|
1003
967
|
**/
|
|
1004
|
-
[method: string]: GenericRuntimeApiMethod
|
|
968
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1005
969
|
};
|
|
1006
970
|
/**
|
|
1007
971
|
* @runtimeapi: BabeApi - 0xcbca25e39f142387
|
|
@@ -1012,21 +976,21 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1012
976
|
*
|
|
1013
977
|
* @callname: BabeApi_configuration
|
|
1014
978
|
**/
|
|
1015
|
-
configuration: GenericRuntimeApiMethod<
|
|
979
|
+
configuration: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeBabeConfiguration>>;
|
|
1016
980
|
|
|
1017
981
|
/**
|
|
1018
982
|
* Returns the slot that started the current epoch.
|
|
1019
983
|
*
|
|
1020
984
|
* @callname: BabeApi_current_epoch_start
|
|
1021
985
|
**/
|
|
1022
|
-
currentEpochStart: GenericRuntimeApiMethod<
|
|
986
|
+
currentEpochStart: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlot>>;
|
|
1023
987
|
|
|
1024
988
|
/**
|
|
1025
989
|
* Returns information regarding the current epoch.
|
|
1026
990
|
*
|
|
1027
991
|
* @callname: BabeApi_current_epoch
|
|
1028
992
|
**/
|
|
1029
|
-
currentEpoch: GenericRuntimeApiMethod<
|
|
993
|
+
currentEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
|
|
1030
994
|
|
|
1031
995
|
/**
|
|
1032
996
|
* Returns information regarding the next epoch (which was already
|
|
@@ -1034,7 +998,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1034
998
|
*
|
|
1035
999
|
* @callname: BabeApi_next_epoch
|
|
1036
1000
|
**/
|
|
1037
|
-
nextEpoch: GenericRuntimeApiMethod<
|
|
1001
|
+
nextEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
|
|
1038
1002
|
|
|
1039
1003
|
/**
|
|
1040
1004
|
* Generates a proof of key ownership for the given authority in the
|
|
@@ -1054,7 +1018,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1054
1018
|
* @param {SpConsensusBabeAppPublic} authority_id
|
|
1055
1019
|
**/
|
|
1056
1020
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
1057
|
-
Rv,
|
|
1058
1021
|
(
|
|
1059
1022
|
slot: SpConsensusSlotsSlot,
|
|
1060
1023
|
authorityId: SpConsensusBabeAppPublic,
|
|
@@ -1076,7 +1039,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1076
1039
|
* @param {SpConsensusBabeOpaqueKeyOwnershipProof} key_owner_proof
|
|
1077
1040
|
**/
|
|
1078
1041
|
submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
1079
|
-
Rv,
|
|
1080
1042
|
(
|
|
1081
1043
|
equivocationProof: SpConsensusSlotsEquivocationProof,
|
|
1082
1044
|
keyOwnerProof: SpConsensusBabeOpaqueKeyOwnershipProof,
|
|
@@ -1086,7 +1048,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1086
1048
|
/**
|
|
1087
1049
|
* Generic runtime api call
|
|
1088
1050
|
**/
|
|
1089
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1051
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1090
1052
|
};
|
|
1091
1053
|
/**
|
|
1092
1054
|
* @runtimeapi: AuthorityDiscoveryApi - 0x687ad44ad37f03c2
|
|
@@ -1097,12 +1059,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1097
1059
|
*
|
|
1098
1060
|
* @callname: AuthorityDiscoveryApi_authorities
|
|
1099
1061
|
**/
|
|
1100
|
-
authorities: GenericRuntimeApiMethod<
|
|
1062
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpAuthorityDiscoveryAppPublic>>>;
|
|
1101
1063
|
|
|
1102
1064
|
/**
|
|
1103
1065
|
* Generic runtime api call
|
|
1104
1066
|
**/
|
|
1105
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1067
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1106
1068
|
};
|
|
1107
1069
|
/**
|
|
1108
1070
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -1120,7 +1082,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1120
1082
|
* @callname: SessionKeys_generate_session_keys
|
|
1121
1083
|
* @param {BytesLike | undefined} seed
|
|
1122
1084
|
**/
|
|
1123
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
1085
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
1124
1086
|
|
|
1125
1087
|
/**
|
|
1126
1088
|
* Decode the given public session keys.
|
|
@@ -1131,14 +1093,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1131
1093
|
* @param {BytesLike} encoded
|
|
1132
1094
|
**/
|
|
1133
1095
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
1134
|
-
Rv,
|
|
1135
1096
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
1136
1097
|
>;
|
|
1137
1098
|
|
|
1138
1099
|
/**
|
|
1139
1100
|
* Generic runtime api call
|
|
1140
1101
|
**/
|
|
1141
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1102
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1142
1103
|
};
|
|
1143
1104
|
/**
|
|
1144
1105
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -1150,12 +1111,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1150
1111
|
* @callname: AccountNonceApi_account_nonce
|
|
1151
1112
|
* @param {AccountId32Like} account
|
|
1152
1113
|
**/
|
|
1153
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
1114
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
1154
1115
|
|
|
1155
1116
|
/**
|
|
1156
1117
|
* Generic runtime api call
|
|
1157
1118
|
**/
|
|
1158
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1119
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1159
1120
|
};
|
|
1160
1121
|
/**
|
|
1161
1122
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -1168,7 +1129,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1168
1129
|
* @param {number} len
|
|
1169
1130
|
**/
|
|
1170
1131
|
queryInfo: GenericRuntimeApiMethod<
|
|
1171
|
-
Rv,
|
|
1172
1132
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
1173
1133
|
>;
|
|
1174
1134
|
|
|
@@ -1179,7 +1139,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1179
1139
|
* @param {number} len
|
|
1180
1140
|
**/
|
|
1181
1141
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
1182
|
-
Rv,
|
|
1183
1142
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
1184
1143
|
>;
|
|
1185
1144
|
|
|
@@ -1188,19 +1147,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1188
1147
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
1189
1148
|
* @param {SpWeightsWeightV2Weight} weight
|
|
1190
1149
|
**/
|
|
1191
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
1150
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
1192
1151
|
|
|
1193
1152
|
/**
|
|
1194
1153
|
*
|
|
1195
1154
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
1196
1155
|
* @param {number} length
|
|
1197
1156
|
**/
|
|
1198
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
1157
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
1199
1158
|
|
|
1200
1159
|
/**
|
|
1201
1160
|
* Generic runtime api call
|
|
1202
1161
|
**/
|
|
1203
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1162
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1204
1163
|
};
|
|
1205
1164
|
/**
|
|
1206
1165
|
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
@@ -1214,7 +1173,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1214
1173
|
* @param {number} len
|
|
1215
1174
|
**/
|
|
1216
1175
|
queryCallInfo: GenericRuntimeApiMethod<
|
|
1217
|
-
Rv,
|
|
1218
1176
|
(call: WestendRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
1219
1177
|
>;
|
|
1220
1178
|
|
|
@@ -1226,7 +1184,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1226
1184
|
* @param {number} len
|
|
1227
1185
|
**/
|
|
1228
1186
|
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
1229
|
-
Rv,
|
|
1230
1187
|
(call: WestendRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
1231
1188
|
>;
|
|
1232
1189
|
|
|
@@ -1236,7 +1193,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1236
1193
|
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
1237
1194
|
* @param {SpWeightsWeightV2Weight} weight
|
|
1238
1195
|
**/
|
|
1239
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
1196
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
1240
1197
|
|
|
1241
1198
|
/**
|
|
1242
1199
|
* Query the output of the current `LengthToFee` given some input.
|
|
@@ -1244,12 +1201,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1244
1201
|
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
1245
1202
|
* @param {number} length
|
|
1246
1203
|
**/
|
|
1247
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
1204
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
1248
1205
|
|
|
1249
1206
|
/**
|
|
1250
1207
|
* Generic runtime api call
|
|
1251
1208
|
**/
|
|
1252
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1209
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1253
1210
|
};
|
|
1254
1211
|
/**
|
|
1255
1212
|
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
@@ -1266,7 +1223,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1266
1223
|
* @param {number} xcm_version
|
|
1267
1224
|
**/
|
|
1268
1225
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
1269
|
-
Rv,
|
|
1270
1226
|
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
1271
1227
|
>;
|
|
1272
1228
|
|
|
@@ -1281,7 +1237,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1281
1237
|
* @param {XcmVersionedXcm} message
|
|
1282
1238
|
**/
|
|
1283
1239
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
1284
|
-
Rv,
|
|
1285
1240
|
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
1286
1241
|
>;
|
|
1287
1242
|
|
|
@@ -1298,7 +1253,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1298
1253
|
* @param {XcmVersionedAssetId} asset
|
|
1299
1254
|
**/
|
|
1300
1255
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
1301
|
-
Rv,
|
|
1302
1256
|
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
1303
1257
|
>;
|
|
1304
1258
|
|
|
@@ -1317,7 +1271,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1317
1271
|
* @param {XcmVersionedXcm} message
|
|
1318
1272
|
**/
|
|
1319
1273
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
1320
|
-
Rv,
|
|
1321
1274
|
(
|
|
1322
1275
|
destination: XcmVersionedLocation,
|
|
1323
1276
|
message: XcmVersionedXcm,
|
|
@@ -1327,7 +1280,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1327
1280
|
/**
|
|
1328
1281
|
* Generic runtime api call
|
|
1329
1282
|
**/
|
|
1330
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1283
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1331
1284
|
};
|
|
1332
1285
|
/**
|
|
1333
1286
|
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
@@ -1342,7 +1295,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1342
1295
|
* @param {number} result_xcms_version
|
|
1343
1296
|
**/
|
|
1344
1297
|
dryRunCall: GenericRuntimeApiMethod<
|
|
1345
|
-
Rv,
|
|
1346
1298
|
(
|
|
1347
1299
|
origin: WestendRuntimeOriginCaller,
|
|
1348
1300
|
call: WestendRuntimeRuntimeCallLike,
|
|
@@ -1358,7 +1310,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1358
1310
|
* @param {XcmVersionedXcm} xcm
|
|
1359
1311
|
**/
|
|
1360
1312
|
dryRunXcm: GenericRuntimeApiMethod<
|
|
1361
|
-
Rv,
|
|
1362
1313
|
(
|
|
1363
1314
|
originLocation: XcmVersionedLocation,
|
|
1364
1315
|
xcm: XcmVersionedXcm,
|
|
@@ -1368,7 +1319,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1368
1319
|
/**
|
|
1369
1320
|
* Generic runtime api call
|
|
1370
1321
|
**/
|
|
1371
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1322
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1372
1323
|
};
|
|
1373
1324
|
/**
|
|
1374
1325
|
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
@@ -1381,14 +1332,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1381
1332
|
* @param {XcmVersionedLocation} location
|
|
1382
1333
|
**/
|
|
1383
1334
|
convertLocation: GenericRuntimeApiMethod<
|
|
1384
|
-
Rv,
|
|
1385
1335
|
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
1386
1336
|
>;
|
|
1387
1337
|
|
|
1388
1338
|
/**
|
|
1389
1339
|
* Generic runtime api call
|
|
1390
1340
|
**/
|
|
1391
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1341
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1392
1342
|
};
|
|
1393
1343
|
/**
|
|
1394
1344
|
* @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
|
|
@@ -1400,7 +1350,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1400
1350
|
* @callname: NominationPoolsApi_pending_rewards
|
|
1401
1351
|
* @param {AccountId32Like} who
|
|
1402
1352
|
**/
|
|
1403
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
1353
|
+
pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
1404
1354
|
|
|
1405
1355
|
/**
|
|
1406
1356
|
* Returns the equivalent balance of `points` for a given pool.
|
|
@@ -1409,7 +1359,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1409
1359
|
* @param {number} pool_id
|
|
1410
1360
|
* @param {bigint} points
|
|
1411
1361
|
**/
|
|
1412
|
-
pointsToBalance: GenericRuntimeApiMethod<
|
|
1362
|
+
pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
|
|
1413
1363
|
|
|
1414
1364
|
/**
|
|
1415
1365
|
* Returns the equivalent points of `new_funds` for a given pool.
|
|
@@ -1418,7 +1368,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1418
1368
|
* @param {number} pool_id
|
|
1419
1369
|
* @param {bigint} new_funds
|
|
1420
1370
|
**/
|
|
1421
|
-
balanceToPoints: GenericRuntimeApiMethod<
|
|
1371
|
+
balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
|
|
1422
1372
|
|
|
1423
1373
|
/**
|
|
1424
1374
|
* Returns the pending slash for a given pool.
|
|
@@ -1426,7 +1376,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1426
1376
|
* @callname: NominationPoolsApi_pool_pending_slash
|
|
1427
1377
|
* @param {number} pool_id
|
|
1428
1378
|
**/
|
|
1429
|
-
poolPendingSlash: GenericRuntimeApiMethod<
|
|
1379
|
+
poolPendingSlash: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
1430
1380
|
|
|
1431
1381
|
/**
|
|
1432
1382
|
* Returns the pending slash for a given pool member.
|
|
@@ -1437,7 +1387,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1437
1387
|
* @callname: NominationPoolsApi_member_pending_slash
|
|
1438
1388
|
* @param {AccountId32Like} member
|
|
1439
1389
|
**/
|
|
1440
|
-
memberPendingSlash: GenericRuntimeApiMethod<
|
|
1390
|
+
memberPendingSlash: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<bigint>>;
|
|
1441
1391
|
|
|
1442
1392
|
/**
|
|
1443
1393
|
* Returns true if the pool with `pool_id` needs migration.
|
|
@@ -1452,7 +1402,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1452
1402
|
* @callname: NominationPoolsApi_pool_needs_delegate_migration
|
|
1453
1403
|
* @param {number} pool_id
|
|
1454
1404
|
**/
|
|
1455
|
-
poolNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
1405
|
+
poolNeedsDelegateMigration: GenericRuntimeApiMethod<(poolId: number) => Promise<boolean>>;
|
|
1456
1406
|
|
|
1457
1407
|
/**
|
|
1458
1408
|
* Returns true if the delegated funds of the pool `member` needs migration.
|
|
@@ -1466,7 +1416,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1466
1416
|
* @callname: NominationPoolsApi_member_needs_delegate_migration
|
|
1467
1417
|
* @param {AccountId32Like} member
|
|
1468
1418
|
**/
|
|
1469
|
-
memberNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
1419
|
+
memberNeedsDelegateMigration: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<boolean>>;
|
|
1470
1420
|
|
|
1471
1421
|
/**
|
|
1472
1422
|
* Returns the total contribution of a pool member including any balance that is unbonding.
|
|
@@ -1474,7 +1424,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1474
1424
|
* @callname: NominationPoolsApi_member_total_balance
|
|
1475
1425
|
* @param {AccountId32Like} who
|
|
1476
1426
|
**/
|
|
1477
|
-
memberTotalBalance: GenericRuntimeApiMethod<
|
|
1427
|
+
memberTotalBalance: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
1478
1428
|
|
|
1479
1429
|
/**
|
|
1480
1430
|
* Total balance contributed to the pool.
|
|
@@ -1482,7 +1432,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1482
1432
|
* @callname: NominationPoolsApi_pool_balance
|
|
1483
1433
|
* @param {number} pool_id
|
|
1484
1434
|
**/
|
|
1485
|
-
poolBalance: GenericRuntimeApiMethod<
|
|
1435
|
+
poolBalance: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
1486
1436
|
|
|
1487
1437
|
/**
|
|
1488
1438
|
* Returns the bonded account and reward account associated with the pool_id.
|
|
@@ -1490,12 +1440,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1490
1440
|
* @callname: NominationPoolsApi_pool_accounts
|
|
1491
1441
|
* @param {number} pool_id
|
|
1492
1442
|
**/
|
|
1493
|
-
poolAccounts: GenericRuntimeApiMethod<
|
|
1443
|
+
poolAccounts: GenericRuntimeApiMethod<(poolId: number) => Promise<[AccountId32, AccountId32]>>;
|
|
1494
1444
|
|
|
1495
1445
|
/**
|
|
1496
1446
|
* Generic runtime api call
|
|
1497
1447
|
**/
|
|
1498
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1448
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1499
1449
|
};
|
|
1500
1450
|
/**
|
|
1501
1451
|
* @runtimeapi: StakingApi - 0x18ef58a3b67ba770
|
|
@@ -1507,7 +1457,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1507
1457
|
* @callname: StakingApi_nominations_quota
|
|
1508
1458
|
* @param {bigint} balance
|
|
1509
1459
|
**/
|
|
1510
|
-
nominationsQuota: GenericRuntimeApiMethod<
|
|
1460
|
+
nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
|
|
1511
1461
|
|
|
1512
1462
|
/**
|
|
1513
1463
|
* Returns the page count of exposures for a validator `account` in a given era.
|
|
@@ -1516,7 +1466,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1516
1466
|
* @param {number} era
|
|
1517
1467
|
* @param {AccountId32Like} account
|
|
1518
1468
|
**/
|
|
1519
|
-
erasStakersPageCount: GenericRuntimeApiMethod<
|
|
1469
|
+
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
1520
1470
|
|
|
1521
1471
|
/**
|
|
1522
1472
|
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
@@ -1525,12 +1475,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1525
1475
|
* @param {number} era
|
|
1526
1476
|
* @param {AccountId32Like} account
|
|
1527
1477
|
**/
|
|
1528
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
1478
|
+
pendingRewards: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<boolean>>;
|
|
1529
1479
|
|
|
1530
1480
|
/**
|
|
1531
1481
|
* Generic runtime api call
|
|
1532
1482
|
**/
|
|
1533
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1483
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1534
1484
|
};
|
|
1535
1485
|
/**
|
|
1536
1486
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -1551,7 +1501,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1551
1501
|
* @callname: GenesisBuilder_build_state
|
|
1552
1502
|
* @param {BytesLike} json
|
|
1553
1503
|
**/
|
|
1554
|
-
buildState: GenericRuntimeApiMethod<
|
|
1504
|
+
buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
1555
1505
|
|
|
1556
1506
|
/**
|
|
1557
1507
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
@@ -1572,7 +1522,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1572
1522
|
* @callname: GenesisBuilder_get_preset
|
|
1573
1523
|
* @param {string | undefined} id
|
|
1574
1524
|
**/
|
|
1575
|
-
getPreset: GenericRuntimeApiMethod<
|
|
1525
|
+
getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
1576
1526
|
|
|
1577
1527
|
/**
|
|
1578
1528
|
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
@@ -1582,12 +1532,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1582
1532
|
*
|
|
1583
1533
|
* @callname: GenesisBuilder_preset_names
|
|
1584
1534
|
**/
|
|
1585
|
-
presetNames: GenericRuntimeApiMethod<
|
|
1535
|
+
presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
|
|
1586
1536
|
|
|
1587
1537
|
/**
|
|
1588
1538
|
* Generic runtime api call
|
|
1589
1539
|
**/
|
|
1590
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1540
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1591
1541
|
};
|
|
1592
1542
|
/**
|
|
1593
1543
|
* @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
|
|
@@ -1605,7 +1555,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1605
1555
|
* @param {XcmVersionedLocation} location
|
|
1606
1556
|
**/
|
|
1607
1557
|
isTrustedReserve: GenericRuntimeApiMethod<
|
|
1608
|
-
Rv,
|
|
1609
1558
|
(
|
|
1610
1559
|
asset: XcmVersionedAsset,
|
|
1611
1560
|
location: XcmVersionedLocation,
|
|
@@ -1624,7 +1573,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1624
1573
|
* @param {XcmVersionedLocation} location
|
|
1625
1574
|
**/
|
|
1626
1575
|
isTrustedTeleporter: GenericRuntimeApiMethod<
|
|
1627
|
-
Rv,
|
|
1628
1576
|
(
|
|
1629
1577
|
asset: XcmVersionedAsset,
|
|
1630
1578
|
location: XcmVersionedLocation,
|
|
@@ -1634,6 +1582,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1634
1582
|
/**
|
|
1635
1583
|
* Generic runtime api call
|
|
1636
1584
|
**/
|
|
1637
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1585
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1638
1586
|
};
|
|
1639
1587
|
}
|