@dedot/chaintypes 0.194.0 → 0.196.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aleph/consts.d.ts +2 -2
- package/aleph/errors.d.ts +228 -228
- package/aleph/events.d.ts +122 -226
- package/aleph/index.d.ts +15 -17
- package/aleph/json-rpc.d.ts +3 -3
- package/aleph/query.d.ts +171 -207
- package/aleph/runtime.d.ts +47 -63
- package/aleph/tx.d.ts +377 -550
- package/aleph/view-functions.d.ts +2 -2
- package/astar/consts.d.ts +2 -2
- package/astar/errors.d.ts +431 -431
- package/astar/events.d.ts +232 -401
- package/astar/index.d.ts +15 -17
- package/astar/json-rpc.d.ts +3 -3
- package/astar/query.d.ts +243 -289
- package/astar/runtime.d.ts +59 -87
- package/astar/tx.d.ts +671 -980
- package/astar/view-functions.d.ts +2 -2
- package/basilisk/consts.d.ts +2 -2
- package/basilisk/errors.d.ts +489 -489
- package/basilisk/events.d.ts +187 -408
- package/basilisk/index.d.ts +15 -17
- package/basilisk/json-rpc.d.ts +3 -3
- package/basilisk/query.d.ts +213 -272
- package/basilisk/runtime.d.ts +27 -28
- package/basilisk/tx.d.ts +579 -842
- package/basilisk/view-functions.d.ts +2 -2
- package/hydration/consts.d.ts +47 -14
- package/hydration/errors.d.ts +827 -737
- package/hydration/events.d.ts +639 -527
- package/hydration/index.d.ts +16 -18
- package/hydration/json-rpc.d.ts +3 -3
- package/hydration/query.d.ts +530 -396
- package/hydration/runtime.d.ts +181 -89
- package/hydration/tx.d.ts +1130 -1167
- package/hydration/types.d.ts +889 -42
- package/hydration/view-functions.d.ts +2 -2
- package/kusama/consts.d.ts +2 -2
- package/kusama/errors.d.ts +571 -571
- package/kusama/events.d.ts +216 -477
- package/kusama/index.d.ts +15 -17
- package/kusama/json-rpc.d.ts +3 -3
- package/kusama/query.d.ts +360 -502
- package/kusama/runtime.d.ts +82 -131
- package/kusama/tx.d.ts +851 -1246
- package/kusama/view-functions.d.ts +7 -12
- package/kusama-asset-hub/consts.d.ts +2 -2
- package/kusama-asset-hub/errors.d.ts +653 -653
- package/kusama-asset-hub/events.d.ts +286 -629
- package/kusama-asset-hub/index.d.ts +16 -17
- package/kusama-asset-hub/json-rpc.d.ts +3 -3
- package/kusama-asset-hub/query.d.ts +316 -448
- package/kusama-asset-hub/runtime.d.ts +74 -111
- package/kusama-asset-hub/tx.d.ts +1059 -1558
- package/kusama-asset-hub/view-functions.d.ts +7 -9
- package/kusama-people/consts.d.ts +2 -2
- package/kusama-people/errors.d.ts +160 -160
- package/kusama-people/events.d.ts +89 -176
- package/kusama-people/index.d.ts +15 -17
- package/kusama-people/json-rpc.d.ts +3 -3
- package/kusama-people/query.d.ts +114 -145
- package/kusama-people/runtime.d.ts +45 -65
- package/kusama-people/tx.d.ts +246 -356
- package/kusama-people/view-functions.d.ts +3 -5
- package/moonbeam/consts.d.ts +2 -2
- package/moonbeam/errors.d.ts +478 -478
- package/moonbeam/events.d.ts +182 -426
- package/moonbeam/index.d.ts +15 -17
- package/moonbeam/json-rpc.d.ts +11 -3
- package/moonbeam/query.d.ts +234 -294
- package/moonbeam/runtime.d.ts +61 -89
- package/moonbeam/tx.d.ts +618 -901
- package/moonbeam/view-functions.d.ts +2 -2
- package/package.json +6 -3
- package/paseo/consts.d.ts +2 -2
- package/paseo/errors.d.ts +513 -513
- package/paseo/events.d.ts +197 -430
- package/paseo/index.d.ts +16 -18
- package/paseo/json-rpc.d.ts +3 -3
- package/paseo/query.d.ts +329 -450
- package/paseo/runtime.d.ts +107 -131
- package/paseo/tx.d.ts +787 -1151
- package/paseo/types.d.ts +7 -0
- package/paseo/view-functions.d.ts +7 -12
- package/paseo-asset-hub/consts.d.ts +2 -2
- package/paseo-asset-hub/errors.d.ts +605 -605
- package/paseo-asset-hub/events.d.ts +268 -600
- package/paseo-asset-hub/index.d.ts +17 -18
- package/paseo-asset-hub/json-rpc.d.ts +3 -3
- package/paseo-asset-hub/query.d.ts +293 -413
- package/paseo-asset-hub/runtime.d.ts +96 -104
- package/paseo-asset-hub/tx.d.ts +997 -1466
- package/paseo-asset-hub/types.d.ts +7 -0
- package/paseo-asset-hub/view-functions.d.ts +7 -9
- package/paseo-hydration/consts.d.ts +13 -3
- package/paseo-hydration/errors.d.ts +756 -745
- package/paseo-hydration/events.d.ts +277 -554
- package/paseo-hydration/index.d.ts +16 -18
- package/paseo-hydration/json-rpc.d.ts +3 -3
- package/paseo-hydration/query.d.ts +321 -411
- package/paseo-hydration/runtime.d.ts +95 -106
- package/paseo-hydration/tx.d.ts +923 -1226
- package/paseo-hydration/types.d.ts +91 -50
- package/paseo-hydration/view-functions.d.ts +2 -2
- package/paseo-people/consts.d.ts +2 -2
- package/paseo-people/errors.d.ts +162 -162
- package/paseo-people/events.d.ts +91 -181
- package/paseo-people/index.d.ts +16 -18
- package/paseo-people/json-rpc.d.ts +3 -3
- package/paseo-people/query.d.ts +116 -143
- package/paseo-people/runtime.d.ts +70 -65
- package/paseo-people/tx.d.ts +257 -372
- package/paseo-people/types.d.ts +7 -0
- package/paseo-people/view-functions.d.ts +3 -5
- package/polkadot/consts.d.ts +2 -2
- package/polkadot/errors.d.ts +501 -501
- package/polkadot/events.d.ts +195 -426
- package/polkadot/index.d.ts +15 -17
- package/polkadot/json-rpc.d.ts +3 -3
- package/polkadot/query.d.ts +329 -450
- package/polkadot/runtime.d.ts +83 -133
- package/polkadot/tx.d.ts +765 -1119
- package/polkadot/view-functions.d.ts +7 -12
- package/polkadot-asset-hub/consts.d.ts +2 -2
- package/polkadot-asset-hub/errors.d.ts +554 -554
- package/polkadot-asset-hub/events.d.ts +261 -585
- package/polkadot-asset-hub/index.d.ts +16 -17
- package/polkadot-asset-hub/json-rpc.d.ts +3 -3
- package/polkadot-asset-hub/query.d.ts +279 -396
- package/polkadot-asset-hub/runtime.d.ts +65 -93
- package/polkadot-asset-hub/tx.d.ts +952 -1400
- package/polkadot-asset-hub/view-functions.d.ts +7 -9
- package/polkadot-people/consts.d.ts +2 -2
- package/polkadot-people/errors.d.ts +160 -160
- package/polkadot-people/events.d.ts +89 -176
- package/polkadot-people/index.d.ts +15 -17
- package/polkadot-people/json-rpc.d.ts +3 -3
- package/polkadot-people/query.d.ts +114 -145
- package/polkadot-people/runtime.d.ts +46 -67
- package/polkadot-people/tx.d.ts +246 -356
- package/polkadot-people/view-functions.d.ts +3 -5
- package/substrate/consts.d.ts +2 -2
- package/substrate/errors.d.ts +909 -909
- package/substrate/events.d.ts +389 -794
- package/substrate/index.d.ts +16 -17
- package/substrate/json-rpc.d.ts +3 -3
- package/substrate/query.d.ts +458 -572
- package/substrate/runtime.d.ts +82 -126
- package/substrate/tx.d.ts +1317 -1936
- package/substrate/view-functions.d.ts +2 -2
- package/vara/consts.d.ts +9 -37
- package/vara/errors.d.ts +402 -382
- package/vara/events.d.ts +172 -310
- package/vara/index.d.ts +16 -18
- package/vara/json-rpc.d.ts +7 -3
- package/vara/query.d.ts +299 -331
- package/vara/runtime.d.ts +61 -79
- package/vara/tx.d.ts +573 -754
- package/vara/types.d.ts +71 -26
- package/vara/view-functions.d.ts +2 -2
- package/westend/consts.d.ts +2 -2
- package/westend/errors.d.ts +532 -532
- package/westend/events.d.ts +205 -462
- package/westend/index.d.ts +15 -17
- package/westend/json-rpc.d.ts +3 -3
- package/westend/query.d.ts +312 -434
- package/westend/runtime.d.ts +83 -135
- package/westend/tx.d.ts +807 -1179
- package/westend/view-functions.d.ts +7 -12
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/errors.d.ts +605 -605
- package/westend-asset-hub/events.d.ts +265 -614
- package/westend-asset-hub/index.d.ts +16 -17
- package/westend-asset-hub/json-rpc.d.ts +3 -3
- package/westend-asset-hub/query.d.ts +293 -418
- package/westend-asset-hub/runtime.d.ts +83 -123
- package/westend-asset-hub/tx.d.ts +918 -1348
- package/westend-asset-hub/view-functions.d.ts +8 -13
- package/westend-people/consts.d.ts +2 -2
- package/westend-people/errors.d.ts +160 -160
- package/westend-people/events.d.ts +93 -186
- package/westend-people/index.d.ts +15 -17
- package/westend-people/json-rpc.d.ts +3 -3
- package/westend-people/query.d.ts +114 -145
- package/westend-people/runtime.d.ts +46 -67
- package/westend-people/tx.d.ts +251 -363
- package/westend-people/view-functions.d.ts +3 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericRuntimeApis, GenericRuntimeApiMethod
|
|
3
|
+
import type { GenericRuntimeApis, GenericRuntimeApiMethod } from 'dedot/types';
|
|
4
4
|
import type {
|
|
5
5
|
H256,
|
|
6
6
|
RuntimeVersion,
|
|
@@ -69,7 +69,7 @@ import type {
|
|
|
69
69
|
PalletRevivePrimitivesBalanceConversionError,
|
|
70
70
|
} from './types.js';
|
|
71
71
|
|
|
72
|
-
export interface RuntimeApis
|
|
72
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
73
73
|
/**
|
|
74
74
|
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
75
75
|
**/
|
|
@@ -81,19 +81,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
81
81
|
*
|
|
82
82
|
* @callname: AuraApi_slot_duration
|
|
83
83
|
**/
|
|
84
|
-
slotDuration: GenericRuntimeApiMethod<
|
|
84
|
+
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
* Return the current set of authorities.
|
|
88
88
|
*
|
|
89
89
|
* @callname: AuraApi_authorities
|
|
90
90
|
**/
|
|
91
|
-
authorities: GenericRuntimeApiMethod<
|
|
91
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* Generic runtime api call
|
|
95
95
|
**/
|
|
96
|
-
[method: string]: GenericRuntimeApiMethod
|
|
96
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
97
97
|
};
|
|
98
98
|
/**
|
|
99
99
|
* @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
|
|
@@ -104,12 +104,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
104
104
|
*
|
|
105
105
|
* @callname: RelayParentOffsetApi_relay_parent_offset
|
|
106
106
|
**/
|
|
107
|
-
relayParentOffset: GenericRuntimeApiMethod<
|
|
107
|
+
relayParentOffset: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Generic runtime api call
|
|
111
111
|
**/
|
|
112
|
-
[method: string]: GenericRuntimeApiMethod
|
|
112
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
113
113
|
};
|
|
114
114
|
/**
|
|
115
115
|
* @runtimeapi: GetParachainInfo - 0xa2ddb6a58477bf63
|
|
@@ -120,12 +120,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
120
120
|
*
|
|
121
121
|
* @callname: GetParachainInfo_parachain_id
|
|
122
122
|
**/
|
|
123
|
-
parachainId: GenericRuntimeApiMethod<
|
|
123
|
+
parachainId: GenericRuntimeApiMethod<() => Promise<PolkadotParachainPrimitivesPrimitivesId>>;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* Generic runtime api call
|
|
127
127
|
**/
|
|
128
|
-
[method: string]: GenericRuntimeApiMethod
|
|
128
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
129
129
|
};
|
|
130
130
|
/**
|
|
131
131
|
* @runtimeapi: SlotSchedule - 0x5bfafc20876faaf0
|
|
@@ -141,12 +141,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
141
141
|
* @callname: SlotSchedule_next_slot_schedule
|
|
142
142
|
* @param {number} num_cores
|
|
143
143
|
**/
|
|
144
|
-
nextSlotSchedule: GenericRuntimeApiMethod<
|
|
144
|
+
nextSlotSchedule: GenericRuntimeApiMethod<(numCores: number) => Promise<CumulusPrimitivesCoreNextSlotSchedule>>;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Generic runtime api call
|
|
148
148
|
**/
|
|
149
|
-
[method: string]: GenericRuntimeApiMethod
|
|
149
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
150
150
|
};
|
|
151
151
|
/**
|
|
152
152
|
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
@@ -168,12 +168,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
168
168
|
* @param {H256} included_hash
|
|
169
169
|
* @param {SpConsensusSlotsSlot} slot
|
|
170
170
|
**/
|
|
171
|
-
canBuildUpon: GenericRuntimeApiMethod<
|
|
171
|
+
canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* Generic runtime api call
|
|
175
175
|
**/
|
|
176
|
-
[method: string]: GenericRuntimeApiMethod
|
|
176
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
177
177
|
};
|
|
178
178
|
/**
|
|
179
179
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
@@ -184,7 +184,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
184
184
|
*
|
|
185
185
|
* @callname: Core_version
|
|
186
186
|
**/
|
|
187
|
-
version: GenericRuntimeApiMethod<
|
|
187
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* Execute the given block.
|
|
@@ -192,7 +192,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
192
192
|
* @callname: Core_execute_block
|
|
193
193
|
* @param {SpRuntimeBlockLazyBlock} block
|
|
194
194
|
**/
|
|
195
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
195
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlockLazyBlock) => Promise<[]>>;
|
|
196
196
|
|
|
197
197
|
/**
|
|
198
198
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -200,12 +200,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
200
200
|
* @callname: Core_initialize_block
|
|
201
201
|
* @param {Header} header
|
|
202
202
|
**/
|
|
203
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
203
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
206
|
* Generic runtime api call
|
|
207
207
|
**/
|
|
208
|
-
[method: string]: GenericRuntimeApiMethod
|
|
208
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
209
209
|
};
|
|
210
210
|
/**
|
|
211
211
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -216,7 +216,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
216
216
|
*
|
|
217
217
|
* @callname: Metadata_metadata
|
|
218
218
|
**/
|
|
219
|
-
metadata: GenericRuntimeApiMethod<
|
|
219
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
222
|
* Returns the metadata at a given version.
|
|
@@ -227,7 +227,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
227
227
|
* @callname: Metadata_metadata_at_version
|
|
228
228
|
* @param {number} version
|
|
229
229
|
**/
|
|
230
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
230
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
231
231
|
|
|
232
232
|
/**
|
|
233
233
|
* Returns the supported metadata versions.
|
|
@@ -236,12 +236,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
236
236
|
*
|
|
237
237
|
* @callname: Metadata_metadata_versions
|
|
238
238
|
**/
|
|
239
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
239
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Generic runtime api call
|
|
243
243
|
**/
|
|
244
|
-
[method: string]: GenericRuntimeApiMethod
|
|
244
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
245
245
|
};
|
|
246
246
|
/**
|
|
247
247
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -257,7 +257,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
257
257
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
258
258
|
**/
|
|
259
259
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
260
|
-
Rv,
|
|
261
260
|
(
|
|
262
261
|
extrinsic: UncheckedExtrinsicLike,
|
|
263
262
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -268,7 +267,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
268
267
|
*
|
|
269
268
|
* @callname: BlockBuilder_finalize_block
|
|
270
269
|
**/
|
|
271
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
270
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
272
271
|
|
|
273
272
|
/**
|
|
274
273
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -277,7 +276,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
277
276
|
* @param {SpInherentsInherentData} inherent
|
|
278
277
|
**/
|
|
279
278
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
280
|
-
Rv,
|
|
281
279
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
282
280
|
>;
|
|
283
281
|
|
|
@@ -289,14 +287,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
289
287
|
* @param {SpInherentsInherentData} data
|
|
290
288
|
**/
|
|
291
289
|
checkInherents: GenericRuntimeApiMethod<
|
|
292
|
-
Rv,
|
|
293
290
|
(block: SpRuntimeBlockLazyBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
294
291
|
>;
|
|
295
292
|
|
|
296
293
|
/**
|
|
297
294
|
* Generic runtime api call
|
|
298
295
|
**/
|
|
299
|
-
[method: string]: GenericRuntimeApiMethod
|
|
296
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
300
297
|
};
|
|
301
298
|
/**
|
|
302
299
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -319,7 +316,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
319
316
|
* @param {H256} block_hash
|
|
320
317
|
**/
|
|
321
318
|
validateTransaction: GenericRuntimeApiMethod<
|
|
322
|
-
Rv,
|
|
323
319
|
(
|
|
324
320
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
325
321
|
tx: UncheckedExtrinsicLike,
|
|
@@ -332,7 +328,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
332
328
|
/**
|
|
333
329
|
* Generic runtime api call
|
|
334
330
|
**/
|
|
335
|
-
[method: string]: GenericRuntimeApiMethod
|
|
331
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
336
332
|
};
|
|
337
333
|
/**
|
|
338
334
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -344,12 +340,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
344
340
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
345
341
|
* @param {Header} header
|
|
346
342
|
**/
|
|
347
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
343
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
348
344
|
|
|
349
345
|
/**
|
|
350
346
|
* Generic runtime api call
|
|
351
347
|
**/
|
|
352
|
-
[method: string]: GenericRuntimeApiMethod
|
|
348
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
353
349
|
};
|
|
354
350
|
/**
|
|
355
351
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -367,7 +363,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
367
363
|
* @callname: SessionKeys_generate_session_keys
|
|
368
364
|
* @param {BytesLike | undefined} seed
|
|
369
365
|
**/
|
|
370
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
366
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
371
367
|
|
|
372
368
|
/**
|
|
373
369
|
* Decode the given public session keys.
|
|
@@ -378,14 +374,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
378
374
|
* @param {BytesLike} encoded
|
|
379
375
|
**/
|
|
380
376
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
381
|
-
Rv,
|
|
382
377
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
383
378
|
>;
|
|
384
379
|
|
|
385
380
|
/**
|
|
386
381
|
* Generic runtime api call
|
|
387
382
|
**/
|
|
388
|
-
[method: string]: GenericRuntimeApiMethod
|
|
383
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
389
384
|
};
|
|
390
385
|
/**
|
|
391
386
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -397,12 +392,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
397
392
|
* @callname: AccountNonceApi_account_nonce
|
|
398
393
|
* @param {AccountId32Like} account
|
|
399
394
|
**/
|
|
400
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
395
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
401
396
|
|
|
402
397
|
/**
|
|
403
398
|
* Generic runtime api call
|
|
404
399
|
**/
|
|
405
|
-
[method: string]: GenericRuntimeApiMethod
|
|
400
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
406
401
|
};
|
|
407
402
|
/**
|
|
408
403
|
* @runtimeapi: NftsApi - 0x899a250cbe84f250
|
|
@@ -414,14 +409,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
414
409
|
* @param {number} collection
|
|
415
410
|
* @param {number} item
|
|
416
411
|
**/
|
|
417
|
-
owner: GenericRuntimeApiMethod<
|
|
412
|
+
owner: GenericRuntimeApiMethod<(collection: number, item: number) => Promise<AccountId32 | undefined>>;
|
|
418
413
|
|
|
419
414
|
/**
|
|
420
415
|
*
|
|
421
416
|
* @callname: NftsApi_collection_owner
|
|
422
417
|
* @param {number} collection
|
|
423
418
|
**/
|
|
424
|
-
collectionOwner: GenericRuntimeApiMethod<
|
|
419
|
+
collectionOwner: GenericRuntimeApiMethod<(collection: number) => Promise<AccountId32 | undefined>>;
|
|
425
420
|
|
|
426
421
|
/**
|
|
427
422
|
*
|
|
@@ -431,7 +426,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
431
426
|
* @param {BytesLike} key
|
|
432
427
|
**/
|
|
433
428
|
attribute: GenericRuntimeApiMethod<
|
|
434
|
-
Rv,
|
|
435
429
|
(collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>
|
|
436
430
|
>;
|
|
437
431
|
|
|
@@ -444,7 +438,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
444
438
|
* @param {BytesLike} key
|
|
445
439
|
**/
|
|
446
440
|
customAttribute: GenericRuntimeApiMethod<
|
|
447
|
-
Rv,
|
|
448
441
|
(account: AccountId32Like, collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>
|
|
449
442
|
>;
|
|
450
443
|
|
|
@@ -456,7 +449,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
456
449
|
* @param {BytesLike} key
|
|
457
450
|
**/
|
|
458
451
|
systemAttribute: GenericRuntimeApiMethod<
|
|
459
|
-
Rv,
|
|
460
452
|
(collection: number, item: number | undefined, key: BytesLike) => Promise<Bytes | undefined>
|
|
461
453
|
>;
|
|
462
454
|
|
|
@@ -466,15 +458,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
466
458
|
* @param {number} collection
|
|
467
459
|
* @param {BytesLike} key
|
|
468
460
|
**/
|
|
469
|
-
collectionAttribute: GenericRuntimeApiMethod<
|
|
470
|
-
Rv,
|
|
471
|
-
(collection: number, key: BytesLike) => Promise<Bytes | undefined>
|
|
472
|
-
>;
|
|
461
|
+
collectionAttribute: GenericRuntimeApiMethod<(collection: number, key: BytesLike) => Promise<Bytes | undefined>>;
|
|
473
462
|
|
|
474
463
|
/**
|
|
475
464
|
* Generic runtime api call
|
|
476
465
|
**/
|
|
477
|
-
[method: string]: GenericRuntimeApiMethod
|
|
466
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
478
467
|
};
|
|
479
468
|
/**
|
|
480
469
|
* @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
|
|
@@ -493,7 +482,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
493
482
|
* @param {boolean} include_fee
|
|
494
483
|
**/
|
|
495
484
|
quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
|
|
496
|
-
Rv,
|
|
497
485
|
(
|
|
498
486
|
asset1: StagingXcmV5Location,
|
|
499
487
|
asset2: StagingXcmV5Location,
|
|
@@ -515,7 +503,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
515
503
|
* @param {boolean} include_fee
|
|
516
504
|
**/
|
|
517
505
|
quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
|
|
518
|
-
Rv,
|
|
519
506
|
(
|
|
520
507
|
asset1: StagingXcmV5Location,
|
|
521
508
|
asset2: StagingXcmV5Location,
|
|
@@ -532,14 +519,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
532
519
|
* @param {StagingXcmV5Location} asset2
|
|
533
520
|
**/
|
|
534
521
|
getReserves: GenericRuntimeApiMethod<
|
|
535
|
-
Rv,
|
|
536
522
|
(asset1: StagingXcmV5Location, asset2: StagingXcmV5Location) => Promise<[bigint, bigint] | undefined>
|
|
537
523
|
>;
|
|
538
524
|
|
|
539
525
|
/**
|
|
540
526
|
* Generic runtime api call
|
|
541
527
|
**/
|
|
542
|
-
[method: string]: GenericRuntimeApiMethod
|
|
528
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
543
529
|
};
|
|
544
530
|
/**
|
|
545
531
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -552,7 +538,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
552
538
|
* @param {number} len
|
|
553
539
|
**/
|
|
554
540
|
queryInfo: GenericRuntimeApiMethod<
|
|
555
|
-
Rv,
|
|
556
541
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
557
542
|
>;
|
|
558
543
|
|
|
@@ -563,7 +548,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
563
548
|
* @param {number} len
|
|
564
549
|
**/
|
|
565
550
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
566
|
-
Rv,
|
|
567
551
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
568
552
|
>;
|
|
569
553
|
|
|
@@ -572,19 +556,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
572
556
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
573
557
|
* @param {SpWeightsWeightV2Weight} weight
|
|
574
558
|
**/
|
|
575
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
559
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
576
560
|
|
|
577
561
|
/**
|
|
578
562
|
*
|
|
579
563
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
580
564
|
* @param {number} length
|
|
581
565
|
**/
|
|
582
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
566
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
583
567
|
|
|
584
568
|
/**
|
|
585
569
|
* Generic runtime api call
|
|
586
570
|
**/
|
|
587
|
-
[method: string]: GenericRuntimeApiMethod
|
|
571
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
588
572
|
};
|
|
589
573
|
/**
|
|
590
574
|
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
@@ -601,7 +585,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
601
585
|
* @param {number} xcm_version
|
|
602
586
|
**/
|
|
603
587
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
604
|
-
Rv,
|
|
605
588
|
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
606
589
|
>;
|
|
607
590
|
|
|
@@ -616,7 +599,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
616
599
|
* @param {XcmVersionedXcm} message
|
|
617
600
|
**/
|
|
618
601
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
619
|
-
Rv,
|
|
620
602
|
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
621
603
|
>;
|
|
622
604
|
|
|
@@ -633,7 +615,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
633
615
|
* @param {XcmVersionedAssetId} asset
|
|
634
616
|
**/
|
|
635
617
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
636
|
-
Rv,
|
|
637
618
|
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
638
619
|
>;
|
|
639
620
|
|
|
@@ -652,7 +633,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
652
633
|
* @param {XcmVersionedXcm} message
|
|
653
634
|
**/
|
|
654
635
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
655
|
-
Rv,
|
|
656
636
|
(
|
|
657
637
|
destination: XcmVersionedLocation,
|
|
658
638
|
message: XcmVersionedXcm,
|
|
@@ -662,7 +642,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
662
642
|
/**
|
|
663
643
|
* Generic runtime api call
|
|
664
644
|
**/
|
|
665
|
-
[method: string]: GenericRuntimeApiMethod
|
|
645
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
666
646
|
};
|
|
667
647
|
/**
|
|
668
648
|
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
@@ -677,7 +657,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
677
657
|
* @param {number} result_xcms_version
|
|
678
658
|
**/
|
|
679
659
|
dryRunCall: GenericRuntimeApiMethod<
|
|
680
|
-
Rv,
|
|
681
660
|
(
|
|
682
661
|
origin: AssetHubWestendRuntimeOriginCaller,
|
|
683
662
|
call: AssetHubWestendRuntimeRuntimeCallLike,
|
|
@@ -693,7 +672,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
693
672
|
* @param {XcmVersionedXcm} xcm
|
|
694
673
|
**/
|
|
695
674
|
dryRunXcm: GenericRuntimeApiMethod<
|
|
696
|
-
Rv,
|
|
697
675
|
(
|
|
698
676
|
originLocation: XcmVersionedLocation,
|
|
699
677
|
xcm: XcmVersionedXcm,
|
|
@@ -703,7 +681,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
703
681
|
/**
|
|
704
682
|
* Generic runtime api call
|
|
705
683
|
**/
|
|
706
|
-
[method: string]: GenericRuntimeApiMethod
|
|
684
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
707
685
|
};
|
|
708
686
|
/**
|
|
709
687
|
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
@@ -716,14 +694,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
716
694
|
* @param {XcmVersionedLocation} location
|
|
717
695
|
**/
|
|
718
696
|
convertLocation: GenericRuntimeApiMethod<
|
|
719
|
-
Rv,
|
|
720
697
|
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
721
698
|
>;
|
|
722
699
|
|
|
723
700
|
/**
|
|
724
701
|
* Generic runtime api call
|
|
725
702
|
**/
|
|
726
|
-
[method: string]: GenericRuntimeApiMethod
|
|
703
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
727
704
|
};
|
|
728
705
|
/**
|
|
729
706
|
* @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
|
|
@@ -741,7 +718,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
741
718
|
* @param {XcmVersionedLocation} location
|
|
742
719
|
**/
|
|
743
720
|
isTrustedReserve: GenericRuntimeApiMethod<
|
|
744
|
-
Rv,
|
|
745
721
|
(
|
|
746
722
|
asset: XcmVersionedAsset,
|
|
747
723
|
location: XcmVersionedLocation,
|
|
@@ -760,7 +736,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
760
736
|
* @param {XcmVersionedLocation} location
|
|
761
737
|
**/
|
|
762
738
|
isTrustedTeleporter: GenericRuntimeApiMethod<
|
|
763
|
-
Rv,
|
|
764
739
|
(
|
|
765
740
|
asset: XcmVersionedAsset,
|
|
766
741
|
location: XcmVersionedLocation,
|
|
@@ -770,7 +745,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
770
745
|
/**
|
|
771
746
|
* Generic runtime api call
|
|
772
747
|
**/
|
|
773
|
-
[method: string]: GenericRuntimeApiMethod
|
|
748
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
774
749
|
};
|
|
775
750
|
/**
|
|
776
751
|
* @runtimeapi: AuthorizedAliasersApi - 0x12c8e3d4d7e06de0
|
|
@@ -783,7 +758,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
783
758
|
* @param {XcmVersionedLocation} target
|
|
784
759
|
**/
|
|
785
760
|
authorizedAliasers: GenericRuntimeApiMethod<
|
|
786
|
-
Rv,
|
|
787
761
|
(
|
|
788
762
|
target: XcmVersionedLocation,
|
|
789
763
|
) => Promise<Result<Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>>
|
|
@@ -797,7 +771,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
797
771
|
* @param {XcmVersionedLocation} target
|
|
798
772
|
**/
|
|
799
773
|
isAuthorizedAlias: GenericRuntimeApiMethod<
|
|
800
|
-
Rv,
|
|
801
774
|
(
|
|
802
775
|
origin: XcmVersionedLocation,
|
|
803
776
|
target: XcmVersionedLocation,
|
|
@@ -807,7 +780,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
807
780
|
/**
|
|
808
781
|
* Generic runtime api call
|
|
809
782
|
**/
|
|
810
|
-
[method: string]: GenericRuntimeApiMethod
|
|
783
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
811
784
|
};
|
|
812
785
|
/**
|
|
813
786
|
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
@@ -821,7 +794,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
821
794
|
* @param {number} len
|
|
822
795
|
**/
|
|
823
796
|
queryCallInfo: GenericRuntimeApiMethod<
|
|
824
|
-
Rv,
|
|
825
797
|
(call: AssetHubWestendRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
826
798
|
>;
|
|
827
799
|
|
|
@@ -833,7 +805,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
833
805
|
* @param {number} len
|
|
834
806
|
**/
|
|
835
807
|
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
836
|
-
Rv,
|
|
837
808
|
(call: AssetHubWestendRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
838
809
|
>;
|
|
839
810
|
|
|
@@ -843,7 +814,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
843
814
|
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
844
815
|
* @param {SpWeightsWeightV2Weight} weight
|
|
845
816
|
**/
|
|
846
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
817
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
847
818
|
|
|
848
819
|
/**
|
|
849
820
|
* Query the output of the current `LengthToFee` given some input.
|
|
@@ -851,12 +822,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
851
822
|
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
852
823
|
* @param {number} length
|
|
853
824
|
**/
|
|
854
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
825
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
855
826
|
|
|
856
827
|
/**
|
|
857
828
|
* Generic runtime api call
|
|
858
829
|
**/
|
|
859
|
-
[method: string]: GenericRuntimeApiMethod
|
|
830
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
860
831
|
};
|
|
861
832
|
/**
|
|
862
833
|
* @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
|
|
@@ -869,14 +840,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
869
840
|
* @param {AccountId32Like} account
|
|
870
841
|
**/
|
|
871
842
|
queryAccountBalances: GenericRuntimeApiMethod<
|
|
872
|
-
Rv,
|
|
873
843
|
(account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
|
|
874
844
|
>;
|
|
875
845
|
|
|
876
846
|
/**
|
|
877
847
|
* Generic runtime api call
|
|
878
848
|
**/
|
|
879
|
-
[method: string]: GenericRuntimeApiMethod
|
|
849
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
880
850
|
};
|
|
881
851
|
/**
|
|
882
852
|
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
@@ -891,12 +861,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
891
861
|
* @callname: CollectCollationInfo_collect_collation_info
|
|
892
862
|
* @param {Header} header
|
|
893
863
|
**/
|
|
894
|
-
collectCollationInfo: GenericRuntimeApiMethod<
|
|
864
|
+
collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
895
865
|
|
|
896
866
|
/**
|
|
897
867
|
* Generic runtime api call
|
|
898
868
|
**/
|
|
899
|
-
[method: string]: GenericRuntimeApiMethod
|
|
869
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
900
870
|
};
|
|
901
871
|
/**
|
|
902
872
|
* @runtimeapi: AssetRewards - 0x65f855d6e093c2f1
|
|
@@ -909,12 +879,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
909
879
|
*
|
|
910
880
|
* @callname: AssetRewards_pool_creation_cost
|
|
911
881
|
**/
|
|
912
|
-
poolCreationCost: GenericRuntimeApiMethod<
|
|
882
|
+
poolCreationCost: GenericRuntimeApiMethod<() => Promise<bigint>>;
|
|
913
883
|
|
|
914
884
|
/**
|
|
915
885
|
* Generic runtime api call
|
|
916
886
|
**/
|
|
917
|
-
[method: string]: GenericRuntimeApiMethod
|
|
887
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
918
888
|
};
|
|
919
889
|
/**
|
|
920
890
|
* @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
|
|
@@ -926,7 +896,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
926
896
|
* @callname: NominationPoolsApi_pending_rewards
|
|
927
897
|
* @param {AccountId32Like} who
|
|
928
898
|
**/
|
|
929
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
899
|
+
pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
930
900
|
|
|
931
901
|
/**
|
|
932
902
|
* Returns the equivalent balance of `points` for a given pool.
|
|
@@ -935,7 +905,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
935
905
|
* @param {number} pool_id
|
|
936
906
|
* @param {bigint} points
|
|
937
907
|
**/
|
|
938
|
-
pointsToBalance: GenericRuntimeApiMethod<
|
|
908
|
+
pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
|
|
939
909
|
|
|
940
910
|
/**
|
|
941
911
|
* Returns the equivalent points of `new_funds` for a given pool.
|
|
@@ -944,7 +914,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
944
914
|
* @param {number} pool_id
|
|
945
915
|
* @param {bigint} new_funds
|
|
946
916
|
**/
|
|
947
|
-
balanceToPoints: GenericRuntimeApiMethod<
|
|
917
|
+
balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
|
|
948
918
|
|
|
949
919
|
/**
|
|
950
920
|
* Returns the pending slash for a given pool.
|
|
@@ -952,7 +922,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
952
922
|
* @callname: NominationPoolsApi_pool_pending_slash
|
|
953
923
|
* @param {number} pool_id
|
|
954
924
|
**/
|
|
955
|
-
poolPendingSlash: GenericRuntimeApiMethod<
|
|
925
|
+
poolPendingSlash: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
956
926
|
|
|
957
927
|
/**
|
|
958
928
|
* Returns the pending slash for a given pool member.
|
|
@@ -963,7 +933,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
963
933
|
* @callname: NominationPoolsApi_member_pending_slash
|
|
964
934
|
* @param {AccountId32Like} member
|
|
965
935
|
**/
|
|
966
|
-
memberPendingSlash: GenericRuntimeApiMethod<
|
|
936
|
+
memberPendingSlash: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<bigint>>;
|
|
967
937
|
|
|
968
938
|
/**
|
|
969
939
|
* Returns true if the pool with `pool_id` needs migration.
|
|
@@ -978,7 +948,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
978
948
|
* @callname: NominationPoolsApi_pool_needs_delegate_migration
|
|
979
949
|
* @param {number} pool_id
|
|
980
950
|
**/
|
|
981
|
-
poolNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
951
|
+
poolNeedsDelegateMigration: GenericRuntimeApiMethod<(poolId: number) => Promise<boolean>>;
|
|
982
952
|
|
|
983
953
|
/**
|
|
984
954
|
* Returns true if the delegated funds of the pool `member` needs migration.
|
|
@@ -992,7 +962,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
992
962
|
* @callname: NominationPoolsApi_member_needs_delegate_migration
|
|
993
963
|
* @param {AccountId32Like} member
|
|
994
964
|
**/
|
|
995
|
-
memberNeedsDelegateMigration: GenericRuntimeApiMethod<
|
|
965
|
+
memberNeedsDelegateMigration: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<boolean>>;
|
|
996
966
|
|
|
997
967
|
/**
|
|
998
968
|
* Returns the total contribution of a pool member including any balance that is unbonding.
|
|
@@ -1000,7 +970,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1000
970
|
* @callname: NominationPoolsApi_member_total_balance
|
|
1001
971
|
* @param {AccountId32Like} who
|
|
1002
972
|
**/
|
|
1003
|
-
memberTotalBalance: GenericRuntimeApiMethod<
|
|
973
|
+
memberTotalBalance: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
1004
974
|
|
|
1005
975
|
/**
|
|
1006
976
|
* Total balance contributed to the pool.
|
|
@@ -1008,7 +978,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1008
978
|
* @callname: NominationPoolsApi_pool_balance
|
|
1009
979
|
* @param {number} pool_id
|
|
1010
980
|
**/
|
|
1011
|
-
poolBalance: GenericRuntimeApiMethod<
|
|
981
|
+
poolBalance: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
1012
982
|
|
|
1013
983
|
/**
|
|
1014
984
|
* Returns the bonded account and reward account associated with the pool_id.
|
|
@@ -1016,12 +986,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1016
986
|
* @callname: NominationPoolsApi_pool_accounts
|
|
1017
987
|
* @param {number} pool_id
|
|
1018
988
|
**/
|
|
1019
|
-
poolAccounts: GenericRuntimeApiMethod<
|
|
989
|
+
poolAccounts: GenericRuntimeApiMethod<(poolId: number) => Promise<[AccountId32, AccountId32]>>;
|
|
1020
990
|
|
|
1021
991
|
/**
|
|
1022
992
|
* Generic runtime api call
|
|
1023
993
|
**/
|
|
1024
|
-
[method: string]: GenericRuntimeApiMethod
|
|
994
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1025
995
|
};
|
|
1026
996
|
/**
|
|
1027
997
|
* @runtimeapi: StakingApi - 0x18ef58a3b67ba770
|
|
@@ -1033,7 +1003,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1033
1003
|
* @callname: StakingApi_nominations_quota
|
|
1034
1004
|
* @param {bigint} balance
|
|
1035
1005
|
**/
|
|
1036
|
-
nominationsQuota: GenericRuntimeApiMethod<
|
|
1006
|
+
nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
|
|
1037
1007
|
|
|
1038
1008
|
/**
|
|
1039
1009
|
* Returns the page count of exposures for a validator `account` in a given era.
|
|
@@ -1042,7 +1012,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1042
1012
|
* @param {number} era
|
|
1043
1013
|
* @param {AccountId32Like} account
|
|
1044
1014
|
**/
|
|
1045
|
-
erasStakersPageCount: GenericRuntimeApiMethod<
|
|
1015
|
+
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
1046
1016
|
|
|
1047
1017
|
/**
|
|
1048
1018
|
* Returns true if a validator `account` has pages to be claimed for the given era.
|
|
@@ -1051,12 +1021,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1051
1021
|
* @param {number} era
|
|
1052
1022
|
* @param {AccountId32Like} account
|
|
1053
1023
|
**/
|
|
1054
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
1024
|
+
pendingRewards: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<boolean>>;
|
|
1055
1025
|
|
|
1056
1026
|
/**
|
|
1057
1027
|
* Generic runtime api call
|
|
1058
1028
|
**/
|
|
1059
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1029
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1060
1030
|
};
|
|
1061
1031
|
/**
|
|
1062
1032
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -1077,7 +1047,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1077
1047
|
* @callname: GenesisBuilder_build_state
|
|
1078
1048
|
* @param {BytesLike} json
|
|
1079
1049
|
**/
|
|
1080
|
-
buildState: GenericRuntimeApiMethod<
|
|
1050
|
+
buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
1081
1051
|
|
|
1082
1052
|
/**
|
|
1083
1053
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
@@ -1098,7 +1068,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1098
1068
|
* @callname: GenesisBuilder_get_preset
|
|
1099
1069
|
* @param {string | undefined} id
|
|
1100
1070
|
**/
|
|
1101
|
-
getPreset: GenericRuntimeApiMethod<
|
|
1071
|
+
getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
1102
1072
|
|
|
1103
1073
|
/**
|
|
1104
1074
|
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
@@ -1108,12 +1078,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1108
1078
|
*
|
|
1109
1079
|
* @callname: GenesisBuilder_preset_names
|
|
1110
1080
|
**/
|
|
1111
|
-
presetNames: GenericRuntimeApiMethod<
|
|
1081
|
+
presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
|
|
1112
1082
|
|
|
1113
1083
|
/**
|
|
1114
1084
|
* Generic runtime api call
|
|
1115
1085
|
**/
|
|
1116
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1086
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1117
1087
|
};
|
|
1118
1088
|
/**
|
|
1119
1089
|
* @runtimeapi: ReviveApi - 0x8c403e5c4a9fd442
|
|
@@ -1126,7 +1096,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1126
1096
|
*
|
|
1127
1097
|
* @callname: ReviveApi_eth_block
|
|
1128
1098
|
**/
|
|
1129
|
-
ethBlock: GenericRuntimeApiMethod<
|
|
1099
|
+
ethBlock: GenericRuntimeApiMethod<() => Promise<PalletReviveEvmApiRpcTypesGenBlock>>;
|
|
1130
1100
|
|
|
1131
1101
|
/**
|
|
1132
1102
|
* Returns the ETH block hash for the given block number.
|
|
@@ -1134,7 +1104,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1134
1104
|
* @callname: ReviveApi_eth_block_hash
|
|
1135
1105
|
* @param {U256} number
|
|
1136
1106
|
**/
|
|
1137
|
-
ethBlockHash: GenericRuntimeApiMethod<
|
|
1107
|
+
ethBlockHash: GenericRuntimeApiMethod<(number: U256) => Promise<H256 | undefined>>;
|
|
1138
1108
|
|
|
1139
1109
|
/**
|
|
1140
1110
|
* The details needed to reconstruct the receipt information offchain.
|
|
@@ -1145,14 +1115,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1145
1115
|
*
|
|
1146
1116
|
* @callname: ReviveApi_eth_receipt_data
|
|
1147
1117
|
**/
|
|
1148
|
-
ethReceiptData: GenericRuntimeApiMethod<
|
|
1118
|
+
ethReceiptData: GenericRuntimeApiMethod<() => Promise<Array<PalletReviveEvmBlockHashReceiptGasInfo>>>;
|
|
1149
1119
|
|
|
1150
1120
|
/**
|
|
1151
1121
|
* Returns the block gas limit.
|
|
1152
1122
|
*
|
|
1153
1123
|
* @callname: ReviveApi_block_gas_limit
|
|
1154
1124
|
**/
|
|
1155
|
-
blockGasLimit: GenericRuntimeApiMethod<
|
|
1125
|
+
blockGasLimit: GenericRuntimeApiMethod<() => Promise<U256>>;
|
|
1156
1126
|
|
|
1157
1127
|
/**
|
|
1158
1128
|
* Returns the free balance of the given `[H160]` address, using EVM decimals.
|
|
@@ -1160,14 +1130,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1160
1130
|
* @callname: ReviveApi_balance
|
|
1161
1131
|
* @param {H160} address
|
|
1162
1132
|
**/
|
|
1163
|
-
balance: GenericRuntimeApiMethod<
|
|
1133
|
+
balance: GenericRuntimeApiMethod<(address: H160) => Promise<U256>>;
|
|
1164
1134
|
|
|
1165
1135
|
/**
|
|
1166
1136
|
* Returns the gas price.
|
|
1167
1137
|
*
|
|
1168
1138
|
* @callname: ReviveApi_gas_price
|
|
1169
1139
|
**/
|
|
1170
|
-
gasPrice: GenericRuntimeApiMethod<
|
|
1140
|
+
gasPrice: GenericRuntimeApiMethod<() => Promise<U256>>;
|
|
1171
1141
|
|
|
1172
1142
|
/**
|
|
1173
1143
|
* Returns the nonce of the given `[H160]` address.
|
|
@@ -1175,7 +1145,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1175
1145
|
* @callname: ReviveApi_nonce
|
|
1176
1146
|
* @param {H160} address
|
|
1177
1147
|
**/
|
|
1178
|
-
nonce: GenericRuntimeApiMethod<
|
|
1148
|
+
nonce: GenericRuntimeApiMethod<(address: H160) => Promise<number>>;
|
|
1179
1149
|
|
|
1180
1150
|
/**
|
|
1181
1151
|
* Perform a call from a specified account to a given contract.
|
|
@@ -1191,7 +1161,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1191
1161
|
* @param {BytesLike} input_data
|
|
1192
1162
|
**/
|
|
1193
1163
|
call: GenericRuntimeApiMethod<
|
|
1194
|
-
Rv,
|
|
1195
1164
|
(
|
|
1196
1165
|
origin: AccountId32Like,
|
|
1197
1166
|
dest: H160,
|
|
@@ -1217,7 +1186,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1217
1186
|
* @param {FixedBytes<32> | undefined} salt
|
|
1218
1187
|
**/
|
|
1219
1188
|
instantiate: GenericRuntimeApiMethod<
|
|
1220
|
-
Rv,
|
|
1221
1189
|
(
|
|
1222
1190
|
origin: AccountId32Like,
|
|
1223
1191
|
value: bigint,
|
|
@@ -1238,7 +1206,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1238
1206
|
* @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
|
|
1239
1207
|
**/
|
|
1240
1208
|
ethTransact: GenericRuntimeApiMethod<
|
|
1241
|
-
Rv,
|
|
1242
1209
|
(
|
|
1243
1210
|
tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
1244
1211
|
) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>
|
|
@@ -1255,7 +1222,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1255
1222
|
* @param {bigint | undefined} storage_deposit_limit
|
|
1256
1223
|
**/
|
|
1257
1224
|
uploadCode: GenericRuntimeApiMethod<
|
|
1258
|
-
Rv,
|
|
1259
1225
|
(
|
|
1260
1226
|
origin: AccountId32Like,
|
|
1261
1227
|
code: BytesLike,
|
|
@@ -1275,7 +1241,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1275
1241
|
* @param {FixedBytes<32>} key
|
|
1276
1242
|
**/
|
|
1277
1243
|
getStorage: GenericRuntimeApiMethod<
|
|
1278
|
-
Rv,
|
|
1279
1244
|
(
|
|
1280
1245
|
address: H160,
|
|
1281
1246
|
key: FixedBytes<32>,
|
|
@@ -1294,7 +1259,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1294
1259
|
* @param {BytesLike} key
|
|
1295
1260
|
**/
|
|
1296
1261
|
getStorageVarKey: GenericRuntimeApiMethod<
|
|
1297
|
-
Rv,
|
|
1298
1262
|
(address: H160, key: BytesLike) => Promise<Result<Bytes | undefined, PalletRevivePrimitivesContractAccessError>>
|
|
1299
1263
|
>;
|
|
1300
1264
|
|
|
@@ -1311,7 +1275,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1311
1275
|
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
1312
1276
|
**/
|
|
1313
1277
|
traceBlock: GenericRuntimeApiMethod<
|
|
1314
|
-
Rv,
|
|
1315
1278
|
(
|
|
1316
1279
|
block: SpRuntimeBlock,
|
|
1317
1280
|
config: PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
@@ -1332,7 +1295,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1332
1295
|
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
1333
1296
|
**/
|
|
1334
1297
|
traceTx: GenericRuntimeApiMethod<
|
|
1335
|
-
Rv,
|
|
1336
1298
|
(
|
|
1337
1299
|
block: SpRuntimeBlock,
|
|
1338
1300
|
txIndex: number,
|
|
@@ -1350,7 +1312,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1350
1312
|
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
1351
1313
|
**/
|
|
1352
1314
|
traceCall: GenericRuntimeApiMethod<
|
|
1353
|
-
Rv,
|
|
1354
1315
|
(
|
|
1355
1316
|
tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
1356
1317
|
config: PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
@@ -1362,7 +1323,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1362
1323
|
*
|
|
1363
1324
|
* @callname: ReviveApi_block_author
|
|
1364
1325
|
**/
|
|
1365
|
-
blockAuthor: GenericRuntimeApiMethod<
|
|
1326
|
+
blockAuthor: GenericRuntimeApiMethod<() => Promise<H160>>;
|
|
1366
1327
|
|
|
1367
1328
|
/**
|
|
1368
1329
|
* Get the H160 address associated to this account id
|
|
@@ -1370,7 +1331,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1370
1331
|
* @callname: ReviveApi_address
|
|
1371
1332
|
* @param {AccountId32Like} account_id
|
|
1372
1333
|
**/
|
|
1373
|
-
address: GenericRuntimeApiMethod<
|
|
1334
|
+
address: GenericRuntimeApiMethod<(accountId: AccountId32Like) => Promise<H160>>;
|
|
1374
1335
|
|
|
1375
1336
|
/**
|
|
1376
1337
|
* Get the account id associated to this H160 address.
|
|
@@ -1378,14 +1339,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1378
1339
|
* @callname: ReviveApi_account_id
|
|
1379
1340
|
* @param {H160} address
|
|
1380
1341
|
**/
|
|
1381
|
-
accountId: GenericRuntimeApiMethod<
|
|
1342
|
+
accountId: GenericRuntimeApiMethod<(address: H160) => Promise<AccountId32>>;
|
|
1382
1343
|
|
|
1383
1344
|
/**
|
|
1384
1345
|
* The address used to call the runtime's pallets dispatchables
|
|
1385
1346
|
*
|
|
1386
1347
|
* @callname: ReviveApi_runtime_pallets_address
|
|
1387
1348
|
**/
|
|
1388
|
-
runtimePalletsAddress: GenericRuntimeApiMethod<
|
|
1349
|
+
runtimePalletsAddress: GenericRuntimeApiMethod<() => Promise<H160>>;
|
|
1389
1350
|
|
|
1390
1351
|
/**
|
|
1391
1352
|
* The code at the specified address taking pre-compiles into account.
|
|
@@ -1393,7 +1354,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1393
1354
|
* @callname: ReviveApi_code
|
|
1394
1355
|
* @param {H160} address
|
|
1395
1356
|
**/
|
|
1396
|
-
code: GenericRuntimeApiMethod<
|
|
1357
|
+
code: GenericRuntimeApiMethod<(address: H160) => Promise<Bytes>>;
|
|
1397
1358
|
|
|
1398
1359
|
/**
|
|
1399
1360
|
* Construct the new balance and dust components of this EVM balance.
|
|
@@ -1402,13 +1363,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1402
1363
|
* @param {U256} balance
|
|
1403
1364
|
**/
|
|
1404
1365
|
newBalanceWithDust: GenericRuntimeApiMethod<
|
|
1405
|
-
Rv,
|
|
1406
1366
|
(balance: U256) => Promise<Result<[bigint, number], PalletRevivePrimitivesBalanceConversionError>>
|
|
1407
1367
|
>;
|
|
1408
1368
|
|
|
1409
1369
|
/**
|
|
1410
1370
|
* Generic runtime api call
|
|
1411
1371
|
**/
|
|
1412
|
-
[method: string]: GenericRuntimeApiMethod
|
|
1372
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1413
1373
|
};
|
|
1414
1374
|
}
|