@dedot/chaintypes 0.193.0 → 0.195.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aleph/consts.d.ts +2 -2
- package/aleph/errors.d.ts +228 -228
- package/aleph/events.d.ts +122 -226
- package/aleph/index.d.ts +13 -17
- package/aleph/json-rpc.d.ts +3 -3
- package/aleph/query.d.ts +171 -207
- package/aleph/runtime.d.ts +47 -63
- package/aleph/tx.d.ts +377 -550
- package/aleph/view-functions.d.ts +2 -2
- package/astar/consts.d.ts +2 -2
- package/astar/errors.d.ts +431 -431
- package/astar/events.d.ts +232 -401
- package/astar/index.d.ts +13 -17
- package/astar/json-rpc.d.ts +3 -3
- package/astar/query.d.ts +243 -289
- package/astar/runtime.d.ts +59 -87
- package/astar/tx.d.ts +671 -980
- package/astar/view-functions.d.ts +2 -2
- package/basilisk/consts.d.ts +2 -2
- package/basilisk/errors.d.ts +489 -489
- package/basilisk/events.d.ts +187 -408
- package/basilisk/index.d.ts +13 -17
- package/basilisk/json-rpc.d.ts +3 -3
- package/basilisk/query.d.ts +213 -272
- package/basilisk/runtime.d.ts +27 -28
- package/basilisk/tx.d.ts +579 -842
- package/basilisk/view-functions.d.ts +2 -2
- package/hydration/consts.d.ts +47 -14
- package/hydration/errors.d.ts +827 -737
- package/hydration/events.d.ts +639 -527
- package/hydration/index.d.ts +14 -18
- package/hydration/json-rpc.d.ts +3 -3
- package/hydration/query.d.ts +530 -396
- package/hydration/runtime.d.ts +181 -89
- package/hydration/tx.d.ts +1130 -1167
- package/hydration/types.d.ts +889 -42
- package/hydration/view-functions.d.ts +2 -2
- package/kusama/consts.d.ts +2 -2
- package/kusama/errors.d.ts +571 -571
- package/kusama/events.d.ts +216 -477
- package/kusama/index.d.ts +13 -17
- package/kusama/json-rpc.d.ts +3 -3
- package/kusama/query.d.ts +360 -502
- package/kusama/runtime.d.ts +82 -131
- package/kusama/tx.d.ts +851 -1246
- package/kusama/view-functions.d.ts +7 -12
- package/kusama-asset-hub/consts.d.ts +2 -2
- package/kusama-asset-hub/errors.d.ts +653 -653
- package/kusama-asset-hub/events.d.ts +286 -629
- package/kusama-asset-hub/index.d.ts +14 -17
- package/kusama-asset-hub/json-rpc.d.ts +3 -3
- package/kusama-asset-hub/query.d.ts +316 -448
- package/kusama-asset-hub/runtime.d.ts +74 -111
- package/kusama-asset-hub/tx.d.ts +1059 -1558
- package/kusama-asset-hub/view-functions.d.ts +7 -9
- package/kusama-people/consts.d.ts +2 -2
- package/kusama-people/errors.d.ts +160 -160
- package/kusama-people/events.d.ts +89 -176
- package/kusama-people/index.d.ts +13 -17
- package/kusama-people/json-rpc.d.ts +3 -3
- package/kusama-people/query.d.ts +114 -145
- package/kusama-people/runtime.d.ts +45 -65
- package/kusama-people/tx.d.ts +246 -356
- package/kusama-people/view-functions.d.ts +3 -5
- package/moonbeam/consts.d.ts +2 -2
- package/moonbeam/errors.d.ts +478 -478
- package/moonbeam/events.d.ts +182 -426
- package/moonbeam/index.d.ts +13 -17
- package/moonbeam/json-rpc.d.ts +11 -3
- package/moonbeam/query.d.ts +234 -294
- package/moonbeam/runtime.d.ts +61 -89
- package/moonbeam/tx.d.ts +618 -901
- package/moonbeam/view-functions.d.ts +2 -2
- package/package.json +6 -3
- package/paseo/consts.d.ts +2 -2
- package/paseo/errors.d.ts +513 -513
- package/paseo/events.d.ts +197 -430
- package/paseo/index.d.ts +14 -18
- package/paseo/json-rpc.d.ts +3 -3
- package/paseo/query.d.ts +329 -450
- package/paseo/runtime.d.ts +107 -131
- package/paseo/tx.d.ts +787 -1151
- package/paseo/types.d.ts +7 -0
- package/paseo/view-functions.d.ts +7 -12
- package/paseo-asset-hub/consts.d.ts +2 -2
- package/paseo-asset-hub/errors.d.ts +605 -605
- package/paseo-asset-hub/events.d.ts +268 -600
- package/paseo-asset-hub/index.d.ts +15 -18
- package/paseo-asset-hub/json-rpc.d.ts +3 -3
- package/paseo-asset-hub/query.d.ts +293 -413
- package/paseo-asset-hub/runtime.d.ts +96 -104
- package/paseo-asset-hub/tx.d.ts +997 -1466
- package/paseo-asset-hub/types.d.ts +7 -0
- package/paseo-asset-hub/view-functions.d.ts +7 -9
- package/paseo-hydration/consts.d.ts +13 -3
- package/paseo-hydration/errors.d.ts +756 -745
- package/paseo-hydration/events.d.ts +277 -554
- package/paseo-hydration/index.d.ts +14 -18
- package/paseo-hydration/json-rpc.d.ts +3 -3
- package/paseo-hydration/query.d.ts +321 -411
- package/paseo-hydration/runtime.d.ts +95 -106
- package/paseo-hydration/tx.d.ts +923 -1226
- package/paseo-hydration/types.d.ts +91 -50
- package/paseo-hydration/view-functions.d.ts +2 -2
- package/paseo-people/consts.d.ts +2 -2
- package/paseo-people/errors.d.ts +162 -162
- package/paseo-people/events.d.ts +91 -181
- package/paseo-people/index.d.ts +14 -18
- package/paseo-people/json-rpc.d.ts +3 -3
- package/paseo-people/query.d.ts +116 -143
- package/paseo-people/runtime.d.ts +70 -65
- package/paseo-people/tx.d.ts +257 -372
- package/paseo-people/types.d.ts +7 -0
- package/paseo-people/view-functions.d.ts +3 -5
- package/polkadot/consts.d.ts +2 -2
- package/polkadot/errors.d.ts +501 -501
- package/polkadot/events.d.ts +195 -426
- package/polkadot/index.d.ts +13 -17
- package/polkadot/json-rpc.d.ts +3 -3
- package/polkadot/query.d.ts +329 -450
- package/polkadot/runtime.d.ts +83 -133
- package/polkadot/tx.d.ts +765 -1119
- package/polkadot/view-functions.d.ts +7 -12
- package/polkadot-asset-hub/consts.d.ts +2 -2
- package/polkadot-asset-hub/errors.d.ts +554 -554
- package/polkadot-asset-hub/events.d.ts +261 -585
- package/polkadot-asset-hub/index.d.ts +14 -17
- package/polkadot-asset-hub/json-rpc.d.ts +3 -3
- package/polkadot-asset-hub/query.d.ts +279 -396
- package/polkadot-asset-hub/runtime.d.ts +65 -93
- package/polkadot-asset-hub/tx.d.ts +952 -1400
- package/polkadot-asset-hub/view-functions.d.ts +7 -9
- package/polkadot-people/consts.d.ts +2 -2
- package/polkadot-people/errors.d.ts +160 -160
- package/polkadot-people/events.d.ts +89 -176
- package/polkadot-people/index.d.ts +13 -17
- package/polkadot-people/json-rpc.d.ts +3 -3
- package/polkadot-people/query.d.ts +114 -145
- package/polkadot-people/runtime.d.ts +46 -67
- package/polkadot-people/tx.d.ts +246 -356
- package/polkadot-people/view-functions.d.ts +3 -5
- package/substrate/consts.d.ts +2 -2
- package/substrate/errors.d.ts +909 -909
- package/substrate/events.d.ts +389 -794
- package/substrate/index.d.ts +14 -17
- package/substrate/json-rpc.d.ts +3 -3
- package/substrate/query.d.ts +458 -572
- package/substrate/runtime.d.ts +82 -126
- package/substrate/tx.d.ts +1317 -1936
- package/substrate/view-functions.d.ts +2 -2
- package/vara/consts.d.ts +9 -37
- package/vara/errors.d.ts +402 -382
- package/vara/events.d.ts +172 -310
- package/vara/index.d.ts +14 -18
- package/vara/json-rpc.d.ts +7 -3
- package/vara/query.d.ts +299 -331
- package/vara/runtime.d.ts +61 -79
- package/vara/tx.d.ts +573 -754
- package/vara/types.d.ts +71 -26
- package/vara/view-functions.d.ts +2 -2
- package/westend/consts.d.ts +2 -2
- package/westend/errors.d.ts +532 -532
- package/westend/events.d.ts +205 -462
- package/westend/index.d.ts +13 -17
- package/westend/json-rpc.d.ts +3 -4
- package/westend/query.d.ts +312 -434
- package/westend/runtime.d.ts +83 -135
- package/westend/tx.d.ts +807 -1179
- package/westend/view-functions.d.ts +7 -12
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/errors.d.ts +605 -605
- package/westend-asset-hub/events.d.ts +265 -614
- package/westend-asset-hub/index.d.ts +14 -17
- package/westend-asset-hub/json-rpc.d.ts +3 -3
- package/westend-asset-hub/query.d.ts +293 -418
- package/westend-asset-hub/runtime.d.ts +83 -123
- package/westend-asset-hub/tx.d.ts +918 -1348
- package/westend-asset-hub/view-functions.d.ts +8 -13
- package/westend-people/consts.d.ts +2 -2
- package/westend-people/errors.d.ts +160 -160
- package/westend-people/events.d.ts +93 -186
- package/westend-people/index.d.ts +13 -17
- package/westend-people/json-rpc.d.ts +3 -3
- package/westend-people/query.d.ts +114 -145
- package/westend-people/runtime.d.ts +46 -67
- package/westend-people/tx.d.ts +251 -363
- package/westend-people/view-functions.d.ts +3 -5
|
@@ -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,
|
|
@@ -54,7 +54,7 @@ import type {
|
|
|
54
54
|
SystemParachainsCommonApisInflationInfo,
|
|
55
55
|
} from './types.js';
|
|
56
56
|
|
|
57
|
-
export interface RuntimeApis
|
|
57
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
58
58
|
/**
|
|
59
59
|
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
60
60
|
**/
|
|
@@ -66,19 +66,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
66
66
|
*
|
|
67
67
|
* @callname: AuraApi_slot_duration
|
|
68
68
|
**/
|
|
69
|
-
slotDuration: GenericRuntimeApiMethod<
|
|
69
|
+
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* Return the current set of authorities.
|
|
73
73
|
*
|
|
74
74
|
* @callname: AuraApi_authorities
|
|
75
75
|
**/
|
|
76
|
-
authorities: GenericRuntimeApiMethod<
|
|
76
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraEd25519AppEd25519Public>>>;
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* Generic runtime api call
|
|
80
80
|
**/
|
|
81
|
-
[method: string]: GenericRuntimeApiMethod
|
|
81
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
82
82
|
};
|
|
83
83
|
/**
|
|
84
84
|
* @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
|
|
@@ -89,12 +89,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
89
89
|
*
|
|
90
90
|
* @callname: RelayParentOffsetApi_relay_parent_offset
|
|
91
91
|
**/
|
|
92
|
-
relayParentOffset: GenericRuntimeApiMethod<
|
|
92
|
+
relayParentOffset: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Generic runtime api call
|
|
96
96
|
**/
|
|
97
|
-
[method: string]: GenericRuntimeApiMethod
|
|
97
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
98
98
|
};
|
|
99
99
|
/**
|
|
100
100
|
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
@@ -116,12 +116,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
116
116
|
* @param {H256} included_hash
|
|
117
117
|
* @param {SpConsensusSlotsSlot} slot
|
|
118
118
|
**/
|
|
119
|
-
canBuildUpon: GenericRuntimeApiMethod<
|
|
119
|
+
canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* Generic runtime api call
|
|
123
123
|
**/
|
|
124
|
-
[method: string]: GenericRuntimeApiMethod
|
|
124
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
125
125
|
};
|
|
126
126
|
/**
|
|
127
127
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
@@ -132,7 +132,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
132
132
|
*
|
|
133
133
|
* @callname: Core_version
|
|
134
134
|
**/
|
|
135
|
-
version: GenericRuntimeApiMethod<
|
|
135
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* Execute the given block.
|
|
@@ -140,7 +140,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
140
140
|
* @callname: Core_execute_block
|
|
141
141
|
* @param {SpRuntimeBlock} block
|
|
142
142
|
**/
|
|
143
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
143
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -148,12 +148,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
148
148
|
* @callname: Core_initialize_block
|
|
149
149
|
* @param {Header} header
|
|
150
150
|
**/
|
|
151
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
151
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* Generic runtime api call
|
|
155
155
|
**/
|
|
156
|
-
[method: string]: GenericRuntimeApiMethod
|
|
156
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
157
157
|
};
|
|
158
158
|
/**
|
|
159
159
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -164,7 +164,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
164
164
|
*
|
|
165
165
|
* @callname: Metadata_metadata
|
|
166
166
|
**/
|
|
167
|
-
metadata: GenericRuntimeApiMethod<
|
|
167
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
170
|
* Returns the metadata at a given version.
|
|
@@ -175,7 +175,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
175
175
|
* @callname: Metadata_metadata_at_version
|
|
176
176
|
* @param {number} version
|
|
177
177
|
**/
|
|
178
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
178
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* Returns the supported metadata versions.
|
|
@@ -184,12 +184,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
184
184
|
*
|
|
185
185
|
* @callname: Metadata_metadata_versions
|
|
186
186
|
**/
|
|
187
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
187
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* Generic runtime api call
|
|
191
191
|
**/
|
|
192
|
-
[method: string]: GenericRuntimeApiMethod
|
|
192
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
193
193
|
};
|
|
194
194
|
/**
|
|
195
195
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -205,7 +205,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
205
205
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
206
206
|
**/
|
|
207
207
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
208
|
-
Rv,
|
|
209
208
|
(
|
|
210
209
|
extrinsic: UncheckedExtrinsicLike,
|
|
211
210
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -216,7 +215,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
216
215
|
*
|
|
217
216
|
* @callname: BlockBuilder_finalize_block
|
|
218
217
|
**/
|
|
219
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
218
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
220
219
|
|
|
221
220
|
/**
|
|
222
221
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -225,7 +224,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
225
224
|
* @param {SpInherentsInherentData} inherent
|
|
226
225
|
**/
|
|
227
226
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
228
|
-
Rv,
|
|
229
227
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
230
228
|
>;
|
|
231
229
|
|
|
@@ -237,14 +235,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
237
235
|
* @param {SpInherentsInherentData} data
|
|
238
236
|
**/
|
|
239
237
|
checkInherents: GenericRuntimeApiMethod<
|
|
240
|
-
Rv,
|
|
241
238
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
242
239
|
>;
|
|
243
240
|
|
|
244
241
|
/**
|
|
245
242
|
* Generic runtime api call
|
|
246
243
|
**/
|
|
247
|
-
[method: string]: GenericRuntimeApiMethod
|
|
244
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
248
245
|
};
|
|
249
246
|
/**
|
|
250
247
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -267,7 +264,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
267
264
|
* @param {H256} block_hash
|
|
268
265
|
**/
|
|
269
266
|
validateTransaction: GenericRuntimeApiMethod<
|
|
270
|
-
Rv,
|
|
271
267
|
(
|
|
272
268
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
273
269
|
tx: UncheckedExtrinsicLike,
|
|
@@ -280,7 +276,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
280
276
|
/**
|
|
281
277
|
* Generic runtime api call
|
|
282
278
|
**/
|
|
283
|
-
[method: string]: GenericRuntimeApiMethod
|
|
279
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
284
280
|
};
|
|
285
281
|
/**
|
|
286
282
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -292,12 +288,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
292
288
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
293
289
|
* @param {Header} header
|
|
294
290
|
**/
|
|
295
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
291
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
296
292
|
|
|
297
293
|
/**
|
|
298
294
|
* Generic runtime api call
|
|
299
295
|
**/
|
|
300
|
-
[method: string]: GenericRuntimeApiMethod
|
|
296
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
301
297
|
};
|
|
302
298
|
/**
|
|
303
299
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -315,7 +311,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
315
311
|
* @callname: SessionKeys_generate_session_keys
|
|
316
312
|
* @param {BytesLike | undefined} seed
|
|
317
313
|
**/
|
|
318
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
314
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
319
315
|
|
|
320
316
|
/**
|
|
321
317
|
* Decode the given public session keys.
|
|
@@ -326,14 +322,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
326
322
|
* @param {BytesLike} encoded
|
|
327
323
|
**/
|
|
328
324
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
329
|
-
Rv,
|
|
330
325
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
331
326
|
>;
|
|
332
327
|
|
|
333
328
|
/**
|
|
334
329
|
* Generic runtime api call
|
|
335
330
|
**/
|
|
336
|
-
[method: string]: GenericRuntimeApiMethod
|
|
331
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
337
332
|
};
|
|
338
333
|
/**
|
|
339
334
|
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
@@ -347,7 +342,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
347
342
|
* @param {BytesLike} input
|
|
348
343
|
**/
|
|
349
344
|
executeViewFunction: GenericRuntimeApiMethod<
|
|
350
|
-
Rv,
|
|
351
345
|
(
|
|
352
346
|
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
353
347
|
input: BytesLike,
|
|
@@ -357,7 +351,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
357
351
|
/**
|
|
358
352
|
* Generic runtime api call
|
|
359
353
|
**/
|
|
360
|
-
[method: string]: GenericRuntimeApiMethod
|
|
354
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
361
355
|
};
|
|
362
356
|
/**
|
|
363
357
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -369,12 +363,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
369
363
|
* @callname: AccountNonceApi_account_nonce
|
|
370
364
|
* @param {AccountId32Like} account
|
|
371
365
|
**/
|
|
372
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
366
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
373
367
|
|
|
374
368
|
/**
|
|
375
369
|
* Generic runtime api call
|
|
376
370
|
**/
|
|
377
|
-
[method: string]: GenericRuntimeApiMethod
|
|
371
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
378
372
|
};
|
|
379
373
|
/**
|
|
380
374
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -387,7 +381,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
387
381
|
* @param {number} len
|
|
388
382
|
**/
|
|
389
383
|
queryInfo: GenericRuntimeApiMethod<
|
|
390
|
-
Rv,
|
|
391
384
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
392
385
|
>;
|
|
393
386
|
|
|
@@ -398,7 +391,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
398
391
|
* @param {number} len
|
|
399
392
|
**/
|
|
400
393
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
401
|
-
Rv,
|
|
402
394
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
403
395
|
>;
|
|
404
396
|
|
|
@@ -407,19 +399,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
407
399
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
408
400
|
* @param {SpWeightsWeightV2Weight} weight
|
|
409
401
|
**/
|
|
410
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
402
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
411
403
|
|
|
412
404
|
/**
|
|
413
405
|
*
|
|
414
406
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
415
407
|
* @param {number} length
|
|
416
408
|
**/
|
|
417
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
409
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
418
410
|
|
|
419
411
|
/**
|
|
420
412
|
* Generic runtime api call
|
|
421
413
|
**/
|
|
422
|
-
[method: string]: GenericRuntimeApiMethod
|
|
414
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
423
415
|
};
|
|
424
416
|
/**
|
|
425
417
|
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
@@ -433,7 +425,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
433
425
|
* @param {number} len
|
|
434
426
|
**/
|
|
435
427
|
queryCallInfo: GenericRuntimeApiMethod<
|
|
436
|
-
Rv,
|
|
437
428
|
(
|
|
438
429
|
call: AssetHubPolkadotRuntimeRuntimeCallLike,
|
|
439
430
|
len: number,
|
|
@@ -448,7 +439,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
448
439
|
* @param {number} len
|
|
449
440
|
**/
|
|
450
441
|
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
451
|
-
Rv,
|
|
452
442
|
(call: AssetHubPolkadotRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
453
443
|
>;
|
|
454
444
|
|
|
@@ -458,7 +448,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
458
448
|
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
459
449
|
* @param {SpWeightsWeightV2Weight} weight
|
|
460
450
|
**/
|
|
461
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
451
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
462
452
|
|
|
463
453
|
/**
|
|
464
454
|
* Query the output of the current `LengthToFee` given some input.
|
|
@@ -466,12 +456,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
466
456
|
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
467
457
|
* @param {number} length
|
|
468
458
|
**/
|
|
469
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
459
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
470
460
|
|
|
471
461
|
/**
|
|
472
462
|
* Generic runtime api call
|
|
473
463
|
**/
|
|
474
|
-
[method: string]: GenericRuntimeApiMethod
|
|
464
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
475
465
|
};
|
|
476
466
|
/**
|
|
477
467
|
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
@@ -488,7 +478,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
488
478
|
* @param {number} xcm_version
|
|
489
479
|
**/
|
|
490
480
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
491
|
-
Rv,
|
|
492
481
|
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
493
482
|
>;
|
|
494
483
|
|
|
@@ -503,7 +492,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
503
492
|
* @param {XcmVersionedXcm} message
|
|
504
493
|
**/
|
|
505
494
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
506
|
-
Rv,
|
|
507
495
|
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
508
496
|
>;
|
|
509
497
|
|
|
@@ -520,7 +508,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
520
508
|
* @param {XcmVersionedAssetId} asset
|
|
521
509
|
**/
|
|
522
510
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
523
|
-
Rv,
|
|
524
511
|
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
525
512
|
>;
|
|
526
513
|
|
|
@@ -539,7 +526,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
539
526
|
* @param {XcmVersionedXcm} message
|
|
540
527
|
**/
|
|
541
528
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
542
|
-
Rv,
|
|
543
529
|
(
|
|
544
530
|
destination: XcmVersionedLocation,
|
|
545
531
|
message: XcmVersionedXcm,
|
|
@@ -549,7 +535,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
549
535
|
/**
|
|
550
536
|
* Generic runtime api call
|
|
551
537
|
**/
|
|
552
|
-
[method: string]: GenericRuntimeApiMethod
|
|
538
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
553
539
|
};
|
|
554
540
|
/**
|
|
555
541
|
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
@@ -564,7 +550,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
564
550
|
* @param {number} result_xcms_version
|
|
565
551
|
**/
|
|
566
552
|
dryRunCall: GenericRuntimeApiMethod<
|
|
567
|
-
Rv,
|
|
568
553
|
(
|
|
569
554
|
origin: AssetHubPolkadotRuntimeOriginCaller,
|
|
570
555
|
call: AssetHubPolkadotRuntimeRuntimeCallLike,
|
|
@@ -580,7 +565,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
580
565
|
* @param {XcmVersionedXcm} xcm
|
|
581
566
|
**/
|
|
582
567
|
dryRunXcm: GenericRuntimeApiMethod<
|
|
583
|
-
Rv,
|
|
584
568
|
(
|
|
585
569
|
originLocation: XcmVersionedLocation,
|
|
586
570
|
xcm: XcmVersionedXcm,
|
|
@@ -590,7 +574,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
590
574
|
/**
|
|
591
575
|
* Generic runtime api call
|
|
592
576
|
**/
|
|
593
|
-
[method: string]: GenericRuntimeApiMethod
|
|
577
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
594
578
|
};
|
|
595
579
|
/**
|
|
596
580
|
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
@@ -603,14 +587,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
603
587
|
* @param {XcmVersionedLocation} location
|
|
604
588
|
**/
|
|
605
589
|
convertLocation: GenericRuntimeApiMethod<
|
|
606
|
-
Rv,
|
|
607
590
|
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
608
591
|
>;
|
|
609
592
|
|
|
610
593
|
/**
|
|
611
594
|
* Generic runtime api call
|
|
612
595
|
**/
|
|
613
|
-
[method: string]: GenericRuntimeApiMethod
|
|
596
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
614
597
|
};
|
|
615
598
|
/**
|
|
616
599
|
* @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
|
|
@@ -628,7 +611,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
628
611
|
* @param {XcmVersionedLocation} location
|
|
629
612
|
**/
|
|
630
613
|
isTrustedReserve: GenericRuntimeApiMethod<
|
|
631
|
-
Rv,
|
|
632
614
|
(
|
|
633
615
|
asset: XcmVersionedAsset,
|
|
634
616
|
location: XcmVersionedLocation,
|
|
@@ -647,7 +629,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
647
629
|
* @param {XcmVersionedLocation} location
|
|
648
630
|
**/
|
|
649
631
|
isTrustedTeleporter: GenericRuntimeApiMethod<
|
|
650
|
-
Rv,
|
|
651
632
|
(
|
|
652
633
|
asset: XcmVersionedAsset,
|
|
653
634
|
location: XcmVersionedLocation,
|
|
@@ -657,7 +638,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
657
638
|
/**
|
|
658
639
|
* Generic runtime api call
|
|
659
640
|
**/
|
|
660
|
-
[method: string]: GenericRuntimeApiMethod
|
|
641
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
661
642
|
};
|
|
662
643
|
/**
|
|
663
644
|
* @runtimeapi: AuthorizedAliasersApi - 0x12c8e3d4d7e06de0
|
|
@@ -670,7 +651,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
670
651
|
* @param {XcmVersionedLocation} target
|
|
671
652
|
**/
|
|
672
653
|
authorizedAliasers: GenericRuntimeApiMethod<
|
|
673
|
-
Rv,
|
|
674
654
|
(
|
|
675
655
|
target: XcmVersionedLocation,
|
|
676
656
|
) => Promise<Result<Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>>
|
|
@@ -684,7 +664,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
684
664
|
* @param {XcmVersionedLocation} target
|
|
685
665
|
**/
|
|
686
666
|
isAuthorizedAlias: GenericRuntimeApiMethod<
|
|
687
|
-
Rv,
|
|
688
667
|
(
|
|
689
668
|
origin: XcmVersionedLocation,
|
|
690
669
|
target: XcmVersionedLocation,
|
|
@@ -694,7 +673,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
694
673
|
/**
|
|
695
674
|
* Generic runtime api call
|
|
696
675
|
**/
|
|
697
|
-
[method: string]: GenericRuntimeApiMethod
|
|
676
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
698
677
|
};
|
|
699
678
|
/**
|
|
700
679
|
* @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
|
|
@@ -707,14 +686,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
707
686
|
* @param {AccountId32Like} account
|
|
708
687
|
**/
|
|
709
688
|
queryAccountBalances: GenericRuntimeApiMethod<
|
|
710
|
-
Rv,
|
|
711
689
|
(account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
|
|
712
690
|
>;
|
|
713
691
|
|
|
714
692
|
/**
|
|
715
693
|
* Generic runtime api call
|
|
716
694
|
**/
|
|
717
|
-
[method: string]: GenericRuntimeApiMethod
|
|
695
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
718
696
|
};
|
|
719
697
|
/**
|
|
720
698
|
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
@@ -729,12 +707,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
729
707
|
* @callname: CollectCollationInfo_collect_collation_info
|
|
730
708
|
* @param {Header} header
|
|
731
709
|
**/
|
|
732
|
-
collectCollationInfo: GenericRuntimeApiMethod<
|
|
710
|
+
collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
733
711
|
|
|
734
712
|
/**
|
|
735
713
|
* Generic runtime api call
|
|
736
714
|
**/
|
|
737
|
-
[method: string]: GenericRuntimeApiMethod
|
|
715
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
738
716
|
};
|
|
739
717
|
/**
|
|
740
718
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -755,7 +733,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
755
733
|
* @callname: GenesisBuilder_build_state
|
|
756
734
|
* @param {BytesLike} json
|
|
757
735
|
**/
|
|
758
|
-
buildState: GenericRuntimeApiMethod<
|
|
736
|
+
buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
759
737
|
|
|
760
738
|
/**
|
|
761
739
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
@@ -776,7 +754,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
776
754
|
* @callname: GenesisBuilder_get_preset
|
|
777
755
|
* @param {string | undefined} id
|
|
778
756
|
**/
|
|
779
|
-
getPreset: GenericRuntimeApiMethod<
|
|
757
|
+
getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
780
758
|
|
|
781
759
|
/**
|
|
782
760
|
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
@@ -786,12 +764,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
786
764
|
*
|
|
787
765
|
* @callname: GenesisBuilder_preset_names
|
|
788
766
|
**/
|
|
789
|
-
presetNames: GenericRuntimeApiMethod<
|
|
767
|
+
presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
|
|
790
768
|
|
|
791
769
|
/**
|
|
792
770
|
* Generic runtime api call
|
|
793
771
|
**/
|
|
794
|
-
[method: string]: GenericRuntimeApiMethod
|
|
772
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
795
773
|
};
|
|
796
774
|
/**
|
|
797
775
|
* @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
|
|
@@ -810,7 +788,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
810
788
|
* @param {boolean} include_fee
|
|
811
789
|
**/
|
|
812
790
|
quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
|
|
813
|
-
Rv,
|
|
814
791
|
(
|
|
815
792
|
asset1: StagingXcmV5Location,
|
|
816
793
|
asset2: StagingXcmV5Location,
|
|
@@ -832,7 +809,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
832
809
|
* @param {boolean} include_fee
|
|
833
810
|
**/
|
|
834
811
|
quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
|
|
835
|
-
Rv,
|
|
836
812
|
(
|
|
837
813
|
asset1: StagingXcmV5Location,
|
|
838
814
|
asset2: StagingXcmV5Location,
|
|
@@ -849,14 +825,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
849
825
|
* @param {StagingXcmV5Location} asset2
|
|
850
826
|
**/
|
|
851
827
|
getReserves: GenericRuntimeApiMethod<
|
|
852
|
-
Rv,
|
|
853
828
|
(asset1: StagingXcmV5Location, asset2: StagingXcmV5Location) => Promise<[bigint, bigint] | undefined>
|
|
854
829
|
>;
|
|
855
830
|
|
|
856
831
|
/**
|
|
857
832
|
* Generic runtime api call
|
|
858
833
|
**/
|
|
859
|
-
[method: string]: GenericRuntimeApiMethod
|
|
834
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
860
835
|
};
|
|
861
836
|
/**
|
|
862
837
|
* @runtimeapi: GetParachainInfo - 0xa2ddb6a58477bf63
|
|
@@ -867,12 +842,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
867
842
|
*
|
|
868
843
|
* @callname: GetParachainInfo_parachain_id
|
|
869
844
|
**/
|
|
870
|
-
parachainId: GenericRuntimeApiMethod<
|
|
845
|
+
parachainId: GenericRuntimeApiMethod<() => Promise<PolkadotParachainPrimitivesPrimitivesId>>;
|
|
871
846
|
|
|
872
847
|
/**
|
|
873
848
|
* Generic runtime api call
|
|
874
849
|
**/
|
|
875
|
-
[method: string]: GenericRuntimeApiMethod
|
|
850
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
876
851
|
};
|
|
877
852
|
/**
|
|
878
853
|
* @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
|
|
@@ -884,7 +859,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
884
859
|
* @callname: NominationPoolsApi_pending_rewards
|
|
885
860
|
* @param {AccountId32Like} who
|
|
886
861
|
**/
|
|
887
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
862
|
+
pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
888
863
|
|
|
889
864
|
/**
|
|
890
865
|
* Returns the equivalent balance of `points` for a given pool.
|
|
@@ -893,7 +868,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
893
868
|
* @param {number} pool_id
|
|
894
869
|
* @param {bigint} points
|
|
895
870
|
**/
|
|
896
|
-
pointsToBalance: GenericRuntimeApiMethod<
|
|
871
|
+
pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
|
|
897
872
|
|
|
898
873
|
/**
|
|
899
874
|
* Returns the equivalent points of `new_funds` for a given pool.
|
|
@@ -902,7 +877,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
902
877
|
* @param {number} pool_id
|
|
903
878
|
* @param {bigint} new_funds
|
|
904
879
|
**/
|
|
905
|
-
balanceToPoints: GenericRuntimeApiMethod<
|
|
880
|
+
balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
|
|
906
881
|
|
|
907
882
|
/**
|
|
908
883
|
* Returns the pending slash for a given pool.
|
|
@@ -910,7 +885,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
910
885
|
* @callname: NominationPoolsApi_pool_pending_slash
|
|
911
886
|
* @param {number} pool_id
|
|
912
887
|
**/
|
|
913
|
-
poolPendingSlash: GenericRuntimeApiMethod<
|
|
888
|
+
poolPendingSlash: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
914
889
|
|
|
915
890
|
/**
|
|
916
891
|
* Returns the pending slash for a given pool member.
|
|
@@ -921,7 +896,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
921
896
|
* @callname: NominationPoolsApi_member_pending_slash
|
|
922
897
|
* @param {AccountId32Like} member
|
|
923
898
|
**/
|
|
924
|
-
memberPendingSlash: GenericRuntimeApiMethod<
|
|
899
|
+
memberPendingSlash: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<bigint>>;
|
|
925
900
|
|
|
926
901
|
/**
|
|
927
902
|
* Returns true if the pool with `pool_id` needs migration.
|
|
@@ -936,7 +911,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
936
911
|
* @callname: NominationPoolsApi_pool_needs_delegate_migration
|
|
937
912
|
* @param {number} pool_id
|
|
938
913
|
**/
|
|
939
|
-
poolNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
914
|
+
poolNeedsDelegateMigration: GenericRuntimeApiMethod<(poolId: number) => Promise<boolean>>;
|
|
940
915
|
|
|
941
916
|
/**
|
|
942
917
|
* Returns true if the delegated funds of the pool `member` needs migration.
|
|
@@ -950,7 +925,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
950
925
|
* @callname: NominationPoolsApi_member_needs_delegate_migration
|
|
951
926
|
* @param {AccountId32Like} member
|
|
952
927
|
**/
|
|
953
|
-
memberNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
928
|
+
memberNeedsDelegateMigration: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<boolean>>;
|
|
954
929
|
|
|
955
930
|
/**
|
|
956
931
|
* Returns the total contribution of a pool member including any balance that is unbonding.
|
|
@@ -958,7 +933,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
958
933
|
* @callname: NominationPoolsApi_member_total_balance
|
|
959
934
|
* @param {AccountId32Like} who
|
|
960
935
|
**/
|
|
961
|
-
memberTotalBalance: GenericRuntimeApiMethod<
|
|
936
|
+
memberTotalBalance: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
962
937
|
|
|
963
938
|
/**
|
|
964
939
|
* Total balance contributed to the pool.
|
|
@@ -966,7 +941,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
966
941
|
* @callname: NominationPoolsApi_pool_balance
|
|
967
942
|
* @param {number} pool_id
|
|
968
943
|
**/
|
|
969
|
-
poolBalance: GenericRuntimeApiMethod<
|
|
944
|
+
poolBalance: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
970
945
|
|
|
971
946
|
/**
|
|
972
947
|
* Returns the bonded account and reward account associated with the pool_id.
|
|
@@ -974,12 +949,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
974
949
|
* @callname: NominationPoolsApi_pool_accounts
|
|
975
950
|
* @param {number} pool_id
|
|
976
951
|
**/
|
|
977
|
-
poolAccounts: GenericRuntimeApiMethod<
|
|
952
|
+
poolAccounts: GenericRuntimeApiMethod<(poolId: number) => Promise<[AccountId32, AccountId32]>>;
|
|
978
953
|
|
|
979
954
|
/**
|
|
980
955
|
* Generic runtime api call
|
|
981
956
|
**/
|
|
982
|
-
[method: string]: GenericRuntimeApiMethod
|
|
957
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
983
958
|
};
|
|
984
959
|
/**
|
|
985
960
|
* @runtimeapi: StakingApi - 0x18ef58a3b67ba770
|
|
@@ -991,7 +966,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
991
966
|
* @callname: StakingApi_nominations_quota
|
|
992
967
|
* @param {bigint} balance
|
|
993
968
|
**/
|
|
994
|
-
nominationsQuota: GenericRuntimeApiMethod<
|
|
969
|
+
nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
|
|
995
970
|
|
|
996
971
|
/**
|
|
997
972
|
* Returns the page count of exposures for a validator `account` in a given era.
|
|
@@ -1000,7 +975,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1000
975
|
* @param {number} era
|
|
1001
976
|
* @param {AccountId32Like} account
|
|
1002
977
|
**/
|
|
1003
|
-
erasStakersPageCount: GenericRuntimeApiMethod<
|
|
978
|
+
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
1004
979
|
|
|
1005
980
|
/**
|
|
1006
981
|
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
@@ -1009,12 +984,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1009
984
|
* @param {number} era
|
|
1010
985
|
* @param {AccountId32Like} account
|
|
1011
986
|
**/
|
|
1012
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
987
|
+
pendingRewards: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<boolean>>;
|
|
1013
988
|
|
|
1014
989
|
/**
|
|
1015
990
|
* Generic runtime api call
|
|
1016
991
|
**/
|
|
1017
|
-
[method: string]: GenericRuntimeApiMethod
|
|
992
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1018
993
|
};
|
|
1019
994
|
/**
|
|
1020
995
|
* @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
|
|
@@ -1028,14 +1003,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1028
1003
|
*
|
|
1029
1004
|
* @callname: Inflation_experimental_issuance_prediction_info
|
|
1030
1005
|
**/
|
|
1031
|
-
experimentalIssuancePredictionInfo: GenericRuntimeApiMethod<
|
|
1032
|
-
Rv,
|
|
1033
|
-
() => Promise<SystemParachainsCommonApisInflationInfo>
|
|
1034
|
-
>;
|
|
1006
|
+
experimentalIssuancePredictionInfo: GenericRuntimeApiMethod<() => Promise<SystemParachainsCommonApisInflationInfo>>;
|
|
1035
1007
|
|
|
1036
1008
|
/**
|
|
1037
1009
|
* Generic runtime api call
|
|
1038
1010
|
**/
|
|
1039
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1011
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1040
1012
|
};
|
|
1041
1013
|
}
|