@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/astar/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,
|
|
@@ -60,7 +60,7 @@ import type {
|
|
|
60
60
|
XcmVersionedAsset,
|
|
61
61
|
} from './types.js';
|
|
62
62
|
|
|
63
|
-
export interface RuntimeApis
|
|
63
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
64
64
|
/**
|
|
65
65
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
66
66
|
**/
|
|
@@ -70,7 +70,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
70
70
|
*
|
|
71
71
|
* @callname: Core_version
|
|
72
72
|
**/
|
|
73
|
-
version: GenericRuntimeApiMethod<
|
|
73
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* Execute the given block.
|
|
@@ -78,7 +78,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
78
78
|
* @callname: Core_execute_block
|
|
79
79
|
* @param {SpRuntimeBlock} block
|
|
80
80
|
**/
|
|
81
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
81
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -86,12 +86,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
86
86
|
* @callname: Core_initialize_block
|
|
87
87
|
* @param {Header} header
|
|
88
88
|
**/
|
|
89
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
89
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
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: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -102,7 +102,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
102
102
|
*
|
|
103
103
|
* @callname: Metadata_metadata
|
|
104
104
|
**/
|
|
105
|
-
metadata: GenericRuntimeApiMethod<
|
|
105
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* Returns the metadata at a given version.
|
|
@@ -113,7 +113,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
113
113
|
* @callname: Metadata_metadata_at_version
|
|
114
114
|
* @param {number} version
|
|
115
115
|
**/
|
|
116
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
116
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* Returns the supported metadata versions.
|
|
@@ -122,12 +122,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
122
122
|
*
|
|
123
123
|
* @callname: Metadata_metadata_versions
|
|
124
124
|
**/
|
|
125
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
125
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* Generic runtime api call
|
|
129
129
|
**/
|
|
130
|
-
[method: string]: GenericRuntimeApiMethod
|
|
130
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
131
131
|
};
|
|
132
132
|
/**
|
|
133
133
|
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
@@ -140,19 +140,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
140
140
|
*
|
|
141
141
|
* @callname: AuraApi_slot_duration
|
|
142
142
|
**/
|
|
143
|
-
slotDuration: GenericRuntimeApiMethod<
|
|
143
|
+
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Return the current set of authorities.
|
|
147
147
|
*
|
|
148
148
|
* @callname: AuraApi_authorities
|
|
149
149
|
**/
|
|
150
|
-
authorities: GenericRuntimeApiMethod<
|
|
150
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* Generic runtime api call
|
|
154
154
|
**/
|
|
155
|
-
[method: string]: GenericRuntimeApiMethod
|
|
155
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
156
156
|
};
|
|
157
157
|
/**
|
|
158
158
|
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
@@ -174,12 +174,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
174
174
|
* @param {H256} included_hash
|
|
175
175
|
* @param {SpConsensusSlotsSlot} slot
|
|
176
176
|
**/
|
|
177
|
-
canBuildUpon: GenericRuntimeApiMethod<
|
|
177
|
+
canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* Generic runtime api call
|
|
181
181
|
**/
|
|
182
|
-
[method: string]: GenericRuntimeApiMethod
|
|
182
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
183
183
|
};
|
|
184
184
|
/**
|
|
185
185
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -195,7 +195,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
195
195
|
* @param {FpSelfContainedUncheckedExtrinsic} extrinsic
|
|
196
196
|
**/
|
|
197
197
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
198
|
-
Rv,
|
|
199
198
|
(
|
|
200
199
|
extrinsic: FpSelfContainedUncheckedExtrinsic,
|
|
201
200
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -206,7 +205,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
206
205
|
*
|
|
207
206
|
* @callname: BlockBuilder_finalize_block
|
|
208
207
|
**/
|
|
209
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
208
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
210
209
|
|
|
211
210
|
/**
|
|
212
211
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -215,7 +214,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
215
214
|
* @param {SpInherentsInherentData} inherent
|
|
216
215
|
**/
|
|
217
216
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
218
|
-
Rv,
|
|
219
217
|
(inherent: SpInherentsInherentData) => Promise<Array<FpSelfContainedUncheckedExtrinsic>>
|
|
220
218
|
>;
|
|
221
219
|
|
|
@@ -227,14 +225,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
227
225
|
* @param {SpInherentsInherentData} data
|
|
228
226
|
**/
|
|
229
227
|
checkInherents: GenericRuntimeApiMethod<
|
|
230
|
-
Rv,
|
|
231
228
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
232
229
|
>;
|
|
233
230
|
|
|
234
231
|
/**
|
|
235
232
|
* Generic runtime api call
|
|
236
233
|
**/
|
|
237
|
-
[method: string]: GenericRuntimeApiMethod
|
|
234
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
238
235
|
};
|
|
239
236
|
/**
|
|
240
237
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -257,7 +254,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
257
254
|
* @param {H256} block_hash
|
|
258
255
|
**/
|
|
259
256
|
validateTransaction: GenericRuntimeApiMethod<
|
|
260
|
-
Rv,
|
|
261
257
|
(
|
|
262
258
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
263
259
|
tx: FpSelfContainedUncheckedExtrinsic,
|
|
@@ -270,7 +266,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
270
266
|
/**
|
|
271
267
|
* Generic runtime api call
|
|
272
268
|
**/
|
|
273
|
-
[method: string]: GenericRuntimeApiMethod
|
|
269
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
274
270
|
};
|
|
275
271
|
/**
|
|
276
272
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -282,12 +278,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
282
278
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
283
279
|
* @param {Header} header
|
|
284
280
|
**/
|
|
285
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
281
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
286
282
|
|
|
287
283
|
/**
|
|
288
284
|
* Generic runtime api call
|
|
289
285
|
**/
|
|
290
|
-
[method: string]: GenericRuntimeApiMethod
|
|
286
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
291
287
|
};
|
|
292
288
|
/**
|
|
293
289
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -299,12 +295,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
299
295
|
* @callname: AccountNonceApi_account_nonce
|
|
300
296
|
* @param {AccountId32Like} account
|
|
301
297
|
**/
|
|
302
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
298
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
303
299
|
|
|
304
300
|
/**
|
|
305
301
|
* Generic runtime api call
|
|
306
302
|
**/
|
|
307
|
-
[method: string]: GenericRuntimeApiMethod
|
|
303
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
308
304
|
};
|
|
309
305
|
/**
|
|
310
306
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -317,7 +313,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
317
313
|
* @param {number} len
|
|
318
314
|
**/
|
|
319
315
|
queryInfo: GenericRuntimeApiMethod<
|
|
320
|
-
Rv,
|
|
321
316
|
(uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
322
317
|
>;
|
|
323
318
|
|
|
@@ -328,7 +323,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
328
323
|
* @param {number} len
|
|
329
324
|
**/
|
|
330
325
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
331
|
-
Rv,
|
|
332
326
|
(uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
333
327
|
>;
|
|
334
328
|
|
|
@@ -337,19 +331,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
337
331
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
338
332
|
* @param {SpWeightsWeightV2Weight} weight
|
|
339
333
|
**/
|
|
340
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
334
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
341
335
|
|
|
342
336
|
/**
|
|
343
337
|
*
|
|
344
338
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
345
339
|
* @param {number} length
|
|
346
340
|
**/
|
|
347
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
341
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
348
342
|
|
|
349
343
|
/**
|
|
350
344
|
* Generic runtime api call
|
|
351
345
|
**/
|
|
352
|
-
[method: string]: GenericRuntimeApiMethod
|
|
346
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
353
347
|
};
|
|
354
348
|
/**
|
|
355
349
|
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
@@ -363,7 +357,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
363
357
|
* @param {number} len
|
|
364
358
|
**/
|
|
365
359
|
queryCallInfo: GenericRuntimeApiMethod<
|
|
366
|
-
Rv,
|
|
367
360
|
(call: AstarRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
368
361
|
>;
|
|
369
362
|
|
|
@@ -375,7 +368,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
375
368
|
* @param {number} len
|
|
376
369
|
**/
|
|
377
370
|
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
378
|
-
Rv,
|
|
379
371
|
(call: AstarRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
380
372
|
>;
|
|
381
373
|
|
|
@@ -385,7 +377,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
385
377
|
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
386
378
|
* @param {SpWeightsWeightV2Weight} weight
|
|
387
379
|
**/
|
|
388
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
380
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
389
381
|
|
|
390
382
|
/**
|
|
391
383
|
* Query the output of the current `LengthToFee` given some input.
|
|
@@ -393,12 +385,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
393
385
|
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
394
386
|
* @param {number} length
|
|
395
387
|
**/
|
|
396
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
388
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
397
389
|
|
|
398
390
|
/**
|
|
399
391
|
* Generic runtime api call
|
|
400
392
|
**/
|
|
401
|
-
[method: string]: GenericRuntimeApiMethod
|
|
393
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
402
394
|
};
|
|
403
395
|
/**
|
|
404
396
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -416,7 +408,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
416
408
|
* @callname: SessionKeys_generate_session_keys
|
|
417
409
|
* @param {BytesLike | undefined} seed
|
|
418
410
|
**/
|
|
419
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
411
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
420
412
|
|
|
421
413
|
/**
|
|
422
414
|
* Decode the given public session keys.
|
|
@@ -427,14 +419,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
427
419
|
* @param {BytesLike} encoded
|
|
428
420
|
**/
|
|
429
421
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
430
|
-
Rv,
|
|
431
422
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
432
423
|
>;
|
|
433
424
|
|
|
434
425
|
/**
|
|
435
426
|
* Generic runtime api call
|
|
436
427
|
**/
|
|
437
|
-
[method: string]: GenericRuntimeApiMethod
|
|
428
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
438
429
|
};
|
|
439
430
|
/**
|
|
440
431
|
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
@@ -449,12 +440,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
449
440
|
* @callname: CollectCollationInfo_collect_collation_info
|
|
450
441
|
* @param {Header} header
|
|
451
442
|
**/
|
|
452
|
-
collectCollationInfo: GenericRuntimeApiMethod<
|
|
443
|
+
collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
453
444
|
|
|
454
445
|
/**
|
|
455
446
|
* Generic runtime api call
|
|
456
447
|
**/
|
|
457
|
-
[method: string]: GenericRuntimeApiMethod
|
|
448
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
458
449
|
};
|
|
459
450
|
/**
|
|
460
451
|
* @runtimeapi: EthereumRuntimeRPCApi - 0x582211f65bb14b89
|
|
@@ -465,7 +456,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
465
456
|
*
|
|
466
457
|
* @callname: EthereumRuntimeRPCApi_chain_id
|
|
467
458
|
**/
|
|
468
|
-
chainId: GenericRuntimeApiMethod<
|
|
459
|
+
chainId: GenericRuntimeApiMethod<() => Promise<bigint>>;
|
|
469
460
|
|
|
470
461
|
/**
|
|
471
462
|
* Returns pallet_evm::Accounts by address.
|
|
@@ -473,14 +464,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
473
464
|
* @callname: EthereumRuntimeRPCApi_account_basic
|
|
474
465
|
* @param {H160} address
|
|
475
466
|
**/
|
|
476
|
-
accountBasic: GenericRuntimeApiMethod<
|
|
467
|
+
accountBasic: GenericRuntimeApiMethod<(address: H160) => Promise<EvmBackendBasic>>;
|
|
477
468
|
|
|
478
469
|
/**
|
|
479
470
|
* Returns FixedGasPrice::min_gas_price
|
|
480
471
|
*
|
|
481
472
|
* @callname: EthereumRuntimeRPCApi_gas_price
|
|
482
473
|
**/
|
|
483
|
-
gasPrice: GenericRuntimeApiMethod<
|
|
474
|
+
gasPrice: GenericRuntimeApiMethod<() => Promise<U256>>;
|
|
484
475
|
|
|
485
476
|
/**
|
|
486
477
|
* For a given account address, returns pallet_evm::AccountCodes.
|
|
@@ -488,14 +479,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
488
479
|
* @callname: EthereumRuntimeRPCApi_account_code_at
|
|
489
480
|
* @param {H160} address
|
|
490
481
|
**/
|
|
491
|
-
accountCodeAt: GenericRuntimeApiMethod<
|
|
482
|
+
accountCodeAt: GenericRuntimeApiMethod<(address: H160) => Promise<Bytes>>;
|
|
492
483
|
|
|
493
484
|
/**
|
|
494
485
|
* Returns the converted FindAuthor::find_author authority id.
|
|
495
486
|
*
|
|
496
487
|
* @callname: EthereumRuntimeRPCApi_author
|
|
497
488
|
**/
|
|
498
|
-
author: GenericRuntimeApiMethod<
|
|
489
|
+
author: GenericRuntimeApiMethod<() => Promise<H160>>;
|
|
499
490
|
|
|
500
491
|
/**
|
|
501
492
|
* For a given account address and index, returns pallet_evm::AccountStorages.
|
|
@@ -504,7 +495,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
504
495
|
* @param {H160} address
|
|
505
496
|
* @param {U256} index
|
|
506
497
|
**/
|
|
507
|
-
storageAt: GenericRuntimeApiMethod<
|
|
498
|
+
storageAt: GenericRuntimeApiMethod<(address: H160, index: U256) => Promise<H256>>;
|
|
508
499
|
|
|
509
500
|
/**
|
|
510
501
|
*
|
|
@@ -521,7 +512,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
521
512
|
* @param {Array<[H160, Array<H256>]> | undefined} access_list
|
|
522
513
|
**/
|
|
523
514
|
call: GenericRuntimeApiMethod<
|
|
524
|
-
Rv,
|
|
525
515
|
(
|
|
526
516
|
from: H160,
|
|
527
517
|
to: H160,
|
|
@@ -550,7 +540,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
550
540
|
* @param {Array<[H160, Array<H256>]> | undefined} access_list
|
|
551
541
|
**/
|
|
552
542
|
create: GenericRuntimeApiMethod<
|
|
553
|
-
Rv,
|
|
554
543
|
(
|
|
555
544
|
from: H160,
|
|
556
545
|
data: BytesLike,
|
|
@@ -569,28 +558,27 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
569
558
|
*
|
|
570
559
|
* @callname: EthereumRuntimeRPCApi_current_block
|
|
571
560
|
**/
|
|
572
|
-
currentBlock: GenericRuntimeApiMethod<
|
|
561
|
+
currentBlock: GenericRuntimeApiMethod<() => Promise<EthereumBlock | undefined>>;
|
|
573
562
|
|
|
574
563
|
/**
|
|
575
564
|
* Return the current receipt.
|
|
576
565
|
*
|
|
577
566
|
* @callname: EthereumRuntimeRPCApi_current_receipts
|
|
578
567
|
**/
|
|
579
|
-
currentReceipts: GenericRuntimeApiMethod<
|
|
568
|
+
currentReceipts: GenericRuntimeApiMethod<() => Promise<Array<EthereumReceiptReceiptV3> | undefined>>;
|
|
580
569
|
|
|
581
570
|
/**
|
|
582
571
|
* Return the current transaction status.
|
|
583
572
|
*
|
|
584
573
|
* @callname: EthereumRuntimeRPCApi_current_transaction_statuses
|
|
585
574
|
**/
|
|
586
|
-
currentTransactionStatuses: GenericRuntimeApiMethod<
|
|
575
|
+
currentTransactionStatuses: GenericRuntimeApiMethod<() => Promise<Array<FpRpcTransactionStatus> | undefined>>;
|
|
587
576
|
|
|
588
577
|
/**
|
|
589
578
|
*
|
|
590
579
|
* @callname: EthereumRuntimeRPCApi_current_all
|
|
591
580
|
**/
|
|
592
581
|
currentAll: GenericRuntimeApiMethod<
|
|
593
|
-
Rv,
|
|
594
582
|
() => Promise<
|
|
595
583
|
[
|
|
596
584
|
EthereumBlock | undefined,
|
|
@@ -607,7 +595,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
607
595
|
* @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
|
|
608
596
|
**/
|
|
609
597
|
extrinsicFilter: GenericRuntimeApiMethod<
|
|
610
|
-
Rv,
|
|
611
598
|
(xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<Array<EthereumTransactionTransactionV2>>
|
|
612
599
|
>;
|
|
613
600
|
|
|
@@ -616,7 +603,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
616
603
|
*
|
|
617
604
|
* @callname: EthereumRuntimeRPCApi_elasticity
|
|
618
605
|
**/
|
|
619
|
-
elasticity: GenericRuntimeApiMethod<
|
|
606
|
+
elasticity: GenericRuntimeApiMethod<() => Promise<Permill | undefined>>;
|
|
620
607
|
|
|
621
608
|
/**
|
|
622
609
|
* Used to determine if gas limit multiplier for non-transactional calls (eth_call/estimateGas)
|
|
@@ -624,7 +611,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
624
611
|
*
|
|
625
612
|
* @callname: EthereumRuntimeRPCApi_gas_limit_multiplier_support
|
|
626
613
|
**/
|
|
627
|
-
gasLimitMultiplierSupport: GenericRuntimeApiMethod<
|
|
614
|
+
gasLimitMultiplierSupport: GenericRuntimeApiMethod<() => Promise<[]>>;
|
|
628
615
|
|
|
629
616
|
/**
|
|
630
617
|
* Return the pending block.
|
|
@@ -633,7 +620,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
633
620
|
* @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
|
|
634
621
|
**/
|
|
635
622
|
pendingBlock: GenericRuntimeApiMethod<
|
|
636
|
-
Rv,
|
|
637
623
|
(
|
|
638
624
|
xts: Array<FpSelfContainedUncheckedExtrinsic>,
|
|
639
625
|
) => Promise<[EthereumBlock | undefined, Array<FpRpcTransactionStatus> | undefined]>
|
|
@@ -649,12 +635,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
649
635
|
* @callname: EthereumRuntimeRPCApi_initialize_pending_block
|
|
650
636
|
* @param {Header} header
|
|
651
637
|
**/
|
|
652
|
-
initializePendingBlock: GenericRuntimeApiMethod<
|
|
638
|
+
initializePendingBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
653
639
|
|
|
654
640
|
/**
|
|
655
641
|
* Generic runtime api call
|
|
656
642
|
**/
|
|
657
|
-
[method: string]: GenericRuntimeApiMethod
|
|
643
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
658
644
|
};
|
|
659
645
|
/**
|
|
660
646
|
* @runtimeapi: ConvertTransactionRuntimeApi - 0xe65b00e46cedd0aa
|
|
@@ -666,14 +652,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
666
652
|
* @param {EthereumTransactionTransactionV2} transaction
|
|
667
653
|
**/
|
|
668
654
|
convertTransaction: GenericRuntimeApiMethod<
|
|
669
|
-
Rv,
|
|
670
655
|
(transaction: EthereumTransactionTransactionV2) => Promise<FpSelfContainedUncheckedExtrinsic>
|
|
671
656
|
>;
|
|
672
657
|
|
|
673
658
|
/**
|
|
674
659
|
* Generic runtime api call
|
|
675
660
|
**/
|
|
676
|
-
[method: string]: GenericRuntimeApiMethod
|
|
661
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
677
662
|
};
|
|
678
663
|
/**
|
|
679
664
|
* @runtimeapi: ContractsApi - 0x68b66ba122c93fa7
|
|
@@ -693,7 +678,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
693
678
|
* @param {BytesLike} input_data
|
|
694
679
|
**/
|
|
695
680
|
call: GenericRuntimeApiMethod<
|
|
696
|
-
Rv,
|
|
697
681
|
(
|
|
698
682
|
origin: AccountId32Like,
|
|
699
683
|
dest: AccountId32Like,
|
|
@@ -719,7 +703,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
719
703
|
* @param {BytesLike} salt
|
|
720
704
|
**/
|
|
721
705
|
instantiate: GenericRuntimeApiMethod<
|
|
722
|
-
Rv,
|
|
723
706
|
(
|
|
724
707
|
origin: AccountId32Like,
|
|
725
708
|
value: bigint,
|
|
@@ -743,7 +726,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
743
726
|
* @param {PalletContractsWasmDeterminism} determinism
|
|
744
727
|
**/
|
|
745
728
|
uploadCode: GenericRuntimeApiMethod<
|
|
746
|
-
Rv,
|
|
747
729
|
(
|
|
748
730
|
origin: AccountId32Like,
|
|
749
731
|
code: BytesLike,
|
|
@@ -764,7 +746,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
764
746
|
* @param {BytesLike} key
|
|
765
747
|
**/
|
|
766
748
|
getStorage: GenericRuntimeApiMethod<
|
|
767
|
-
Rv,
|
|
768
749
|
(
|
|
769
750
|
address: AccountId32Like,
|
|
770
751
|
key: BytesLike,
|
|
@@ -774,7 +755,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
774
755
|
/**
|
|
775
756
|
* Generic runtime api call
|
|
776
757
|
**/
|
|
777
|
-
[method: string]: GenericRuntimeApiMethod
|
|
758
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
778
759
|
};
|
|
779
760
|
/**
|
|
780
761
|
* @runtimeapi: DappStakingApi - 0xe8accb82fb152951
|
|
@@ -785,28 +766,28 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
785
766
|
*
|
|
786
767
|
* @callname: DappStakingApi_periods_per_cycle
|
|
787
768
|
**/
|
|
788
|
-
periodsPerCycle: GenericRuntimeApiMethod<
|
|
769
|
+
periodsPerCycle: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
789
770
|
|
|
790
771
|
/**
|
|
791
772
|
* For how many standard era lengths does the voting subperiod last.
|
|
792
773
|
*
|
|
793
774
|
* @callname: DappStakingApi_eras_per_voting_subperiod
|
|
794
775
|
**/
|
|
795
|
-
erasPerVotingSubperiod: GenericRuntimeApiMethod<
|
|
776
|
+
erasPerVotingSubperiod: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
796
777
|
|
|
797
778
|
/**
|
|
798
779
|
* How many standard eras are there in the build&earn subperiod.
|
|
799
780
|
*
|
|
800
781
|
* @callname: DappStakingApi_eras_per_build_and_earn_subperiod
|
|
801
782
|
**/
|
|
802
|
-
erasPerBuildAndEarnSubperiod: GenericRuntimeApiMethod<
|
|
783
|
+
erasPerBuildAndEarnSubperiod: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
803
784
|
|
|
804
785
|
/**
|
|
805
786
|
* How many blocks are there per standard era.
|
|
806
787
|
*
|
|
807
788
|
* @callname: DappStakingApi_blocks_per_era
|
|
808
789
|
**/
|
|
809
|
-
blocksPerEra: GenericRuntimeApiMethod<
|
|
790
|
+
blocksPerEra: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
810
791
|
|
|
811
792
|
/**
|
|
812
793
|
* Get dApp ranked tier assignment for the given dApp.
|
|
@@ -814,14 +795,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
814
795
|
* @callname: DappStakingApi_get_dapp_tier_assignment
|
|
815
796
|
**/
|
|
816
797
|
getDappTierAssignment: GenericRuntimeApiMethod<
|
|
817
|
-
Rv,
|
|
818
798
|
() => Promise<Array<[number, AstarPrimitivesDappStakingRankedTier]>>
|
|
819
799
|
>;
|
|
820
800
|
|
|
821
801
|
/**
|
|
822
802
|
* Generic runtime api call
|
|
823
803
|
**/
|
|
824
|
-
[method: string]: GenericRuntimeApiMethod
|
|
804
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
825
805
|
};
|
|
826
806
|
/**
|
|
827
807
|
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
@@ -838,7 +818,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
838
818
|
* @param {number} xcm_version
|
|
839
819
|
**/
|
|
840
820
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
841
|
-
Rv,
|
|
842
821
|
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
843
822
|
>;
|
|
844
823
|
|
|
@@ -853,7 +832,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
853
832
|
* @param {XcmVersionedXcm} message
|
|
854
833
|
**/
|
|
855
834
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
856
|
-
Rv,
|
|
857
835
|
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
858
836
|
>;
|
|
859
837
|
|
|
@@ -870,7 +848,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
870
848
|
* @param {XcmVersionedAssetId} asset
|
|
871
849
|
**/
|
|
872
850
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
873
|
-
Rv,
|
|
874
851
|
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
875
852
|
>;
|
|
876
853
|
|
|
@@ -889,7 +866,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
889
866
|
* @param {XcmVersionedXcm} message
|
|
890
867
|
**/
|
|
891
868
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
892
|
-
Rv,
|
|
893
869
|
(
|
|
894
870
|
destination: XcmVersionedLocation,
|
|
895
871
|
message: XcmVersionedXcm,
|
|
@@ -899,7 +875,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
899
875
|
/**
|
|
900
876
|
* Generic runtime api call
|
|
901
877
|
**/
|
|
902
|
-
[method: string]: GenericRuntimeApiMethod
|
|
878
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
903
879
|
};
|
|
904
880
|
/**
|
|
905
881
|
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
@@ -914,7 +890,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
914
890
|
* @param {number} result_xcms_version
|
|
915
891
|
**/
|
|
916
892
|
dryRunCall: GenericRuntimeApiMethod<
|
|
917
|
-
Rv,
|
|
918
893
|
(
|
|
919
894
|
origin: AstarRuntimeOriginCaller,
|
|
920
895
|
call: AstarRuntimeRuntimeCallLike,
|
|
@@ -930,7 +905,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
930
905
|
* @param {XcmVersionedXcm} xcm
|
|
931
906
|
**/
|
|
932
907
|
dryRunXcm: GenericRuntimeApiMethod<
|
|
933
|
-
Rv,
|
|
934
908
|
(
|
|
935
909
|
originLocation: XcmVersionedLocation,
|
|
936
910
|
xcm: XcmVersionedXcm,
|
|
@@ -940,7 +914,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
940
914
|
/**
|
|
941
915
|
* Generic runtime api call
|
|
942
916
|
**/
|
|
943
|
-
[method: string]: GenericRuntimeApiMethod
|
|
917
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
944
918
|
};
|
|
945
919
|
/**
|
|
946
920
|
* @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
|
|
@@ -958,7 +932,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
958
932
|
* @param {XcmVersionedLocation} location
|
|
959
933
|
**/
|
|
960
934
|
isTrustedReserve: GenericRuntimeApiMethod<
|
|
961
|
-
Rv,
|
|
962
935
|
(
|
|
963
936
|
asset: XcmVersionedAsset,
|
|
964
937
|
location: XcmVersionedLocation,
|
|
@@ -977,7 +950,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
977
950
|
* @param {XcmVersionedLocation} location
|
|
978
951
|
**/
|
|
979
952
|
isTrustedTeleporter: GenericRuntimeApiMethod<
|
|
980
|
-
Rv,
|
|
981
953
|
(
|
|
982
954
|
asset: XcmVersionedAsset,
|
|
983
955
|
location: XcmVersionedLocation,
|
|
@@ -987,7 +959,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
987
959
|
/**
|
|
988
960
|
* Generic runtime api call
|
|
989
961
|
**/
|
|
990
|
-
[method: string]: GenericRuntimeApiMethod
|
|
962
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
991
963
|
};
|
|
992
964
|
/**
|
|
993
965
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -1008,7 +980,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1008
980
|
* @callname: GenesisBuilder_build_state
|
|
1009
981
|
* @param {BytesLike} json
|
|
1010
982
|
**/
|
|
1011
|
-
buildState: GenericRuntimeApiMethod<
|
|
983
|
+
buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
1012
984
|
|
|
1013
985
|
/**
|
|
1014
986
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
@@ -1029,7 +1001,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1029
1001
|
* @callname: GenesisBuilder_get_preset
|
|
1030
1002
|
* @param {string | undefined} id
|
|
1031
1003
|
**/
|
|
1032
|
-
getPreset: GenericRuntimeApiMethod<
|
|
1004
|
+
getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
1033
1005
|
|
|
1034
1006
|
/**
|
|
1035
1007
|
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
@@ -1039,11 +1011,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1039
1011
|
*
|
|
1040
1012
|
* @callname: GenesisBuilder_preset_names
|
|
1041
1013
|
**/
|
|
1042
|
-
presetNames: GenericRuntimeApiMethod<
|
|
1014
|
+
presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
|
|
1043
1015
|
|
|
1044
1016
|
/**
|
|
1045
1017
|
* Generic runtime api call
|
|
1046
1018
|
**/
|
|
1047
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1019
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1048
1020
|
};
|
|
1049
1021
|
}
|