@dedot/chaintypes 0.194.0 → 0.195.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 +13 -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 +13 -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 +13 -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 +14 -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 +13 -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 +14 -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 +13 -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 +13 -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 +14 -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 +15 -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 +14 -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 +14 -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 +13 -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 +14 -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 +13 -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 +14 -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 +14 -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 +13 -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 +14 -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 +13 -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/kusama/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,
|
|
@@ -90,7 +90,7 @@ import type {
|
|
|
90
90
|
XcmRuntimeApisConversionsError,
|
|
91
91
|
} from './types.js';
|
|
92
92
|
|
|
93
|
-
export interface RuntimeApis
|
|
93
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
94
94
|
/**
|
|
95
95
|
* @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
|
|
96
96
|
**/
|
|
@@ -103,12 +103,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
103
103
|
*
|
|
104
104
|
* @callname: Inflation_experimental_inflation_prediction_info
|
|
105
105
|
**/
|
|
106
|
-
experimentalInflationPredictionInfo: GenericRuntimeApiMethod<
|
|
106
|
+
experimentalInflationPredictionInfo: GenericRuntimeApiMethod<() => Promise<RelayCommonApisInflationInfo>>;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Generic runtime api call
|
|
110
110
|
**/
|
|
111
|
-
[method: string]: GenericRuntimeApiMethod
|
|
111
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
112
112
|
};
|
|
113
113
|
/**
|
|
114
114
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
@@ -119,7 +119,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
119
119
|
*
|
|
120
120
|
* @callname: Core_version
|
|
121
121
|
**/
|
|
122
|
-
version: GenericRuntimeApiMethod<
|
|
122
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Execute the given block.
|
|
@@ -127,7 +127,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
127
127
|
* @callname: Core_execute_block
|
|
128
128
|
* @param {SpRuntimeBlock} block
|
|
129
129
|
**/
|
|
130
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
130
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -135,12 +135,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
135
135
|
* @callname: Core_initialize_block
|
|
136
136
|
* @param {Header} header
|
|
137
137
|
**/
|
|
138
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
138
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* Generic runtime api call
|
|
142
142
|
**/
|
|
143
|
-
[method: string]: GenericRuntimeApiMethod
|
|
143
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
144
144
|
};
|
|
145
145
|
/**
|
|
146
146
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -151,7 +151,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
151
151
|
*
|
|
152
152
|
* @callname: Metadata_metadata
|
|
153
153
|
**/
|
|
154
|
-
metadata: GenericRuntimeApiMethod<
|
|
154
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* Returns the metadata at a given version.
|
|
@@ -162,7 +162,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
162
162
|
* @callname: Metadata_metadata_at_version
|
|
163
163
|
* @param {number} version
|
|
164
164
|
**/
|
|
165
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
165
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* Returns the supported metadata versions.
|
|
@@ -171,12 +171,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
171
171
|
*
|
|
172
172
|
* @callname: Metadata_metadata_versions
|
|
173
173
|
**/
|
|
174
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
174
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* Generic runtime api call
|
|
178
178
|
**/
|
|
179
|
-
[method: string]: GenericRuntimeApiMethod
|
|
179
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
180
180
|
};
|
|
181
181
|
/**
|
|
182
182
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -192,7 +192,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
192
192
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
193
193
|
**/
|
|
194
194
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
195
|
-
Rv,
|
|
196
195
|
(
|
|
197
196
|
extrinsic: UncheckedExtrinsicLike,
|
|
198
197
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -203,7 +202,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
203
202
|
*
|
|
204
203
|
* @callname: BlockBuilder_finalize_block
|
|
205
204
|
**/
|
|
206
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
205
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
207
206
|
|
|
208
207
|
/**
|
|
209
208
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -212,7 +211,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
212
211
|
* @param {SpInherentsInherentData} inherent
|
|
213
212
|
**/
|
|
214
213
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
215
|
-
Rv,
|
|
216
214
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
217
215
|
>;
|
|
218
216
|
|
|
@@ -224,14 +222,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
224
222
|
* @param {SpInherentsInherentData} data
|
|
225
223
|
**/
|
|
226
224
|
checkInherents: GenericRuntimeApiMethod<
|
|
227
|
-
Rv,
|
|
228
225
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
229
226
|
>;
|
|
230
227
|
|
|
231
228
|
/**
|
|
232
229
|
* Generic runtime api call
|
|
233
230
|
**/
|
|
234
|
-
[method: string]: GenericRuntimeApiMethod
|
|
231
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
235
232
|
};
|
|
236
233
|
/**
|
|
237
234
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -254,7 +251,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
254
251
|
* @param {H256} block_hash
|
|
255
252
|
**/
|
|
256
253
|
validateTransaction: GenericRuntimeApiMethod<
|
|
257
|
-
Rv,
|
|
258
254
|
(
|
|
259
255
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
260
256
|
tx: UncheckedExtrinsicLike,
|
|
@@ -267,7 +263,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
267
263
|
/**
|
|
268
264
|
* Generic runtime api call
|
|
269
265
|
**/
|
|
270
|
-
[method: string]: GenericRuntimeApiMethod
|
|
266
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
271
267
|
};
|
|
272
268
|
/**
|
|
273
269
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -279,12 +275,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
279
275
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
280
276
|
* @param {Header} header
|
|
281
277
|
**/
|
|
282
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
278
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
283
279
|
|
|
284
280
|
/**
|
|
285
281
|
* Generic runtime api call
|
|
286
282
|
**/
|
|
287
|
-
[method: string]: GenericRuntimeApiMethod
|
|
283
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
288
284
|
};
|
|
289
285
|
/**
|
|
290
286
|
* @runtimeapi: ParachainHost - 0xaf2c0297a23e6d3d
|
|
@@ -295,7 +291,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
295
291
|
*
|
|
296
292
|
* @callname: ParachainHost_validators
|
|
297
293
|
**/
|
|
298
|
-
validators: GenericRuntimeApiMethod<
|
|
294
|
+
validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorAppPublic>>>;
|
|
299
295
|
|
|
300
296
|
/**
|
|
301
297
|
* Returns the validator groups and rotation info localized based on the hypothetical child
|
|
@@ -305,7 +301,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
305
301
|
* @callname: ParachainHost_validator_groups
|
|
306
302
|
**/
|
|
307
303
|
validatorGroups: GenericRuntimeApiMethod<
|
|
308
|
-
Rv,
|
|
309
304
|
() => Promise<[Array<Array<PolkadotPrimitivesV8ValidatorIndex>>, PolkadotPrimitivesV8GroupRotationInfo]>
|
|
310
305
|
>;
|
|
311
306
|
|
|
@@ -315,7 +310,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
315
310
|
*
|
|
316
311
|
* @callname: ParachainHost_availability_cores
|
|
317
312
|
**/
|
|
318
|
-
availabilityCores: GenericRuntimeApiMethod<
|
|
313
|
+
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCoreState>>>;
|
|
319
314
|
|
|
320
315
|
/**
|
|
321
316
|
* Yields the persisted validation data for the given `ParaId` along with an assumption that
|
|
@@ -329,7 +324,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
329
324
|
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
330
325
|
**/
|
|
331
326
|
persistedValidationData: GenericRuntimeApiMethod<
|
|
332
|
-
Rv,
|
|
333
327
|
(
|
|
334
328
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
335
329
|
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
@@ -346,7 +340,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
346
340
|
* @param {H256} expected_persisted_validation_data_hash
|
|
347
341
|
**/
|
|
348
342
|
assumedValidationData: GenericRuntimeApiMethod<
|
|
349
|
-
Rv,
|
|
350
343
|
(
|
|
351
344
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
352
345
|
expectedPersistedValidationDataHash: H256,
|
|
@@ -364,7 +357,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
364
357
|
* @param {PolkadotPrimitivesV8CandidateCommitments} outputs
|
|
365
358
|
**/
|
|
366
359
|
checkValidationOutputs: GenericRuntimeApiMethod<
|
|
367
|
-
Rv,
|
|
368
360
|
(
|
|
369
361
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
370
362
|
outputs: PolkadotPrimitivesV8CandidateCommitments,
|
|
@@ -378,7 +370,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
378
370
|
*
|
|
379
371
|
* @callname: ParachainHost_session_index_for_child
|
|
380
372
|
**/
|
|
381
|
-
sessionIndexForChild: GenericRuntimeApiMethod<
|
|
373
|
+
sessionIndexForChild: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
382
374
|
|
|
383
375
|
/**
|
|
384
376
|
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
|
@@ -391,7 +383,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
391
383
|
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
392
384
|
**/
|
|
393
385
|
validationCode: GenericRuntimeApiMethod<
|
|
394
|
-
Rv,
|
|
395
386
|
(
|
|
396
387
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
397
388
|
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
@@ -406,7 +397,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
406
397
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
407
398
|
**/
|
|
408
399
|
candidatePendingAvailability: GenericRuntimeApiMethod<
|
|
409
|
-
Rv,
|
|
410
400
|
(
|
|
411
401
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
412
402
|
) => Promise<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2 | undefined>
|
|
@@ -417,7 +407,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
417
407
|
*
|
|
418
408
|
* @callname: ParachainHost_candidate_events
|
|
419
409
|
**/
|
|
420
|
-
candidateEvents: GenericRuntimeApiMethod<
|
|
410
|
+
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCandidateEvent>>>;
|
|
421
411
|
|
|
422
412
|
/**
|
|
423
413
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
@@ -426,7 +416,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
426
416
|
* @param {PolkadotParachainPrimitivesPrimitivesId} recipient
|
|
427
417
|
**/
|
|
428
418
|
dmqContents: GenericRuntimeApiMethod<
|
|
429
|
-
Rv,
|
|
430
419
|
(
|
|
431
420
|
recipient: PolkadotParachainPrimitivesPrimitivesId,
|
|
432
421
|
) => Promise<Array<PolkadotCorePrimitivesInboundDownwardMessage>>
|
|
@@ -440,7 +429,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
440
429
|
* @param {PolkadotParachainPrimitivesPrimitivesId} recipient
|
|
441
430
|
**/
|
|
442
431
|
inboundHrmpChannelsContents: GenericRuntimeApiMethod<
|
|
443
|
-
Rv,
|
|
444
432
|
(
|
|
445
433
|
recipient: PolkadotParachainPrimitivesPrimitivesId,
|
|
446
434
|
) => Promise<Array<[PolkadotParachainPrimitivesPrimitivesId, Array<PolkadotCorePrimitivesInboundHrmpMessage>]>>
|
|
@@ -453,7 +441,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
453
441
|
* @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} hash
|
|
454
442
|
**/
|
|
455
443
|
validationCodeByHash: GenericRuntimeApiMethod<
|
|
456
|
-
Rv,
|
|
457
444
|
(
|
|
458
445
|
hash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
459
446
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
|
|
@@ -464,7 +451,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
464
451
|
*
|
|
465
452
|
* @callname: ParachainHost_on_chain_votes
|
|
466
453
|
**/
|
|
467
|
-
onChainVotes: GenericRuntimeApiMethod<
|
|
454
|
+
onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined>>;
|
|
468
455
|
|
|
469
456
|
/**
|
|
470
457
|
* Get the session info for the given session, if stored.
|
|
@@ -474,7 +461,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
474
461
|
* @callname: ParachainHost_session_info
|
|
475
462
|
* @param {number} index
|
|
476
463
|
**/
|
|
477
|
-
sessionInfo: GenericRuntimeApiMethod<
|
|
464
|
+
sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV8SessionInfo | undefined>>;
|
|
478
465
|
|
|
479
466
|
/**
|
|
480
467
|
* Submits a PVF pre-checking statement into the transaction pool.
|
|
@@ -486,7 +473,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
486
473
|
* @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
|
|
487
474
|
**/
|
|
488
475
|
submitPvfCheckStatement: GenericRuntimeApiMethod<
|
|
489
|
-
Rv,
|
|
490
476
|
(stmt: PolkadotPrimitivesV8PvfCheckStatement, signature: PolkadotPrimitivesV8ValidatorAppSignature) => Promise<[]>
|
|
491
477
|
>;
|
|
492
478
|
|
|
@@ -498,7 +484,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
498
484
|
* @callname: ParachainHost_pvfs_require_precheck
|
|
499
485
|
**/
|
|
500
486
|
pvfsRequirePrecheck: GenericRuntimeApiMethod<
|
|
501
|
-
Rv,
|
|
502
487
|
() => Promise<Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>>
|
|
503
488
|
>;
|
|
504
489
|
|
|
@@ -512,7 +497,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
512
497
|
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
513
498
|
**/
|
|
514
499
|
validationCodeHash: GenericRuntimeApiMethod<
|
|
515
|
-
Rv,
|
|
516
500
|
(
|
|
517
501
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
518
502
|
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
@@ -525,7 +509,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
525
509
|
* @callname: ParachainHost_disputes
|
|
526
510
|
**/
|
|
527
511
|
disputes: GenericRuntimeApiMethod<
|
|
528
|
-
Rv,
|
|
529
512
|
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8DisputeState]>>
|
|
530
513
|
>;
|
|
531
514
|
|
|
@@ -536,7 +519,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
536
519
|
* @param {number} session_index
|
|
537
520
|
**/
|
|
538
521
|
sessionExecutorParams: GenericRuntimeApiMethod<
|
|
539
|
-
Rv,
|
|
540
522
|
(sessionIndex: number) => Promise<PolkadotPrimitivesV8ExecutorParams | undefined>
|
|
541
523
|
>;
|
|
542
524
|
|
|
@@ -547,7 +529,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
547
529
|
* @callname: ParachainHost_unapplied_slashes
|
|
548
530
|
**/
|
|
549
531
|
unappliedSlashes: GenericRuntimeApiMethod<
|
|
550
|
-
Rv,
|
|
551
532
|
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8SlashingPendingSlashes]>>
|
|
552
533
|
>;
|
|
553
534
|
|
|
@@ -559,7 +540,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
559
540
|
* @param {PolkadotPrimitivesV8ValidatorAppPublic} validator_id
|
|
560
541
|
**/
|
|
561
542
|
keyOwnershipProof: GenericRuntimeApiMethod<
|
|
562
|
-
Rv,
|
|
563
543
|
(
|
|
564
544
|
validatorId: PolkadotPrimitivesV8ValidatorAppPublic,
|
|
565
545
|
) => Promise<PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof | undefined>
|
|
@@ -575,7 +555,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
575
555
|
* @param {PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof} key_ownership_proof
|
|
576
556
|
**/
|
|
577
557
|
submitReportDisputeLost: GenericRuntimeApiMethod<
|
|
578
|
-
Rv,
|
|
579
558
|
(
|
|
580
559
|
disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
|
|
581
560
|
keyOwnershipProof: PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
|
|
@@ -588,7 +567,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
588
567
|
*
|
|
589
568
|
* @callname: ParachainHost_minimum_backing_votes
|
|
590
569
|
**/
|
|
591
|
-
minimumBackingVotes: GenericRuntimeApiMethod<
|
|
570
|
+
minimumBackingVotes: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
592
571
|
|
|
593
572
|
/**
|
|
594
573
|
* Returns the state of parachain backing for a given para.
|
|
@@ -597,7 +576,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
597
576
|
* @param {PolkadotParachainPrimitivesPrimitivesId} __runtime_api_generated_name_0__
|
|
598
577
|
**/
|
|
599
578
|
paraBackingState: GenericRuntimeApiMethod<
|
|
600
|
-
Rv,
|
|
601
579
|
(
|
|
602
580
|
runtimeApiGeneratedName0: PolkadotParachainPrimitivesPrimitivesId,
|
|
603
581
|
) => Promise<PolkadotPrimitivesVstagingAsyncBackingBackingState | undefined>
|
|
@@ -608,14 +586,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
608
586
|
*
|
|
609
587
|
* @callname: ParachainHost_async_backing_params
|
|
610
588
|
**/
|
|
611
|
-
asyncBackingParams: GenericRuntimeApiMethod<
|
|
589
|
+
asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8AsyncBackingAsyncBackingParams>>;
|
|
612
590
|
|
|
613
591
|
/**
|
|
614
592
|
* Returns a list of all disabled validators at the given block.
|
|
615
593
|
*
|
|
616
594
|
* @callname: ParachainHost_disabled_validators
|
|
617
595
|
**/
|
|
618
|
-
disabledValidators: GenericRuntimeApiMethod<
|
|
596
|
+
disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
|
|
619
597
|
|
|
620
598
|
/**
|
|
621
599
|
* Get node features.
|
|
@@ -623,14 +601,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
623
601
|
*
|
|
624
602
|
* @callname: ParachainHost_node_features
|
|
625
603
|
**/
|
|
626
|
-
nodeFeatures: GenericRuntimeApiMethod<
|
|
604
|
+
nodeFeatures: GenericRuntimeApiMethod<() => Promise<BitSequence>>;
|
|
627
605
|
|
|
628
606
|
/**
|
|
629
607
|
* Approval voting configuration parameters
|
|
630
608
|
*
|
|
631
609
|
* @callname: ParachainHost_approval_voting_params
|
|
632
610
|
**/
|
|
633
|
-
approvalVotingParams: GenericRuntimeApiMethod<
|
|
611
|
+
approvalVotingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8ApprovalVotingParams>>;
|
|
634
612
|
|
|
635
613
|
/**
|
|
636
614
|
* Claim queue
|
|
@@ -638,7 +616,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
638
616
|
* @callname: ParachainHost_claim_queue
|
|
639
617
|
**/
|
|
640
618
|
claimQueue: GenericRuntimeApiMethod<
|
|
641
|
-
Rv,
|
|
642
619
|
() => Promise<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
|
|
643
620
|
>;
|
|
644
621
|
|
|
@@ -649,7 +626,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
649
626
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
650
627
|
**/
|
|
651
628
|
candidatesPendingAvailability: GenericRuntimeApiMethod<
|
|
652
|
-
Rv,
|
|
653
629
|
(
|
|
654
630
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
655
631
|
) => Promise<Array<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2>>
|
|
@@ -660,7 +636,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
660
636
|
*
|
|
661
637
|
* @callname: ParachainHost_validation_code_bomb_limit
|
|
662
638
|
**/
|
|
663
|
-
validationCodeBombLimit: GenericRuntimeApiMethod<
|
|
639
|
+
validationCodeBombLimit: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
664
640
|
|
|
665
641
|
/**
|
|
666
642
|
* Returns the constraints on the actions that can be taken by a new parachain
|
|
@@ -670,7 +646,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
670
646
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
671
647
|
**/
|
|
672
648
|
backingConstraints: GenericRuntimeApiMethod<
|
|
673
|
-
Rv,
|
|
674
649
|
(
|
|
675
650
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
676
651
|
) => Promise<PolkadotPrimitivesVstagingAsyncBackingConstraints | undefined>
|
|
@@ -681,12 +656,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
681
656
|
*
|
|
682
657
|
* @callname: ParachainHost_scheduling_lookahead
|
|
683
658
|
**/
|
|
684
|
-
schedulingLookahead: GenericRuntimeApiMethod<
|
|
659
|
+
schedulingLookahead: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
685
660
|
|
|
686
661
|
/**
|
|
687
662
|
* Generic runtime api call
|
|
688
663
|
**/
|
|
689
|
-
[method: string]: GenericRuntimeApiMethod
|
|
664
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
690
665
|
};
|
|
691
666
|
/**
|
|
692
667
|
* @runtimeapi: BeefyApi - 0x49eaaf1b548a0cb0
|
|
@@ -697,14 +672,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
697
672
|
*
|
|
698
673
|
* @callname: BeefyApi_beefy_genesis
|
|
699
674
|
**/
|
|
700
|
-
beefyGenesis: GenericRuntimeApiMethod<
|
|
675
|
+
beefyGenesis: GenericRuntimeApiMethod<() => Promise<number | undefined>>;
|
|
701
676
|
|
|
702
677
|
/**
|
|
703
678
|
* Return the current active BEEFY validator set
|
|
704
679
|
*
|
|
705
680
|
* @callname: BeefyApi_validator_set
|
|
706
681
|
**/
|
|
707
|
-
validatorSet: GenericRuntimeApiMethod<
|
|
682
|
+
validatorSet: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyValidatorSet | undefined>>;
|
|
708
683
|
|
|
709
684
|
/**
|
|
710
685
|
* Submits an unsigned extrinsic to report a double voting equivocation. The caller
|
|
@@ -721,7 +696,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
721
696
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
722
697
|
**/
|
|
723
698
|
submitReportDoubleVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
724
|
-
Rv,
|
|
725
699
|
(
|
|
726
700
|
equivocationProof: SpConsensusBeefyDoubleVotingProof,
|
|
727
701
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -743,7 +717,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
743
717
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
744
718
|
**/
|
|
745
719
|
submitReportForkVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
746
|
-
Rv,
|
|
747
720
|
(
|
|
748
721
|
equivocationProof: SpConsensusBeefyForkVotingProofOpaqueValue,
|
|
749
722
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -765,7 +738,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
765
738
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
766
739
|
**/
|
|
767
740
|
submitReportFutureBlockVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
768
|
-
Rv,
|
|
769
741
|
(
|
|
770
742
|
equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
|
|
771
743
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -790,7 +762,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
790
762
|
* @param {SpConsensusBeefyEcdsaCryptoPublic} authority_id
|
|
791
763
|
**/
|
|
792
764
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
793
|
-
Rv,
|
|
794
765
|
(setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
795
766
|
>;
|
|
796
767
|
|
|
@@ -803,14 +774,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
803
774
|
* @param {number | undefined} best_known_block_number
|
|
804
775
|
**/
|
|
805
776
|
generateAncestryProof: GenericRuntimeApiMethod<
|
|
806
|
-
Rv,
|
|
807
777
|
(prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
808
778
|
>;
|
|
809
779
|
|
|
810
780
|
/**
|
|
811
781
|
* Generic runtime api call
|
|
812
782
|
**/
|
|
813
|
-
[method: string]: GenericRuntimeApiMethod
|
|
783
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
814
784
|
};
|
|
815
785
|
/**
|
|
816
786
|
* @runtimeapi: MmrApi - 0x91d5df18b0d2cf58
|
|
@@ -821,14 +791,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
821
791
|
*
|
|
822
792
|
* @callname: MmrApi_mmr_root
|
|
823
793
|
**/
|
|
824
|
-
mmrRoot: GenericRuntimeApiMethod<
|
|
794
|
+
mmrRoot: GenericRuntimeApiMethod<() => Promise<Result<H256, SpMmrPrimitivesError>>>;
|
|
825
795
|
|
|
826
796
|
/**
|
|
827
797
|
* Return the number of MMR blocks in the chain.
|
|
828
798
|
*
|
|
829
799
|
* @callname: MmrApi_mmr_leaf_count
|
|
830
800
|
**/
|
|
831
|
-
mmrLeafCount: GenericRuntimeApiMethod<
|
|
801
|
+
mmrLeafCount: GenericRuntimeApiMethod<() => Promise<Result<bigint, SpMmrPrimitivesError>>>;
|
|
832
802
|
|
|
833
803
|
/**
|
|
834
804
|
* Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,
|
|
@@ -839,7 +809,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
839
809
|
* @param {number | undefined} best_known_block_number
|
|
840
810
|
**/
|
|
841
811
|
generateProof: GenericRuntimeApiMethod<
|
|
842
|
-
Rv,
|
|
843
812
|
(
|
|
844
813
|
blockNumbers: Array<number>,
|
|
845
814
|
bestKnownBlockNumber?: number | undefined,
|
|
@@ -858,7 +827,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
858
827
|
* @param {SpMmrPrimitivesLeafProof} proof
|
|
859
828
|
**/
|
|
860
829
|
verifyProof: GenericRuntimeApiMethod<
|
|
861
|
-
Rv,
|
|
862
830
|
(
|
|
863
831
|
leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
|
|
864
832
|
proof: SpMmrPrimitivesLeafProof,
|
|
@@ -880,7 +848,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
880
848
|
* @param {SpMmrPrimitivesLeafProof} proof
|
|
881
849
|
**/
|
|
882
850
|
verifyProofStateless: GenericRuntimeApiMethod<
|
|
883
|
-
Rv,
|
|
884
851
|
(
|
|
885
852
|
root: H256,
|
|
886
853
|
leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
|
|
@@ -891,7 +858,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
891
858
|
/**
|
|
892
859
|
* Generic runtime api call
|
|
893
860
|
**/
|
|
894
|
-
[method: string]: GenericRuntimeApiMethod
|
|
861
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
895
862
|
};
|
|
896
863
|
/**
|
|
897
864
|
* @runtimeapi: BeefyMmrApi - 0x2a5e924655399e60
|
|
@@ -902,19 +869,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
902
869
|
*
|
|
903
870
|
* @callname: BeefyMmrApi_authority_set_proof
|
|
904
871
|
**/
|
|
905
|
-
authoritySetProof: GenericRuntimeApiMethod<
|
|
872
|
+
authoritySetProof: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
|
906
873
|
|
|
907
874
|
/**
|
|
908
875
|
* Return the next/queued BEEFY authority set proof.
|
|
909
876
|
*
|
|
910
877
|
* @callname: BeefyMmrApi_next_authority_set_proof
|
|
911
878
|
**/
|
|
912
|
-
nextAuthoritySetProof: GenericRuntimeApiMethod<
|
|
879
|
+
nextAuthoritySetProof: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
|
913
880
|
|
|
914
881
|
/**
|
|
915
882
|
* Generic runtime api call
|
|
916
883
|
**/
|
|
917
|
-
[method: string]: GenericRuntimeApiMethod
|
|
884
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
918
885
|
};
|
|
919
886
|
/**
|
|
920
887
|
* @runtimeapi: GrandpaApi - 0xed99c5acb25eedf5
|
|
@@ -930,7 +897,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
930
897
|
*
|
|
931
898
|
* @callname: GrandpaApi_grandpa_authorities
|
|
932
899
|
**/
|
|
933
|
-
grandpaAuthorities: GenericRuntimeApiMethod<
|
|
900
|
+
grandpaAuthorities: GenericRuntimeApiMethod<() => Promise<Array<[SpConsensusGrandpaAppPublic, bigint]>>>;
|
|
934
901
|
|
|
935
902
|
/**
|
|
936
903
|
* Submits an unsigned extrinsic to report an equivocation. The caller
|
|
@@ -947,7 +914,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
947
914
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
948
915
|
**/
|
|
949
916
|
submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
950
|
-
Rv,
|
|
951
917
|
(
|
|
952
918
|
equivocationProof: SpConsensusGrandpaEquivocationProof,
|
|
953
919
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -972,7 +938,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
972
938
|
* @param {SpConsensusGrandpaAppPublic} authority_id
|
|
973
939
|
**/
|
|
974
940
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
975
|
-
Rv,
|
|
976
941
|
(setId: bigint, authorityId: SpConsensusGrandpaAppPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
977
942
|
>;
|
|
978
943
|
|
|
@@ -981,12 +946,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
981
946
|
*
|
|
982
947
|
* @callname: GrandpaApi_current_set_id
|
|
983
948
|
**/
|
|
984
|
-
currentSetId: GenericRuntimeApiMethod<
|
|
949
|
+
currentSetId: GenericRuntimeApiMethod<() => Promise<bigint>>;
|
|
985
950
|
|
|
986
951
|
/**
|
|
987
952
|
* Generic runtime api call
|
|
988
953
|
**/
|
|
989
|
-
[method: string]: GenericRuntimeApiMethod
|
|
954
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
990
955
|
};
|
|
991
956
|
/**
|
|
992
957
|
* @runtimeapi: BabeApi - 0xcbca25e39f142387
|
|
@@ -997,21 +962,21 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
997
962
|
*
|
|
998
963
|
* @callname: BabeApi_configuration
|
|
999
964
|
**/
|
|
1000
|
-
configuration: GenericRuntimeApiMethod<
|
|
965
|
+
configuration: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeBabeConfiguration>>;
|
|
1001
966
|
|
|
1002
967
|
/**
|
|
1003
968
|
* Returns the slot that started the current epoch.
|
|
1004
969
|
*
|
|
1005
970
|
* @callname: BabeApi_current_epoch_start
|
|
1006
971
|
**/
|
|
1007
|
-
currentEpochStart: GenericRuntimeApiMethod<
|
|
972
|
+
currentEpochStart: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlot>>;
|
|
1008
973
|
|
|
1009
974
|
/**
|
|
1010
975
|
* Returns information regarding the current epoch.
|
|
1011
976
|
*
|
|
1012
977
|
* @callname: BabeApi_current_epoch
|
|
1013
978
|
**/
|
|
1014
|
-
currentEpoch: GenericRuntimeApiMethod<
|
|
979
|
+
currentEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
|
|
1015
980
|
|
|
1016
981
|
/**
|
|
1017
982
|
* Returns information regarding the next epoch (which was already
|
|
@@ -1019,7 +984,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1019
984
|
*
|
|
1020
985
|
* @callname: BabeApi_next_epoch
|
|
1021
986
|
**/
|
|
1022
|
-
nextEpoch: GenericRuntimeApiMethod<
|
|
987
|
+
nextEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
|
|
1023
988
|
|
|
1024
989
|
/**
|
|
1025
990
|
* Generates a proof of key ownership for the given authority in the
|
|
@@ -1039,7 +1004,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1039
1004
|
* @param {SpConsensusBabeAppPublic} authority_id
|
|
1040
1005
|
**/
|
|
1041
1006
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
1042
|
-
Rv,
|
|
1043
1007
|
(
|
|
1044
1008
|
slot: SpConsensusSlotsSlot,
|
|
1045
1009
|
authorityId: SpConsensusBabeAppPublic,
|
|
@@ -1061,7 +1025,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1061
1025
|
* @param {SpConsensusBabeOpaqueKeyOwnershipProof} key_owner_proof
|
|
1062
1026
|
**/
|
|
1063
1027
|
submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
1064
|
-
Rv,
|
|
1065
1028
|
(
|
|
1066
1029
|
equivocationProof: SpConsensusSlotsEquivocationProof,
|
|
1067
1030
|
keyOwnerProof: SpConsensusBabeOpaqueKeyOwnershipProof,
|
|
@@ -1071,7 +1034,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1071
1034
|
/**
|
|
1072
1035
|
* Generic runtime api call
|
|
1073
1036
|
**/
|
|
1074
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1037
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1075
1038
|
};
|
|
1076
1039
|
/**
|
|
1077
1040
|
* @runtimeapi: AuthorityDiscoveryApi - 0x687ad44ad37f03c2
|
|
@@ -1082,12 +1045,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1082
1045
|
*
|
|
1083
1046
|
* @callname: AuthorityDiscoveryApi_authorities
|
|
1084
1047
|
**/
|
|
1085
|
-
authorities: GenericRuntimeApiMethod<
|
|
1048
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpAuthorityDiscoveryAppPublic>>>;
|
|
1086
1049
|
|
|
1087
1050
|
/**
|
|
1088
1051
|
* Generic runtime api call
|
|
1089
1052
|
**/
|
|
1090
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1053
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1091
1054
|
};
|
|
1092
1055
|
/**
|
|
1093
1056
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -1105,7 +1068,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1105
1068
|
* @callname: SessionKeys_generate_session_keys
|
|
1106
1069
|
* @param {BytesLike | undefined} seed
|
|
1107
1070
|
**/
|
|
1108
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
1071
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
1109
1072
|
|
|
1110
1073
|
/**
|
|
1111
1074
|
* Decode the given public session keys.
|
|
@@ -1116,14 +1079,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1116
1079
|
* @param {BytesLike} encoded
|
|
1117
1080
|
**/
|
|
1118
1081
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
1119
|
-
Rv,
|
|
1120
1082
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
1121
1083
|
>;
|
|
1122
1084
|
|
|
1123
1085
|
/**
|
|
1124
1086
|
* Generic runtime api call
|
|
1125
1087
|
**/
|
|
1126
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1088
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1127
1089
|
};
|
|
1128
1090
|
/**
|
|
1129
1091
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -1135,12 +1097,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1135
1097
|
* @callname: AccountNonceApi_account_nonce
|
|
1136
1098
|
* @param {AccountId32Like} account
|
|
1137
1099
|
**/
|
|
1138
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
1100
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
1139
1101
|
|
|
1140
1102
|
/**
|
|
1141
1103
|
* Generic runtime api call
|
|
1142
1104
|
**/
|
|
1143
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1105
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1144
1106
|
};
|
|
1145
1107
|
/**
|
|
1146
1108
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -1153,7 +1115,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1153
1115
|
* @param {number} len
|
|
1154
1116
|
**/
|
|
1155
1117
|
queryInfo: GenericRuntimeApiMethod<
|
|
1156
|
-
Rv,
|
|
1157
1118
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
1158
1119
|
>;
|
|
1159
1120
|
|
|
@@ -1164,7 +1125,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1164
1125
|
* @param {number} len
|
|
1165
1126
|
**/
|
|
1166
1127
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
1167
|
-
Rv,
|
|
1168
1128
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
1169
1129
|
>;
|
|
1170
1130
|
|
|
@@ -1173,19 +1133,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1173
1133
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
1174
1134
|
* @param {SpWeightsWeightV2Weight} weight
|
|
1175
1135
|
**/
|
|
1176
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
1136
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
1177
1137
|
|
|
1178
1138
|
/**
|
|
1179
1139
|
*
|
|
1180
1140
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
1181
1141
|
* @param {number} length
|
|
1182
1142
|
**/
|
|
1183
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
1143
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
1184
1144
|
|
|
1185
1145
|
/**
|
|
1186
1146
|
* Generic runtime api call
|
|
1187
1147
|
**/
|
|
1188
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1148
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1189
1149
|
};
|
|
1190
1150
|
/**
|
|
1191
1151
|
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
@@ -1199,7 +1159,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1199
1159
|
* @param {number} len
|
|
1200
1160
|
**/
|
|
1201
1161
|
queryCallInfo: GenericRuntimeApiMethod<
|
|
1202
|
-
Rv,
|
|
1203
1162
|
(call: StagingKusamaRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
1204
1163
|
>;
|
|
1205
1164
|
|
|
@@ -1211,7 +1170,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1211
1170
|
* @param {number} len
|
|
1212
1171
|
**/
|
|
1213
1172
|
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
1214
|
-
Rv,
|
|
1215
1173
|
(call: StagingKusamaRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
1216
1174
|
>;
|
|
1217
1175
|
|
|
@@ -1221,7 +1179,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1221
1179
|
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
1222
1180
|
* @param {SpWeightsWeightV2Weight} weight
|
|
1223
1181
|
**/
|
|
1224
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
1182
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
1225
1183
|
|
|
1226
1184
|
/**
|
|
1227
1185
|
* Query the output of the current `LengthToFee` given some input.
|
|
@@ -1229,12 +1187,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1229
1187
|
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
1230
1188
|
* @param {number} length
|
|
1231
1189
|
**/
|
|
1232
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
1190
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
1233
1191
|
|
|
1234
1192
|
/**
|
|
1235
1193
|
* Generic runtime api call
|
|
1236
1194
|
**/
|
|
1237
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1195
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1238
1196
|
};
|
|
1239
1197
|
/**
|
|
1240
1198
|
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
@@ -1251,7 +1209,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1251
1209
|
* @param {number} xcm_version
|
|
1252
1210
|
**/
|
|
1253
1211
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
1254
|
-
Rv,
|
|
1255
1212
|
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
1256
1213
|
>;
|
|
1257
1214
|
|
|
@@ -1266,7 +1223,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1266
1223
|
* @param {XcmVersionedXcm} message
|
|
1267
1224
|
**/
|
|
1268
1225
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
1269
|
-
Rv,
|
|
1270
1226
|
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
1271
1227
|
>;
|
|
1272
1228
|
|
|
@@ -1283,7 +1239,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1283
1239
|
* @param {XcmVersionedAssetId} asset
|
|
1284
1240
|
**/
|
|
1285
1241
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
1286
|
-
Rv,
|
|
1287
1242
|
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
1288
1243
|
>;
|
|
1289
1244
|
|
|
@@ -1302,7 +1257,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1302
1257
|
* @param {XcmVersionedXcm} message
|
|
1303
1258
|
**/
|
|
1304
1259
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
1305
|
-
Rv,
|
|
1306
1260
|
(
|
|
1307
1261
|
destination: XcmVersionedLocation,
|
|
1308
1262
|
message: XcmVersionedXcm,
|
|
@@ -1312,7 +1266,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1312
1266
|
/**
|
|
1313
1267
|
* Generic runtime api call
|
|
1314
1268
|
**/
|
|
1315
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1269
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1316
1270
|
};
|
|
1317
1271
|
/**
|
|
1318
1272
|
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
@@ -1327,7 +1281,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1327
1281
|
* @param {number} result_xcms_version
|
|
1328
1282
|
**/
|
|
1329
1283
|
dryRunCall: GenericRuntimeApiMethod<
|
|
1330
|
-
Rv,
|
|
1331
1284
|
(
|
|
1332
1285
|
origin: StagingKusamaRuntimeOriginCaller,
|
|
1333
1286
|
call: StagingKusamaRuntimeRuntimeCallLike,
|
|
@@ -1343,7 +1296,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1343
1296
|
* @param {XcmVersionedXcm} xcm
|
|
1344
1297
|
**/
|
|
1345
1298
|
dryRunXcm: GenericRuntimeApiMethod<
|
|
1346
|
-
Rv,
|
|
1347
1299
|
(
|
|
1348
1300
|
originLocation: XcmVersionedLocation,
|
|
1349
1301
|
xcm: XcmVersionedXcm,
|
|
@@ -1353,7 +1305,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1353
1305
|
/**
|
|
1354
1306
|
* Generic runtime api call
|
|
1355
1307
|
**/
|
|
1356
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1308
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1357
1309
|
};
|
|
1358
1310
|
/**
|
|
1359
1311
|
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
@@ -1366,14 +1318,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1366
1318
|
* @param {XcmVersionedLocation} location
|
|
1367
1319
|
**/
|
|
1368
1320
|
convertLocation: GenericRuntimeApiMethod<
|
|
1369
|
-
Rv,
|
|
1370
1321
|
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
1371
1322
|
>;
|
|
1372
1323
|
|
|
1373
1324
|
/**
|
|
1374
1325
|
* Generic runtime api call
|
|
1375
1326
|
**/
|
|
1376
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1327
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1377
1328
|
};
|
|
1378
1329
|
/**
|
|
1379
1330
|
* @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
|
|
@@ -1385,7 +1336,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1385
1336
|
* @callname: NominationPoolsApi_pending_rewards
|
|
1386
1337
|
* @param {AccountId32Like} who
|
|
1387
1338
|
**/
|
|
1388
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
1339
|
+
pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
1389
1340
|
|
|
1390
1341
|
/**
|
|
1391
1342
|
* Returns the equivalent balance of `points` for a given pool.
|
|
@@ -1394,7 +1345,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1394
1345
|
* @param {number} pool_id
|
|
1395
1346
|
* @param {bigint} points
|
|
1396
1347
|
**/
|
|
1397
|
-
pointsToBalance: GenericRuntimeApiMethod<
|
|
1348
|
+
pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
|
|
1398
1349
|
|
|
1399
1350
|
/**
|
|
1400
1351
|
* Returns the equivalent points of `new_funds` for a given pool.
|
|
@@ -1403,7 +1354,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1403
1354
|
* @param {number} pool_id
|
|
1404
1355
|
* @param {bigint} new_funds
|
|
1405
1356
|
**/
|
|
1406
|
-
balanceToPoints: GenericRuntimeApiMethod<
|
|
1357
|
+
balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
|
|
1407
1358
|
|
|
1408
1359
|
/**
|
|
1409
1360
|
* Returns the pending slash for a given pool.
|
|
@@ -1411,7 +1362,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1411
1362
|
* @callname: NominationPoolsApi_pool_pending_slash
|
|
1412
1363
|
* @param {number} pool_id
|
|
1413
1364
|
**/
|
|
1414
|
-
poolPendingSlash: GenericRuntimeApiMethod<
|
|
1365
|
+
poolPendingSlash: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
1415
1366
|
|
|
1416
1367
|
/**
|
|
1417
1368
|
* Returns the pending slash for a given pool member.
|
|
@@ -1422,7 +1373,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1422
1373
|
* @callname: NominationPoolsApi_member_pending_slash
|
|
1423
1374
|
* @param {AccountId32Like} member
|
|
1424
1375
|
**/
|
|
1425
|
-
memberPendingSlash: GenericRuntimeApiMethod<
|
|
1376
|
+
memberPendingSlash: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<bigint>>;
|
|
1426
1377
|
|
|
1427
1378
|
/**
|
|
1428
1379
|
* Returns true if the pool with `pool_id` needs migration.
|
|
@@ -1437,7 +1388,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1437
1388
|
* @callname: NominationPoolsApi_pool_needs_delegate_migration
|
|
1438
1389
|
* @param {number} pool_id
|
|
1439
1390
|
**/
|
|
1440
|
-
poolNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
1391
|
+
poolNeedsDelegateMigration: GenericRuntimeApiMethod<(poolId: number) => Promise<boolean>>;
|
|
1441
1392
|
|
|
1442
1393
|
/**
|
|
1443
1394
|
* Returns true if the delegated funds of the pool `member` needs migration.
|
|
@@ -1451,7 +1402,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1451
1402
|
* @callname: NominationPoolsApi_member_needs_delegate_migration
|
|
1452
1403
|
* @param {AccountId32Like} member
|
|
1453
1404
|
**/
|
|
1454
|
-
memberNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
1405
|
+
memberNeedsDelegateMigration: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<boolean>>;
|
|
1455
1406
|
|
|
1456
1407
|
/**
|
|
1457
1408
|
* Returns the total contribution of a pool member including any balance that is unbonding.
|
|
@@ -1459,7 +1410,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1459
1410
|
* @callname: NominationPoolsApi_member_total_balance
|
|
1460
1411
|
* @param {AccountId32Like} who
|
|
1461
1412
|
**/
|
|
1462
|
-
memberTotalBalance: GenericRuntimeApiMethod<
|
|
1413
|
+
memberTotalBalance: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
1463
1414
|
|
|
1464
1415
|
/**
|
|
1465
1416
|
* Total balance contributed to the pool.
|
|
@@ -1467,7 +1418,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1467
1418
|
* @callname: NominationPoolsApi_pool_balance
|
|
1468
1419
|
* @param {number} pool_id
|
|
1469
1420
|
**/
|
|
1470
|
-
poolBalance: GenericRuntimeApiMethod<
|
|
1421
|
+
poolBalance: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
1471
1422
|
|
|
1472
1423
|
/**
|
|
1473
1424
|
* Returns the bonded account and reward account associated with the pool_id.
|
|
@@ -1475,12 +1426,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1475
1426
|
* @callname: NominationPoolsApi_pool_accounts
|
|
1476
1427
|
* @param {number} pool_id
|
|
1477
1428
|
**/
|
|
1478
|
-
poolAccounts: GenericRuntimeApiMethod<
|
|
1429
|
+
poolAccounts: GenericRuntimeApiMethod<(poolId: number) => Promise<[AccountId32, AccountId32]>>;
|
|
1479
1430
|
|
|
1480
1431
|
/**
|
|
1481
1432
|
* Generic runtime api call
|
|
1482
1433
|
**/
|
|
1483
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1434
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1484
1435
|
};
|
|
1485
1436
|
/**
|
|
1486
1437
|
* @runtimeapi: StakingApi - 0x18ef58a3b67ba770
|
|
@@ -1492,7 +1443,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1492
1443
|
* @callname: StakingApi_nominations_quota
|
|
1493
1444
|
* @param {bigint} balance
|
|
1494
1445
|
**/
|
|
1495
|
-
nominationsQuota: GenericRuntimeApiMethod<
|
|
1446
|
+
nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
|
|
1496
1447
|
|
|
1497
1448
|
/**
|
|
1498
1449
|
* Returns the page count of exposures for a validator `account` in a given era.
|
|
@@ -1501,7 +1452,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1501
1452
|
* @param {number} era
|
|
1502
1453
|
* @param {AccountId32Like} account
|
|
1503
1454
|
**/
|
|
1504
|
-
erasStakersPageCount: GenericRuntimeApiMethod<
|
|
1455
|
+
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
1505
1456
|
|
|
1506
1457
|
/**
|
|
1507
1458
|
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
@@ -1510,12 +1461,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1510
1461
|
* @param {number} era
|
|
1511
1462
|
* @param {AccountId32Like} account
|
|
1512
1463
|
**/
|
|
1513
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
1464
|
+
pendingRewards: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<boolean>>;
|
|
1514
1465
|
|
|
1515
1466
|
/**
|
|
1516
1467
|
* Generic runtime api call
|
|
1517
1468
|
**/
|
|
1518
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1469
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1519
1470
|
};
|
|
1520
1471
|
/**
|
|
1521
1472
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -1536,7 +1487,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1536
1487
|
* @callname: GenesisBuilder_build_state
|
|
1537
1488
|
* @param {BytesLike} json
|
|
1538
1489
|
**/
|
|
1539
|
-
buildState: GenericRuntimeApiMethod<
|
|
1490
|
+
buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
1540
1491
|
|
|
1541
1492
|
/**
|
|
1542
1493
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
@@ -1557,7 +1508,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1557
1508
|
* @callname: GenesisBuilder_get_preset
|
|
1558
1509
|
* @param {string | undefined} id
|
|
1559
1510
|
**/
|
|
1560
|
-
getPreset: GenericRuntimeApiMethod<
|
|
1511
|
+
getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
1561
1512
|
|
|
1562
1513
|
/**
|
|
1563
1514
|
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
@@ -1567,11 +1518,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1567
1518
|
*
|
|
1568
1519
|
* @callname: GenesisBuilder_preset_names
|
|
1569
1520
|
**/
|
|
1570
|
-
presetNames: GenericRuntimeApiMethod<
|
|
1521
|
+
presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
|
|
1571
1522
|
|
|
1572
1523
|
/**
|
|
1573
1524
|
* Generic runtime api call
|
|
1574
1525
|
**/
|
|
1575
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1526
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1576
1527
|
};
|
|
1577
1528
|
}
|