@dedot/chaintypes 0.194.0 → 0.196.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aleph/consts.d.ts +2 -2
- package/aleph/errors.d.ts +228 -228
- package/aleph/events.d.ts +122 -226
- package/aleph/index.d.ts +15 -17
- package/aleph/json-rpc.d.ts +3 -3
- package/aleph/query.d.ts +171 -207
- package/aleph/runtime.d.ts +47 -63
- package/aleph/tx.d.ts +377 -550
- package/aleph/view-functions.d.ts +2 -2
- package/astar/consts.d.ts +2 -2
- package/astar/errors.d.ts +431 -431
- package/astar/events.d.ts +232 -401
- package/astar/index.d.ts +15 -17
- package/astar/json-rpc.d.ts +3 -3
- package/astar/query.d.ts +243 -289
- package/astar/runtime.d.ts +59 -87
- package/astar/tx.d.ts +671 -980
- package/astar/view-functions.d.ts +2 -2
- package/basilisk/consts.d.ts +2 -2
- package/basilisk/errors.d.ts +489 -489
- package/basilisk/events.d.ts +187 -408
- package/basilisk/index.d.ts +15 -17
- package/basilisk/json-rpc.d.ts +3 -3
- package/basilisk/query.d.ts +213 -272
- package/basilisk/runtime.d.ts +27 -28
- package/basilisk/tx.d.ts +579 -842
- package/basilisk/view-functions.d.ts +2 -2
- package/hydration/consts.d.ts +47 -14
- package/hydration/errors.d.ts +827 -737
- package/hydration/events.d.ts +639 -527
- package/hydration/index.d.ts +16 -18
- package/hydration/json-rpc.d.ts +3 -3
- package/hydration/query.d.ts +530 -396
- package/hydration/runtime.d.ts +181 -89
- package/hydration/tx.d.ts +1130 -1167
- package/hydration/types.d.ts +889 -42
- package/hydration/view-functions.d.ts +2 -2
- package/kusama/consts.d.ts +2 -2
- package/kusama/errors.d.ts +571 -571
- package/kusama/events.d.ts +216 -477
- package/kusama/index.d.ts +15 -17
- package/kusama/json-rpc.d.ts +3 -3
- package/kusama/query.d.ts +360 -502
- package/kusama/runtime.d.ts +82 -131
- package/kusama/tx.d.ts +851 -1246
- package/kusama/view-functions.d.ts +7 -12
- package/kusama-asset-hub/consts.d.ts +2 -2
- package/kusama-asset-hub/errors.d.ts +653 -653
- package/kusama-asset-hub/events.d.ts +286 -629
- package/kusama-asset-hub/index.d.ts +16 -17
- package/kusama-asset-hub/json-rpc.d.ts +3 -3
- package/kusama-asset-hub/query.d.ts +316 -448
- package/kusama-asset-hub/runtime.d.ts +74 -111
- package/kusama-asset-hub/tx.d.ts +1059 -1558
- package/kusama-asset-hub/view-functions.d.ts +7 -9
- package/kusama-people/consts.d.ts +2 -2
- package/kusama-people/errors.d.ts +160 -160
- package/kusama-people/events.d.ts +89 -176
- package/kusama-people/index.d.ts +15 -17
- package/kusama-people/json-rpc.d.ts +3 -3
- package/kusama-people/query.d.ts +114 -145
- package/kusama-people/runtime.d.ts +45 -65
- package/kusama-people/tx.d.ts +246 -356
- package/kusama-people/view-functions.d.ts +3 -5
- package/moonbeam/consts.d.ts +2 -2
- package/moonbeam/errors.d.ts +478 -478
- package/moonbeam/events.d.ts +182 -426
- package/moonbeam/index.d.ts +15 -17
- package/moonbeam/json-rpc.d.ts +11 -3
- package/moonbeam/query.d.ts +234 -294
- package/moonbeam/runtime.d.ts +61 -89
- package/moonbeam/tx.d.ts +618 -901
- package/moonbeam/view-functions.d.ts +2 -2
- package/package.json +6 -3
- package/paseo/consts.d.ts +2 -2
- package/paseo/errors.d.ts +513 -513
- package/paseo/events.d.ts +197 -430
- package/paseo/index.d.ts +16 -18
- package/paseo/json-rpc.d.ts +3 -3
- package/paseo/query.d.ts +329 -450
- package/paseo/runtime.d.ts +107 -131
- package/paseo/tx.d.ts +787 -1151
- package/paseo/types.d.ts +7 -0
- package/paseo/view-functions.d.ts +7 -12
- package/paseo-asset-hub/consts.d.ts +2 -2
- package/paseo-asset-hub/errors.d.ts +605 -605
- package/paseo-asset-hub/events.d.ts +268 -600
- package/paseo-asset-hub/index.d.ts +17 -18
- package/paseo-asset-hub/json-rpc.d.ts +3 -3
- package/paseo-asset-hub/query.d.ts +293 -413
- package/paseo-asset-hub/runtime.d.ts +96 -104
- package/paseo-asset-hub/tx.d.ts +997 -1466
- package/paseo-asset-hub/types.d.ts +7 -0
- package/paseo-asset-hub/view-functions.d.ts +7 -9
- package/paseo-hydration/consts.d.ts +13 -3
- package/paseo-hydration/errors.d.ts +756 -745
- package/paseo-hydration/events.d.ts +277 -554
- package/paseo-hydration/index.d.ts +16 -18
- package/paseo-hydration/json-rpc.d.ts +3 -3
- package/paseo-hydration/query.d.ts +321 -411
- package/paseo-hydration/runtime.d.ts +95 -106
- package/paseo-hydration/tx.d.ts +923 -1226
- package/paseo-hydration/types.d.ts +91 -50
- package/paseo-hydration/view-functions.d.ts +2 -2
- package/paseo-people/consts.d.ts +2 -2
- package/paseo-people/errors.d.ts +162 -162
- package/paseo-people/events.d.ts +91 -181
- package/paseo-people/index.d.ts +16 -18
- package/paseo-people/json-rpc.d.ts +3 -3
- package/paseo-people/query.d.ts +116 -143
- package/paseo-people/runtime.d.ts +70 -65
- package/paseo-people/tx.d.ts +257 -372
- package/paseo-people/types.d.ts +7 -0
- package/paseo-people/view-functions.d.ts +3 -5
- package/polkadot/consts.d.ts +2 -2
- package/polkadot/errors.d.ts +501 -501
- package/polkadot/events.d.ts +195 -426
- package/polkadot/index.d.ts +15 -17
- package/polkadot/json-rpc.d.ts +3 -3
- package/polkadot/query.d.ts +329 -450
- package/polkadot/runtime.d.ts +83 -133
- package/polkadot/tx.d.ts +765 -1119
- package/polkadot/view-functions.d.ts +7 -12
- package/polkadot-asset-hub/consts.d.ts +2 -2
- package/polkadot-asset-hub/errors.d.ts +554 -554
- package/polkadot-asset-hub/events.d.ts +261 -585
- package/polkadot-asset-hub/index.d.ts +16 -17
- package/polkadot-asset-hub/json-rpc.d.ts +3 -3
- package/polkadot-asset-hub/query.d.ts +279 -396
- package/polkadot-asset-hub/runtime.d.ts +65 -93
- package/polkadot-asset-hub/tx.d.ts +952 -1400
- package/polkadot-asset-hub/view-functions.d.ts +7 -9
- package/polkadot-people/consts.d.ts +2 -2
- package/polkadot-people/errors.d.ts +160 -160
- package/polkadot-people/events.d.ts +89 -176
- package/polkadot-people/index.d.ts +15 -17
- package/polkadot-people/json-rpc.d.ts +3 -3
- package/polkadot-people/query.d.ts +114 -145
- package/polkadot-people/runtime.d.ts +46 -67
- package/polkadot-people/tx.d.ts +246 -356
- package/polkadot-people/view-functions.d.ts +3 -5
- package/substrate/consts.d.ts +2 -2
- package/substrate/errors.d.ts +909 -909
- package/substrate/events.d.ts +389 -794
- package/substrate/index.d.ts +16 -17
- package/substrate/json-rpc.d.ts +3 -3
- package/substrate/query.d.ts +458 -572
- package/substrate/runtime.d.ts +82 -126
- package/substrate/tx.d.ts +1317 -1936
- package/substrate/view-functions.d.ts +2 -2
- package/vara/consts.d.ts +9 -37
- package/vara/errors.d.ts +402 -382
- package/vara/events.d.ts +172 -310
- package/vara/index.d.ts +16 -18
- package/vara/json-rpc.d.ts +7 -3
- package/vara/query.d.ts +299 -331
- package/vara/runtime.d.ts +61 -79
- package/vara/tx.d.ts +573 -754
- package/vara/types.d.ts +71 -26
- package/vara/view-functions.d.ts +2 -2
- package/westend/consts.d.ts +2 -2
- package/westend/errors.d.ts +532 -532
- package/westend/events.d.ts +205 -462
- package/westend/index.d.ts +15 -17
- package/westend/json-rpc.d.ts +3 -3
- package/westend/query.d.ts +312 -434
- package/westend/runtime.d.ts +83 -135
- package/westend/tx.d.ts +807 -1179
- package/westend/view-functions.d.ts +7 -12
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/errors.d.ts +605 -605
- package/westend-asset-hub/events.d.ts +265 -614
- package/westend-asset-hub/index.d.ts +16 -17
- package/westend-asset-hub/json-rpc.d.ts +3 -3
- package/westend-asset-hub/query.d.ts +293 -418
- package/westend-asset-hub/runtime.d.ts +83 -123
- package/westend-asset-hub/tx.d.ts +918 -1348
- package/westend-asset-hub/view-functions.d.ts +8 -13
- package/westend-people/consts.d.ts +2 -2
- package/westend-people/errors.d.ts +160 -160
- package/westend-people/events.d.ts +93 -186
- package/westend-people/index.d.ts +15 -17
- package/westend-people/json-rpc.d.ts +3 -3
- package/westend-people/query.d.ts +114 -145
- package/westend-people/runtime.d.ts +46 -67
- package/westend-people/tx.d.ts +251 -363
- package/westend-people/view-functions.d.ts +3 -5
|
@@ -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
|
H256,
|
|
6
6
|
RuntimeVersion,
|
|
@@ -67,7 +67,7 @@ import type {
|
|
|
67
67
|
PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
68
68
|
} from './types.js';
|
|
69
69
|
|
|
70
|
-
export interface RuntimeApis
|
|
70
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
71
71
|
/**
|
|
72
72
|
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
73
73
|
**/
|
|
@@ -79,19 +79,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
79
79
|
*
|
|
80
80
|
* @callname: AuraApi_slot_duration
|
|
81
81
|
**/
|
|
82
|
-
slotDuration: GenericRuntimeApiMethod<
|
|
82
|
+
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Return the current set of authorities.
|
|
86
86
|
*
|
|
87
87
|
* @callname: AuraApi_authorities
|
|
88
88
|
**/
|
|
89
|
-
authorities: GenericRuntimeApiMethod<
|
|
89
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Generic runtime api call
|
|
93
93
|
**/
|
|
94
|
-
[method: string]: GenericRuntimeApiMethod
|
|
94
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
95
95
|
};
|
|
96
96
|
/**
|
|
97
97
|
* @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
|
|
@@ -102,12 +102,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
102
102
|
*
|
|
103
103
|
* @callname: RelayParentOffsetApi_relay_parent_offset
|
|
104
104
|
**/
|
|
105
|
-
relayParentOffset: GenericRuntimeApiMethod<
|
|
105
|
+
relayParentOffset: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* Generic runtime api call
|
|
109
109
|
**/
|
|
110
|
-
[method: string]: GenericRuntimeApiMethod
|
|
110
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
111
111
|
};
|
|
112
112
|
/**
|
|
113
113
|
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
@@ -129,12 +129,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
129
129
|
* @param {H256} included_hash
|
|
130
130
|
* @param {SpConsensusSlotsSlot} slot
|
|
131
131
|
**/
|
|
132
|
-
canBuildUpon: GenericRuntimeApiMethod<
|
|
132
|
+
canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* Generic runtime api call
|
|
136
136
|
**/
|
|
137
|
-
[method: string]: GenericRuntimeApiMethod
|
|
137
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
138
138
|
};
|
|
139
139
|
/**
|
|
140
140
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
@@ -145,7 +145,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
145
145
|
*
|
|
146
146
|
* @callname: Core_version
|
|
147
147
|
**/
|
|
148
|
-
version: GenericRuntimeApiMethod<
|
|
148
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
151
|
* Execute the given block.
|
|
@@ -153,7 +153,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
153
153
|
* @callname: Core_execute_block
|
|
154
154
|
* @param {SpRuntimeBlock} block
|
|
155
155
|
**/
|
|
156
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
156
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
159
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -161,12 +161,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
161
161
|
* @callname: Core_initialize_block
|
|
162
162
|
* @param {Header} header
|
|
163
163
|
**/
|
|
164
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
164
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Generic runtime api call
|
|
168
168
|
**/
|
|
169
|
-
[method: string]: GenericRuntimeApiMethod
|
|
169
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
170
170
|
};
|
|
171
171
|
/**
|
|
172
172
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -177,7 +177,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
177
177
|
*
|
|
178
178
|
* @callname: Metadata_metadata
|
|
179
179
|
**/
|
|
180
|
-
metadata: GenericRuntimeApiMethod<
|
|
180
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
183
|
* Returns the metadata at a given version.
|
|
@@ -188,7 +188,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
188
188
|
* @callname: Metadata_metadata_at_version
|
|
189
189
|
* @param {number} version
|
|
190
190
|
**/
|
|
191
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
191
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
194
|
* Returns the supported metadata versions.
|
|
@@ -197,12 +197,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
197
197
|
*
|
|
198
198
|
* @callname: Metadata_metadata_versions
|
|
199
199
|
**/
|
|
200
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
200
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* Generic runtime api call
|
|
204
204
|
**/
|
|
205
|
-
[method: string]: GenericRuntimeApiMethod
|
|
205
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
206
206
|
};
|
|
207
207
|
/**
|
|
208
208
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -218,7 +218,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
218
218
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
219
219
|
**/
|
|
220
220
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
221
|
-
Rv,
|
|
222
221
|
(
|
|
223
222
|
extrinsic: UncheckedExtrinsicLike,
|
|
224
223
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -229,7 +228,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
229
228
|
*
|
|
230
229
|
* @callname: BlockBuilder_finalize_block
|
|
231
230
|
**/
|
|
232
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
231
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
233
232
|
|
|
234
233
|
/**
|
|
235
234
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -238,7 +237,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
238
237
|
* @param {SpInherentsInherentData} inherent
|
|
239
238
|
**/
|
|
240
239
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
241
|
-
Rv,
|
|
242
240
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
243
241
|
>;
|
|
244
242
|
|
|
@@ -250,14 +248,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
250
248
|
* @param {SpInherentsInherentData} data
|
|
251
249
|
**/
|
|
252
250
|
checkInherents: GenericRuntimeApiMethod<
|
|
253
|
-
Rv,
|
|
254
251
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
255
252
|
>;
|
|
256
253
|
|
|
257
254
|
/**
|
|
258
255
|
* Generic runtime api call
|
|
259
256
|
**/
|
|
260
|
-
[method: string]: GenericRuntimeApiMethod
|
|
257
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
261
258
|
};
|
|
262
259
|
/**
|
|
263
260
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -280,7 +277,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
280
277
|
* @param {H256} block_hash
|
|
281
278
|
**/
|
|
282
279
|
validateTransaction: GenericRuntimeApiMethod<
|
|
283
|
-
Rv,
|
|
284
280
|
(
|
|
285
281
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
286
282
|
tx: UncheckedExtrinsicLike,
|
|
@@ -293,7 +289,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
293
289
|
/**
|
|
294
290
|
* Generic runtime api call
|
|
295
291
|
**/
|
|
296
|
-
[method: string]: GenericRuntimeApiMethod
|
|
292
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
297
293
|
};
|
|
298
294
|
/**
|
|
299
295
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -305,12 +301,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
305
301
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
306
302
|
* @param {Header} header
|
|
307
303
|
**/
|
|
308
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
304
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
309
305
|
|
|
310
306
|
/**
|
|
311
307
|
* Generic runtime api call
|
|
312
308
|
**/
|
|
313
|
-
[method: string]: GenericRuntimeApiMethod
|
|
309
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
314
310
|
};
|
|
315
311
|
/**
|
|
316
312
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -328,7 +324,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
328
324
|
* @callname: SessionKeys_generate_session_keys
|
|
329
325
|
* @param {BytesLike | undefined} seed
|
|
330
326
|
**/
|
|
331
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
327
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
332
328
|
|
|
333
329
|
/**
|
|
334
330
|
* Decode the given public session keys.
|
|
@@ -339,14 +335,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
339
335
|
* @param {BytesLike} encoded
|
|
340
336
|
**/
|
|
341
337
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
342
|
-
Rv,
|
|
343
338
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
344
339
|
>;
|
|
345
340
|
|
|
346
341
|
/**
|
|
347
342
|
* Generic runtime api call
|
|
348
343
|
**/
|
|
349
|
-
[method: string]: GenericRuntimeApiMethod
|
|
344
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
350
345
|
};
|
|
351
346
|
/**
|
|
352
347
|
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
@@ -360,7 +355,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
360
355
|
* @param {BytesLike} input
|
|
361
356
|
**/
|
|
362
357
|
executeViewFunction: GenericRuntimeApiMethod<
|
|
363
|
-
Rv,
|
|
364
358
|
(
|
|
365
359
|
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
366
360
|
input: BytesLike,
|
|
@@ -370,7 +364,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
370
364
|
/**
|
|
371
365
|
* Generic runtime api call
|
|
372
366
|
**/
|
|
373
|
-
[method: string]: GenericRuntimeApiMethod
|
|
367
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
374
368
|
};
|
|
375
369
|
/**
|
|
376
370
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -382,12 +376,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
382
376
|
* @callname: AccountNonceApi_account_nonce
|
|
383
377
|
* @param {AccountId32Like} account
|
|
384
378
|
**/
|
|
385
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
379
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
386
380
|
|
|
387
381
|
/**
|
|
388
382
|
* Generic runtime api call
|
|
389
383
|
**/
|
|
390
|
-
[method: string]: GenericRuntimeApiMethod
|
|
384
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
391
385
|
};
|
|
392
386
|
/**
|
|
393
387
|
* @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
|
|
@@ -406,7 +400,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
406
400
|
* @param {boolean} include_fee
|
|
407
401
|
**/
|
|
408
402
|
quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
|
|
409
|
-
Rv,
|
|
410
403
|
(
|
|
411
404
|
asset1: StagingXcmV5Location,
|
|
412
405
|
asset2: StagingXcmV5Location,
|
|
@@ -428,7 +421,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
428
421
|
* @param {boolean} include_fee
|
|
429
422
|
**/
|
|
430
423
|
quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
|
|
431
|
-
Rv,
|
|
432
424
|
(
|
|
433
425
|
asset1: StagingXcmV5Location,
|
|
434
426
|
asset2: StagingXcmV5Location,
|
|
@@ -445,14 +437,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
445
437
|
* @param {StagingXcmV5Location} asset2
|
|
446
438
|
**/
|
|
447
439
|
getReserves: GenericRuntimeApiMethod<
|
|
448
|
-
Rv,
|
|
449
440
|
(asset1: StagingXcmV5Location, asset2: StagingXcmV5Location) => Promise<[bigint, bigint] | undefined>
|
|
450
441
|
>;
|
|
451
442
|
|
|
452
443
|
/**
|
|
453
444
|
* Generic runtime api call
|
|
454
445
|
**/
|
|
455
|
-
[method: string]: GenericRuntimeApiMethod
|
|
446
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
456
447
|
};
|
|
457
448
|
/**
|
|
458
449
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -465,7 +456,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
465
456
|
* @param {number} len
|
|
466
457
|
**/
|
|
467
458
|
queryInfo: GenericRuntimeApiMethod<
|
|
468
|
-
Rv,
|
|
469
459
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
470
460
|
>;
|
|
471
461
|
|
|
@@ -476,7 +466,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
476
466
|
* @param {number} len
|
|
477
467
|
**/
|
|
478
468
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
479
|
-
Rv,
|
|
480
469
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
481
470
|
>;
|
|
482
471
|
|
|
@@ -485,19 +474,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
485
474
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
486
475
|
* @param {SpWeightsWeightV2Weight} weight
|
|
487
476
|
**/
|
|
488
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
477
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
489
478
|
|
|
490
479
|
/**
|
|
491
480
|
*
|
|
492
481
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
493
482
|
* @param {number} length
|
|
494
483
|
**/
|
|
495
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
484
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
496
485
|
|
|
497
486
|
/**
|
|
498
487
|
* Generic runtime api call
|
|
499
488
|
**/
|
|
500
|
-
[method: string]: GenericRuntimeApiMethod
|
|
489
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
501
490
|
};
|
|
502
491
|
/**
|
|
503
492
|
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
@@ -511,7 +500,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
511
500
|
* @param {number} len
|
|
512
501
|
**/
|
|
513
502
|
queryCallInfo: GenericRuntimeApiMethod<
|
|
514
|
-
Rv,
|
|
515
503
|
(call: AssetHubKusamaRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
516
504
|
>;
|
|
517
505
|
|
|
@@ -523,7 +511,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
523
511
|
* @param {number} len
|
|
524
512
|
**/
|
|
525
513
|
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
526
|
-
Rv,
|
|
527
514
|
(call: AssetHubKusamaRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
528
515
|
>;
|
|
529
516
|
|
|
@@ -533,7 +520,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
533
520
|
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
534
521
|
* @param {SpWeightsWeightV2Weight} weight
|
|
535
522
|
**/
|
|
536
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
523
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
537
524
|
|
|
538
525
|
/**
|
|
539
526
|
* Query the output of the current `LengthToFee` given some input.
|
|
@@ -541,12 +528,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
541
528
|
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
542
529
|
* @param {number} length
|
|
543
530
|
**/
|
|
544
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
531
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
545
532
|
|
|
546
533
|
/**
|
|
547
534
|
* Generic runtime api call
|
|
548
535
|
**/
|
|
549
|
-
[method: string]: GenericRuntimeApiMethod
|
|
536
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
550
537
|
};
|
|
551
538
|
/**
|
|
552
539
|
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
@@ -563,7 +550,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
563
550
|
* @param {number} xcm_version
|
|
564
551
|
**/
|
|
565
552
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
566
|
-
Rv,
|
|
567
553
|
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
568
554
|
>;
|
|
569
555
|
|
|
@@ -578,7 +564,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
578
564
|
* @param {XcmVersionedXcm} message
|
|
579
565
|
**/
|
|
580
566
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
581
|
-
Rv,
|
|
582
567
|
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
583
568
|
>;
|
|
584
569
|
|
|
@@ -595,7 +580,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
595
580
|
* @param {XcmVersionedAssetId} asset
|
|
596
581
|
**/
|
|
597
582
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
598
|
-
Rv,
|
|
599
583
|
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
600
584
|
>;
|
|
601
585
|
|
|
@@ -614,7 +598,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
614
598
|
* @param {XcmVersionedXcm} message
|
|
615
599
|
**/
|
|
616
600
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
617
|
-
Rv,
|
|
618
601
|
(
|
|
619
602
|
destination: XcmVersionedLocation,
|
|
620
603
|
message: XcmVersionedXcm,
|
|
@@ -624,7 +607,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
624
607
|
/**
|
|
625
608
|
* Generic runtime api call
|
|
626
609
|
**/
|
|
627
|
-
[method: string]: GenericRuntimeApiMethod
|
|
610
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
628
611
|
};
|
|
629
612
|
/**
|
|
630
613
|
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
@@ -639,7 +622,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
639
622
|
* @param {number} result_xcms_version
|
|
640
623
|
**/
|
|
641
624
|
dryRunCall: GenericRuntimeApiMethod<
|
|
642
|
-
Rv,
|
|
643
625
|
(
|
|
644
626
|
origin: AssetHubKusamaRuntimeOriginCaller,
|
|
645
627
|
call: AssetHubKusamaRuntimeRuntimeCallLike,
|
|
@@ -655,7 +637,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
655
637
|
* @param {XcmVersionedXcm} xcm
|
|
656
638
|
**/
|
|
657
639
|
dryRunXcm: GenericRuntimeApiMethod<
|
|
658
|
-
Rv,
|
|
659
640
|
(
|
|
660
641
|
originLocation: XcmVersionedLocation,
|
|
661
642
|
xcm: XcmVersionedXcm,
|
|
@@ -665,7 +646,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
665
646
|
/**
|
|
666
647
|
* Generic runtime api call
|
|
667
648
|
**/
|
|
668
|
-
[method: string]: GenericRuntimeApiMethod
|
|
649
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
669
650
|
};
|
|
670
651
|
/**
|
|
671
652
|
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
@@ -678,14 +659,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
678
659
|
* @param {XcmVersionedLocation} location
|
|
679
660
|
**/
|
|
680
661
|
convertLocation: GenericRuntimeApiMethod<
|
|
681
|
-
Rv,
|
|
682
662
|
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
683
663
|
>;
|
|
684
664
|
|
|
685
665
|
/**
|
|
686
666
|
* Generic runtime api call
|
|
687
667
|
**/
|
|
688
|
-
[method: string]: GenericRuntimeApiMethod
|
|
668
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
689
669
|
};
|
|
690
670
|
/**
|
|
691
671
|
* @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
|
|
@@ -703,7 +683,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
703
683
|
* @param {XcmVersionedLocation} location
|
|
704
684
|
**/
|
|
705
685
|
isTrustedReserve: GenericRuntimeApiMethod<
|
|
706
|
-
Rv,
|
|
707
686
|
(
|
|
708
687
|
asset: XcmVersionedAsset,
|
|
709
688
|
location: XcmVersionedLocation,
|
|
@@ -722,7 +701,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
722
701
|
* @param {XcmVersionedLocation} location
|
|
723
702
|
**/
|
|
724
703
|
isTrustedTeleporter: GenericRuntimeApiMethod<
|
|
725
|
-
Rv,
|
|
726
704
|
(
|
|
727
705
|
asset: XcmVersionedAsset,
|
|
728
706
|
location: XcmVersionedLocation,
|
|
@@ -732,7 +710,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
732
710
|
/**
|
|
733
711
|
* Generic runtime api call
|
|
734
712
|
**/
|
|
735
|
-
[method: string]: GenericRuntimeApiMethod
|
|
713
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
736
714
|
};
|
|
737
715
|
/**
|
|
738
716
|
* @runtimeapi: AuthorizedAliasersApi - 0x12c8e3d4d7e06de0
|
|
@@ -745,7 +723,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
745
723
|
* @param {XcmVersionedLocation} target
|
|
746
724
|
**/
|
|
747
725
|
authorizedAliasers: GenericRuntimeApiMethod<
|
|
748
|
-
Rv,
|
|
749
726
|
(
|
|
750
727
|
target: XcmVersionedLocation,
|
|
751
728
|
) => Promise<Result<Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>>
|
|
@@ -759,7 +736,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
759
736
|
* @param {XcmVersionedLocation} target
|
|
760
737
|
**/
|
|
761
738
|
isAuthorizedAlias: GenericRuntimeApiMethod<
|
|
762
|
-
Rv,
|
|
763
739
|
(
|
|
764
740
|
origin: XcmVersionedLocation,
|
|
765
741
|
target: XcmVersionedLocation,
|
|
@@ -769,7 +745,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
769
745
|
/**
|
|
770
746
|
* Generic runtime api call
|
|
771
747
|
**/
|
|
772
|
-
[method: string]: GenericRuntimeApiMethod
|
|
748
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
773
749
|
};
|
|
774
750
|
/**
|
|
775
751
|
* @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
|
|
@@ -782,14 +758,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
782
758
|
* @param {AccountId32Like} account
|
|
783
759
|
**/
|
|
784
760
|
queryAccountBalances: GenericRuntimeApiMethod<
|
|
785
|
-
Rv,
|
|
786
761
|
(account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
|
|
787
762
|
>;
|
|
788
763
|
|
|
789
764
|
/**
|
|
790
765
|
* Generic runtime api call
|
|
791
766
|
**/
|
|
792
|
-
[method: string]: GenericRuntimeApiMethod
|
|
767
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
793
768
|
};
|
|
794
769
|
/**
|
|
795
770
|
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
@@ -804,12 +779,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
804
779
|
* @callname: CollectCollationInfo_collect_collation_info
|
|
805
780
|
* @param {Header} header
|
|
806
781
|
**/
|
|
807
|
-
collectCollationInfo: GenericRuntimeApiMethod<
|
|
782
|
+
collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
808
783
|
|
|
809
784
|
/**
|
|
810
785
|
* Generic runtime api call
|
|
811
786
|
**/
|
|
812
|
-
[method: string]: GenericRuntimeApiMethod
|
|
787
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
813
788
|
};
|
|
814
789
|
/**
|
|
815
790
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -830,7 +805,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
830
805
|
* @callname: GenesisBuilder_build_state
|
|
831
806
|
* @param {BytesLike} json
|
|
832
807
|
**/
|
|
833
|
-
buildState: GenericRuntimeApiMethod<
|
|
808
|
+
buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
834
809
|
|
|
835
810
|
/**
|
|
836
811
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
@@ -851,7 +826,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
851
826
|
* @callname: GenesisBuilder_get_preset
|
|
852
827
|
* @param {string | undefined} id
|
|
853
828
|
**/
|
|
854
|
-
getPreset: GenericRuntimeApiMethod<
|
|
829
|
+
getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
855
830
|
|
|
856
831
|
/**
|
|
857
832
|
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
@@ -861,12 +836,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
861
836
|
*
|
|
862
837
|
* @callname: GenesisBuilder_preset_names
|
|
863
838
|
**/
|
|
864
|
-
presetNames: GenericRuntimeApiMethod<
|
|
839
|
+
presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
|
|
865
840
|
|
|
866
841
|
/**
|
|
867
842
|
* Generic runtime api call
|
|
868
843
|
**/
|
|
869
|
-
[method: string]: GenericRuntimeApiMethod
|
|
844
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
870
845
|
};
|
|
871
846
|
/**
|
|
872
847
|
* @runtimeapi: GetParachainInfo - 0xa2ddb6a58477bf63
|
|
@@ -877,12 +852,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
877
852
|
*
|
|
878
853
|
* @callname: GetParachainInfo_parachain_id
|
|
879
854
|
**/
|
|
880
|
-
parachainId: GenericRuntimeApiMethod<
|
|
855
|
+
parachainId: GenericRuntimeApiMethod<() => Promise<PolkadotParachainPrimitivesPrimitivesId>>;
|
|
881
856
|
|
|
882
857
|
/**
|
|
883
858
|
* Generic runtime api call
|
|
884
859
|
**/
|
|
885
|
-
[method: string]: GenericRuntimeApiMethod
|
|
860
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
886
861
|
};
|
|
887
862
|
/**
|
|
888
863
|
* @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
|
|
@@ -894,7 +869,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
894
869
|
* @callname: NominationPoolsApi_pending_rewards
|
|
895
870
|
* @param {AccountId32Like} who
|
|
896
871
|
**/
|
|
897
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
872
|
+
pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
898
873
|
|
|
899
874
|
/**
|
|
900
875
|
* Returns the equivalent balance of `points` for a given pool.
|
|
@@ -903,7 +878,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
903
878
|
* @param {number} pool_id
|
|
904
879
|
* @param {bigint} points
|
|
905
880
|
**/
|
|
906
|
-
pointsToBalance: GenericRuntimeApiMethod<
|
|
881
|
+
pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
|
|
907
882
|
|
|
908
883
|
/**
|
|
909
884
|
* Returns the equivalent points of `new_funds` for a given pool.
|
|
@@ -912,7 +887,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
912
887
|
* @param {number} pool_id
|
|
913
888
|
* @param {bigint} new_funds
|
|
914
889
|
**/
|
|
915
|
-
balanceToPoints: GenericRuntimeApiMethod<
|
|
890
|
+
balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
|
|
916
891
|
|
|
917
892
|
/**
|
|
918
893
|
* Returns the pending slash for a given pool.
|
|
@@ -920,7 +895,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
920
895
|
* @callname: NominationPoolsApi_pool_pending_slash
|
|
921
896
|
* @param {number} pool_id
|
|
922
897
|
**/
|
|
923
|
-
poolPendingSlash: GenericRuntimeApiMethod<
|
|
898
|
+
poolPendingSlash: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
924
899
|
|
|
925
900
|
/**
|
|
926
901
|
* Returns the pending slash for a given pool member.
|
|
@@ -931,7 +906,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
931
906
|
* @callname: NominationPoolsApi_member_pending_slash
|
|
932
907
|
* @param {AccountId32Like} member
|
|
933
908
|
**/
|
|
934
|
-
memberPendingSlash: GenericRuntimeApiMethod<
|
|
909
|
+
memberPendingSlash: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<bigint>>;
|
|
935
910
|
|
|
936
911
|
/**
|
|
937
912
|
* Returns true if the pool with `pool_id` needs migration.
|
|
@@ -946,7 +921,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
946
921
|
* @callname: NominationPoolsApi_pool_needs_delegate_migration
|
|
947
922
|
* @param {number} pool_id
|
|
948
923
|
**/
|
|
949
|
-
poolNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
924
|
+
poolNeedsDelegateMigration: GenericRuntimeApiMethod<(poolId: number) => Promise<boolean>>;
|
|
950
925
|
|
|
951
926
|
/**
|
|
952
927
|
* Returns true if the delegated funds of the pool `member` needs migration.
|
|
@@ -960,7 +935,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
960
935
|
* @callname: NominationPoolsApi_member_needs_delegate_migration
|
|
961
936
|
* @param {AccountId32Like} member
|
|
962
937
|
**/
|
|
963
|
-
memberNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
938
|
+
memberNeedsDelegateMigration: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<boolean>>;
|
|
964
939
|
|
|
965
940
|
/**
|
|
966
941
|
* Returns the total contribution of a pool member including any balance that is unbonding.
|
|
@@ -968,7 +943,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
968
943
|
* @callname: NominationPoolsApi_member_total_balance
|
|
969
944
|
* @param {AccountId32Like} who
|
|
970
945
|
**/
|
|
971
|
-
memberTotalBalance: GenericRuntimeApiMethod<
|
|
946
|
+
memberTotalBalance: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
972
947
|
|
|
973
948
|
/**
|
|
974
949
|
* Total balance contributed to the pool.
|
|
@@ -976,7 +951,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
976
951
|
* @callname: NominationPoolsApi_pool_balance
|
|
977
952
|
* @param {number} pool_id
|
|
978
953
|
**/
|
|
979
|
-
poolBalance: GenericRuntimeApiMethod<
|
|
954
|
+
poolBalance: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
980
955
|
|
|
981
956
|
/**
|
|
982
957
|
* Returns the bonded account and reward account associated with the pool_id.
|
|
@@ -984,12 +959,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
984
959
|
* @callname: NominationPoolsApi_pool_accounts
|
|
985
960
|
* @param {number} pool_id
|
|
986
961
|
**/
|
|
987
|
-
poolAccounts: GenericRuntimeApiMethod<
|
|
962
|
+
poolAccounts: GenericRuntimeApiMethod<(poolId: number) => Promise<[AccountId32, AccountId32]>>;
|
|
988
963
|
|
|
989
964
|
/**
|
|
990
965
|
* Generic runtime api call
|
|
991
966
|
**/
|
|
992
|
-
[method: string]: GenericRuntimeApiMethod
|
|
967
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
993
968
|
};
|
|
994
969
|
/**
|
|
995
970
|
* @runtimeapi: StakingApi - 0x18ef58a3b67ba770
|
|
@@ -1001,7 +976,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1001
976
|
* @callname: StakingApi_nominations_quota
|
|
1002
977
|
* @param {bigint} balance
|
|
1003
978
|
**/
|
|
1004
|
-
nominationsQuota: GenericRuntimeApiMethod<
|
|
979
|
+
nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
|
|
1005
980
|
|
|
1006
981
|
/**
|
|
1007
982
|
* Returns the page count of exposures for a validator `account` in a given era.
|
|
@@ -1010,7 +985,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1010
985
|
* @param {number} era
|
|
1011
986
|
* @param {AccountId32Like} account
|
|
1012
987
|
**/
|
|
1013
|
-
erasStakersPageCount: GenericRuntimeApiMethod<
|
|
988
|
+
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
1014
989
|
|
|
1015
990
|
/**
|
|
1016
991
|
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
@@ -1019,12 +994,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1019
994
|
* @param {number} era
|
|
1020
995
|
* @param {AccountId32Like} account
|
|
1021
996
|
**/
|
|
1022
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
997
|
+
pendingRewards: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<boolean>>;
|
|
1023
998
|
|
|
1024
999
|
/**
|
|
1025
1000
|
* Generic runtime api call
|
|
1026
1001
|
**/
|
|
1027
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1002
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1028
1003
|
};
|
|
1029
1004
|
/**
|
|
1030
1005
|
* @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
|
|
@@ -1038,15 +1013,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1038
1013
|
*
|
|
1039
1014
|
* @callname: Inflation_experimental_issuance_prediction_info
|
|
1040
1015
|
**/
|
|
1041
|
-
experimentalIssuancePredictionInfo: GenericRuntimeApiMethod<
|
|
1042
|
-
Rv,
|
|
1043
|
-
() => Promise<SystemParachainsCommonApisInflationInfo>
|
|
1044
|
-
>;
|
|
1016
|
+
experimentalIssuancePredictionInfo: GenericRuntimeApiMethod<() => Promise<SystemParachainsCommonApisInflationInfo>>;
|
|
1045
1017
|
|
|
1046
1018
|
/**
|
|
1047
1019
|
* Generic runtime api call
|
|
1048
1020
|
**/
|
|
1049
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1021
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1050
1022
|
};
|
|
1051
1023
|
/**
|
|
1052
1024
|
* @runtimeapi: ReviveApi - 0x8c403e5c4a9fd442
|
|
@@ -1057,7 +1029,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1057
1029
|
*
|
|
1058
1030
|
* @callname: ReviveApi_block_gas_limit
|
|
1059
1031
|
**/
|
|
1060
|
-
blockGasLimit: GenericRuntimeApiMethod<
|
|
1032
|
+
blockGasLimit: GenericRuntimeApiMethod<() => Promise<U256>>;
|
|
1061
1033
|
|
|
1062
1034
|
/**
|
|
1063
1035
|
* Returns the free balance of the given `[H160]` address, using EVM decimals.
|
|
@@ -1065,14 +1037,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1065
1037
|
* @callname: ReviveApi_balance
|
|
1066
1038
|
* @param {H160} address
|
|
1067
1039
|
**/
|
|
1068
|
-
balance: GenericRuntimeApiMethod<
|
|
1040
|
+
balance: GenericRuntimeApiMethod<(address: H160) => Promise<U256>>;
|
|
1069
1041
|
|
|
1070
1042
|
/**
|
|
1071
1043
|
* Returns the gas price.
|
|
1072
1044
|
*
|
|
1073
1045
|
* @callname: ReviveApi_gas_price
|
|
1074
1046
|
**/
|
|
1075
|
-
gasPrice: GenericRuntimeApiMethod<
|
|
1047
|
+
gasPrice: GenericRuntimeApiMethod<() => Promise<U256>>;
|
|
1076
1048
|
|
|
1077
1049
|
/**
|
|
1078
1050
|
* Returns the nonce of the given `[H160]` address.
|
|
@@ -1080,7 +1052,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1080
1052
|
* @callname: ReviveApi_nonce
|
|
1081
1053
|
* @param {H160} address
|
|
1082
1054
|
**/
|
|
1083
|
-
nonce: GenericRuntimeApiMethod<
|
|
1055
|
+
nonce: GenericRuntimeApiMethod<(address: H160) => Promise<number>>;
|
|
1084
1056
|
|
|
1085
1057
|
/**
|
|
1086
1058
|
* Perform a call from a specified account to a given contract.
|
|
@@ -1096,7 +1068,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1096
1068
|
* @param {BytesLike} input_data
|
|
1097
1069
|
**/
|
|
1098
1070
|
call: GenericRuntimeApiMethod<
|
|
1099
|
-
Rv,
|
|
1100
1071
|
(
|
|
1101
1072
|
origin: AccountId32Like,
|
|
1102
1073
|
dest: H160,
|
|
@@ -1122,7 +1093,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1122
1093
|
* @param {FixedBytes<32> | undefined} salt
|
|
1123
1094
|
**/
|
|
1124
1095
|
instantiate: GenericRuntimeApiMethod<
|
|
1125
|
-
Rv,
|
|
1126
1096
|
(
|
|
1127
1097
|
origin: AccountId32Like,
|
|
1128
1098
|
value: bigint,
|
|
@@ -1143,7 +1113,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1143
1113
|
* @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
|
|
1144
1114
|
**/
|
|
1145
1115
|
ethTransact: GenericRuntimeApiMethod<
|
|
1146
|
-
Rv,
|
|
1147
1116
|
(
|
|
1148
1117
|
tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
1149
1118
|
) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>
|
|
@@ -1160,7 +1129,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1160
1129
|
* @param {bigint | undefined} storage_deposit_limit
|
|
1161
1130
|
**/
|
|
1162
1131
|
uploadCode: GenericRuntimeApiMethod<
|
|
1163
|
-
Rv,
|
|
1164
1132
|
(
|
|
1165
1133
|
origin: AccountId32Like,
|
|
1166
1134
|
code: BytesLike,
|
|
@@ -1180,7 +1148,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1180
1148
|
* @param {FixedBytes<32>} key
|
|
1181
1149
|
**/
|
|
1182
1150
|
getStorage: GenericRuntimeApiMethod<
|
|
1183
|
-
Rv,
|
|
1184
1151
|
(
|
|
1185
1152
|
address: H160,
|
|
1186
1153
|
key: FixedBytes<32>,
|
|
@@ -1199,7 +1166,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1199
1166
|
* @param {BytesLike} key
|
|
1200
1167
|
**/
|
|
1201
1168
|
getStorageVarKey: GenericRuntimeApiMethod<
|
|
1202
|
-
Rv,
|
|
1203
1169
|
(address: H160, key: BytesLike) => Promise<Result<Bytes | undefined, PalletRevivePrimitivesContractAccessError>>
|
|
1204
1170
|
>;
|
|
1205
1171
|
|
|
@@ -1216,7 +1182,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1216
1182
|
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
1217
1183
|
**/
|
|
1218
1184
|
traceBlock: GenericRuntimeApiMethod<
|
|
1219
|
-
Rv,
|
|
1220
1185
|
(
|
|
1221
1186
|
block: SpRuntimeBlock,
|
|
1222
1187
|
config: PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
@@ -1237,7 +1202,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1237
1202
|
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
1238
1203
|
**/
|
|
1239
1204
|
traceTx: GenericRuntimeApiMethod<
|
|
1240
|
-
Rv,
|
|
1241
1205
|
(
|
|
1242
1206
|
block: SpRuntimeBlock,
|
|
1243
1207
|
txIndex: number,
|
|
@@ -1255,7 +1219,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1255
1219
|
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
1256
1220
|
**/
|
|
1257
1221
|
traceCall: GenericRuntimeApiMethod<
|
|
1258
|
-
Rv,
|
|
1259
1222
|
(
|
|
1260
1223
|
tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
1261
1224
|
config: PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
@@ -1267,7 +1230,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1267
1230
|
*
|
|
1268
1231
|
* @callname: ReviveApi_block_author
|
|
1269
1232
|
**/
|
|
1270
|
-
blockAuthor: GenericRuntimeApiMethod<
|
|
1233
|
+
blockAuthor: GenericRuntimeApiMethod<() => Promise<H160 | undefined>>;
|
|
1271
1234
|
|
|
1272
1235
|
/**
|
|
1273
1236
|
* Get the H160 address associated to this account id
|
|
@@ -1275,14 +1238,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1275
1238
|
* @callname: ReviveApi_address
|
|
1276
1239
|
* @param {AccountId32Like} account_id
|
|
1277
1240
|
**/
|
|
1278
|
-
address: GenericRuntimeApiMethod<
|
|
1241
|
+
address: GenericRuntimeApiMethod<(accountId: AccountId32Like) => Promise<H160>>;
|
|
1279
1242
|
|
|
1280
1243
|
/**
|
|
1281
1244
|
* The address used to call the runtime's pallets dispatchables
|
|
1282
1245
|
*
|
|
1283
1246
|
* @callname: ReviveApi_runtime_pallets_address
|
|
1284
1247
|
**/
|
|
1285
|
-
runtimePalletsAddress: GenericRuntimeApiMethod<
|
|
1248
|
+
runtimePalletsAddress: GenericRuntimeApiMethod<() => Promise<H160>>;
|
|
1286
1249
|
|
|
1287
1250
|
/**
|
|
1288
1251
|
* The code at the specified address taking pre-compiles into account.
|
|
@@ -1290,11 +1253,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1290
1253
|
* @callname: ReviveApi_code
|
|
1291
1254
|
* @param {H160} address
|
|
1292
1255
|
**/
|
|
1293
|
-
code: GenericRuntimeApiMethod<
|
|
1256
|
+
code: GenericRuntimeApiMethod<(address: H160) => Promise<Bytes>>;
|
|
1294
1257
|
|
|
1295
1258
|
/**
|
|
1296
1259
|
* Generic runtime api call
|
|
1297
1260
|
**/
|
|
1298
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1261
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1299
1262
|
};
|
|
1300
1263
|
}
|