@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
|
H256,
|
|
6
6
|
RuntimeVersion,
|
|
@@ -30,6 +30,8 @@ import type {
|
|
|
30
30
|
SpRuntimeTransactionValidityValidTransaction,
|
|
31
31
|
SpRuntimeTransactionValidityTransactionSource,
|
|
32
32
|
SpCoreCryptoKeyTypeId,
|
|
33
|
+
FrameSupportViewFunctionsViewFunctionDispatchError,
|
|
34
|
+
FrameSupportViewFunctionsViewFunctionId,
|
|
33
35
|
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
34
36
|
PalletTransactionPaymentFeeDetails,
|
|
35
37
|
SpWeightsWeightV2Weight,
|
|
@@ -64,7 +66,7 @@ import type {
|
|
|
64
66
|
PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
65
67
|
} from './types.js';
|
|
66
68
|
|
|
67
|
-
export interface RuntimeApis
|
|
69
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
68
70
|
/**
|
|
69
71
|
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
70
72
|
**/
|
|
@@ -76,19 +78,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
76
78
|
*
|
|
77
79
|
* @callname: AuraApi_slot_duration
|
|
78
80
|
**/
|
|
79
|
-
slotDuration: GenericRuntimeApiMethod<
|
|
81
|
+
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
80
82
|
|
|
81
83
|
/**
|
|
82
84
|
* Return the current set of authorities.
|
|
83
85
|
*
|
|
84
86
|
* @callname: AuraApi_authorities
|
|
85
87
|
**/
|
|
86
|
-
authorities: GenericRuntimeApiMethod<
|
|
88
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
87
89
|
|
|
88
90
|
/**
|
|
89
91
|
* Generic runtime api call
|
|
90
92
|
**/
|
|
91
|
-
[method: string]: GenericRuntimeApiMethod
|
|
93
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
92
94
|
};
|
|
93
95
|
/**
|
|
94
96
|
* @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
|
|
@@ -99,12 +101,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
99
101
|
*
|
|
100
102
|
* @callname: RelayParentOffsetApi_relay_parent_offset
|
|
101
103
|
**/
|
|
102
|
-
relayParentOffset: GenericRuntimeApiMethod<
|
|
104
|
+
relayParentOffset: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
103
105
|
|
|
104
106
|
/**
|
|
105
107
|
* Generic runtime api call
|
|
106
108
|
**/
|
|
107
|
-
[method: string]: GenericRuntimeApiMethod
|
|
109
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
108
110
|
};
|
|
109
111
|
/**
|
|
110
112
|
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
@@ -126,12 +128,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
126
128
|
* @param {H256} included_hash
|
|
127
129
|
* @param {SpConsensusSlotsSlot} slot
|
|
128
130
|
**/
|
|
129
|
-
canBuildUpon: GenericRuntimeApiMethod<
|
|
131
|
+
canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
130
132
|
|
|
131
133
|
/**
|
|
132
134
|
* Generic runtime api call
|
|
133
135
|
**/
|
|
134
|
-
[method: string]: GenericRuntimeApiMethod
|
|
136
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
135
137
|
};
|
|
136
138
|
/**
|
|
137
139
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
@@ -142,7 +144,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
142
144
|
*
|
|
143
145
|
* @callname: Core_version
|
|
144
146
|
**/
|
|
145
|
-
version: GenericRuntimeApiMethod<
|
|
147
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
146
148
|
|
|
147
149
|
/**
|
|
148
150
|
* Execute the given block.
|
|
@@ -150,7 +152,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
150
152
|
* @callname: Core_execute_block
|
|
151
153
|
* @param {SpRuntimeBlock} block
|
|
152
154
|
**/
|
|
153
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
155
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
154
156
|
|
|
155
157
|
/**
|
|
156
158
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -158,12 +160,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
158
160
|
* @callname: Core_initialize_block
|
|
159
161
|
* @param {Header} header
|
|
160
162
|
**/
|
|
161
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
163
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
162
164
|
|
|
163
165
|
/**
|
|
164
166
|
* Generic runtime api call
|
|
165
167
|
**/
|
|
166
|
-
[method: string]: GenericRuntimeApiMethod
|
|
168
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
167
169
|
};
|
|
168
170
|
/**
|
|
169
171
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -174,7 +176,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
174
176
|
*
|
|
175
177
|
* @callname: Metadata_metadata
|
|
176
178
|
**/
|
|
177
|
-
metadata: GenericRuntimeApiMethod<
|
|
179
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
178
180
|
|
|
179
181
|
/**
|
|
180
182
|
* Returns the metadata at a given version.
|
|
@@ -185,7 +187,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
185
187
|
* @callname: Metadata_metadata_at_version
|
|
186
188
|
* @param {number} version
|
|
187
189
|
**/
|
|
188
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
190
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
189
191
|
|
|
190
192
|
/**
|
|
191
193
|
* Returns the supported metadata versions.
|
|
@@ -194,12 +196,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
194
196
|
*
|
|
195
197
|
* @callname: Metadata_metadata_versions
|
|
196
198
|
**/
|
|
197
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
199
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
198
200
|
|
|
199
201
|
/**
|
|
200
202
|
* Generic runtime api call
|
|
201
203
|
**/
|
|
202
|
-
[method: string]: GenericRuntimeApiMethod
|
|
204
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
203
205
|
};
|
|
204
206
|
/**
|
|
205
207
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -215,7 +217,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
215
217
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
216
218
|
**/
|
|
217
219
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
218
|
-
Rv,
|
|
219
220
|
(
|
|
220
221
|
extrinsic: UncheckedExtrinsicLike,
|
|
221
222
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -226,7 +227,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
226
227
|
*
|
|
227
228
|
* @callname: BlockBuilder_finalize_block
|
|
228
229
|
**/
|
|
229
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
230
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
230
231
|
|
|
231
232
|
/**
|
|
232
233
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -235,7 +236,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
235
236
|
* @param {SpInherentsInherentData} inherent
|
|
236
237
|
**/
|
|
237
238
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
238
|
-
Rv,
|
|
239
239
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
240
240
|
>;
|
|
241
241
|
|
|
@@ -247,14 +247,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
247
247
|
* @param {SpInherentsInherentData} data
|
|
248
248
|
**/
|
|
249
249
|
checkInherents: GenericRuntimeApiMethod<
|
|
250
|
-
Rv,
|
|
251
250
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
252
251
|
>;
|
|
253
252
|
|
|
254
253
|
/**
|
|
255
254
|
* Generic runtime api call
|
|
256
255
|
**/
|
|
257
|
-
[method: string]: GenericRuntimeApiMethod
|
|
256
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
258
257
|
};
|
|
259
258
|
/**
|
|
260
259
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -277,7 +276,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
277
276
|
* @param {H256} block_hash
|
|
278
277
|
**/
|
|
279
278
|
validateTransaction: GenericRuntimeApiMethod<
|
|
280
|
-
Rv,
|
|
281
279
|
(
|
|
282
280
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
283
281
|
tx: UncheckedExtrinsicLike,
|
|
@@ -290,7 +288,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
290
288
|
/**
|
|
291
289
|
* Generic runtime api call
|
|
292
290
|
**/
|
|
293
|
-
[method: string]: GenericRuntimeApiMethod
|
|
291
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
294
292
|
};
|
|
295
293
|
/**
|
|
296
294
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -302,12 +300,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
302
300
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
303
301
|
* @param {Header} header
|
|
304
302
|
**/
|
|
305
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
303
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
306
304
|
|
|
307
305
|
/**
|
|
308
306
|
* Generic runtime api call
|
|
309
307
|
**/
|
|
310
|
-
[method: string]: GenericRuntimeApiMethod
|
|
308
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
311
309
|
};
|
|
312
310
|
/**
|
|
313
311
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -325,7 +323,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
325
323
|
* @callname: SessionKeys_generate_session_keys
|
|
326
324
|
* @param {BytesLike | undefined} seed
|
|
327
325
|
**/
|
|
328
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
326
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
329
327
|
|
|
330
328
|
/**
|
|
331
329
|
* Decode the given public session keys.
|
|
@@ -336,14 +334,36 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
336
334
|
* @param {BytesLike} encoded
|
|
337
335
|
**/
|
|
338
336
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
339
|
-
Rv,
|
|
340
337
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
341
338
|
>;
|
|
342
339
|
|
|
343
340
|
/**
|
|
344
341
|
* Generic runtime api call
|
|
345
342
|
**/
|
|
346
|
-
[method: string]: GenericRuntimeApiMethod
|
|
343
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
347
|
+
**/
|
|
348
|
+
runtimeViewFunction: {
|
|
349
|
+
/**
|
|
350
|
+
* Execute a view function query.
|
|
351
|
+
*
|
|
352
|
+
* @callname: RuntimeViewFunction_execute_view_function
|
|
353
|
+
* @param {FrameSupportViewFunctionsViewFunctionId} query_id
|
|
354
|
+
* @param {BytesLike} input
|
|
355
|
+
**/
|
|
356
|
+
executeViewFunction: GenericRuntimeApiMethod<
|
|
357
|
+
(
|
|
358
|
+
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
359
|
+
input: BytesLike,
|
|
360
|
+
) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
|
|
361
|
+
>;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Generic runtime api call
|
|
365
|
+
**/
|
|
366
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
347
367
|
};
|
|
348
368
|
/**
|
|
349
369
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -355,12 +375,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
355
375
|
* @callname: AccountNonceApi_account_nonce
|
|
356
376
|
* @param {AccountId32Like} account
|
|
357
377
|
**/
|
|
358
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
378
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
359
379
|
|
|
360
380
|
/**
|
|
361
381
|
* Generic runtime api call
|
|
362
382
|
**/
|
|
363
|
-
[method: string]: GenericRuntimeApiMethod
|
|
383
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
364
384
|
};
|
|
365
385
|
/**
|
|
366
386
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -373,7 +393,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
373
393
|
* @param {number} len
|
|
374
394
|
**/
|
|
375
395
|
queryInfo: GenericRuntimeApiMethod<
|
|
376
|
-
Rv,
|
|
377
396
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
378
397
|
>;
|
|
379
398
|
|
|
@@ -384,7 +403,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
384
403
|
* @param {number} len
|
|
385
404
|
**/
|
|
386
405
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
387
|
-
Rv,
|
|
388
406
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
389
407
|
>;
|
|
390
408
|
|
|
@@ -393,19 +411,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
393
411
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
394
412
|
* @param {SpWeightsWeightV2Weight} weight
|
|
395
413
|
**/
|
|
396
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
414
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
397
415
|
|
|
398
416
|
/**
|
|
399
417
|
*
|
|
400
418
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
401
419
|
* @param {number} length
|
|
402
420
|
**/
|
|
403
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
421
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
404
422
|
|
|
405
423
|
/**
|
|
406
424
|
* Generic runtime api call
|
|
407
425
|
**/
|
|
408
|
-
[method: string]: GenericRuntimeApiMethod
|
|
426
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
409
427
|
};
|
|
410
428
|
/**
|
|
411
429
|
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
@@ -419,7 +437,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
419
437
|
* @param {number} len
|
|
420
438
|
**/
|
|
421
439
|
queryCallInfo: GenericRuntimeApiMethod<
|
|
422
|
-
Rv,
|
|
423
440
|
(call: AssetHubPaseoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
424
441
|
>;
|
|
425
442
|
|
|
@@ -431,7 +448,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
431
448
|
* @param {number} len
|
|
432
449
|
**/
|
|
433
450
|
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
434
|
-
Rv,
|
|
435
451
|
(call: AssetHubPaseoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
436
452
|
>;
|
|
437
453
|
|
|
@@ -441,7 +457,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
441
457
|
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
442
458
|
* @param {SpWeightsWeightV2Weight} weight
|
|
443
459
|
**/
|
|
444
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
460
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
445
461
|
|
|
446
462
|
/**
|
|
447
463
|
* Query the output of the current `LengthToFee` given some input.
|
|
@@ -449,12 +465,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
449
465
|
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
450
466
|
* @param {number} length
|
|
451
467
|
**/
|
|
452
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
468
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
453
469
|
|
|
454
470
|
/**
|
|
455
471
|
* Generic runtime api call
|
|
456
472
|
**/
|
|
457
|
-
[method: string]: GenericRuntimeApiMethod
|
|
473
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
458
474
|
};
|
|
459
475
|
/**
|
|
460
476
|
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
@@ -471,7 +487,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
471
487
|
* @param {number} xcm_version
|
|
472
488
|
**/
|
|
473
489
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
474
|
-
Rv,
|
|
475
490
|
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
476
491
|
>;
|
|
477
492
|
|
|
@@ -486,7 +501,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
486
501
|
* @param {XcmVersionedXcm} message
|
|
487
502
|
**/
|
|
488
503
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
489
|
-
Rv,
|
|
490
504
|
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
491
505
|
>;
|
|
492
506
|
|
|
@@ -503,7 +517,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
503
517
|
* @param {XcmVersionedAssetId} asset
|
|
504
518
|
**/
|
|
505
519
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
506
|
-
Rv,
|
|
507
520
|
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
508
521
|
>;
|
|
509
522
|
|
|
@@ -522,7 +535,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
522
535
|
* @param {XcmVersionedXcm} message
|
|
523
536
|
**/
|
|
524
537
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
525
|
-
Rv,
|
|
526
538
|
(
|
|
527
539
|
destination: XcmVersionedLocation,
|
|
528
540
|
message: XcmVersionedXcm,
|
|
@@ -532,7 +544,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
532
544
|
/**
|
|
533
545
|
* Generic runtime api call
|
|
534
546
|
**/
|
|
535
|
-
[method: string]: GenericRuntimeApiMethod
|
|
547
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
536
548
|
};
|
|
537
549
|
/**
|
|
538
550
|
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
@@ -547,7 +559,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
547
559
|
* @param {number} result_xcms_version
|
|
548
560
|
**/
|
|
549
561
|
dryRunCall: GenericRuntimeApiMethod<
|
|
550
|
-
Rv,
|
|
551
562
|
(
|
|
552
563
|
origin: AssetHubPaseoRuntimeOriginCaller,
|
|
553
564
|
call: AssetHubPaseoRuntimeRuntimeCallLike,
|
|
@@ -563,7 +574,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
563
574
|
* @param {XcmVersionedXcm} xcm
|
|
564
575
|
**/
|
|
565
576
|
dryRunXcm: GenericRuntimeApiMethod<
|
|
566
|
-
Rv,
|
|
567
577
|
(
|
|
568
578
|
originLocation: XcmVersionedLocation,
|
|
569
579
|
xcm: XcmVersionedXcm,
|
|
@@ -573,7 +583,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
573
583
|
/**
|
|
574
584
|
* Generic runtime api call
|
|
575
585
|
**/
|
|
576
|
-
[method: string]: GenericRuntimeApiMethod
|
|
586
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
577
587
|
};
|
|
578
588
|
/**
|
|
579
589
|
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
@@ -586,14 +596,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
586
596
|
* @param {XcmVersionedLocation} location
|
|
587
597
|
**/
|
|
588
598
|
convertLocation: GenericRuntimeApiMethod<
|
|
589
|
-
Rv,
|
|
590
599
|
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
591
600
|
>;
|
|
592
601
|
|
|
593
602
|
/**
|
|
594
603
|
* Generic runtime api call
|
|
595
604
|
**/
|
|
596
|
-
[method: string]: GenericRuntimeApiMethod
|
|
605
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
597
606
|
};
|
|
598
607
|
/**
|
|
599
608
|
* @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
|
|
@@ -611,7 +620,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
611
620
|
* @param {XcmVersionedLocation} location
|
|
612
621
|
**/
|
|
613
622
|
isTrustedReserve: GenericRuntimeApiMethod<
|
|
614
|
-
Rv,
|
|
615
623
|
(
|
|
616
624
|
asset: XcmVersionedAsset,
|
|
617
625
|
location: XcmVersionedLocation,
|
|
@@ -630,7 +638,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
630
638
|
* @param {XcmVersionedLocation} location
|
|
631
639
|
**/
|
|
632
640
|
isTrustedTeleporter: GenericRuntimeApiMethod<
|
|
633
|
-
Rv,
|
|
634
641
|
(
|
|
635
642
|
asset: XcmVersionedAsset,
|
|
636
643
|
location: XcmVersionedLocation,
|
|
@@ -640,7 +647,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
640
647
|
/**
|
|
641
648
|
* Generic runtime api call
|
|
642
649
|
**/
|
|
643
|
-
[method: string]: GenericRuntimeApiMethod
|
|
650
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
644
651
|
};
|
|
645
652
|
/**
|
|
646
653
|
* @runtimeapi: AuthorizedAliasersApi - 0x12c8e3d4d7e06de0
|
|
@@ -653,7 +660,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
653
660
|
* @param {XcmVersionedLocation} target
|
|
654
661
|
**/
|
|
655
662
|
authorizedAliasers: GenericRuntimeApiMethod<
|
|
656
|
-
Rv,
|
|
657
663
|
(
|
|
658
664
|
target: XcmVersionedLocation,
|
|
659
665
|
) => Promise<Result<Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>>
|
|
@@ -667,7 +673,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
667
673
|
* @param {XcmVersionedLocation} target
|
|
668
674
|
**/
|
|
669
675
|
isAuthorizedAlias: GenericRuntimeApiMethod<
|
|
670
|
-
Rv,
|
|
671
676
|
(
|
|
672
677
|
origin: XcmVersionedLocation,
|
|
673
678
|
target: XcmVersionedLocation,
|
|
@@ -677,7 +682,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
677
682
|
/**
|
|
678
683
|
* Generic runtime api call
|
|
679
684
|
**/
|
|
680
|
-
[method: string]: GenericRuntimeApiMethod
|
|
685
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
681
686
|
};
|
|
682
687
|
/**
|
|
683
688
|
* @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
|
|
@@ -690,14 +695,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
690
695
|
* @param {AccountId32Like} account
|
|
691
696
|
**/
|
|
692
697
|
queryAccountBalances: GenericRuntimeApiMethod<
|
|
693
|
-
Rv,
|
|
694
698
|
(account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
|
|
695
699
|
>;
|
|
696
700
|
|
|
697
701
|
/**
|
|
698
702
|
* Generic runtime api call
|
|
699
703
|
**/
|
|
700
|
-
[method: string]: GenericRuntimeApiMethod
|
|
704
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
701
705
|
};
|
|
702
706
|
/**
|
|
703
707
|
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
@@ -712,12 +716,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
712
716
|
* @callname: CollectCollationInfo_collect_collation_info
|
|
713
717
|
* @param {Header} header
|
|
714
718
|
**/
|
|
715
|
-
collectCollationInfo: GenericRuntimeApiMethod<
|
|
719
|
+
collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
716
720
|
|
|
717
721
|
/**
|
|
718
722
|
* Generic runtime api call
|
|
719
723
|
**/
|
|
720
|
-
[method: string]: GenericRuntimeApiMethod
|
|
724
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
721
725
|
};
|
|
722
726
|
/**
|
|
723
727
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -738,7 +742,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
738
742
|
* @callname: GenesisBuilder_build_state
|
|
739
743
|
* @param {BytesLike} json
|
|
740
744
|
**/
|
|
741
|
-
buildState: GenericRuntimeApiMethod<
|
|
745
|
+
buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
742
746
|
|
|
743
747
|
/**
|
|
744
748
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
@@ -759,7 +763,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
759
763
|
* @callname: GenesisBuilder_get_preset
|
|
760
764
|
* @param {string | undefined} id
|
|
761
765
|
**/
|
|
762
|
-
getPreset: GenericRuntimeApiMethod<
|
|
766
|
+
getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
763
767
|
|
|
764
768
|
/**
|
|
765
769
|
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
@@ -769,12 +773,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
769
773
|
*
|
|
770
774
|
* @callname: GenesisBuilder_preset_names
|
|
771
775
|
**/
|
|
772
|
-
presetNames: GenericRuntimeApiMethod<
|
|
776
|
+
presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
|
|
773
777
|
|
|
774
778
|
/**
|
|
775
779
|
* Generic runtime api call
|
|
776
780
|
**/
|
|
777
|
-
[method: string]: GenericRuntimeApiMethod
|
|
781
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
778
782
|
};
|
|
779
783
|
/**
|
|
780
784
|
* @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
|
|
@@ -793,7 +797,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
793
797
|
* @param {boolean} include_fee
|
|
794
798
|
**/
|
|
795
799
|
quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
|
|
796
|
-
Rv,
|
|
797
800
|
(
|
|
798
801
|
asset1: StagingXcmV5Location,
|
|
799
802
|
asset2: StagingXcmV5Location,
|
|
@@ -815,7 +818,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
815
818
|
* @param {boolean} include_fee
|
|
816
819
|
**/
|
|
817
820
|
quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
|
|
818
|
-
Rv,
|
|
819
821
|
(
|
|
820
822
|
asset1: StagingXcmV5Location,
|
|
821
823
|
asset2: StagingXcmV5Location,
|
|
@@ -832,14 +834,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
832
834
|
* @param {StagingXcmV5Location} asset2
|
|
833
835
|
**/
|
|
834
836
|
getReserves: GenericRuntimeApiMethod<
|
|
835
|
-
Rv,
|
|
836
837
|
(asset1: StagingXcmV5Location, asset2: StagingXcmV5Location) => Promise<[bigint, bigint] | undefined>
|
|
837
838
|
>;
|
|
838
839
|
|
|
839
840
|
/**
|
|
840
841
|
* Generic runtime api call
|
|
841
842
|
**/
|
|
842
|
-
[method: string]: GenericRuntimeApiMethod
|
|
843
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
843
844
|
};
|
|
844
845
|
/**
|
|
845
846
|
* @runtimeapi: GetParachainInfo - 0xa2ddb6a58477bf63
|
|
@@ -850,12 +851,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
850
851
|
*
|
|
851
852
|
* @callname: GetParachainInfo_parachain_id
|
|
852
853
|
**/
|
|
853
|
-
parachainId: GenericRuntimeApiMethod<
|
|
854
|
+
parachainId: GenericRuntimeApiMethod<() => Promise<PolkadotParachainPrimitivesPrimitivesId>>;
|
|
854
855
|
|
|
855
856
|
/**
|
|
856
857
|
* Generic runtime api call
|
|
857
858
|
**/
|
|
858
|
-
[method: string]: GenericRuntimeApiMethod
|
|
859
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
859
860
|
};
|
|
860
861
|
/**
|
|
861
862
|
* @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
|
|
@@ -867,7 +868,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
867
868
|
* @callname: NominationPoolsApi_pending_rewards
|
|
868
869
|
* @param {AccountId32Like} who
|
|
869
870
|
**/
|
|
870
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
871
|
+
pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
871
872
|
|
|
872
873
|
/**
|
|
873
874
|
* Returns the equivalent balance of `points` for a given pool.
|
|
@@ -876,7 +877,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
876
877
|
* @param {number} pool_id
|
|
877
878
|
* @param {bigint} points
|
|
878
879
|
**/
|
|
879
|
-
pointsToBalance: GenericRuntimeApiMethod<
|
|
880
|
+
pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
|
|
880
881
|
|
|
881
882
|
/**
|
|
882
883
|
* Returns the equivalent points of `new_funds` for a given pool.
|
|
@@ -885,7 +886,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
885
886
|
* @param {number} pool_id
|
|
886
887
|
* @param {bigint} new_funds
|
|
887
888
|
**/
|
|
888
|
-
balanceToPoints: GenericRuntimeApiMethod<
|
|
889
|
+
balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
|
|
889
890
|
|
|
890
891
|
/**
|
|
891
892
|
* Returns the pending slash for a given pool.
|
|
@@ -893,7 +894,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
893
894
|
* @callname: NominationPoolsApi_pool_pending_slash
|
|
894
895
|
* @param {number} pool_id
|
|
895
896
|
**/
|
|
896
|
-
poolPendingSlash: GenericRuntimeApiMethod<
|
|
897
|
+
poolPendingSlash: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
897
898
|
|
|
898
899
|
/**
|
|
899
900
|
* Returns the pending slash for a given pool member.
|
|
@@ -904,7 +905,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
904
905
|
* @callname: NominationPoolsApi_member_pending_slash
|
|
905
906
|
* @param {AccountId32Like} member
|
|
906
907
|
**/
|
|
907
|
-
memberPendingSlash: GenericRuntimeApiMethod<
|
|
908
|
+
memberPendingSlash: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<bigint>>;
|
|
908
909
|
|
|
909
910
|
/**
|
|
910
911
|
* Returns true if the pool with `pool_id` needs migration.
|
|
@@ -919,7 +920,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
919
920
|
* @callname: NominationPoolsApi_pool_needs_delegate_migration
|
|
920
921
|
* @param {number} pool_id
|
|
921
922
|
**/
|
|
922
|
-
poolNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
923
|
+
poolNeedsDelegateMigration: GenericRuntimeApiMethod<(poolId: number) => Promise<boolean>>;
|
|
923
924
|
|
|
924
925
|
/**
|
|
925
926
|
* Returns true if the delegated funds of the pool `member` needs migration.
|
|
@@ -933,7 +934,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
933
934
|
* @callname: NominationPoolsApi_member_needs_delegate_migration
|
|
934
935
|
* @param {AccountId32Like} member
|
|
935
936
|
**/
|
|
936
|
-
memberNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
937
|
+
memberNeedsDelegateMigration: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<boolean>>;
|
|
937
938
|
|
|
938
939
|
/**
|
|
939
940
|
* Returns the total contribution of a pool member including any balance that is unbonding.
|
|
@@ -941,7 +942,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
941
942
|
* @callname: NominationPoolsApi_member_total_balance
|
|
942
943
|
* @param {AccountId32Like} who
|
|
943
944
|
**/
|
|
944
|
-
memberTotalBalance: GenericRuntimeApiMethod<
|
|
945
|
+
memberTotalBalance: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
945
946
|
|
|
946
947
|
/**
|
|
947
948
|
* Total balance contributed to the pool.
|
|
@@ -949,7 +950,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
949
950
|
* @callname: NominationPoolsApi_pool_balance
|
|
950
951
|
* @param {number} pool_id
|
|
951
952
|
**/
|
|
952
|
-
poolBalance: GenericRuntimeApiMethod<
|
|
953
|
+
poolBalance: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
953
954
|
|
|
954
955
|
/**
|
|
955
956
|
* Returns the bonded account and reward account associated with the pool_id.
|
|
@@ -957,12 +958,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
957
958
|
* @callname: NominationPoolsApi_pool_accounts
|
|
958
959
|
* @param {number} pool_id
|
|
959
960
|
**/
|
|
960
|
-
poolAccounts: GenericRuntimeApiMethod<
|
|
961
|
+
poolAccounts: GenericRuntimeApiMethod<(poolId: number) => Promise<[AccountId32, AccountId32]>>;
|
|
961
962
|
|
|
962
963
|
/**
|
|
963
964
|
* Generic runtime api call
|
|
964
965
|
**/
|
|
965
|
-
[method: string]: GenericRuntimeApiMethod
|
|
966
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
966
967
|
};
|
|
967
968
|
/**
|
|
968
969
|
* @runtimeapi: StakingApi - 0x18ef58a3b67ba770
|
|
@@ -974,7 +975,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
974
975
|
* @callname: StakingApi_nominations_quota
|
|
975
976
|
* @param {bigint} balance
|
|
976
977
|
**/
|
|
977
|
-
nominationsQuota: GenericRuntimeApiMethod<
|
|
978
|
+
nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
|
|
978
979
|
|
|
979
980
|
/**
|
|
980
981
|
* Returns the page count of exposures for a validator `account` in a given era.
|
|
@@ -983,7 +984,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
983
984
|
* @param {number} era
|
|
984
985
|
* @param {AccountId32Like} account
|
|
985
986
|
**/
|
|
986
|
-
erasStakersPageCount: GenericRuntimeApiMethod<
|
|
987
|
+
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
987
988
|
|
|
988
989
|
/**
|
|
989
990
|
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
@@ -992,12 +993,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
992
993
|
* @param {number} era
|
|
993
994
|
* @param {AccountId32Like} account
|
|
994
995
|
**/
|
|
995
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
996
|
+
pendingRewards: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<boolean>>;
|
|
996
997
|
|
|
997
998
|
/**
|
|
998
999
|
* Generic runtime api call
|
|
999
1000
|
**/
|
|
1000
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1001
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1001
1002
|
};
|
|
1002
1003
|
/**
|
|
1003
1004
|
* @runtimeapi: ReviveApi - 0x8c403e5c4a9fd442
|
|
@@ -1008,7 +1009,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1008
1009
|
*
|
|
1009
1010
|
* @callname: ReviveApi_block_gas_limit
|
|
1010
1011
|
**/
|
|
1011
|
-
blockGasLimit: GenericRuntimeApiMethod<
|
|
1012
|
+
blockGasLimit: GenericRuntimeApiMethod<() => Promise<U256>>;
|
|
1012
1013
|
|
|
1013
1014
|
/**
|
|
1014
1015
|
* Returns the free balance of the given `[H160]` address, using EVM decimals.
|
|
@@ -1016,14 +1017,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1016
1017
|
* @callname: ReviveApi_balance
|
|
1017
1018
|
* @param {H160} address
|
|
1018
1019
|
**/
|
|
1019
|
-
balance: GenericRuntimeApiMethod<
|
|
1020
|
+
balance: GenericRuntimeApiMethod<(address: H160) => Promise<U256>>;
|
|
1020
1021
|
|
|
1021
1022
|
/**
|
|
1022
1023
|
* Returns the gas price.
|
|
1023
1024
|
*
|
|
1024
1025
|
* @callname: ReviveApi_gas_price
|
|
1025
1026
|
**/
|
|
1026
|
-
gasPrice: GenericRuntimeApiMethod<
|
|
1027
|
+
gasPrice: GenericRuntimeApiMethod<() => Promise<U256>>;
|
|
1027
1028
|
|
|
1028
1029
|
/**
|
|
1029
1030
|
* Returns the nonce of the given `[H160]` address.
|
|
@@ -1031,7 +1032,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1031
1032
|
* @callname: ReviveApi_nonce
|
|
1032
1033
|
* @param {H160} address
|
|
1033
1034
|
**/
|
|
1034
|
-
nonce: GenericRuntimeApiMethod<
|
|
1035
|
+
nonce: GenericRuntimeApiMethod<(address: H160) => Promise<number>>;
|
|
1035
1036
|
|
|
1036
1037
|
/**
|
|
1037
1038
|
* Perform a call from a specified account to a given contract.
|
|
@@ -1047,7 +1048,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1047
1048
|
* @param {BytesLike} input_data
|
|
1048
1049
|
**/
|
|
1049
1050
|
call: GenericRuntimeApiMethod<
|
|
1050
|
-
Rv,
|
|
1051
1051
|
(
|
|
1052
1052
|
origin: AccountId32Like,
|
|
1053
1053
|
dest: H160,
|
|
@@ -1073,7 +1073,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1073
1073
|
* @param {FixedBytes<32> | undefined} salt
|
|
1074
1074
|
**/
|
|
1075
1075
|
instantiate: GenericRuntimeApiMethod<
|
|
1076
|
-
Rv,
|
|
1077
1076
|
(
|
|
1078
1077
|
origin: AccountId32Like,
|
|
1079
1078
|
value: bigint,
|
|
@@ -1094,7 +1093,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1094
1093
|
* @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
|
|
1095
1094
|
**/
|
|
1096
1095
|
ethTransact: GenericRuntimeApiMethod<
|
|
1097
|
-
Rv,
|
|
1098
1096
|
(
|
|
1099
1097
|
tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
1100
1098
|
) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>
|
|
@@ -1111,7 +1109,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1111
1109
|
* @param {bigint | undefined} storage_deposit_limit
|
|
1112
1110
|
**/
|
|
1113
1111
|
uploadCode: GenericRuntimeApiMethod<
|
|
1114
|
-
Rv,
|
|
1115
1112
|
(
|
|
1116
1113
|
origin: AccountId32Like,
|
|
1117
1114
|
code: BytesLike,
|
|
@@ -1131,7 +1128,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1131
1128
|
* @param {FixedBytes<32>} key
|
|
1132
1129
|
**/
|
|
1133
1130
|
getStorage: GenericRuntimeApiMethod<
|
|
1134
|
-
Rv,
|
|
1135
1131
|
(
|
|
1136
1132
|
address: H160,
|
|
1137
1133
|
key: FixedBytes<32>,
|
|
@@ -1150,7 +1146,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1150
1146
|
* @param {BytesLike} key
|
|
1151
1147
|
**/
|
|
1152
1148
|
getStorageVarKey: GenericRuntimeApiMethod<
|
|
1153
|
-
Rv,
|
|
1154
1149
|
(address: H160, key: BytesLike) => Promise<Result<Bytes | undefined, PalletRevivePrimitivesContractAccessError>>
|
|
1155
1150
|
>;
|
|
1156
1151
|
|
|
@@ -1167,7 +1162,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1167
1162
|
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
1168
1163
|
**/
|
|
1169
1164
|
traceBlock: GenericRuntimeApiMethod<
|
|
1170
|
-
Rv,
|
|
1171
1165
|
(
|
|
1172
1166
|
block: SpRuntimeBlock,
|
|
1173
1167
|
config: PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
@@ -1188,7 +1182,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1188
1182
|
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
1189
1183
|
**/
|
|
1190
1184
|
traceTx: GenericRuntimeApiMethod<
|
|
1191
|
-
Rv,
|
|
1192
1185
|
(
|
|
1193
1186
|
block: SpRuntimeBlock,
|
|
1194
1187
|
txIndex: number,
|
|
@@ -1206,7 +1199,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1206
1199
|
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
1207
1200
|
**/
|
|
1208
1201
|
traceCall: GenericRuntimeApiMethod<
|
|
1209
|
-
Rv,
|
|
1210
1202
|
(
|
|
1211
1203
|
tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
1212
1204
|
config: PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
@@ -1218,7 +1210,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1218
1210
|
*
|
|
1219
1211
|
* @callname: ReviveApi_block_author
|
|
1220
1212
|
**/
|
|
1221
|
-
blockAuthor: GenericRuntimeApiMethod<
|
|
1213
|
+
blockAuthor: GenericRuntimeApiMethod<() => Promise<H160 | undefined>>;
|
|
1222
1214
|
|
|
1223
1215
|
/**
|
|
1224
1216
|
* Get the H160 address associated to this account id
|
|
@@ -1226,14 +1218,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1226
1218
|
* @callname: ReviveApi_address
|
|
1227
1219
|
* @param {AccountId32Like} account_id
|
|
1228
1220
|
**/
|
|
1229
|
-
address: GenericRuntimeApiMethod<
|
|
1221
|
+
address: GenericRuntimeApiMethod<(accountId: AccountId32Like) => Promise<H160>>;
|
|
1230
1222
|
|
|
1231
1223
|
/**
|
|
1232
1224
|
* The address used to call the runtime's pallets dispatchables
|
|
1233
1225
|
*
|
|
1234
1226
|
* @callname: ReviveApi_runtime_pallets_address
|
|
1235
1227
|
**/
|
|
1236
|
-
runtimePalletsAddress: GenericRuntimeApiMethod<
|
|
1228
|
+
runtimePalletsAddress: GenericRuntimeApiMethod<() => Promise<H160>>;
|
|
1237
1229
|
|
|
1238
1230
|
/**
|
|
1239
1231
|
* The code at the specified address taking pre-compiles into account.
|
|
@@ -1241,11 +1233,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1241
1233
|
* @callname: ReviveApi_code
|
|
1242
1234
|
* @param {H160} address
|
|
1243
1235
|
**/
|
|
1244
|
-
code: GenericRuntimeApiMethod<
|
|
1236
|
+
code: GenericRuntimeApiMethod<(address: H160) => Promise<Bytes>>;
|
|
1245
1237
|
|
|
1246
1238
|
/**
|
|
1247
1239
|
* Generic runtime api call
|
|
1248
1240
|
**/
|
|
1249
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1241
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1250
1242
|
};
|
|
1251
1243
|
}
|