@dedot/chaintypes 0.193.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 -4
- 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/polkadot/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,
|
|
@@ -92,7 +92,7 @@ import type {
|
|
|
92
92
|
XcmRuntimeApisConversionsError,
|
|
93
93
|
} from './types.js';
|
|
94
94
|
|
|
95
|
-
export interface RuntimeApis
|
|
95
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
96
96
|
/**
|
|
97
97
|
* @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
|
|
98
98
|
**/
|
|
@@ -105,12 +105,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
105
105
|
*
|
|
106
106
|
* @callname: Inflation_experimental_inflation_prediction_info
|
|
107
107
|
**/
|
|
108
|
-
experimentalInflationPredictionInfo: GenericRuntimeApiMethod<
|
|
108
|
+
experimentalInflationPredictionInfo: GenericRuntimeApiMethod<() => Promise<RelayCommonApisInflationInfo>>;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* Generic runtime api call
|
|
112
112
|
**/
|
|
113
|
-
[method: string]: GenericRuntimeApiMethod
|
|
113
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
114
114
|
};
|
|
115
115
|
/**
|
|
116
116
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
@@ -121,7 +121,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
121
121
|
*
|
|
122
122
|
* @callname: Core_version
|
|
123
123
|
**/
|
|
124
|
-
version: GenericRuntimeApiMethod<
|
|
124
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* Execute the given block.
|
|
@@ -129,7 +129,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
129
129
|
* @callname: Core_execute_block
|
|
130
130
|
* @param {SpRuntimeBlock} block
|
|
131
131
|
**/
|
|
132
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
132
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -137,12 +137,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
137
137
|
* @callname: Core_initialize_block
|
|
138
138
|
* @param {Header} header
|
|
139
139
|
**/
|
|
140
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
140
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* Generic runtime api call
|
|
144
144
|
**/
|
|
145
|
-
[method: string]: GenericRuntimeApiMethod
|
|
145
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
146
146
|
};
|
|
147
147
|
/**
|
|
148
148
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -153,7 +153,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
153
153
|
*
|
|
154
154
|
* @callname: Metadata_metadata
|
|
155
155
|
**/
|
|
156
|
-
metadata: GenericRuntimeApiMethod<
|
|
156
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
159
|
* Returns the metadata at a given version.
|
|
@@ -164,7 +164,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
164
164
|
* @callname: Metadata_metadata_at_version
|
|
165
165
|
* @param {number} version
|
|
166
166
|
**/
|
|
167
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
167
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
170
|
* Returns the supported metadata versions.
|
|
@@ -173,12 +173,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
173
173
|
*
|
|
174
174
|
* @callname: Metadata_metadata_versions
|
|
175
175
|
**/
|
|
176
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
176
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
179
|
* Generic runtime api call
|
|
180
180
|
**/
|
|
181
|
-
[method: string]: GenericRuntimeApiMethod
|
|
181
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
182
182
|
};
|
|
183
183
|
/**
|
|
184
184
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -194,7 +194,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
194
194
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
195
195
|
**/
|
|
196
196
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
197
|
-
Rv,
|
|
198
197
|
(
|
|
199
198
|
extrinsic: UncheckedExtrinsicLike,
|
|
200
199
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -205,7 +204,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
205
204
|
*
|
|
206
205
|
* @callname: BlockBuilder_finalize_block
|
|
207
206
|
**/
|
|
208
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
207
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
209
208
|
|
|
210
209
|
/**
|
|
211
210
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -214,7 +213,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
214
213
|
* @param {SpInherentsInherentData} inherent
|
|
215
214
|
**/
|
|
216
215
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
217
|
-
Rv,
|
|
218
216
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
219
217
|
>;
|
|
220
218
|
|
|
@@ -226,14 +224,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
226
224
|
* @param {SpInherentsInherentData} data
|
|
227
225
|
**/
|
|
228
226
|
checkInherents: GenericRuntimeApiMethod<
|
|
229
|
-
Rv,
|
|
230
227
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
231
228
|
>;
|
|
232
229
|
|
|
233
230
|
/**
|
|
234
231
|
* Generic runtime api call
|
|
235
232
|
**/
|
|
236
|
-
[method: string]: GenericRuntimeApiMethod
|
|
233
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
237
234
|
};
|
|
238
235
|
/**
|
|
239
236
|
* @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
|
|
@@ -245,7 +242,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
245
242
|
* @callname: NominationPoolsApi_pending_rewards
|
|
246
243
|
* @param {AccountId32Like} who
|
|
247
244
|
**/
|
|
248
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
245
|
+
pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
249
246
|
|
|
250
247
|
/**
|
|
251
248
|
* Returns the equivalent balance of `points` for a given pool.
|
|
@@ -254,7 +251,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
254
251
|
* @param {number} pool_id
|
|
255
252
|
* @param {bigint} points
|
|
256
253
|
**/
|
|
257
|
-
pointsToBalance: GenericRuntimeApiMethod<
|
|
254
|
+
pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
|
|
258
255
|
|
|
259
256
|
/**
|
|
260
257
|
* Returns the equivalent points of `new_funds` for a given pool.
|
|
@@ -263,7 +260,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
263
260
|
* @param {number} pool_id
|
|
264
261
|
* @param {bigint} new_funds
|
|
265
262
|
**/
|
|
266
|
-
balanceToPoints: GenericRuntimeApiMethod<
|
|
263
|
+
balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
|
|
267
264
|
|
|
268
265
|
/**
|
|
269
266
|
* Returns the pending slash for a given pool.
|
|
@@ -271,7 +268,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
271
268
|
* @callname: NominationPoolsApi_pool_pending_slash
|
|
272
269
|
* @param {number} pool_id
|
|
273
270
|
**/
|
|
274
|
-
poolPendingSlash: GenericRuntimeApiMethod<
|
|
271
|
+
poolPendingSlash: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
275
272
|
|
|
276
273
|
/**
|
|
277
274
|
* Returns the pending slash for a given pool member.
|
|
@@ -282,7 +279,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
282
279
|
* @callname: NominationPoolsApi_member_pending_slash
|
|
283
280
|
* @param {AccountId32Like} member
|
|
284
281
|
**/
|
|
285
|
-
memberPendingSlash: GenericRuntimeApiMethod<
|
|
282
|
+
memberPendingSlash: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<bigint>>;
|
|
286
283
|
|
|
287
284
|
/**
|
|
288
285
|
* Returns true if the pool with `pool_id` needs migration.
|
|
@@ -297,7 +294,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
297
294
|
* @callname: NominationPoolsApi_pool_needs_delegate_migration
|
|
298
295
|
* @param {number} pool_id
|
|
299
296
|
**/
|
|
300
|
-
poolNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
297
|
+
poolNeedsDelegateMigration: GenericRuntimeApiMethod<(poolId: number) => Promise<boolean>>;
|
|
301
298
|
|
|
302
299
|
/**
|
|
303
300
|
* Returns true if the delegated funds of the pool `member` needs migration.
|
|
@@ -311,7 +308,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
311
308
|
* @callname: NominationPoolsApi_member_needs_delegate_migration
|
|
312
309
|
* @param {AccountId32Like} member
|
|
313
310
|
**/
|
|
314
|
-
memberNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
311
|
+
memberNeedsDelegateMigration: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<boolean>>;
|
|
315
312
|
|
|
316
313
|
/**
|
|
317
314
|
* Returns the total contribution of a pool member including any balance that is unbonding.
|
|
@@ -319,7 +316,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
319
316
|
* @callname: NominationPoolsApi_member_total_balance
|
|
320
317
|
* @param {AccountId32Like} who
|
|
321
318
|
**/
|
|
322
|
-
memberTotalBalance: GenericRuntimeApiMethod<
|
|
319
|
+
memberTotalBalance: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
323
320
|
|
|
324
321
|
/**
|
|
325
322
|
* Total balance contributed to the pool.
|
|
@@ -327,7 +324,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
327
324
|
* @callname: NominationPoolsApi_pool_balance
|
|
328
325
|
* @param {number} pool_id
|
|
329
326
|
**/
|
|
330
|
-
poolBalance: GenericRuntimeApiMethod<
|
|
327
|
+
poolBalance: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
331
328
|
|
|
332
329
|
/**
|
|
333
330
|
* Returns the bonded account and reward account associated with the pool_id.
|
|
@@ -335,12 +332,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
335
332
|
* @callname: NominationPoolsApi_pool_accounts
|
|
336
333
|
* @param {number} pool_id
|
|
337
334
|
**/
|
|
338
|
-
poolAccounts: GenericRuntimeApiMethod<
|
|
335
|
+
poolAccounts: GenericRuntimeApiMethod<(poolId: number) => Promise<[AccountId32, AccountId32]>>;
|
|
339
336
|
|
|
340
337
|
/**
|
|
341
338
|
* Generic runtime api call
|
|
342
339
|
**/
|
|
343
|
-
[method: string]: GenericRuntimeApiMethod
|
|
340
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
344
341
|
};
|
|
345
342
|
/**
|
|
346
343
|
* @runtimeapi: StakingApi - 0x18ef58a3b67ba770
|
|
@@ -352,7 +349,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
352
349
|
* @callname: StakingApi_nominations_quota
|
|
353
350
|
* @param {bigint} balance
|
|
354
351
|
**/
|
|
355
|
-
nominationsQuota: GenericRuntimeApiMethod<
|
|
352
|
+
nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
|
|
356
353
|
|
|
357
354
|
/**
|
|
358
355
|
* Returns the page count of exposures for a validator `account` in a given era.
|
|
@@ -361,7 +358,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
361
358
|
* @param {number} era
|
|
362
359
|
* @param {AccountId32Like} account
|
|
363
360
|
**/
|
|
364
|
-
erasStakersPageCount: GenericRuntimeApiMethod<
|
|
361
|
+
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
365
362
|
|
|
366
363
|
/**
|
|
367
364
|
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
@@ -370,12 +367,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
370
367
|
* @param {number} era
|
|
371
368
|
* @param {AccountId32Like} account
|
|
372
369
|
**/
|
|
373
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
370
|
+
pendingRewards: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<boolean>>;
|
|
374
371
|
|
|
375
372
|
/**
|
|
376
373
|
* Generic runtime api call
|
|
377
374
|
**/
|
|
378
|
-
[method: string]: GenericRuntimeApiMethod
|
|
375
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
379
376
|
};
|
|
380
377
|
/**
|
|
381
378
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -398,7 +395,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
398
395
|
* @param {H256} block_hash
|
|
399
396
|
**/
|
|
400
397
|
validateTransaction: GenericRuntimeApiMethod<
|
|
401
|
-
Rv,
|
|
402
398
|
(
|
|
403
399
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
404
400
|
tx: UncheckedExtrinsicLike,
|
|
@@ -411,7 +407,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
411
407
|
/**
|
|
412
408
|
* Generic runtime api call
|
|
413
409
|
**/
|
|
414
|
-
[method: string]: GenericRuntimeApiMethod
|
|
410
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
415
411
|
};
|
|
416
412
|
/**
|
|
417
413
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -423,12 +419,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
423
419
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
424
420
|
* @param {Header} header
|
|
425
421
|
**/
|
|
426
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
422
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
427
423
|
|
|
428
424
|
/**
|
|
429
425
|
* Generic runtime api call
|
|
430
426
|
**/
|
|
431
|
-
[method: string]: GenericRuntimeApiMethod
|
|
427
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
432
428
|
};
|
|
433
429
|
/**
|
|
434
430
|
* @runtimeapi: ParachainHost - 0xaf2c0297a23e6d3d
|
|
@@ -439,7 +435,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
439
435
|
*
|
|
440
436
|
* @callname: ParachainHost_validators
|
|
441
437
|
**/
|
|
442
|
-
validators: GenericRuntimeApiMethod<
|
|
438
|
+
validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorAppPublic>>>;
|
|
443
439
|
|
|
444
440
|
/**
|
|
445
441
|
* Returns the validator groups and rotation info localized based on the hypothetical child
|
|
@@ -449,7 +445,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
449
445
|
* @callname: ParachainHost_validator_groups
|
|
450
446
|
**/
|
|
451
447
|
validatorGroups: GenericRuntimeApiMethod<
|
|
452
|
-
Rv,
|
|
453
448
|
() => Promise<[Array<Array<PolkadotPrimitivesV8ValidatorIndex>>, PolkadotPrimitivesV8GroupRotationInfo]>
|
|
454
449
|
>;
|
|
455
450
|
|
|
@@ -459,7 +454,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
459
454
|
*
|
|
460
455
|
* @callname: ParachainHost_availability_cores
|
|
461
456
|
**/
|
|
462
|
-
availabilityCores: GenericRuntimeApiMethod<
|
|
457
|
+
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCoreState>>>;
|
|
463
458
|
|
|
464
459
|
/**
|
|
465
460
|
* Yields the persisted validation data for the given `ParaId` along with an assumption that
|
|
@@ -473,7 +468,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
473
468
|
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
474
469
|
**/
|
|
475
470
|
persistedValidationData: GenericRuntimeApiMethod<
|
|
476
|
-
Rv,
|
|
477
471
|
(
|
|
478
472
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
479
473
|
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
@@ -490,7 +484,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
490
484
|
* @param {H256} expected_persisted_validation_data_hash
|
|
491
485
|
**/
|
|
492
486
|
assumedValidationData: GenericRuntimeApiMethod<
|
|
493
|
-
Rv,
|
|
494
487
|
(
|
|
495
488
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
496
489
|
expectedPersistedValidationDataHash: H256,
|
|
@@ -508,7 +501,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
508
501
|
* @param {PolkadotPrimitivesV8CandidateCommitments} outputs
|
|
509
502
|
**/
|
|
510
503
|
checkValidationOutputs: GenericRuntimeApiMethod<
|
|
511
|
-
Rv,
|
|
512
504
|
(
|
|
513
505
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
514
506
|
outputs: PolkadotPrimitivesV8CandidateCommitments,
|
|
@@ -522,7 +514,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
522
514
|
*
|
|
523
515
|
* @callname: ParachainHost_session_index_for_child
|
|
524
516
|
**/
|
|
525
|
-
sessionIndexForChild: GenericRuntimeApiMethod<
|
|
517
|
+
sessionIndexForChild: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
526
518
|
|
|
527
519
|
/**
|
|
528
520
|
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
|
@@ -535,7 +527,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
535
527
|
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
536
528
|
**/
|
|
537
529
|
validationCode: GenericRuntimeApiMethod<
|
|
538
|
-
Rv,
|
|
539
530
|
(
|
|
540
531
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
541
532
|
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
@@ -550,7 +541,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
550
541
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
551
542
|
**/
|
|
552
543
|
candidatePendingAvailability: GenericRuntimeApiMethod<
|
|
553
|
-
Rv,
|
|
554
544
|
(
|
|
555
545
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
556
546
|
) => Promise<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2 | undefined>
|
|
@@ -561,7 +551,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
561
551
|
*
|
|
562
552
|
* @callname: ParachainHost_candidate_events
|
|
563
553
|
**/
|
|
564
|
-
candidateEvents: GenericRuntimeApiMethod<
|
|
554
|
+
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCandidateEvent>>>;
|
|
565
555
|
|
|
566
556
|
/**
|
|
567
557
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
@@ -570,7 +560,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
570
560
|
* @param {PolkadotParachainPrimitivesPrimitivesId} recipient
|
|
571
561
|
**/
|
|
572
562
|
dmqContents: GenericRuntimeApiMethod<
|
|
573
|
-
Rv,
|
|
574
563
|
(
|
|
575
564
|
recipient: PolkadotParachainPrimitivesPrimitivesId,
|
|
576
565
|
) => Promise<Array<PolkadotCorePrimitivesInboundDownwardMessage>>
|
|
@@ -584,7 +573,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
584
573
|
* @param {PolkadotParachainPrimitivesPrimitivesId} recipient
|
|
585
574
|
**/
|
|
586
575
|
inboundHrmpChannelsContents: GenericRuntimeApiMethod<
|
|
587
|
-
Rv,
|
|
588
576
|
(
|
|
589
577
|
recipient: PolkadotParachainPrimitivesPrimitivesId,
|
|
590
578
|
) => Promise<Array<[PolkadotParachainPrimitivesPrimitivesId, Array<PolkadotCorePrimitivesInboundHrmpMessage>]>>
|
|
@@ -597,7 +585,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
597
585
|
* @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} hash
|
|
598
586
|
**/
|
|
599
587
|
validationCodeByHash: GenericRuntimeApiMethod<
|
|
600
|
-
Rv,
|
|
601
588
|
(
|
|
602
589
|
hash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
603
590
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
|
|
@@ -608,7 +595,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
608
595
|
*
|
|
609
596
|
* @callname: ParachainHost_on_chain_votes
|
|
610
597
|
**/
|
|
611
|
-
onChainVotes: GenericRuntimeApiMethod<
|
|
598
|
+
onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined>>;
|
|
612
599
|
|
|
613
600
|
/**
|
|
614
601
|
* Get the session info for the given session, if stored.
|
|
@@ -618,7 +605,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
618
605
|
* @callname: ParachainHost_session_info
|
|
619
606
|
* @param {number} index
|
|
620
607
|
**/
|
|
621
|
-
sessionInfo: GenericRuntimeApiMethod<
|
|
608
|
+
sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV8SessionInfo | undefined>>;
|
|
622
609
|
|
|
623
610
|
/**
|
|
624
611
|
* Submits a PVF pre-checking statement into the transaction pool.
|
|
@@ -630,7 +617,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
630
617
|
* @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
|
|
631
618
|
**/
|
|
632
619
|
submitPvfCheckStatement: GenericRuntimeApiMethod<
|
|
633
|
-
Rv,
|
|
634
620
|
(stmt: PolkadotPrimitivesV8PvfCheckStatement, signature: PolkadotPrimitivesV8ValidatorAppSignature) => Promise<[]>
|
|
635
621
|
>;
|
|
636
622
|
|
|
@@ -642,7 +628,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
642
628
|
* @callname: ParachainHost_pvfs_require_precheck
|
|
643
629
|
**/
|
|
644
630
|
pvfsRequirePrecheck: GenericRuntimeApiMethod<
|
|
645
|
-
Rv,
|
|
646
631
|
() => Promise<Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>>
|
|
647
632
|
>;
|
|
648
633
|
|
|
@@ -656,7 +641,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
656
641
|
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
657
642
|
**/
|
|
658
643
|
validationCodeHash: GenericRuntimeApiMethod<
|
|
659
|
-
Rv,
|
|
660
644
|
(
|
|
661
645
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
662
646
|
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
@@ -669,7 +653,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
669
653
|
* @callname: ParachainHost_disputes
|
|
670
654
|
**/
|
|
671
655
|
disputes: GenericRuntimeApiMethod<
|
|
672
|
-
Rv,
|
|
673
656
|
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8DisputeState]>>
|
|
674
657
|
>;
|
|
675
658
|
|
|
@@ -680,7 +663,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
680
663
|
* @param {number} session_index
|
|
681
664
|
**/
|
|
682
665
|
sessionExecutorParams: GenericRuntimeApiMethod<
|
|
683
|
-
Rv,
|
|
684
666
|
(sessionIndex: number) => Promise<PolkadotPrimitivesV8ExecutorParams | undefined>
|
|
685
667
|
>;
|
|
686
668
|
|
|
@@ -691,7 +673,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
691
673
|
* @callname: ParachainHost_unapplied_slashes
|
|
692
674
|
**/
|
|
693
675
|
unappliedSlashes: GenericRuntimeApiMethod<
|
|
694
|
-
Rv,
|
|
695
676
|
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8SlashingPendingSlashes]>>
|
|
696
677
|
>;
|
|
697
678
|
|
|
@@ -703,7 +684,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
703
684
|
* @param {PolkadotPrimitivesV8ValidatorAppPublic} validator_id
|
|
704
685
|
**/
|
|
705
686
|
keyOwnershipProof: GenericRuntimeApiMethod<
|
|
706
|
-
Rv,
|
|
707
687
|
(
|
|
708
688
|
validatorId: PolkadotPrimitivesV8ValidatorAppPublic,
|
|
709
689
|
) => Promise<PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof | undefined>
|
|
@@ -719,7 +699,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
719
699
|
* @param {PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof} key_ownership_proof
|
|
720
700
|
**/
|
|
721
701
|
submitReportDisputeLost: GenericRuntimeApiMethod<
|
|
722
|
-
Rv,
|
|
723
702
|
(
|
|
724
703
|
disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
|
|
725
704
|
keyOwnershipProof: PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
|
|
@@ -732,7 +711,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
732
711
|
*
|
|
733
712
|
* @callname: ParachainHost_minimum_backing_votes
|
|
734
713
|
**/
|
|
735
|
-
minimumBackingVotes: GenericRuntimeApiMethod<
|
|
714
|
+
minimumBackingVotes: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
736
715
|
|
|
737
716
|
/**
|
|
738
717
|
* Returns the state of parachain backing for a given para.
|
|
@@ -741,7 +720,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
741
720
|
* @param {PolkadotParachainPrimitivesPrimitivesId} __runtime_api_generated_name_0__
|
|
742
721
|
**/
|
|
743
722
|
paraBackingState: GenericRuntimeApiMethod<
|
|
744
|
-
Rv,
|
|
745
723
|
(
|
|
746
724
|
runtimeApiGeneratedName0: PolkadotParachainPrimitivesPrimitivesId,
|
|
747
725
|
) => Promise<PolkadotPrimitivesVstagingAsyncBackingBackingState | undefined>
|
|
@@ -752,14 +730,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
752
730
|
*
|
|
753
731
|
* @callname: ParachainHost_async_backing_params
|
|
754
732
|
**/
|
|
755
|
-
asyncBackingParams: GenericRuntimeApiMethod<
|
|
733
|
+
asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8AsyncBackingAsyncBackingParams>>;
|
|
756
734
|
|
|
757
735
|
/**
|
|
758
736
|
* Returns a list of all disabled validators at the given block.
|
|
759
737
|
*
|
|
760
738
|
* @callname: ParachainHost_disabled_validators
|
|
761
739
|
**/
|
|
762
|
-
disabledValidators: GenericRuntimeApiMethod<
|
|
740
|
+
disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
|
|
763
741
|
|
|
764
742
|
/**
|
|
765
743
|
* Get node features.
|
|
@@ -767,14 +745,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
767
745
|
*
|
|
768
746
|
* @callname: ParachainHost_node_features
|
|
769
747
|
**/
|
|
770
|
-
nodeFeatures: GenericRuntimeApiMethod<
|
|
748
|
+
nodeFeatures: GenericRuntimeApiMethod<() => Promise<BitSequence>>;
|
|
771
749
|
|
|
772
750
|
/**
|
|
773
751
|
* Approval voting configuration parameters
|
|
774
752
|
*
|
|
775
753
|
* @callname: ParachainHost_approval_voting_params
|
|
776
754
|
**/
|
|
777
|
-
approvalVotingParams: GenericRuntimeApiMethod<
|
|
755
|
+
approvalVotingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8ApprovalVotingParams>>;
|
|
778
756
|
|
|
779
757
|
/**
|
|
780
758
|
* Claim queue
|
|
@@ -782,7 +760,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
782
760
|
* @callname: ParachainHost_claim_queue
|
|
783
761
|
**/
|
|
784
762
|
claimQueue: GenericRuntimeApiMethod<
|
|
785
|
-
Rv,
|
|
786
763
|
() => Promise<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
|
|
787
764
|
>;
|
|
788
765
|
|
|
@@ -793,7 +770,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
793
770
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
794
771
|
**/
|
|
795
772
|
candidatesPendingAvailability: GenericRuntimeApiMethod<
|
|
796
|
-
Rv,
|
|
797
773
|
(
|
|
798
774
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
799
775
|
) => Promise<Array<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2>>
|
|
@@ -804,7 +780,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
804
780
|
*
|
|
805
781
|
* @callname: ParachainHost_validation_code_bomb_limit
|
|
806
782
|
**/
|
|
807
|
-
validationCodeBombLimit: GenericRuntimeApiMethod<
|
|
783
|
+
validationCodeBombLimit: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
808
784
|
|
|
809
785
|
/**
|
|
810
786
|
* Returns the constraints on the actions that can be taken by a new parachain
|
|
@@ -814,7 +790,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
814
790
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
815
791
|
**/
|
|
816
792
|
backingConstraints: GenericRuntimeApiMethod<
|
|
817
|
-
Rv,
|
|
818
793
|
(
|
|
819
794
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
820
795
|
) => Promise<PolkadotPrimitivesVstagingAsyncBackingConstraints | undefined>
|
|
@@ -825,12 +800,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
825
800
|
*
|
|
826
801
|
* @callname: ParachainHost_scheduling_lookahead
|
|
827
802
|
**/
|
|
828
|
-
schedulingLookahead: GenericRuntimeApiMethod<
|
|
803
|
+
schedulingLookahead: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
829
804
|
|
|
830
805
|
/**
|
|
831
806
|
* Generic runtime api call
|
|
832
807
|
**/
|
|
833
|
-
[method: string]: GenericRuntimeApiMethod
|
|
808
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
834
809
|
};
|
|
835
810
|
/**
|
|
836
811
|
* @runtimeapi: BeefyApi - 0x49eaaf1b548a0cb0
|
|
@@ -841,14 +816,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
841
816
|
*
|
|
842
817
|
* @callname: BeefyApi_beefy_genesis
|
|
843
818
|
**/
|
|
844
|
-
beefyGenesis: GenericRuntimeApiMethod<
|
|
819
|
+
beefyGenesis: GenericRuntimeApiMethod<() => Promise<number | undefined>>;
|
|
845
820
|
|
|
846
821
|
/**
|
|
847
822
|
* Return the current active BEEFY validator set
|
|
848
823
|
*
|
|
849
824
|
* @callname: BeefyApi_validator_set
|
|
850
825
|
**/
|
|
851
|
-
validatorSet: GenericRuntimeApiMethod<
|
|
826
|
+
validatorSet: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyValidatorSet | undefined>>;
|
|
852
827
|
|
|
853
828
|
/**
|
|
854
829
|
* Submits an unsigned extrinsic to report a double voting equivocation. The caller
|
|
@@ -865,7 +840,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
865
840
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
866
841
|
**/
|
|
867
842
|
submitReportDoubleVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
868
|
-
Rv,
|
|
869
843
|
(
|
|
870
844
|
equivocationProof: SpConsensusBeefyDoubleVotingProof,
|
|
871
845
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -887,7 +861,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
887
861
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
888
862
|
**/
|
|
889
863
|
submitReportForkVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
890
|
-
Rv,
|
|
891
864
|
(
|
|
892
865
|
equivocationProof: SpConsensusBeefyForkVotingProofOpaqueValue,
|
|
893
866
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -909,7 +882,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
909
882
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
910
883
|
**/
|
|
911
884
|
submitReportFutureBlockVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
912
|
-
Rv,
|
|
913
885
|
(
|
|
914
886
|
equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
|
|
915
887
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -934,7 +906,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
934
906
|
* @param {SpConsensusBeefyEcdsaCryptoPublic} authority_id
|
|
935
907
|
**/
|
|
936
908
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
937
|
-
Rv,
|
|
938
909
|
(setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
939
910
|
>;
|
|
940
911
|
|
|
@@ -947,14 +918,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
947
918
|
* @param {number | undefined} best_known_block_number
|
|
948
919
|
**/
|
|
949
920
|
generateAncestryProof: GenericRuntimeApiMethod<
|
|
950
|
-
Rv,
|
|
951
921
|
(prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
952
922
|
>;
|
|
953
923
|
|
|
954
924
|
/**
|
|
955
925
|
* Generic runtime api call
|
|
956
926
|
**/
|
|
957
|
-
[method: string]: GenericRuntimeApiMethod
|
|
927
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
958
928
|
};
|
|
959
929
|
/**
|
|
960
930
|
* @runtimeapi: MmrApi - 0x91d5df18b0d2cf58
|
|
@@ -965,14 +935,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
965
935
|
*
|
|
966
936
|
* @callname: MmrApi_mmr_root
|
|
967
937
|
**/
|
|
968
|
-
mmrRoot: GenericRuntimeApiMethod<
|
|
938
|
+
mmrRoot: GenericRuntimeApiMethod<() => Promise<Result<H256, SpMmrPrimitivesError>>>;
|
|
969
939
|
|
|
970
940
|
/**
|
|
971
941
|
* Return the number of MMR blocks in the chain.
|
|
972
942
|
*
|
|
973
943
|
* @callname: MmrApi_mmr_leaf_count
|
|
974
944
|
**/
|
|
975
|
-
mmrLeafCount: GenericRuntimeApiMethod<
|
|
945
|
+
mmrLeafCount: GenericRuntimeApiMethod<() => Promise<Result<bigint, SpMmrPrimitivesError>>>;
|
|
976
946
|
|
|
977
947
|
/**
|
|
978
948
|
* Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,
|
|
@@ -983,7 +953,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
983
953
|
* @param {number | undefined} best_known_block_number
|
|
984
954
|
**/
|
|
985
955
|
generateProof: GenericRuntimeApiMethod<
|
|
986
|
-
Rv,
|
|
987
956
|
(
|
|
988
957
|
blockNumbers: Array<number>,
|
|
989
958
|
bestKnownBlockNumber?: number | undefined,
|
|
@@ -1002,7 +971,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1002
971
|
* @param {SpMmrPrimitivesLeafProof} proof
|
|
1003
972
|
**/
|
|
1004
973
|
verifyProof: GenericRuntimeApiMethod<
|
|
1005
|
-
Rv,
|
|
1006
974
|
(
|
|
1007
975
|
leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
|
|
1008
976
|
proof: SpMmrPrimitivesLeafProof,
|
|
@@ -1024,7 +992,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1024
992
|
* @param {SpMmrPrimitivesLeafProof} proof
|
|
1025
993
|
**/
|
|
1026
994
|
verifyProofStateless: GenericRuntimeApiMethod<
|
|
1027
|
-
Rv,
|
|
1028
995
|
(
|
|
1029
996
|
root: H256,
|
|
1030
997
|
leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
|
|
@@ -1035,7 +1002,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1035
1002
|
/**
|
|
1036
1003
|
* Generic runtime api call
|
|
1037
1004
|
**/
|
|
1038
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1005
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1039
1006
|
};
|
|
1040
1007
|
/**
|
|
1041
1008
|
* @runtimeapi: BeefyMmrApi - 0x2a5e924655399e60
|
|
@@ -1046,19 +1013,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1046
1013
|
*
|
|
1047
1014
|
* @callname: BeefyMmrApi_authority_set_proof
|
|
1048
1015
|
**/
|
|
1049
|
-
authoritySetProof: GenericRuntimeApiMethod<
|
|
1016
|
+
authoritySetProof: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
|
1050
1017
|
|
|
1051
1018
|
/**
|
|
1052
1019
|
* Return the next/queued BEEFY authority set proof.
|
|
1053
1020
|
*
|
|
1054
1021
|
* @callname: BeefyMmrApi_next_authority_set_proof
|
|
1055
1022
|
**/
|
|
1056
|
-
nextAuthoritySetProof: GenericRuntimeApiMethod<
|
|
1023
|
+
nextAuthoritySetProof: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
|
1057
1024
|
|
|
1058
1025
|
/**
|
|
1059
1026
|
* Generic runtime api call
|
|
1060
1027
|
**/
|
|
1061
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1028
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1062
1029
|
};
|
|
1063
1030
|
/**
|
|
1064
1031
|
* @runtimeapi: GrandpaApi - 0xed99c5acb25eedf5
|
|
@@ -1074,7 +1041,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1074
1041
|
*
|
|
1075
1042
|
* @callname: GrandpaApi_grandpa_authorities
|
|
1076
1043
|
**/
|
|
1077
|
-
grandpaAuthorities: GenericRuntimeApiMethod<
|
|
1044
|
+
grandpaAuthorities: GenericRuntimeApiMethod<() => Promise<Array<[SpConsensusGrandpaAppPublic, bigint]>>>;
|
|
1078
1045
|
|
|
1079
1046
|
/**
|
|
1080
1047
|
* Submits an unsigned extrinsic to report an equivocation. The caller
|
|
@@ -1091,7 +1058,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1091
1058
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
1092
1059
|
**/
|
|
1093
1060
|
submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
1094
|
-
Rv,
|
|
1095
1061
|
(
|
|
1096
1062
|
equivocationProof: SpConsensusGrandpaEquivocationProof,
|
|
1097
1063
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
@@ -1116,7 +1082,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1116
1082
|
* @param {SpConsensusGrandpaAppPublic} authority_id
|
|
1117
1083
|
**/
|
|
1118
1084
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
1119
|
-
Rv,
|
|
1120
1085
|
(setId: bigint, authorityId: SpConsensusGrandpaAppPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
1121
1086
|
>;
|
|
1122
1087
|
|
|
@@ -1125,12 +1090,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1125
1090
|
*
|
|
1126
1091
|
* @callname: GrandpaApi_current_set_id
|
|
1127
1092
|
**/
|
|
1128
|
-
currentSetId: GenericRuntimeApiMethod<
|
|
1093
|
+
currentSetId: GenericRuntimeApiMethod<() => Promise<bigint>>;
|
|
1129
1094
|
|
|
1130
1095
|
/**
|
|
1131
1096
|
* Generic runtime api call
|
|
1132
1097
|
**/
|
|
1133
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1098
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1134
1099
|
};
|
|
1135
1100
|
/**
|
|
1136
1101
|
* @runtimeapi: BabeApi - 0xcbca25e39f142387
|
|
@@ -1141,21 +1106,21 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1141
1106
|
*
|
|
1142
1107
|
* @callname: BabeApi_configuration
|
|
1143
1108
|
**/
|
|
1144
|
-
configuration: GenericRuntimeApiMethod<
|
|
1109
|
+
configuration: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeBabeConfiguration>>;
|
|
1145
1110
|
|
|
1146
1111
|
/**
|
|
1147
1112
|
* Returns the slot that started the current epoch.
|
|
1148
1113
|
*
|
|
1149
1114
|
* @callname: BabeApi_current_epoch_start
|
|
1150
1115
|
**/
|
|
1151
|
-
currentEpochStart: GenericRuntimeApiMethod<
|
|
1116
|
+
currentEpochStart: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlot>>;
|
|
1152
1117
|
|
|
1153
1118
|
/**
|
|
1154
1119
|
* Returns information regarding the current epoch.
|
|
1155
1120
|
*
|
|
1156
1121
|
* @callname: BabeApi_current_epoch
|
|
1157
1122
|
**/
|
|
1158
|
-
currentEpoch: GenericRuntimeApiMethod<
|
|
1123
|
+
currentEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
|
|
1159
1124
|
|
|
1160
1125
|
/**
|
|
1161
1126
|
* Returns information regarding the next epoch (which was already
|
|
@@ -1163,7 +1128,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1163
1128
|
*
|
|
1164
1129
|
* @callname: BabeApi_next_epoch
|
|
1165
1130
|
**/
|
|
1166
|
-
nextEpoch: GenericRuntimeApiMethod<
|
|
1131
|
+
nextEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
|
|
1167
1132
|
|
|
1168
1133
|
/**
|
|
1169
1134
|
* Generates a proof of key ownership for the given authority in the
|
|
@@ -1183,7 +1148,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1183
1148
|
* @param {SpConsensusBabeAppPublic} authority_id
|
|
1184
1149
|
**/
|
|
1185
1150
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
1186
|
-
Rv,
|
|
1187
1151
|
(
|
|
1188
1152
|
slot: SpConsensusSlotsSlot,
|
|
1189
1153
|
authorityId: SpConsensusBabeAppPublic,
|
|
@@ -1205,7 +1169,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1205
1169
|
* @param {SpConsensusBabeOpaqueKeyOwnershipProof} key_owner_proof
|
|
1206
1170
|
**/
|
|
1207
1171
|
submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
1208
|
-
Rv,
|
|
1209
1172
|
(
|
|
1210
1173
|
equivocationProof: SpConsensusSlotsEquivocationProof,
|
|
1211
1174
|
keyOwnerProof: SpConsensusBabeOpaqueKeyOwnershipProof,
|
|
@@ -1215,7 +1178,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1215
1178
|
/**
|
|
1216
1179
|
* Generic runtime api call
|
|
1217
1180
|
**/
|
|
1218
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1181
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1219
1182
|
};
|
|
1220
1183
|
/**
|
|
1221
1184
|
* @runtimeapi: AuthorityDiscoveryApi - 0x687ad44ad37f03c2
|
|
@@ -1226,12 +1189,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1226
1189
|
*
|
|
1227
1190
|
* @callname: AuthorityDiscoveryApi_authorities
|
|
1228
1191
|
**/
|
|
1229
|
-
authorities: GenericRuntimeApiMethod<
|
|
1192
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpAuthorityDiscoveryAppPublic>>>;
|
|
1230
1193
|
|
|
1231
1194
|
/**
|
|
1232
1195
|
* Generic runtime api call
|
|
1233
1196
|
**/
|
|
1234
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1197
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1235
1198
|
};
|
|
1236
1199
|
/**
|
|
1237
1200
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -1249,7 +1212,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1249
1212
|
* @callname: SessionKeys_generate_session_keys
|
|
1250
1213
|
* @param {BytesLike | undefined} seed
|
|
1251
1214
|
**/
|
|
1252
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
1215
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
1253
1216
|
|
|
1254
1217
|
/**
|
|
1255
1218
|
* Decode the given public session keys.
|
|
@@ -1260,14 +1223,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1260
1223
|
* @param {BytesLike} encoded
|
|
1261
1224
|
**/
|
|
1262
1225
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
1263
|
-
Rv,
|
|
1264
1226
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
1265
1227
|
>;
|
|
1266
1228
|
|
|
1267
1229
|
/**
|
|
1268
1230
|
* Generic runtime api call
|
|
1269
1231
|
**/
|
|
1270
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1232
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1271
1233
|
};
|
|
1272
1234
|
/**
|
|
1273
1235
|
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
@@ -1281,7 +1243,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1281
1243
|
* @param {BytesLike} input
|
|
1282
1244
|
**/
|
|
1283
1245
|
executeViewFunction: GenericRuntimeApiMethod<
|
|
1284
|
-
Rv,
|
|
1285
1246
|
(
|
|
1286
1247
|
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
1287
1248
|
input: BytesLike,
|
|
@@ -1291,7 +1252,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1291
1252
|
/**
|
|
1292
1253
|
* Generic runtime api call
|
|
1293
1254
|
**/
|
|
1294
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1255
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1295
1256
|
};
|
|
1296
1257
|
/**
|
|
1297
1258
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -1303,12 +1264,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1303
1264
|
* @callname: AccountNonceApi_account_nonce
|
|
1304
1265
|
* @param {AccountId32Like} account
|
|
1305
1266
|
**/
|
|
1306
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
1267
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
1307
1268
|
|
|
1308
1269
|
/**
|
|
1309
1270
|
* Generic runtime api call
|
|
1310
1271
|
**/
|
|
1311
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1272
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1312
1273
|
};
|
|
1313
1274
|
/**
|
|
1314
1275
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -1321,7 +1282,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1321
1282
|
* @param {number} len
|
|
1322
1283
|
**/
|
|
1323
1284
|
queryInfo: GenericRuntimeApiMethod<
|
|
1324
|
-
Rv,
|
|
1325
1285
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
1326
1286
|
>;
|
|
1327
1287
|
|
|
@@ -1332,7 +1292,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1332
1292
|
* @param {number} len
|
|
1333
1293
|
**/
|
|
1334
1294
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
1335
|
-
Rv,
|
|
1336
1295
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
1337
1296
|
>;
|
|
1338
1297
|
|
|
@@ -1341,19 +1300,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1341
1300
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
1342
1301
|
* @param {SpWeightsWeightV2Weight} weight
|
|
1343
1302
|
**/
|
|
1344
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
1303
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
1345
1304
|
|
|
1346
1305
|
/**
|
|
1347
1306
|
*
|
|
1348
1307
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
1349
1308
|
* @param {number} length
|
|
1350
1309
|
**/
|
|
1351
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
1310
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
1352
1311
|
|
|
1353
1312
|
/**
|
|
1354
1313
|
* Generic runtime api call
|
|
1355
1314
|
**/
|
|
1356
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1315
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1357
1316
|
};
|
|
1358
1317
|
/**
|
|
1359
1318
|
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
@@ -1367,7 +1326,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1367
1326
|
* @param {number} len
|
|
1368
1327
|
**/
|
|
1369
1328
|
queryCallInfo: GenericRuntimeApiMethod<
|
|
1370
|
-
Rv,
|
|
1371
1329
|
(call: PolkadotRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
1372
1330
|
>;
|
|
1373
1331
|
|
|
@@ -1379,7 +1337,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1379
1337
|
* @param {number} len
|
|
1380
1338
|
**/
|
|
1381
1339
|
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
1382
|
-
Rv,
|
|
1383
1340
|
(call: PolkadotRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
1384
1341
|
>;
|
|
1385
1342
|
|
|
@@ -1389,7 +1346,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1389
1346
|
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
1390
1347
|
* @param {SpWeightsWeightV2Weight} weight
|
|
1391
1348
|
**/
|
|
1392
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
1349
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
1393
1350
|
|
|
1394
1351
|
/**
|
|
1395
1352
|
* Query the output of the current `LengthToFee` given some input.
|
|
@@ -1397,12 +1354,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1397
1354
|
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
1398
1355
|
* @param {number} length
|
|
1399
1356
|
**/
|
|
1400
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
1357
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
1401
1358
|
|
|
1402
1359
|
/**
|
|
1403
1360
|
* Generic runtime api call
|
|
1404
1361
|
**/
|
|
1405
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1362
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1406
1363
|
};
|
|
1407
1364
|
/**
|
|
1408
1365
|
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
@@ -1419,7 +1376,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1419
1376
|
* @param {number} xcm_version
|
|
1420
1377
|
**/
|
|
1421
1378
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
1422
|
-
Rv,
|
|
1423
1379
|
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
1424
1380
|
>;
|
|
1425
1381
|
|
|
@@ -1434,7 +1390,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1434
1390
|
* @param {XcmVersionedXcm} message
|
|
1435
1391
|
**/
|
|
1436
1392
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
1437
|
-
Rv,
|
|
1438
1393
|
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
1439
1394
|
>;
|
|
1440
1395
|
|
|
@@ -1451,7 +1406,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1451
1406
|
* @param {XcmVersionedAssetId} asset
|
|
1452
1407
|
**/
|
|
1453
1408
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
1454
|
-
Rv,
|
|
1455
1409
|
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
1456
1410
|
>;
|
|
1457
1411
|
|
|
@@ -1470,7 +1424,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1470
1424
|
* @param {XcmVersionedXcm} message
|
|
1471
1425
|
**/
|
|
1472
1426
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
1473
|
-
Rv,
|
|
1474
1427
|
(
|
|
1475
1428
|
destination: XcmVersionedLocation,
|
|
1476
1429
|
message: XcmVersionedXcm,
|
|
@@ -1480,7 +1433,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1480
1433
|
/**
|
|
1481
1434
|
* Generic runtime api call
|
|
1482
1435
|
**/
|
|
1483
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1436
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1484
1437
|
};
|
|
1485
1438
|
/**
|
|
1486
1439
|
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
@@ -1495,7 +1448,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1495
1448
|
* @param {number} result_xcms_version
|
|
1496
1449
|
**/
|
|
1497
1450
|
dryRunCall: GenericRuntimeApiMethod<
|
|
1498
|
-
Rv,
|
|
1499
1451
|
(
|
|
1500
1452
|
origin: PolkadotRuntimeOriginCaller,
|
|
1501
1453
|
call: PolkadotRuntimeRuntimeCallLike,
|
|
@@ -1511,7 +1463,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1511
1463
|
* @param {XcmVersionedXcm} xcm
|
|
1512
1464
|
**/
|
|
1513
1465
|
dryRunXcm: GenericRuntimeApiMethod<
|
|
1514
|
-
Rv,
|
|
1515
1466
|
(
|
|
1516
1467
|
originLocation: XcmVersionedLocation,
|
|
1517
1468
|
xcm: XcmVersionedXcm,
|
|
@@ -1521,7 +1472,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1521
1472
|
/**
|
|
1522
1473
|
* Generic runtime api call
|
|
1523
1474
|
**/
|
|
1524
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1475
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1525
1476
|
};
|
|
1526
1477
|
/**
|
|
1527
1478
|
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
@@ -1534,14 +1485,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1534
1485
|
* @param {XcmVersionedLocation} location
|
|
1535
1486
|
**/
|
|
1536
1487
|
convertLocation: GenericRuntimeApiMethod<
|
|
1537
|
-
Rv,
|
|
1538
1488
|
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
1539
1489
|
>;
|
|
1540
1490
|
|
|
1541
1491
|
/**
|
|
1542
1492
|
* Generic runtime api call
|
|
1543
1493
|
**/
|
|
1544
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1494
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1545
1495
|
};
|
|
1546
1496
|
/**
|
|
1547
1497
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -1562,7 +1512,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1562
1512
|
* @callname: GenesisBuilder_build_state
|
|
1563
1513
|
* @param {BytesLike} json
|
|
1564
1514
|
**/
|
|
1565
|
-
buildState: GenericRuntimeApiMethod<
|
|
1515
|
+
buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
1566
1516
|
|
|
1567
1517
|
/**
|
|
1568
1518
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
@@ -1583,7 +1533,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1583
1533
|
* @callname: GenesisBuilder_get_preset
|
|
1584
1534
|
* @param {string | undefined} id
|
|
1585
1535
|
**/
|
|
1586
|
-
getPreset: GenericRuntimeApiMethod<
|
|
1536
|
+
getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
1587
1537
|
|
|
1588
1538
|
/**
|
|
1589
1539
|
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
@@ -1593,11 +1543,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1593
1543
|
*
|
|
1594
1544
|
* @callname: GenesisBuilder_preset_names
|
|
1595
1545
|
**/
|
|
1596
|
-
presetNames: GenericRuntimeApiMethod<
|
|
1546
|
+
presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
|
|
1597
1547
|
|
|
1598
1548
|
/**
|
|
1599
1549
|
* Generic runtime api call
|
|
1600
1550
|
**/
|
|
1601
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1551
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1602
1552
|
};
|
|
1603
1553
|
}
|