@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,
|
|
@@ -51,7 +51,7 @@ import type {
|
|
|
51
51
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
52
52
|
} from './types.js';
|
|
53
53
|
|
|
54
|
-
export interface RuntimeApis
|
|
54
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
55
55
|
/**
|
|
56
56
|
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
57
57
|
**/
|
|
@@ -63,19 +63,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
63
63
|
*
|
|
64
64
|
* @callname: AuraApi_slot_duration
|
|
65
65
|
**/
|
|
66
|
-
slotDuration: GenericRuntimeApiMethod<
|
|
66
|
+
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Return the current set of authorities.
|
|
70
70
|
*
|
|
71
71
|
* @callname: AuraApi_authorities
|
|
72
72
|
**/
|
|
73
|
-
authorities: GenericRuntimeApiMethod<
|
|
73
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* Generic runtime api call
|
|
77
77
|
**/
|
|
78
|
-
[method: string]: GenericRuntimeApiMethod
|
|
78
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
79
79
|
};
|
|
80
80
|
/**
|
|
81
81
|
* @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
|
|
@@ -86,12 +86,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
86
86
|
*
|
|
87
87
|
* @callname: RelayParentOffsetApi_relay_parent_offset
|
|
88
88
|
**/
|
|
89
|
-
relayParentOffset: GenericRuntimeApiMethod<
|
|
89
|
+
relayParentOffset: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
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: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
@@ -113,12 +113,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
113
113
|
* @param {H256} included_hash
|
|
114
114
|
* @param {SpConsensusSlotsSlot} slot
|
|
115
115
|
**/
|
|
116
|
-
canBuildUpon: GenericRuntimeApiMethod<
|
|
116
|
+
canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* Generic runtime api call
|
|
120
120
|
**/
|
|
121
|
-
[method: string]: GenericRuntimeApiMethod
|
|
121
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
122
122
|
};
|
|
123
123
|
/**
|
|
124
124
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
@@ -129,7 +129,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
129
129
|
*
|
|
130
130
|
* @callname: Core_version
|
|
131
131
|
**/
|
|
132
|
-
version: GenericRuntimeApiMethod<
|
|
132
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* Execute the given block.
|
|
@@ -137,7 +137,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
137
137
|
* @callname: Core_execute_block
|
|
138
138
|
* @param {SpRuntimeBlock} block
|
|
139
139
|
**/
|
|
140
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
140
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -145,12 +145,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
145
145
|
* @callname: Core_initialize_block
|
|
146
146
|
* @param {Header} header
|
|
147
147
|
**/
|
|
148
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
148
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
151
|
* Generic runtime api call
|
|
152
152
|
**/
|
|
153
|
-
[method: string]: GenericRuntimeApiMethod
|
|
153
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
154
154
|
};
|
|
155
155
|
/**
|
|
156
156
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -161,7 +161,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
161
161
|
*
|
|
162
162
|
* @callname: Metadata_metadata
|
|
163
163
|
**/
|
|
164
|
-
metadata: GenericRuntimeApiMethod<
|
|
164
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Returns the metadata at a given version.
|
|
@@ -172,7 +172,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
172
172
|
* @callname: Metadata_metadata_at_version
|
|
173
173
|
* @param {number} version
|
|
174
174
|
**/
|
|
175
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
175
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* Returns the supported metadata versions.
|
|
@@ -181,12 +181,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
181
181
|
*
|
|
182
182
|
* @callname: Metadata_metadata_versions
|
|
183
183
|
**/
|
|
184
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
184
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
187
|
* Generic runtime api call
|
|
188
188
|
**/
|
|
189
|
-
[method: string]: GenericRuntimeApiMethod
|
|
189
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
190
190
|
};
|
|
191
191
|
/**
|
|
192
192
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -202,7 +202,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
202
202
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
203
203
|
**/
|
|
204
204
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
205
|
-
Rv,
|
|
206
205
|
(
|
|
207
206
|
extrinsic: UncheckedExtrinsicLike,
|
|
208
207
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -213,7 +212,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
213
212
|
*
|
|
214
213
|
* @callname: BlockBuilder_finalize_block
|
|
215
214
|
**/
|
|
216
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
215
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
217
216
|
|
|
218
217
|
/**
|
|
219
218
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -222,7 +221,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
222
221
|
* @param {SpInherentsInherentData} inherent
|
|
223
222
|
**/
|
|
224
223
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
225
|
-
Rv,
|
|
226
224
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
227
225
|
>;
|
|
228
226
|
|
|
@@ -234,14 +232,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
234
232
|
* @param {SpInherentsInherentData} data
|
|
235
233
|
**/
|
|
236
234
|
checkInherents: GenericRuntimeApiMethod<
|
|
237
|
-
Rv,
|
|
238
235
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
239
236
|
>;
|
|
240
237
|
|
|
241
238
|
/**
|
|
242
239
|
* Generic runtime api call
|
|
243
240
|
**/
|
|
244
|
-
[method: string]: GenericRuntimeApiMethod
|
|
241
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
245
242
|
};
|
|
246
243
|
/**
|
|
247
244
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -264,7 +261,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
264
261
|
* @param {H256} block_hash
|
|
265
262
|
**/
|
|
266
263
|
validateTransaction: GenericRuntimeApiMethod<
|
|
267
|
-
Rv,
|
|
268
264
|
(
|
|
269
265
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
270
266
|
tx: UncheckedExtrinsicLike,
|
|
@@ -277,7 +273,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
277
273
|
/**
|
|
278
274
|
* Generic runtime api call
|
|
279
275
|
**/
|
|
280
|
-
[method: string]: GenericRuntimeApiMethod
|
|
276
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
281
277
|
};
|
|
282
278
|
/**
|
|
283
279
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -289,12 +285,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
289
285
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
290
286
|
* @param {Header} header
|
|
291
287
|
**/
|
|
292
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
288
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
293
289
|
|
|
294
290
|
/**
|
|
295
291
|
* Generic runtime api call
|
|
296
292
|
**/
|
|
297
|
-
[method: string]: GenericRuntimeApiMethod
|
|
293
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
298
294
|
};
|
|
299
295
|
/**
|
|
300
296
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -312,7 +308,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
312
308
|
* @callname: SessionKeys_generate_session_keys
|
|
313
309
|
* @param {BytesLike | undefined} seed
|
|
314
310
|
**/
|
|
315
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
311
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
316
312
|
|
|
317
313
|
/**
|
|
318
314
|
* Decode the given public session keys.
|
|
@@ -323,14 +319,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
323
319
|
* @param {BytesLike} encoded
|
|
324
320
|
**/
|
|
325
321
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
326
|
-
Rv,
|
|
327
322
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
328
323
|
>;
|
|
329
324
|
|
|
330
325
|
/**
|
|
331
326
|
* Generic runtime api call
|
|
332
327
|
**/
|
|
333
|
-
[method: string]: GenericRuntimeApiMethod
|
|
328
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
334
329
|
};
|
|
335
330
|
/**
|
|
336
331
|
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
@@ -344,7 +339,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
344
339
|
* @param {BytesLike} input
|
|
345
340
|
**/
|
|
346
341
|
executeViewFunction: GenericRuntimeApiMethod<
|
|
347
|
-
Rv,
|
|
348
342
|
(
|
|
349
343
|
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
350
344
|
input: BytesLike,
|
|
@@ -354,7 +348,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
354
348
|
/**
|
|
355
349
|
* Generic runtime api call
|
|
356
350
|
**/
|
|
357
|
-
[method: string]: GenericRuntimeApiMethod
|
|
351
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
358
352
|
};
|
|
359
353
|
/**
|
|
360
354
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -366,12 +360,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
366
360
|
* @callname: AccountNonceApi_account_nonce
|
|
367
361
|
* @param {AccountId32Like} account
|
|
368
362
|
**/
|
|
369
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
363
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
370
364
|
|
|
371
365
|
/**
|
|
372
366
|
* Generic runtime api call
|
|
373
367
|
**/
|
|
374
|
-
[method: string]: GenericRuntimeApiMethod
|
|
368
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
375
369
|
};
|
|
376
370
|
/**
|
|
377
371
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -384,7 +378,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
384
378
|
* @param {number} len
|
|
385
379
|
**/
|
|
386
380
|
queryInfo: GenericRuntimeApiMethod<
|
|
387
|
-
Rv,
|
|
388
381
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
389
382
|
>;
|
|
390
383
|
|
|
@@ -395,7 +388,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
395
388
|
* @param {number} len
|
|
396
389
|
**/
|
|
397
390
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
398
|
-
Rv,
|
|
399
391
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
400
392
|
>;
|
|
401
393
|
|
|
@@ -404,19 +396,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
404
396
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
405
397
|
* @param {SpWeightsWeightV2Weight} weight
|
|
406
398
|
**/
|
|
407
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
399
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
408
400
|
|
|
409
401
|
/**
|
|
410
402
|
*
|
|
411
403
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
412
404
|
* @param {number} length
|
|
413
405
|
**/
|
|
414
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
406
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
415
407
|
|
|
416
408
|
/**
|
|
417
409
|
* Generic runtime api call
|
|
418
410
|
**/
|
|
419
|
-
[method: string]: GenericRuntimeApiMethod
|
|
411
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
420
412
|
};
|
|
421
413
|
/**
|
|
422
414
|
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
@@ -430,7 +422,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
430
422
|
* @param {number} len
|
|
431
423
|
**/
|
|
432
424
|
queryCallInfo: GenericRuntimeApiMethod<
|
|
433
|
-
Rv,
|
|
434
425
|
(call: PeoplePolkadotRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
435
426
|
>;
|
|
436
427
|
|
|
@@ -442,7 +433,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
442
433
|
* @param {number} len
|
|
443
434
|
**/
|
|
444
435
|
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
445
|
-
Rv,
|
|
446
436
|
(call: PeoplePolkadotRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
447
437
|
>;
|
|
448
438
|
|
|
@@ -452,7 +442,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
452
442
|
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
453
443
|
* @param {SpWeightsWeightV2Weight} weight
|
|
454
444
|
**/
|
|
455
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
445
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
456
446
|
|
|
457
447
|
/**
|
|
458
448
|
* Query the output of the current `LengthToFee` given some input.
|
|
@@ -460,12 +450,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
460
450
|
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
461
451
|
* @param {number} length
|
|
462
452
|
**/
|
|
463
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
453
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
464
454
|
|
|
465
455
|
/**
|
|
466
456
|
* Generic runtime api call
|
|
467
457
|
**/
|
|
468
|
-
[method: string]: GenericRuntimeApiMethod
|
|
458
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
469
459
|
};
|
|
470
460
|
/**
|
|
471
461
|
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
@@ -482,7 +472,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
482
472
|
* @param {number} xcm_version
|
|
483
473
|
**/
|
|
484
474
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
485
|
-
Rv,
|
|
486
475
|
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
487
476
|
>;
|
|
488
477
|
|
|
@@ -497,7 +486,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
497
486
|
* @param {XcmVersionedXcm} message
|
|
498
487
|
**/
|
|
499
488
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
500
|
-
Rv,
|
|
501
489
|
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
502
490
|
>;
|
|
503
491
|
|
|
@@ -514,7 +502,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
514
502
|
* @param {XcmVersionedAssetId} asset
|
|
515
503
|
**/
|
|
516
504
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
517
|
-
Rv,
|
|
518
505
|
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
519
506
|
>;
|
|
520
507
|
|
|
@@ -533,7 +520,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
533
520
|
* @param {XcmVersionedXcm} message
|
|
534
521
|
**/
|
|
535
522
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
536
|
-
Rv,
|
|
537
523
|
(
|
|
538
524
|
destination: XcmVersionedLocation,
|
|
539
525
|
message: XcmVersionedXcm,
|
|
@@ -543,7 +529,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
543
529
|
/**
|
|
544
530
|
* Generic runtime api call
|
|
545
531
|
**/
|
|
546
|
-
[method: string]: GenericRuntimeApiMethod
|
|
532
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
547
533
|
};
|
|
548
534
|
/**
|
|
549
535
|
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
@@ -558,7 +544,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
558
544
|
* @param {number} result_xcms_version
|
|
559
545
|
**/
|
|
560
546
|
dryRunCall: GenericRuntimeApiMethod<
|
|
561
|
-
Rv,
|
|
562
547
|
(
|
|
563
548
|
origin: PeoplePolkadotRuntimeOriginCaller,
|
|
564
549
|
call: PeoplePolkadotRuntimeRuntimeCallLike,
|
|
@@ -574,7 +559,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
574
559
|
* @param {XcmVersionedXcm} xcm
|
|
575
560
|
**/
|
|
576
561
|
dryRunXcm: GenericRuntimeApiMethod<
|
|
577
|
-
Rv,
|
|
578
562
|
(
|
|
579
563
|
originLocation: XcmVersionedLocation,
|
|
580
564
|
xcm: XcmVersionedXcm,
|
|
@@ -584,7 +568,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
584
568
|
/**
|
|
585
569
|
* Generic runtime api call
|
|
586
570
|
**/
|
|
587
|
-
[method: string]: GenericRuntimeApiMethod
|
|
571
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
588
572
|
};
|
|
589
573
|
/**
|
|
590
574
|
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
@@ -597,14 +581,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
597
581
|
* @param {XcmVersionedLocation} location
|
|
598
582
|
**/
|
|
599
583
|
convertLocation: GenericRuntimeApiMethod<
|
|
600
|
-
Rv,
|
|
601
584
|
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
602
585
|
>;
|
|
603
586
|
|
|
604
587
|
/**
|
|
605
588
|
* Generic runtime api call
|
|
606
589
|
**/
|
|
607
|
-
[method: string]: GenericRuntimeApiMethod
|
|
590
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
608
591
|
};
|
|
609
592
|
/**
|
|
610
593
|
* @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
|
|
@@ -622,7 +605,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
622
605
|
* @param {XcmVersionedLocation} location
|
|
623
606
|
**/
|
|
624
607
|
isTrustedReserve: GenericRuntimeApiMethod<
|
|
625
|
-
Rv,
|
|
626
608
|
(
|
|
627
609
|
asset: XcmVersionedAsset,
|
|
628
610
|
location: XcmVersionedLocation,
|
|
@@ -641,7 +623,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
641
623
|
* @param {XcmVersionedLocation} location
|
|
642
624
|
**/
|
|
643
625
|
isTrustedTeleporter: GenericRuntimeApiMethod<
|
|
644
|
-
Rv,
|
|
645
626
|
(
|
|
646
627
|
asset: XcmVersionedAsset,
|
|
647
628
|
location: XcmVersionedLocation,
|
|
@@ -651,7 +632,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
651
632
|
/**
|
|
652
633
|
* Generic runtime api call
|
|
653
634
|
**/
|
|
654
|
-
[method: string]: GenericRuntimeApiMethod
|
|
635
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
655
636
|
};
|
|
656
637
|
/**
|
|
657
638
|
* @runtimeapi: AuthorizedAliasersApi - 0x12c8e3d4d7e06de0
|
|
@@ -664,7 +645,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
664
645
|
* @param {XcmVersionedLocation} target
|
|
665
646
|
**/
|
|
666
647
|
authorizedAliasers: GenericRuntimeApiMethod<
|
|
667
|
-
Rv,
|
|
668
648
|
(
|
|
669
649
|
target: XcmVersionedLocation,
|
|
670
650
|
) => Promise<Result<Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>>
|
|
@@ -678,7 +658,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
678
658
|
* @param {XcmVersionedLocation} target
|
|
679
659
|
**/
|
|
680
660
|
isAuthorizedAlias: GenericRuntimeApiMethod<
|
|
681
|
-
Rv,
|
|
682
661
|
(
|
|
683
662
|
origin: XcmVersionedLocation,
|
|
684
663
|
target: XcmVersionedLocation,
|
|
@@ -688,7 +667,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
688
667
|
/**
|
|
689
668
|
* Generic runtime api call
|
|
690
669
|
**/
|
|
691
|
-
[method: string]: GenericRuntimeApiMethod
|
|
670
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
692
671
|
};
|
|
693
672
|
/**
|
|
694
673
|
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
@@ -703,12 +682,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
703
682
|
* @callname: CollectCollationInfo_collect_collation_info
|
|
704
683
|
* @param {Header} header
|
|
705
684
|
**/
|
|
706
|
-
collectCollationInfo: GenericRuntimeApiMethod<
|
|
685
|
+
collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
707
686
|
|
|
708
687
|
/**
|
|
709
688
|
* Generic runtime api call
|
|
710
689
|
**/
|
|
711
|
-
[method: string]: GenericRuntimeApiMethod
|
|
690
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
712
691
|
};
|
|
713
692
|
/**
|
|
714
693
|
* @runtimeapi: GetParachainInfo - 0xa2ddb6a58477bf63
|
|
@@ -719,12 +698,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
719
698
|
*
|
|
720
699
|
* @callname: GetParachainInfo_parachain_id
|
|
721
700
|
**/
|
|
722
|
-
parachainId: GenericRuntimeApiMethod<
|
|
701
|
+
parachainId: GenericRuntimeApiMethod<() => Promise<PolkadotParachainPrimitivesPrimitivesId>>;
|
|
723
702
|
|
|
724
703
|
/**
|
|
725
704
|
* Generic runtime api call
|
|
726
705
|
**/
|
|
727
|
-
[method: string]: GenericRuntimeApiMethod
|
|
706
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
728
707
|
};
|
|
729
708
|
/**
|
|
730
709
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -745,7 +724,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
745
724
|
* @callname: GenesisBuilder_build_state
|
|
746
725
|
* @param {BytesLike} json
|
|
747
726
|
**/
|
|
748
|
-
buildState: GenericRuntimeApiMethod<
|
|
727
|
+
buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
749
728
|
|
|
750
729
|
/**
|
|
751
730
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
@@ -766,7 +745,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
766
745
|
* @callname: GenesisBuilder_get_preset
|
|
767
746
|
* @param {string | undefined} id
|
|
768
747
|
**/
|
|
769
|
-
getPreset: GenericRuntimeApiMethod<
|
|
748
|
+
getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
770
749
|
|
|
771
750
|
/**
|
|
772
751
|
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
@@ -776,11 +755,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
776
755
|
*
|
|
777
756
|
* @callname: GenesisBuilder_preset_names
|
|
778
757
|
**/
|
|
779
|
-
presetNames: GenericRuntimeApiMethod<
|
|
758
|
+
presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
|
|
780
759
|
|
|
781
760
|
/**
|
|
782
761
|
* Generic runtime api call
|
|
783
762
|
**/
|
|
784
|
-
[method: string]: GenericRuntimeApiMethod
|
|
763
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
785
764
|
};
|
|
786
765
|
}
|