@dedot/chaintypes 0.194.0 → 0.195.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aleph/consts.d.ts +2 -2
- package/aleph/errors.d.ts +228 -228
- package/aleph/events.d.ts +122 -226
- package/aleph/index.d.ts +13 -17
- package/aleph/json-rpc.d.ts +3 -3
- package/aleph/query.d.ts +171 -207
- package/aleph/runtime.d.ts +47 -63
- package/aleph/tx.d.ts +377 -550
- package/aleph/view-functions.d.ts +2 -2
- package/astar/consts.d.ts +2 -2
- package/astar/errors.d.ts +431 -431
- package/astar/events.d.ts +232 -401
- package/astar/index.d.ts +13 -17
- package/astar/json-rpc.d.ts +3 -3
- package/astar/query.d.ts +243 -289
- package/astar/runtime.d.ts +59 -87
- package/astar/tx.d.ts +671 -980
- package/astar/view-functions.d.ts +2 -2
- package/basilisk/consts.d.ts +2 -2
- package/basilisk/errors.d.ts +489 -489
- package/basilisk/events.d.ts +187 -408
- package/basilisk/index.d.ts +13 -17
- package/basilisk/json-rpc.d.ts +3 -3
- package/basilisk/query.d.ts +213 -272
- package/basilisk/runtime.d.ts +27 -28
- package/basilisk/tx.d.ts +579 -842
- package/basilisk/view-functions.d.ts +2 -2
- package/hydration/consts.d.ts +47 -14
- package/hydration/errors.d.ts +827 -737
- package/hydration/events.d.ts +639 -527
- package/hydration/index.d.ts +14 -18
- package/hydration/json-rpc.d.ts +3 -3
- package/hydration/query.d.ts +530 -396
- package/hydration/runtime.d.ts +181 -89
- package/hydration/tx.d.ts +1130 -1167
- package/hydration/types.d.ts +889 -42
- package/hydration/view-functions.d.ts +2 -2
- package/kusama/consts.d.ts +2 -2
- package/kusama/errors.d.ts +571 -571
- package/kusama/events.d.ts +216 -477
- package/kusama/index.d.ts +13 -17
- package/kusama/json-rpc.d.ts +3 -3
- package/kusama/query.d.ts +360 -502
- package/kusama/runtime.d.ts +82 -131
- package/kusama/tx.d.ts +851 -1246
- package/kusama/view-functions.d.ts +7 -12
- package/kusama-asset-hub/consts.d.ts +2 -2
- package/kusama-asset-hub/errors.d.ts +653 -653
- package/kusama-asset-hub/events.d.ts +286 -629
- package/kusama-asset-hub/index.d.ts +14 -17
- package/kusama-asset-hub/json-rpc.d.ts +3 -3
- package/kusama-asset-hub/query.d.ts +316 -448
- package/kusama-asset-hub/runtime.d.ts +74 -111
- package/kusama-asset-hub/tx.d.ts +1059 -1558
- package/kusama-asset-hub/view-functions.d.ts +7 -9
- package/kusama-people/consts.d.ts +2 -2
- package/kusama-people/errors.d.ts +160 -160
- package/kusama-people/events.d.ts +89 -176
- package/kusama-people/index.d.ts +13 -17
- package/kusama-people/json-rpc.d.ts +3 -3
- package/kusama-people/query.d.ts +114 -145
- package/kusama-people/runtime.d.ts +45 -65
- package/kusama-people/tx.d.ts +246 -356
- package/kusama-people/view-functions.d.ts +3 -5
- package/moonbeam/consts.d.ts +2 -2
- package/moonbeam/errors.d.ts +478 -478
- package/moonbeam/events.d.ts +182 -426
- package/moonbeam/index.d.ts +13 -17
- package/moonbeam/json-rpc.d.ts +11 -3
- package/moonbeam/query.d.ts +234 -294
- package/moonbeam/runtime.d.ts +61 -89
- package/moonbeam/tx.d.ts +618 -901
- package/moonbeam/view-functions.d.ts +2 -2
- package/package.json +6 -3
- package/paseo/consts.d.ts +2 -2
- package/paseo/errors.d.ts +513 -513
- package/paseo/events.d.ts +197 -430
- package/paseo/index.d.ts +14 -18
- package/paseo/json-rpc.d.ts +3 -3
- package/paseo/query.d.ts +329 -450
- package/paseo/runtime.d.ts +107 -131
- package/paseo/tx.d.ts +787 -1151
- package/paseo/types.d.ts +7 -0
- package/paseo/view-functions.d.ts +7 -12
- package/paseo-asset-hub/consts.d.ts +2 -2
- package/paseo-asset-hub/errors.d.ts +605 -605
- package/paseo-asset-hub/events.d.ts +268 -600
- package/paseo-asset-hub/index.d.ts +15 -18
- package/paseo-asset-hub/json-rpc.d.ts +3 -3
- package/paseo-asset-hub/query.d.ts +293 -413
- package/paseo-asset-hub/runtime.d.ts +96 -104
- package/paseo-asset-hub/tx.d.ts +997 -1466
- package/paseo-asset-hub/types.d.ts +7 -0
- package/paseo-asset-hub/view-functions.d.ts +7 -9
- package/paseo-hydration/consts.d.ts +13 -3
- package/paseo-hydration/errors.d.ts +756 -745
- package/paseo-hydration/events.d.ts +277 -554
- package/paseo-hydration/index.d.ts +14 -18
- package/paseo-hydration/json-rpc.d.ts +3 -3
- package/paseo-hydration/query.d.ts +321 -411
- package/paseo-hydration/runtime.d.ts +95 -106
- package/paseo-hydration/tx.d.ts +923 -1226
- package/paseo-hydration/types.d.ts +91 -50
- package/paseo-hydration/view-functions.d.ts +2 -2
- package/paseo-people/consts.d.ts +2 -2
- package/paseo-people/errors.d.ts +162 -162
- package/paseo-people/events.d.ts +91 -181
- package/paseo-people/index.d.ts +14 -18
- package/paseo-people/json-rpc.d.ts +3 -3
- package/paseo-people/query.d.ts +116 -143
- package/paseo-people/runtime.d.ts +70 -65
- package/paseo-people/tx.d.ts +257 -372
- package/paseo-people/types.d.ts +7 -0
- package/paseo-people/view-functions.d.ts +3 -5
- package/polkadot/consts.d.ts +2 -2
- package/polkadot/errors.d.ts +501 -501
- package/polkadot/events.d.ts +195 -426
- package/polkadot/index.d.ts +13 -17
- package/polkadot/json-rpc.d.ts +3 -3
- package/polkadot/query.d.ts +329 -450
- package/polkadot/runtime.d.ts +83 -133
- package/polkadot/tx.d.ts +765 -1119
- package/polkadot/view-functions.d.ts +7 -12
- package/polkadot-asset-hub/consts.d.ts +2 -2
- package/polkadot-asset-hub/errors.d.ts +554 -554
- package/polkadot-asset-hub/events.d.ts +261 -585
- package/polkadot-asset-hub/index.d.ts +14 -17
- package/polkadot-asset-hub/json-rpc.d.ts +3 -3
- package/polkadot-asset-hub/query.d.ts +279 -396
- package/polkadot-asset-hub/runtime.d.ts +65 -93
- package/polkadot-asset-hub/tx.d.ts +952 -1400
- package/polkadot-asset-hub/view-functions.d.ts +7 -9
- package/polkadot-people/consts.d.ts +2 -2
- package/polkadot-people/errors.d.ts +160 -160
- package/polkadot-people/events.d.ts +89 -176
- package/polkadot-people/index.d.ts +13 -17
- package/polkadot-people/json-rpc.d.ts +3 -3
- package/polkadot-people/query.d.ts +114 -145
- package/polkadot-people/runtime.d.ts +46 -67
- package/polkadot-people/tx.d.ts +246 -356
- package/polkadot-people/view-functions.d.ts +3 -5
- package/substrate/consts.d.ts +2 -2
- package/substrate/errors.d.ts +909 -909
- package/substrate/events.d.ts +389 -794
- package/substrate/index.d.ts +14 -17
- package/substrate/json-rpc.d.ts +3 -3
- package/substrate/query.d.ts +458 -572
- package/substrate/runtime.d.ts +82 -126
- package/substrate/tx.d.ts +1317 -1936
- package/substrate/view-functions.d.ts +2 -2
- package/vara/consts.d.ts +9 -37
- package/vara/errors.d.ts +402 -382
- package/vara/events.d.ts +172 -310
- package/vara/index.d.ts +14 -18
- package/vara/json-rpc.d.ts +7 -3
- package/vara/query.d.ts +299 -331
- package/vara/runtime.d.ts +61 -79
- package/vara/tx.d.ts +573 -754
- package/vara/types.d.ts +71 -26
- package/vara/view-functions.d.ts +2 -2
- package/westend/consts.d.ts +2 -2
- package/westend/errors.d.ts +532 -532
- package/westend/events.d.ts +205 -462
- package/westend/index.d.ts +13 -17
- package/westend/json-rpc.d.ts +3 -3
- package/westend/query.d.ts +312 -434
- package/westend/runtime.d.ts +83 -135
- package/westend/tx.d.ts +807 -1179
- package/westend/view-functions.d.ts +7 -12
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/errors.d.ts +605 -605
- package/westend-asset-hub/events.d.ts +265 -614
- package/westend-asset-hub/index.d.ts +14 -17
- package/westend-asset-hub/json-rpc.d.ts +3 -3
- package/westend-asset-hub/query.d.ts +293 -418
- package/westend-asset-hub/runtime.d.ts +83 -123
- package/westend-asset-hub/tx.d.ts +918 -1348
- package/westend-asset-hub/view-functions.d.ts +8 -13
- package/westend-people/consts.d.ts +2 -2
- package/westend-people/errors.d.ts +160 -160
- package/westend-people/events.d.ts +93 -186
- package/westend-people/index.d.ts +13 -17
- package/westend-people/json-rpc.d.ts +3 -3
- package/westend-people/query.d.ts +114 -145
- package/westend-people/runtime.d.ts +46 -67
- package/westend-people/tx.d.ts +251 -363
- package/westend-people/view-functions.d.ts +3 -5
|
@@ -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,
|
|
@@ -64,7 +64,7 @@ import type {
|
|
|
64
64
|
CumulusPalletParachainSystemRelayChainState,
|
|
65
65
|
} from './types.js';
|
|
66
66
|
|
|
67
|
-
export interface RuntimeApis
|
|
67
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
68
68
|
/**
|
|
69
69
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
70
70
|
**/
|
|
@@ -74,7 +74,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
74
74
|
*
|
|
75
75
|
* @callname: Core_version
|
|
76
76
|
**/
|
|
77
|
-
version: GenericRuntimeApiMethod<
|
|
77
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Execute the given block.
|
|
@@ -82,7 +82,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
82
82
|
* @callname: Core_execute_block
|
|
83
83
|
* @param {SpRuntimeBlock} block
|
|
84
84
|
**/
|
|
85
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
85
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -90,12 +90,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
90
90
|
* @callname: Core_initialize_block
|
|
91
91
|
* @param {Header} header
|
|
92
92
|
**/
|
|
93
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
93
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* Generic runtime api call
|
|
97
97
|
**/
|
|
98
|
-
[method: string]: GenericRuntimeApiMethod
|
|
98
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
99
99
|
};
|
|
100
100
|
/**
|
|
101
101
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -106,7 +106,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
106
106
|
*
|
|
107
107
|
* @callname: Metadata_metadata
|
|
108
108
|
**/
|
|
109
|
-
metadata: GenericRuntimeApiMethod<
|
|
109
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* Returns the metadata at a given version.
|
|
@@ -117,7 +117,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
117
117
|
* @callname: Metadata_metadata_at_version
|
|
118
118
|
* @param {number} version
|
|
119
119
|
**/
|
|
120
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
120
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* Returns the supported metadata versions.
|
|
@@ -126,12 +126,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
126
126
|
*
|
|
127
127
|
* @callname: Metadata_metadata_versions
|
|
128
128
|
**/
|
|
129
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
129
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* Generic runtime api call
|
|
133
133
|
**/
|
|
134
|
-
[method: string]: GenericRuntimeApiMethod
|
|
134
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
135
135
|
};
|
|
136
136
|
/**
|
|
137
137
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -147,7 +147,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
147
147
|
* @param {FpSelfContainedUncheckedExtrinsic} extrinsic
|
|
148
148
|
**/
|
|
149
149
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
150
|
-
Rv,
|
|
151
150
|
(
|
|
152
151
|
extrinsic: FpSelfContainedUncheckedExtrinsic,
|
|
153
152
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -158,7 +157,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
158
157
|
*
|
|
159
158
|
* @callname: BlockBuilder_finalize_block
|
|
160
159
|
**/
|
|
161
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
160
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
162
161
|
|
|
163
162
|
/**
|
|
164
163
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -167,7 +166,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
167
166
|
* @param {SpInherentsInherentData} inherent
|
|
168
167
|
**/
|
|
169
168
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
170
|
-
Rv,
|
|
171
169
|
(inherent: SpInherentsInherentData) => Promise<Array<FpSelfContainedUncheckedExtrinsic>>
|
|
172
170
|
>;
|
|
173
171
|
|
|
@@ -179,14 +177,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
179
177
|
* @param {SpInherentsInherentData} data
|
|
180
178
|
**/
|
|
181
179
|
checkInherents: GenericRuntimeApiMethod<
|
|
182
|
-
Rv,
|
|
183
180
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
184
181
|
>;
|
|
185
182
|
|
|
186
183
|
/**
|
|
187
184
|
* Generic runtime api call
|
|
188
185
|
**/
|
|
189
|
-
[method: string]: GenericRuntimeApiMethod
|
|
186
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
190
187
|
};
|
|
191
188
|
/**
|
|
192
189
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -209,7 +206,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
209
206
|
* @param {H256} block_hash
|
|
210
207
|
**/
|
|
211
208
|
validateTransaction: GenericRuntimeApiMethod<
|
|
212
|
-
Rv,
|
|
213
209
|
(
|
|
214
210
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
215
211
|
tx: FpSelfContainedUncheckedExtrinsic,
|
|
@@ -222,7 +218,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
222
218
|
/**
|
|
223
219
|
* Generic runtime api call
|
|
224
220
|
**/
|
|
225
|
-
[method: string]: GenericRuntimeApiMethod
|
|
221
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
226
222
|
};
|
|
227
223
|
/**
|
|
228
224
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -234,12 +230,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
234
230
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
235
231
|
* @param {Header} header
|
|
236
232
|
**/
|
|
237
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
233
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
238
234
|
|
|
239
235
|
/**
|
|
240
236
|
* Generic runtime api call
|
|
241
237
|
**/
|
|
242
|
-
[method: string]: GenericRuntimeApiMethod
|
|
238
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
243
239
|
};
|
|
244
240
|
/**
|
|
245
241
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -257,7 +253,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
257
253
|
* @callname: SessionKeys_generate_session_keys
|
|
258
254
|
* @param {BytesLike | undefined} seed
|
|
259
255
|
**/
|
|
260
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
256
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
261
257
|
|
|
262
258
|
/**
|
|
263
259
|
* Decode the given public session keys.
|
|
@@ -268,14 +264,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
268
264
|
* @param {BytesLike} encoded
|
|
269
265
|
**/
|
|
270
266
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
271
|
-
Rv,
|
|
272
267
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
273
268
|
>;
|
|
274
269
|
|
|
275
270
|
/**
|
|
276
271
|
* Generic runtime api call
|
|
277
272
|
**/
|
|
278
|
-
[method: string]: GenericRuntimeApiMethod
|
|
273
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
279
274
|
};
|
|
280
275
|
/**
|
|
281
276
|
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
@@ -288,19 +283,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
288
283
|
*
|
|
289
284
|
* @callname: AuraApi_slot_duration
|
|
290
285
|
**/
|
|
291
|
-
slotDuration: GenericRuntimeApiMethod<
|
|
286
|
+
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
292
287
|
|
|
293
288
|
/**
|
|
294
289
|
* Return the current set of authorities.
|
|
295
290
|
*
|
|
296
291
|
* @callname: AuraApi_authorities
|
|
297
292
|
**/
|
|
298
|
-
authorities: GenericRuntimeApiMethod<
|
|
293
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
299
294
|
|
|
300
295
|
/**
|
|
301
296
|
* Generic runtime api call
|
|
302
297
|
**/
|
|
303
|
-
[method: string]: GenericRuntimeApiMethod
|
|
298
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
304
299
|
};
|
|
305
300
|
/**
|
|
306
301
|
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
@@ -315,12 +310,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
315
310
|
* @callname: CollectCollationInfo_collect_collation_info
|
|
316
311
|
* @param {Header} header
|
|
317
312
|
**/
|
|
318
|
-
collectCollationInfo: GenericRuntimeApiMethod<
|
|
313
|
+
collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
319
314
|
|
|
320
315
|
/**
|
|
321
316
|
* Generic runtime api call
|
|
322
317
|
**/
|
|
323
|
-
[method: string]: GenericRuntimeApiMethod
|
|
318
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
324
319
|
};
|
|
325
320
|
/**
|
|
326
321
|
* @runtimeapi: CurrenciesApi - 0x9af86751b70c112d
|
|
@@ -333,7 +328,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
333
328
|
* @param {AccountId32Like} who
|
|
334
329
|
**/
|
|
335
330
|
account: GenericRuntimeApiMethod<
|
|
336
|
-
Rv,
|
|
337
331
|
(assetId: number, who: AccountId32Like) => Promise<PalletCurrenciesRpcRuntimeApiAccountData>
|
|
338
332
|
>;
|
|
339
333
|
|
|
@@ -343,7 +337,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
343
337
|
* @param {AccountId32Like} who
|
|
344
338
|
**/
|
|
345
339
|
accounts: GenericRuntimeApiMethod<
|
|
346
|
-
Rv,
|
|
347
340
|
(who: AccountId32Like) => Promise<Array<[number, PalletCurrenciesRpcRuntimeApiAccountData]>>
|
|
348
341
|
>;
|
|
349
342
|
|
|
@@ -353,19 +346,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
353
346
|
* @param {number} asset_id
|
|
354
347
|
* @param {AccountId32Like} who
|
|
355
348
|
**/
|
|
356
|
-
freeBalance: GenericRuntimeApiMethod<
|
|
349
|
+
freeBalance: GenericRuntimeApiMethod<(assetId: number, who: AccountId32Like) => Promise<bigint>>;
|
|
357
350
|
|
|
358
351
|
/**
|
|
359
352
|
*
|
|
360
353
|
* @callname: CurrenciesApi_minimum_balance
|
|
361
354
|
* @param {number} asset_id
|
|
362
355
|
**/
|
|
363
|
-
minimumBalance: GenericRuntimeApiMethod<
|
|
356
|
+
minimumBalance: GenericRuntimeApiMethod<(assetId: number) => Promise<bigint>>;
|
|
364
357
|
|
|
365
358
|
/**
|
|
366
359
|
* Generic runtime api call
|
|
367
360
|
**/
|
|
368
|
-
[method: string]: GenericRuntimeApiMethod
|
|
361
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
369
362
|
};
|
|
370
363
|
/**
|
|
371
364
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -377,12 +370,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
377
370
|
* @callname: AccountNonceApi_account_nonce
|
|
378
371
|
* @param {AccountId32Like} account
|
|
379
372
|
**/
|
|
380
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
373
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
381
374
|
|
|
382
375
|
/**
|
|
383
376
|
* Generic runtime api call
|
|
384
377
|
**/
|
|
385
|
-
[method: string]: GenericRuntimeApiMethod
|
|
378
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
386
379
|
};
|
|
387
380
|
/**
|
|
388
381
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -395,7 +388,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
395
388
|
* @param {number} len
|
|
396
389
|
**/
|
|
397
390
|
queryInfo: GenericRuntimeApiMethod<
|
|
398
|
-
Rv,
|
|
399
391
|
(uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
400
392
|
>;
|
|
401
393
|
|
|
@@ -406,7 +398,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
406
398
|
* @param {number} len
|
|
407
399
|
**/
|
|
408
400
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
409
|
-
Rv,
|
|
410
401
|
(uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
411
402
|
>;
|
|
412
403
|
|
|
@@ -415,19 +406,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
415
406
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
416
407
|
* @param {SpWeightsWeightV2Weight} weight
|
|
417
408
|
**/
|
|
418
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
409
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
419
410
|
|
|
420
411
|
/**
|
|
421
412
|
*
|
|
422
413
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
423
414
|
* @param {number} length
|
|
424
415
|
**/
|
|
425
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
416
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
426
417
|
|
|
427
418
|
/**
|
|
428
419
|
* Generic runtime api call
|
|
429
420
|
**/
|
|
430
|
-
[method: string]: GenericRuntimeApiMethod
|
|
421
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
431
422
|
};
|
|
432
423
|
/**
|
|
433
424
|
* @runtimeapi: EthereumRuntimeRPCApi - 0x582211f65bb14b89
|
|
@@ -438,7 +429,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
438
429
|
*
|
|
439
430
|
* @callname: EthereumRuntimeRPCApi_chain_id
|
|
440
431
|
**/
|
|
441
|
-
chainId: GenericRuntimeApiMethod<
|
|
432
|
+
chainId: GenericRuntimeApiMethod<() => Promise<bigint>>;
|
|
442
433
|
|
|
443
434
|
/**
|
|
444
435
|
* Returns pallet_evm::Accounts by address.
|
|
@@ -446,14 +437,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
446
437
|
* @callname: EthereumRuntimeRPCApi_account_basic
|
|
447
438
|
* @param {H160} address
|
|
448
439
|
**/
|
|
449
|
-
accountBasic: GenericRuntimeApiMethod<
|
|
440
|
+
accountBasic: GenericRuntimeApiMethod<(address: H160) => Promise<EvmBackendBasic>>;
|
|
450
441
|
|
|
451
442
|
/**
|
|
452
443
|
* Returns FixedGasPrice::min_gas_price
|
|
453
444
|
*
|
|
454
445
|
* @callname: EthereumRuntimeRPCApi_gas_price
|
|
455
446
|
**/
|
|
456
|
-
gasPrice: GenericRuntimeApiMethod<
|
|
447
|
+
gasPrice: GenericRuntimeApiMethod<() => Promise<U256>>;
|
|
457
448
|
|
|
458
449
|
/**
|
|
459
450
|
* For a given account address, returns pallet_evm::AccountCodes.
|
|
@@ -461,14 +452,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
461
452
|
* @callname: EthereumRuntimeRPCApi_account_code_at
|
|
462
453
|
* @param {H160} address
|
|
463
454
|
**/
|
|
464
|
-
accountCodeAt: GenericRuntimeApiMethod<
|
|
455
|
+
accountCodeAt: GenericRuntimeApiMethod<(address: H160) => Promise<Bytes>>;
|
|
465
456
|
|
|
466
457
|
/**
|
|
467
458
|
* Returns the converted FindAuthor::find_author authority id.
|
|
468
459
|
*
|
|
469
460
|
* @callname: EthereumRuntimeRPCApi_author
|
|
470
461
|
**/
|
|
471
|
-
author: GenericRuntimeApiMethod<
|
|
462
|
+
author: GenericRuntimeApiMethod<() => Promise<H160>>;
|
|
472
463
|
|
|
473
464
|
/**
|
|
474
465
|
* For a given account address and index, returns pallet_evm::AccountStorages.
|
|
@@ -477,7 +468,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
477
468
|
* @param {H160} address
|
|
478
469
|
* @param {U256} index
|
|
479
470
|
**/
|
|
480
|
-
storageAt: GenericRuntimeApiMethod<
|
|
471
|
+
storageAt: GenericRuntimeApiMethod<(address: H160, index: U256) => Promise<H256>>;
|
|
481
472
|
|
|
482
473
|
/**
|
|
483
474
|
*
|
|
@@ -494,7 +485,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
494
485
|
* @param {Array<[H160, Array<H256>]> | undefined} access_list
|
|
495
486
|
**/
|
|
496
487
|
call: GenericRuntimeApiMethod<
|
|
497
|
-
Rv,
|
|
498
488
|
(
|
|
499
489
|
from: H160,
|
|
500
490
|
to: H160,
|
|
@@ -523,7 +513,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
523
513
|
* @param {Array<[H160, Array<H256>]> | undefined} access_list
|
|
524
514
|
**/
|
|
525
515
|
create: GenericRuntimeApiMethod<
|
|
526
|
-
Rv,
|
|
527
516
|
(
|
|
528
517
|
from: H160,
|
|
529
518
|
data: BytesLike,
|
|
@@ -542,28 +531,27 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
542
531
|
*
|
|
543
532
|
* @callname: EthereumRuntimeRPCApi_current_block
|
|
544
533
|
**/
|
|
545
|
-
currentBlock: GenericRuntimeApiMethod<
|
|
534
|
+
currentBlock: GenericRuntimeApiMethod<() => Promise<EthereumBlock | undefined>>;
|
|
546
535
|
|
|
547
536
|
/**
|
|
548
537
|
* Return the current receipt.
|
|
549
538
|
*
|
|
550
539
|
* @callname: EthereumRuntimeRPCApi_current_receipts
|
|
551
540
|
**/
|
|
552
|
-
currentReceipts: GenericRuntimeApiMethod<
|
|
541
|
+
currentReceipts: GenericRuntimeApiMethod<() => Promise<Array<EthereumReceiptReceiptV3> | undefined>>;
|
|
553
542
|
|
|
554
543
|
/**
|
|
555
544
|
* Return the current transaction status.
|
|
556
545
|
*
|
|
557
546
|
* @callname: EthereumRuntimeRPCApi_current_transaction_statuses
|
|
558
547
|
**/
|
|
559
|
-
currentTransactionStatuses: GenericRuntimeApiMethod<
|
|
548
|
+
currentTransactionStatuses: GenericRuntimeApiMethod<() => Promise<Array<FpRpcTransactionStatus> | undefined>>;
|
|
560
549
|
|
|
561
550
|
/**
|
|
562
551
|
*
|
|
563
552
|
* @callname: EthereumRuntimeRPCApi_current_all
|
|
564
553
|
**/
|
|
565
554
|
currentAll: GenericRuntimeApiMethod<
|
|
566
|
-
Rv,
|
|
567
555
|
() => Promise<
|
|
568
556
|
[
|
|
569
557
|
EthereumBlock | undefined,
|
|
@@ -580,7 +568,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
580
568
|
* @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
|
|
581
569
|
**/
|
|
582
570
|
extrinsicFilter: GenericRuntimeApiMethod<
|
|
583
|
-
Rv,
|
|
584
571
|
(xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<Array<EthereumTransactionTransactionV2>>
|
|
585
572
|
>;
|
|
586
573
|
|
|
@@ -589,7 +576,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
589
576
|
*
|
|
590
577
|
* @callname: EthereumRuntimeRPCApi_elasticity
|
|
591
578
|
**/
|
|
592
|
-
elasticity: GenericRuntimeApiMethod<
|
|
579
|
+
elasticity: GenericRuntimeApiMethod<() => Promise<Permill | undefined>>;
|
|
593
580
|
|
|
594
581
|
/**
|
|
595
582
|
* Used to determine if gas limit multiplier for non-transactional calls (eth_call/estimateGas)
|
|
@@ -597,7 +584,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
597
584
|
*
|
|
598
585
|
* @callname: EthereumRuntimeRPCApi_gas_limit_multiplier_support
|
|
599
586
|
**/
|
|
600
|
-
gasLimitMultiplierSupport: GenericRuntimeApiMethod<
|
|
587
|
+
gasLimitMultiplierSupport: GenericRuntimeApiMethod<() => Promise<[]>>;
|
|
601
588
|
|
|
602
589
|
/**
|
|
603
590
|
* Return the pending block.
|
|
@@ -606,7 +593,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
606
593
|
* @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
|
|
607
594
|
**/
|
|
608
595
|
pendingBlock: GenericRuntimeApiMethod<
|
|
609
|
-
Rv,
|
|
610
596
|
(
|
|
611
597
|
xts: Array<FpSelfContainedUncheckedExtrinsic>,
|
|
612
598
|
) => Promise<[EthereumBlock | undefined, Array<FpRpcTransactionStatus> | undefined]>
|
|
@@ -622,12 +608,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
622
608
|
* @callname: EthereumRuntimeRPCApi_initialize_pending_block
|
|
623
609
|
* @param {Header} header
|
|
624
610
|
**/
|
|
625
|
-
initializePendingBlock: GenericRuntimeApiMethod<
|
|
611
|
+
initializePendingBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
626
612
|
|
|
627
613
|
/**
|
|
628
614
|
* Generic runtime api call
|
|
629
615
|
**/
|
|
630
|
-
[method: string]: GenericRuntimeApiMethod
|
|
616
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
631
617
|
};
|
|
632
618
|
/**
|
|
633
619
|
* @runtimeapi: ConvertTransactionRuntimeApi - 0xe65b00e46cedd0aa
|
|
@@ -639,14 +625,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
639
625
|
* @param {EthereumTransactionTransactionV2} transaction
|
|
640
626
|
**/
|
|
641
627
|
convertTransaction: GenericRuntimeApiMethod<
|
|
642
|
-
Rv,
|
|
643
628
|
(transaction: EthereumTransactionTransactionV2) => Promise<FpSelfContainedUncheckedExtrinsic>
|
|
644
629
|
>;
|
|
645
630
|
|
|
646
631
|
/**
|
|
647
632
|
* Generic runtime api call
|
|
648
633
|
**/
|
|
649
|
-
[method: string]: GenericRuntimeApiMethod
|
|
634
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
650
635
|
};
|
|
651
636
|
/**
|
|
652
637
|
* @runtimeapi: EvmAccountsApi - 0x0bb67a52fcd040ff
|
|
@@ -658,7 +643,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
658
643
|
* @callname: EvmAccountsApi_evm_address
|
|
659
644
|
* @param {AccountId32Like} account_id
|
|
660
645
|
**/
|
|
661
|
-
evmAddress: GenericRuntimeApiMethod<
|
|
646
|
+
evmAddress: GenericRuntimeApiMethod<(accountId: AccountId32Like) => Promise<H160>>;
|
|
662
647
|
|
|
663
648
|
/**
|
|
664
649
|
* Return the Substrate address bound to the EVM account. If not bound, returns `None`.
|
|
@@ -666,7 +651,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
666
651
|
* @callname: EvmAccountsApi_bound_account_id
|
|
667
652
|
* @param {H160} evm_address
|
|
668
653
|
**/
|
|
669
|
-
boundAccountId: GenericRuntimeApiMethod<
|
|
654
|
+
boundAccountId: GenericRuntimeApiMethod<(evmAddress: H160) => Promise<AccountId32 | undefined>>;
|
|
670
655
|
|
|
671
656
|
/**
|
|
672
657
|
* Get the Substrate address from the EVM address.
|
|
@@ -675,12 +660,30 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
675
660
|
* @callname: EvmAccountsApi_account_id
|
|
676
661
|
* @param {H160} evm_address
|
|
677
662
|
**/
|
|
678
|
-
accountId: GenericRuntimeApiMethod<
|
|
663
|
+
accountId: GenericRuntimeApiMethod<(evmAddress: H160) => Promise<AccountId32>>;
|
|
679
664
|
|
|
680
665
|
/**
|
|
681
666
|
* Generic runtime api call
|
|
682
667
|
**/
|
|
683
|
-
[method: string]: GenericRuntimeApiMethod
|
|
668
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
669
|
+
};
|
|
670
|
+
/**
|
|
671
|
+
* @runtimeapi: DusterApi - 0x34a3d488166b5a55
|
|
672
|
+
**/
|
|
673
|
+
dusterApi: {
|
|
674
|
+
/**
|
|
675
|
+
* Check if an account is whitelisted (protected from dusting).
|
|
676
|
+
* Returns true if the account is whitelisted, false otherwise.
|
|
677
|
+
*
|
|
678
|
+
* @callname: DusterApi_is_whitelisted
|
|
679
|
+
* @param {AccountId32Like} account
|
|
680
|
+
**/
|
|
681
|
+
isWhitelisted: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<boolean>>;
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Generic runtime api call
|
|
685
|
+
**/
|
|
686
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
684
687
|
};
|
|
685
688
|
/**
|
|
686
689
|
* @runtimeapi: Erc20MappingApi - 0x542334fe4fd7cada
|
|
@@ -692,7 +695,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
692
695
|
* @callname: Erc20MappingApi_asset_address
|
|
693
696
|
* @param {number} asset_id
|
|
694
697
|
**/
|
|
695
|
-
assetAddress: GenericRuntimeApiMethod<
|
|
698
|
+
assetAddress: GenericRuntimeApiMethod<(assetId: number) => Promise<H160>>;
|
|
696
699
|
|
|
697
700
|
/**
|
|
698
701
|
* Get the asset id corresponding to EVM address. If not found, returns `None`.
|
|
@@ -700,12 +703,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
700
703
|
* @callname: Erc20MappingApi_address_to_asset
|
|
701
704
|
* @param {H160} address
|
|
702
705
|
**/
|
|
703
|
-
addressToAsset: GenericRuntimeApiMethod<
|
|
706
|
+
addressToAsset: GenericRuntimeApiMethod<(address: H160) => Promise<number | undefined>>;
|
|
704
707
|
|
|
705
708
|
/**
|
|
706
709
|
* Generic runtime api call
|
|
707
710
|
**/
|
|
708
|
-
[method: string]: GenericRuntimeApiMethod
|
|
711
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
709
712
|
};
|
|
710
713
|
/**
|
|
711
714
|
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
@@ -722,7 +725,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
722
725
|
* @param {number} xcm_version
|
|
723
726
|
**/
|
|
724
727
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
725
|
-
Rv,
|
|
726
728
|
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
727
729
|
>;
|
|
728
730
|
|
|
@@ -737,7 +739,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
737
739
|
* @param {XcmVersionedXcm} message
|
|
738
740
|
**/
|
|
739
741
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
740
|
-
Rv,
|
|
741
742
|
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
742
743
|
>;
|
|
743
744
|
|
|
@@ -754,7 +755,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
754
755
|
* @param {XcmVersionedAssetId} asset
|
|
755
756
|
**/
|
|
756
757
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
757
|
-
Rv,
|
|
758
758
|
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
759
759
|
>;
|
|
760
760
|
|
|
@@ -773,7 +773,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
773
773
|
* @param {XcmVersionedXcm} message
|
|
774
774
|
**/
|
|
775
775
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
776
|
-
Rv,
|
|
777
776
|
(
|
|
778
777
|
destination: XcmVersionedLocation,
|
|
779
778
|
message: XcmVersionedXcm,
|
|
@@ -783,7 +782,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
783
782
|
/**
|
|
784
783
|
* Generic runtime api call
|
|
785
784
|
**/
|
|
786
|
-
[method: string]: GenericRuntimeApiMethod
|
|
785
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
787
786
|
};
|
|
788
787
|
/**
|
|
789
788
|
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
@@ -805,12 +804,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
805
804
|
* @param {H256} included_hash
|
|
806
805
|
* @param {SpConsensusSlotsSlot} slot
|
|
807
806
|
**/
|
|
808
|
-
canBuildUpon: GenericRuntimeApiMethod<
|
|
807
|
+
canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
809
808
|
|
|
810
809
|
/**
|
|
811
810
|
* Generic runtime api call
|
|
812
811
|
**/
|
|
813
|
-
[method: string]: GenericRuntimeApiMethod
|
|
812
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
814
813
|
};
|
|
815
814
|
/**
|
|
816
815
|
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
@@ -824,7 +823,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
824
823
|
* @param {HydradxRuntimeRuntimeCallLike} call
|
|
825
824
|
**/
|
|
826
825
|
dryRunCall: GenericRuntimeApiMethod<
|
|
827
|
-
Rv,
|
|
828
826
|
(
|
|
829
827
|
origin: HydradxRuntimeOriginCaller,
|
|
830
828
|
call: HydradxRuntimeRuntimeCallLike,
|
|
@@ -839,7 +837,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
839
837
|
* @param {XcmVersionedXcm} xcm
|
|
840
838
|
**/
|
|
841
839
|
dryRunXcm: GenericRuntimeApiMethod<
|
|
842
|
-
Rv,
|
|
843
840
|
(
|
|
844
841
|
originLocation: XcmVersionedLocation,
|
|
845
842
|
xcm: XcmVersionedXcm,
|
|
@@ -849,7 +846,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
849
846
|
/**
|
|
850
847
|
* Generic runtime api call
|
|
851
848
|
**/
|
|
852
|
-
[method: string]: GenericRuntimeApiMethod
|
|
849
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
853
850
|
};
|
|
854
851
|
/**
|
|
855
852
|
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
@@ -862,14 +859,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
862
859
|
* @param {XcmVersionedLocation} location
|
|
863
860
|
**/
|
|
864
861
|
convertLocation: GenericRuntimeApiMethod<
|
|
865
|
-
Rv,
|
|
866
862
|
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
867
863
|
>;
|
|
868
864
|
|
|
869
865
|
/**
|
|
870
866
|
* Generic runtime api call
|
|
871
867
|
**/
|
|
872
|
-
[method: string]: GenericRuntimeApiMethod
|
|
868
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
873
869
|
};
|
|
874
870
|
/**
|
|
875
871
|
* @runtimeapi: ChainlinkAdapterApi - 0x2b5f5bcd2460e4f0
|
|
@@ -884,7 +880,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
884
880
|
* @param {FixedBytes<8>} source
|
|
885
881
|
**/
|
|
886
882
|
encodeOracleAddress: GenericRuntimeApiMethod<
|
|
887
|
-
Rv,
|
|
888
883
|
(
|
|
889
884
|
assetIdA: number,
|
|
890
885
|
assetIdB: number,
|
|
@@ -899,14 +894,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
899
894
|
* @param {H160} oracle_address
|
|
900
895
|
**/
|
|
901
896
|
decodeOracleAddress: GenericRuntimeApiMethod<
|
|
902
|
-
Rv,
|
|
903
897
|
(oracleAddress: H160) => Promise<[number, number, HydradxTraitsOracleOraclePeriod, FixedBytes<8>] | undefined>
|
|
904
898
|
>;
|
|
905
899
|
|
|
906
900
|
/**
|
|
907
901
|
* Generic runtime api call
|
|
908
902
|
**/
|
|
909
|
-
[method: string]: GenericRuntimeApiMethod
|
|
903
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
910
904
|
};
|
|
911
905
|
/**
|
|
912
906
|
* @runtimeapi: AaveTradeExecutor - 0xa2b2b484fcb86943
|
|
@@ -916,7 +910,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
916
910
|
*
|
|
917
911
|
* @callname: AaveTradeExecutor_pairs
|
|
918
912
|
**/
|
|
919
|
-
pairs: GenericRuntimeApiMethod<
|
|
913
|
+
pairs: GenericRuntimeApiMethod<() => Promise<Array<[number, number]>>>;
|
|
920
914
|
|
|
921
915
|
/**
|
|
922
916
|
*
|
|
@@ -924,7 +918,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
924
918
|
* @param {number} asset_in
|
|
925
919
|
* @param {number} asset_out
|
|
926
920
|
**/
|
|
927
|
-
liquidityDepth: GenericRuntimeApiMethod<
|
|
921
|
+
liquidityDepth: GenericRuntimeApiMethod<(assetIn: number, assetOut: number) => Promise<bigint | undefined>>;
|
|
928
922
|
|
|
929
923
|
/**
|
|
930
924
|
*
|
|
@@ -933,7 +927,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
933
927
|
* @param {number} atoken
|
|
934
928
|
**/
|
|
935
929
|
pool: GenericRuntimeApiMethod<
|
|
936
|
-
Rv,
|
|
937
930
|
(reserve: number, atoken: number) => Promise<HydradxRuntimeEvmAaveTradeExecutorPoolData>
|
|
938
931
|
>;
|
|
939
932
|
|
|
@@ -941,12 +934,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
941
934
|
*
|
|
942
935
|
* @callname: AaveTradeExecutor_pools
|
|
943
936
|
**/
|
|
944
|
-
pools: GenericRuntimeApiMethod<
|
|
937
|
+
pools: GenericRuntimeApiMethod<() => Promise<Array<HydradxRuntimeEvmAaveTradeExecutorPoolData>>>;
|
|
945
938
|
|
|
946
939
|
/**
|
|
947
940
|
* Generic runtime api call
|
|
948
941
|
**/
|
|
949
|
-
[method: string]: GenericRuntimeApiMethod
|
|
942
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
950
943
|
};
|
|
951
944
|
/**
|
|
952
945
|
* @runtimeapi: IsmpRuntimeApi - 0x0ebc8fd84ae20ada
|
|
@@ -957,21 +950,21 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
957
950
|
*
|
|
958
951
|
* @callname: IsmpRuntimeApi_host_state_machine
|
|
959
952
|
**/
|
|
960
|
-
hostStateMachine: GenericRuntimeApiMethod<
|
|
953
|
+
hostStateMachine: GenericRuntimeApiMethod<() => Promise<IsmpHostStateMachine>>;
|
|
961
954
|
|
|
962
955
|
/**
|
|
963
956
|
* Fetch all ISMP events
|
|
964
957
|
*
|
|
965
958
|
* @callname: IsmpRuntimeApi_block_events
|
|
966
959
|
**/
|
|
967
|
-
blockEvents: GenericRuntimeApiMethod<
|
|
960
|
+
blockEvents: GenericRuntimeApiMethod<() => Promise<Array<IsmpEventsEvent>>>;
|
|
968
961
|
|
|
969
962
|
/**
|
|
970
963
|
* Fetch all ISMP events and their extrinsic metadata
|
|
971
964
|
*
|
|
972
965
|
* @callname: IsmpRuntimeApi_block_events_with_metadata
|
|
973
966
|
**/
|
|
974
|
-
blockEventsWithMetadata: GenericRuntimeApiMethod<
|
|
967
|
+
blockEventsWithMetadata: GenericRuntimeApiMethod<() => Promise<Array<[IsmpEventsEvent, number | undefined]>>>;
|
|
975
968
|
|
|
976
969
|
/**
|
|
977
970
|
* Return the scale encoded consensus state
|
|
@@ -979,7 +972,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
979
972
|
* @callname: IsmpRuntimeApi_consensus_state
|
|
980
973
|
* @param {FixedBytes<4>} id
|
|
981
974
|
**/
|
|
982
|
-
consensusState: GenericRuntimeApiMethod<
|
|
975
|
+
consensusState: GenericRuntimeApiMethod<(id: FixedBytes<4>) => Promise<Bytes | undefined>>;
|
|
983
976
|
|
|
984
977
|
/**
|
|
985
978
|
* Return the timestamp this client was last updated in seconds
|
|
@@ -988,7 +981,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
988
981
|
* @param {IsmpConsensusStateMachineHeight} id
|
|
989
982
|
**/
|
|
990
983
|
stateMachineUpdateTime: GenericRuntimeApiMethod<
|
|
991
|
-
Rv,
|
|
992
984
|
(id: IsmpConsensusStateMachineHeight) => Promise<bigint | undefined>
|
|
993
985
|
>;
|
|
994
986
|
|
|
@@ -998,7 +990,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
998
990
|
* @callname: IsmpRuntimeApi_challenge_period
|
|
999
991
|
* @param {IsmpConsensusStateMachineId} id
|
|
1000
992
|
**/
|
|
1001
|
-
challengePeriod: GenericRuntimeApiMethod<
|
|
993
|
+
challengePeriod: GenericRuntimeApiMethod<(id: IsmpConsensusStateMachineId) => Promise<bigint | undefined>>;
|
|
1002
994
|
|
|
1003
995
|
/**
|
|
1004
996
|
* Return the latest height of the state machine
|
|
@@ -1006,10 +998,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1006
998
|
* @callname: IsmpRuntimeApi_latest_state_machine_height
|
|
1007
999
|
* @param {IsmpConsensusStateMachineId} id
|
|
1008
1000
|
**/
|
|
1009
|
-
latestStateMachineHeight: GenericRuntimeApiMethod<
|
|
1010
|
-
Rv,
|
|
1011
|
-
(id: IsmpConsensusStateMachineId) => Promise<bigint | undefined>
|
|
1012
|
-
>;
|
|
1001
|
+
latestStateMachineHeight: GenericRuntimeApiMethod<(id: IsmpConsensusStateMachineId) => Promise<bigint | undefined>>;
|
|
1013
1002
|
|
|
1014
1003
|
/**
|
|
1015
1004
|
* Fetch the requests for the given commitments.
|
|
@@ -1017,7 +1006,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1017
1006
|
* @callname: IsmpRuntimeApi_requests
|
|
1018
1007
|
* @param {Array<H256>} request_commitments
|
|
1019
1008
|
**/
|
|
1020
|
-
requests: GenericRuntimeApiMethod<
|
|
1009
|
+
requests: GenericRuntimeApiMethod<(requestCommitments: Array<H256>) => Promise<Array<IsmpRouterRequest>>>;
|
|
1021
1010
|
|
|
1022
1011
|
/**
|
|
1023
1012
|
* Fetch the responses for the given commitments.
|
|
@@ -1025,12 +1014,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1025
1014
|
* @callname: IsmpRuntimeApi_responses
|
|
1026
1015
|
* @param {Array<H256>} response_commitments
|
|
1027
1016
|
**/
|
|
1028
|
-
responses: GenericRuntimeApiMethod<
|
|
1017
|
+
responses: GenericRuntimeApiMethod<(responseCommitments: Array<H256>) => Promise<Array<IsmpRouterResponse>>>;
|
|
1029
1018
|
|
|
1030
1019
|
/**
|
|
1031
1020
|
* Generic runtime api call
|
|
1032
1021
|
**/
|
|
1033
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1022
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1034
1023
|
};
|
|
1035
1024
|
/**
|
|
1036
1025
|
* @runtimeapi: IsmpParachainApi - 0x5d1df2fe7d4f6bc8
|
|
@@ -1041,19 +1030,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1041
1030
|
*
|
|
1042
1031
|
* @callname: IsmpParachainApi_para_ids
|
|
1043
1032
|
**/
|
|
1044
|
-
paraIds: GenericRuntimeApiMethod<
|
|
1033
|
+
paraIds: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
1045
1034
|
|
|
1046
1035
|
/**
|
|
1047
1036
|
* Return the current relay chain state.
|
|
1048
1037
|
*
|
|
1049
1038
|
* @callname: IsmpParachainApi_current_relay_chain_state
|
|
1050
1039
|
**/
|
|
1051
|
-
currentRelayChainState: GenericRuntimeApiMethod<
|
|
1040
|
+
currentRelayChainState: GenericRuntimeApiMethod<() => Promise<CumulusPalletParachainSystemRelayChainState>>;
|
|
1052
1041
|
|
|
1053
1042
|
/**
|
|
1054
1043
|
* Generic runtime api call
|
|
1055
1044
|
**/
|
|
1056
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1045
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1057
1046
|
};
|
|
1058
1047
|
/**
|
|
1059
1048
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -1073,7 +1062,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1073
1062
|
* @callname: GenesisBuilder_build_state
|
|
1074
1063
|
* @param {BytesLike} json
|
|
1075
1064
|
**/
|
|
1076
|
-
buildState: GenericRuntimeApiMethod<
|
|
1065
|
+
buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
1077
1066
|
|
|
1078
1067
|
/**
|
|
1079
1068
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
@@ -1094,7 +1083,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1094
1083
|
* @callname: GenesisBuilder_get_preset
|
|
1095
1084
|
* @param {string | undefined} id
|
|
1096
1085
|
**/
|
|
1097
|
-
getPreset: GenericRuntimeApiMethod<
|
|
1086
|
+
getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
1098
1087
|
|
|
1099
1088
|
/**
|
|
1100
1089
|
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
@@ -1104,11 +1093,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1104
1093
|
*
|
|
1105
1094
|
* @callname: GenesisBuilder_preset_names
|
|
1106
1095
|
**/
|
|
1107
|
-
presetNames: GenericRuntimeApiMethod<
|
|
1096
|
+
presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
|
|
1108
1097
|
|
|
1109
1098
|
/**
|
|
1110
1099
|
* Generic runtime api call
|
|
1111
1100
|
**/
|
|
1112
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1101
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1113
1102
|
};
|
|
1114
1103
|
}
|