@dedot/chaintypes 0.194.0 → 0.195.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aleph/consts.d.ts +2 -2
- package/aleph/errors.d.ts +228 -228
- package/aleph/events.d.ts +122 -226
- package/aleph/index.d.ts +13 -17
- package/aleph/json-rpc.d.ts +3 -3
- package/aleph/query.d.ts +171 -207
- package/aleph/runtime.d.ts +47 -63
- package/aleph/tx.d.ts +377 -550
- package/aleph/view-functions.d.ts +2 -2
- package/astar/consts.d.ts +2 -2
- package/astar/errors.d.ts +431 -431
- package/astar/events.d.ts +232 -401
- package/astar/index.d.ts +13 -17
- package/astar/json-rpc.d.ts +3 -3
- package/astar/query.d.ts +243 -289
- package/astar/runtime.d.ts +59 -87
- package/astar/tx.d.ts +671 -980
- package/astar/view-functions.d.ts +2 -2
- package/basilisk/consts.d.ts +2 -2
- package/basilisk/errors.d.ts +489 -489
- package/basilisk/events.d.ts +187 -408
- package/basilisk/index.d.ts +13 -17
- package/basilisk/json-rpc.d.ts +3 -3
- package/basilisk/query.d.ts +213 -272
- package/basilisk/runtime.d.ts +27 -28
- package/basilisk/tx.d.ts +579 -842
- package/basilisk/view-functions.d.ts +2 -2
- package/hydration/consts.d.ts +47 -14
- package/hydration/errors.d.ts +827 -737
- package/hydration/events.d.ts +639 -527
- package/hydration/index.d.ts +14 -18
- package/hydration/json-rpc.d.ts +3 -3
- package/hydration/query.d.ts +530 -396
- package/hydration/runtime.d.ts +181 -89
- package/hydration/tx.d.ts +1130 -1167
- package/hydration/types.d.ts +889 -42
- package/hydration/view-functions.d.ts +2 -2
- package/kusama/consts.d.ts +2 -2
- package/kusama/errors.d.ts +571 -571
- package/kusama/events.d.ts +216 -477
- package/kusama/index.d.ts +13 -17
- package/kusama/json-rpc.d.ts +3 -3
- package/kusama/query.d.ts +360 -502
- package/kusama/runtime.d.ts +82 -131
- package/kusama/tx.d.ts +851 -1246
- package/kusama/view-functions.d.ts +7 -12
- package/kusama-asset-hub/consts.d.ts +2 -2
- package/kusama-asset-hub/errors.d.ts +653 -653
- package/kusama-asset-hub/events.d.ts +286 -629
- package/kusama-asset-hub/index.d.ts +14 -17
- package/kusama-asset-hub/json-rpc.d.ts +3 -3
- package/kusama-asset-hub/query.d.ts +316 -448
- package/kusama-asset-hub/runtime.d.ts +74 -111
- package/kusama-asset-hub/tx.d.ts +1059 -1558
- package/kusama-asset-hub/view-functions.d.ts +7 -9
- package/kusama-people/consts.d.ts +2 -2
- package/kusama-people/errors.d.ts +160 -160
- package/kusama-people/events.d.ts +89 -176
- package/kusama-people/index.d.ts +13 -17
- package/kusama-people/json-rpc.d.ts +3 -3
- package/kusama-people/query.d.ts +114 -145
- package/kusama-people/runtime.d.ts +45 -65
- package/kusama-people/tx.d.ts +246 -356
- package/kusama-people/view-functions.d.ts +3 -5
- package/moonbeam/consts.d.ts +2 -2
- package/moonbeam/errors.d.ts +478 -478
- package/moonbeam/events.d.ts +182 -426
- package/moonbeam/index.d.ts +13 -17
- package/moonbeam/json-rpc.d.ts +11 -3
- package/moonbeam/query.d.ts +234 -294
- package/moonbeam/runtime.d.ts +61 -89
- package/moonbeam/tx.d.ts +618 -901
- package/moonbeam/view-functions.d.ts +2 -2
- package/package.json +6 -3
- package/paseo/consts.d.ts +2 -2
- package/paseo/errors.d.ts +513 -513
- package/paseo/events.d.ts +197 -430
- package/paseo/index.d.ts +14 -18
- package/paseo/json-rpc.d.ts +3 -3
- package/paseo/query.d.ts +329 -450
- package/paseo/runtime.d.ts +107 -131
- package/paseo/tx.d.ts +787 -1151
- package/paseo/types.d.ts +7 -0
- package/paseo/view-functions.d.ts +7 -12
- package/paseo-asset-hub/consts.d.ts +2 -2
- package/paseo-asset-hub/errors.d.ts +605 -605
- package/paseo-asset-hub/events.d.ts +268 -600
- package/paseo-asset-hub/index.d.ts +15 -18
- package/paseo-asset-hub/json-rpc.d.ts +3 -3
- package/paseo-asset-hub/query.d.ts +293 -413
- package/paseo-asset-hub/runtime.d.ts +96 -104
- package/paseo-asset-hub/tx.d.ts +997 -1466
- package/paseo-asset-hub/types.d.ts +7 -0
- package/paseo-asset-hub/view-functions.d.ts +7 -9
- package/paseo-hydration/consts.d.ts +13 -3
- package/paseo-hydration/errors.d.ts +756 -745
- package/paseo-hydration/events.d.ts +277 -554
- package/paseo-hydration/index.d.ts +14 -18
- package/paseo-hydration/json-rpc.d.ts +3 -3
- package/paseo-hydration/query.d.ts +321 -411
- package/paseo-hydration/runtime.d.ts +95 -106
- package/paseo-hydration/tx.d.ts +923 -1226
- package/paseo-hydration/types.d.ts +91 -50
- package/paseo-hydration/view-functions.d.ts +2 -2
- package/paseo-people/consts.d.ts +2 -2
- package/paseo-people/errors.d.ts +162 -162
- package/paseo-people/events.d.ts +91 -181
- package/paseo-people/index.d.ts +14 -18
- package/paseo-people/json-rpc.d.ts +3 -3
- package/paseo-people/query.d.ts +116 -143
- package/paseo-people/runtime.d.ts +70 -65
- package/paseo-people/tx.d.ts +257 -372
- package/paseo-people/types.d.ts +7 -0
- package/paseo-people/view-functions.d.ts +3 -5
- package/polkadot/consts.d.ts +2 -2
- package/polkadot/errors.d.ts +501 -501
- package/polkadot/events.d.ts +195 -426
- package/polkadot/index.d.ts +13 -17
- package/polkadot/json-rpc.d.ts +3 -3
- package/polkadot/query.d.ts +329 -450
- package/polkadot/runtime.d.ts +83 -133
- package/polkadot/tx.d.ts +765 -1119
- package/polkadot/view-functions.d.ts +7 -12
- package/polkadot-asset-hub/consts.d.ts +2 -2
- package/polkadot-asset-hub/errors.d.ts +554 -554
- package/polkadot-asset-hub/events.d.ts +261 -585
- package/polkadot-asset-hub/index.d.ts +14 -17
- package/polkadot-asset-hub/json-rpc.d.ts +3 -3
- package/polkadot-asset-hub/query.d.ts +279 -396
- package/polkadot-asset-hub/runtime.d.ts +65 -93
- package/polkadot-asset-hub/tx.d.ts +952 -1400
- package/polkadot-asset-hub/view-functions.d.ts +7 -9
- package/polkadot-people/consts.d.ts +2 -2
- package/polkadot-people/errors.d.ts +160 -160
- package/polkadot-people/events.d.ts +89 -176
- package/polkadot-people/index.d.ts +13 -17
- package/polkadot-people/json-rpc.d.ts +3 -3
- package/polkadot-people/query.d.ts +114 -145
- package/polkadot-people/runtime.d.ts +46 -67
- package/polkadot-people/tx.d.ts +246 -356
- package/polkadot-people/view-functions.d.ts +3 -5
- package/substrate/consts.d.ts +2 -2
- package/substrate/errors.d.ts +909 -909
- package/substrate/events.d.ts +389 -794
- package/substrate/index.d.ts +14 -17
- package/substrate/json-rpc.d.ts +3 -3
- package/substrate/query.d.ts +458 -572
- package/substrate/runtime.d.ts +82 -126
- package/substrate/tx.d.ts +1317 -1936
- package/substrate/view-functions.d.ts +2 -2
- package/vara/consts.d.ts +9 -37
- package/vara/errors.d.ts +402 -382
- package/vara/events.d.ts +172 -310
- package/vara/index.d.ts +14 -18
- package/vara/json-rpc.d.ts +7 -3
- package/vara/query.d.ts +299 -331
- package/vara/runtime.d.ts +61 -79
- package/vara/tx.d.ts +573 -754
- package/vara/types.d.ts +71 -26
- package/vara/view-functions.d.ts +2 -2
- package/westend/consts.d.ts +2 -2
- package/westend/errors.d.ts +532 -532
- package/westend/events.d.ts +205 -462
- package/westend/index.d.ts +13 -17
- package/westend/json-rpc.d.ts +3 -3
- package/westend/query.d.ts +312 -434
- package/westend/runtime.d.ts +83 -135
- package/westend/tx.d.ts +807 -1179
- package/westend/view-functions.d.ts +7 -12
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/errors.d.ts +605 -605
- package/westend-asset-hub/events.d.ts +265 -614
- package/westend-asset-hub/index.d.ts +14 -17
- package/westend-asset-hub/json-rpc.d.ts +3 -3
- package/westend-asset-hub/query.d.ts +293 -418
- package/westend-asset-hub/runtime.d.ts +83 -123
- package/westend-asset-hub/tx.d.ts +918 -1348
- package/westend-asset-hub/view-functions.d.ts +8 -13
- package/westend-people/consts.d.ts +2 -2
- package/westend-people/errors.d.ts +160 -160
- package/westend-people/events.d.ts +93 -186
- package/westend-people/index.d.ts +13 -17
- package/westend-people/json-rpc.d.ts +3 -3
- package/westend-people/query.d.ts +114 -145
- package/westend-people/runtime.d.ts +46 -67
- package/westend-people/tx.d.ts +251 -363
- package/westend-people/view-functions.d.ts +3 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericRuntimeApis, GenericRuntimeApiMethod
|
|
3
|
+
import type { GenericRuntimeApis, GenericRuntimeApiMethod } from 'dedot/types';
|
|
4
4
|
import type {
|
|
5
5
|
H256,
|
|
6
6
|
RuntimeVersion,
|
|
@@ -27,6 +27,8 @@ import type {
|
|
|
27
27
|
SpRuntimeTransactionValidityValidTransaction,
|
|
28
28
|
SpRuntimeTransactionValidityTransactionSource,
|
|
29
29
|
SpCoreCryptoKeyTypeId,
|
|
30
|
+
FrameSupportViewFunctionsViewFunctionDispatchError,
|
|
31
|
+
FrameSupportViewFunctionsViewFunctionId,
|
|
30
32
|
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
31
33
|
PalletTransactionPaymentFeeDetails,
|
|
32
34
|
SpWeightsWeightV2Weight,
|
|
@@ -49,7 +51,7 @@ import type {
|
|
|
49
51
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
50
52
|
} from './types.js';
|
|
51
53
|
|
|
52
|
-
export interface RuntimeApis
|
|
54
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
53
55
|
/**
|
|
54
56
|
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
55
57
|
**/
|
|
@@ -61,19 +63,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
61
63
|
*
|
|
62
64
|
* @callname: AuraApi_slot_duration
|
|
63
65
|
**/
|
|
64
|
-
slotDuration: GenericRuntimeApiMethod<
|
|
66
|
+
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
65
67
|
|
|
66
68
|
/**
|
|
67
69
|
* Return the current set of authorities.
|
|
68
70
|
*
|
|
69
71
|
* @callname: AuraApi_authorities
|
|
70
72
|
**/
|
|
71
|
-
authorities: GenericRuntimeApiMethod<
|
|
73
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
72
74
|
|
|
73
75
|
/**
|
|
74
76
|
* Generic runtime api call
|
|
75
77
|
**/
|
|
76
|
-
[method: string]: GenericRuntimeApiMethod
|
|
78
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
77
79
|
};
|
|
78
80
|
/**
|
|
79
81
|
* @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
|
|
@@ -84,12 +86,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
84
86
|
*
|
|
85
87
|
* @callname: RelayParentOffsetApi_relay_parent_offset
|
|
86
88
|
**/
|
|
87
|
-
relayParentOffset: GenericRuntimeApiMethod<
|
|
89
|
+
relayParentOffset: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
88
90
|
|
|
89
91
|
/**
|
|
90
92
|
* Generic runtime api call
|
|
91
93
|
**/
|
|
92
|
-
[method: string]: GenericRuntimeApiMethod
|
|
94
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
93
95
|
};
|
|
94
96
|
/**
|
|
95
97
|
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
@@ -111,12 +113,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
111
113
|
* @param {H256} included_hash
|
|
112
114
|
* @param {SpConsensusSlotsSlot} slot
|
|
113
115
|
**/
|
|
114
|
-
canBuildUpon: GenericRuntimeApiMethod<
|
|
116
|
+
canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
115
117
|
|
|
116
118
|
/**
|
|
117
119
|
* Generic runtime api call
|
|
118
120
|
**/
|
|
119
|
-
[method: string]: GenericRuntimeApiMethod
|
|
121
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
120
122
|
};
|
|
121
123
|
/**
|
|
122
124
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
@@ -127,7 +129,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
127
129
|
*
|
|
128
130
|
* @callname: Core_version
|
|
129
131
|
**/
|
|
130
|
-
version: GenericRuntimeApiMethod<
|
|
132
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
131
133
|
|
|
132
134
|
/**
|
|
133
135
|
* Execute the given block.
|
|
@@ -135,7 +137,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
135
137
|
* @callname: Core_execute_block
|
|
136
138
|
* @param {SpRuntimeBlock} block
|
|
137
139
|
**/
|
|
138
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
140
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
139
141
|
|
|
140
142
|
/**
|
|
141
143
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -143,12 +145,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
143
145
|
* @callname: Core_initialize_block
|
|
144
146
|
* @param {Header} header
|
|
145
147
|
**/
|
|
146
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
148
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
147
149
|
|
|
148
150
|
/**
|
|
149
151
|
* Generic runtime api call
|
|
150
152
|
**/
|
|
151
|
-
[method: string]: GenericRuntimeApiMethod
|
|
153
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
152
154
|
};
|
|
153
155
|
/**
|
|
154
156
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -159,7 +161,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
159
161
|
*
|
|
160
162
|
* @callname: Metadata_metadata
|
|
161
163
|
**/
|
|
162
|
-
metadata: GenericRuntimeApiMethod<
|
|
164
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
163
165
|
|
|
164
166
|
/**
|
|
165
167
|
* Returns the metadata at a given version.
|
|
@@ -170,7 +172,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
170
172
|
* @callname: Metadata_metadata_at_version
|
|
171
173
|
* @param {number} version
|
|
172
174
|
**/
|
|
173
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
175
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
174
176
|
|
|
175
177
|
/**
|
|
176
178
|
* Returns the supported metadata versions.
|
|
@@ -179,12 +181,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
179
181
|
*
|
|
180
182
|
* @callname: Metadata_metadata_versions
|
|
181
183
|
**/
|
|
182
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
184
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
183
185
|
|
|
184
186
|
/**
|
|
185
187
|
* Generic runtime api call
|
|
186
188
|
**/
|
|
187
|
-
[method: string]: GenericRuntimeApiMethod
|
|
189
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
188
190
|
};
|
|
189
191
|
/**
|
|
190
192
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -200,7 +202,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
200
202
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
201
203
|
**/
|
|
202
204
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
203
|
-
Rv,
|
|
204
205
|
(
|
|
205
206
|
extrinsic: UncheckedExtrinsicLike,
|
|
206
207
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -211,7 +212,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
211
212
|
*
|
|
212
213
|
* @callname: BlockBuilder_finalize_block
|
|
213
214
|
**/
|
|
214
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
215
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
215
216
|
|
|
216
217
|
/**
|
|
217
218
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -220,7 +221,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
220
221
|
* @param {SpInherentsInherentData} inherent
|
|
221
222
|
**/
|
|
222
223
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
223
|
-
Rv,
|
|
224
224
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
225
225
|
>;
|
|
226
226
|
|
|
@@ -232,14 +232,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
232
232
|
* @param {SpInherentsInherentData} data
|
|
233
233
|
**/
|
|
234
234
|
checkInherents: GenericRuntimeApiMethod<
|
|
235
|
-
Rv,
|
|
236
235
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
237
236
|
>;
|
|
238
237
|
|
|
239
238
|
/**
|
|
240
239
|
* Generic runtime api call
|
|
241
240
|
**/
|
|
242
|
-
[method: string]: GenericRuntimeApiMethod
|
|
241
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
243
242
|
};
|
|
244
243
|
/**
|
|
245
244
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -262,7 +261,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
262
261
|
* @param {H256} block_hash
|
|
263
262
|
**/
|
|
264
263
|
validateTransaction: GenericRuntimeApiMethod<
|
|
265
|
-
Rv,
|
|
266
264
|
(
|
|
267
265
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
268
266
|
tx: UncheckedExtrinsicLike,
|
|
@@ -275,7 +273,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
275
273
|
/**
|
|
276
274
|
* Generic runtime api call
|
|
277
275
|
**/
|
|
278
|
-
[method: string]: GenericRuntimeApiMethod
|
|
276
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
279
277
|
};
|
|
280
278
|
/**
|
|
281
279
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -287,12 +285,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
287
285
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
288
286
|
* @param {Header} header
|
|
289
287
|
**/
|
|
290
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
288
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
291
289
|
|
|
292
290
|
/**
|
|
293
291
|
* Generic runtime api call
|
|
294
292
|
**/
|
|
295
|
-
[method: string]: GenericRuntimeApiMethod
|
|
293
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
296
294
|
};
|
|
297
295
|
/**
|
|
298
296
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -310,7 +308,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
310
308
|
* @callname: SessionKeys_generate_session_keys
|
|
311
309
|
* @param {BytesLike | undefined} seed
|
|
312
310
|
**/
|
|
313
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
311
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
314
312
|
|
|
315
313
|
/**
|
|
316
314
|
* Decode the given public session keys.
|
|
@@ -321,14 +319,36 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
321
319
|
* @param {BytesLike} encoded
|
|
322
320
|
**/
|
|
323
321
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
324
|
-
Rv,
|
|
325
322
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
326
323
|
>;
|
|
327
324
|
|
|
328
325
|
/**
|
|
329
326
|
* Generic runtime api call
|
|
330
327
|
**/
|
|
331
|
-
[method: string]: GenericRuntimeApiMethod
|
|
328
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
329
|
+
};
|
|
330
|
+
/**
|
|
331
|
+
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
332
|
+
**/
|
|
333
|
+
runtimeViewFunction: {
|
|
334
|
+
/**
|
|
335
|
+
* Execute a view function query.
|
|
336
|
+
*
|
|
337
|
+
* @callname: RuntimeViewFunction_execute_view_function
|
|
338
|
+
* @param {FrameSupportViewFunctionsViewFunctionId} query_id
|
|
339
|
+
* @param {BytesLike} input
|
|
340
|
+
**/
|
|
341
|
+
executeViewFunction: GenericRuntimeApiMethod<
|
|
342
|
+
(
|
|
343
|
+
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
344
|
+
input: BytesLike,
|
|
345
|
+
) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
|
|
346
|
+
>;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Generic runtime api call
|
|
350
|
+
**/
|
|
351
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
332
352
|
};
|
|
333
353
|
/**
|
|
334
354
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -340,12 +360,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
340
360
|
* @callname: AccountNonceApi_account_nonce
|
|
341
361
|
* @param {AccountId32Like} account
|
|
342
362
|
**/
|
|
343
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
363
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
344
364
|
|
|
345
365
|
/**
|
|
346
366
|
* Generic runtime api call
|
|
347
367
|
**/
|
|
348
|
-
[method: string]: GenericRuntimeApiMethod
|
|
368
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
349
369
|
};
|
|
350
370
|
/**
|
|
351
371
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -358,7 +378,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
358
378
|
* @param {number} len
|
|
359
379
|
**/
|
|
360
380
|
queryInfo: GenericRuntimeApiMethod<
|
|
361
|
-
Rv,
|
|
362
381
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
363
382
|
>;
|
|
364
383
|
|
|
@@ -369,7 +388,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
369
388
|
* @param {number} len
|
|
370
389
|
**/
|
|
371
390
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
372
|
-
Rv,
|
|
373
391
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
374
392
|
>;
|
|
375
393
|
|
|
@@ -378,19 +396,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
378
396
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
379
397
|
* @param {SpWeightsWeightV2Weight} weight
|
|
380
398
|
**/
|
|
381
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
399
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
382
400
|
|
|
383
401
|
/**
|
|
384
402
|
*
|
|
385
403
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
386
404
|
* @param {number} length
|
|
387
405
|
**/
|
|
388
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
406
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
389
407
|
|
|
390
408
|
/**
|
|
391
409
|
* Generic runtime api call
|
|
392
410
|
**/
|
|
393
|
-
[method: string]: GenericRuntimeApiMethod
|
|
411
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
394
412
|
};
|
|
395
413
|
/**
|
|
396
414
|
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
@@ -404,7 +422,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
404
422
|
* @param {number} len
|
|
405
423
|
**/
|
|
406
424
|
queryCallInfo: GenericRuntimeApiMethod<
|
|
407
|
-
Rv,
|
|
408
425
|
(call: PeoplePaseoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
409
426
|
>;
|
|
410
427
|
|
|
@@ -416,7 +433,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
416
433
|
* @param {number} len
|
|
417
434
|
**/
|
|
418
435
|
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
419
|
-
Rv,
|
|
420
436
|
(call: PeoplePaseoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
421
437
|
>;
|
|
422
438
|
|
|
@@ -426,7 +442,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
426
442
|
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
427
443
|
* @param {SpWeightsWeightV2Weight} weight
|
|
428
444
|
**/
|
|
429
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
445
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
430
446
|
|
|
431
447
|
/**
|
|
432
448
|
* Query the output of the current `LengthToFee` given some input.
|
|
@@ -434,12 +450,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
434
450
|
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
435
451
|
* @param {number} length
|
|
436
452
|
**/
|
|
437
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
453
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
438
454
|
|
|
439
455
|
/**
|
|
440
456
|
* Generic runtime api call
|
|
441
457
|
**/
|
|
442
|
-
[method: string]: GenericRuntimeApiMethod
|
|
458
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
443
459
|
};
|
|
444
460
|
/**
|
|
445
461
|
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
@@ -456,7 +472,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
456
472
|
* @param {number} xcm_version
|
|
457
473
|
**/
|
|
458
474
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
459
|
-
Rv,
|
|
460
475
|
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
461
476
|
>;
|
|
462
477
|
|
|
@@ -471,7 +486,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
471
486
|
* @param {XcmVersionedXcm} message
|
|
472
487
|
**/
|
|
473
488
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
474
|
-
Rv,
|
|
475
489
|
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
476
490
|
>;
|
|
477
491
|
|
|
@@ -488,7 +502,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
488
502
|
* @param {XcmVersionedAssetId} asset
|
|
489
503
|
**/
|
|
490
504
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
491
|
-
Rv,
|
|
492
505
|
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
493
506
|
>;
|
|
494
507
|
|
|
@@ -507,7 +520,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
507
520
|
* @param {XcmVersionedXcm} message
|
|
508
521
|
**/
|
|
509
522
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
510
|
-
Rv,
|
|
511
523
|
(
|
|
512
524
|
destination: XcmVersionedLocation,
|
|
513
525
|
message: XcmVersionedXcm,
|
|
@@ -517,7 +529,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
517
529
|
/**
|
|
518
530
|
* Generic runtime api call
|
|
519
531
|
**/
|
|
520
|
-
[method: string]: GenericRuntimeApiMethod
|
|
532
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
521
533
|
};
|
|
522
534
|
/**
|
|
523
535
|
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
@@ -532,7 +544,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
532
544
|
* @param {number} result_xcms_version
|
|
533
545
|
**/
|
|
534
546
|
dryRunCall: GenericRuntimeApiMethod<
|
|
535
|
-
Rv,
|
|
536
547
|
(
|
|
537
548
|
origin: PeoplePaseoRuntimeOriginCaller,
|
|
538
549
|
call: PeoplePaseoRuntimeRuntimeCallLike,
|
|
@@ -548,7 +559,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
548
559
|
* @param {XcmVersionedXcm} xcm
|
|
549
560
|
**/
|
|
550
561
|
dryRunXcm: GenericRuntimeApiMethod<
|
|
551
|
-
Rv,
|
|
552
562
|
(
|
|
553
563
|
originLocation: XcmVersionedLocation,
|
|
554
564
|
xcm: XcmVersionedXcm,
|
|
@@ -558,7 +568,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
558
568
|
/**
|
|
559
569
|
* Generic runtime api call
|
|
560
570
|
**/
|
|
561
|
-
[method: string]: GenericRuntimeApiMethod
|
|
571
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
562
572
|
};
|
|
563
573
|
/**
|
|
564
574
|
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
@@ -571,14 +581,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
571
581
|
* @param {XcmVersionedLocation} location
|
|
572
582
|
**/
|
|
573
583
|
convertLocation: GenericRuntimeApiMethod<
|
|
574
|
-
Rv,
|
|
575
584
|
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
576
585
|
>;
|
|
577
586
|
|
|
578
587
|
/**
|
|
579
588
|
* Generic runtime api call
|
|
580
589
|
**/
|
|
581
|
-
[method: string]: GenericRuntimeApiMethod
|
|
590
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
582
591
|
};
|
|
583
592
|
/**
|
|
584
593
|
* @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
|
|
@@ -596,7 +605,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
596
605
|
* @param {XcmVersionedLocation} location
|
|
597
606
|
**/
|
|
598
607
|
isTrustedReserve: GenericRuntimeApiMethod<
|
|
599
|
-
Rv,
|
|
600
608
|
(
|
|
601
609
|
asset: XcmVersionedAsset,
|
|
602
610
|
location: XcmVersionedLocation,
|
|
@@ -615,7 +623,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
615
623
|
* @param {XcmVersionedLocation} location
|
|
616
624
|
**/
|
|
617
625
|
isTrustedTeleporter: GenericRuntimeApiMethod<
|
|
618
|
-
Rv,
|
|
619
626
|
(
|
|
620
627
|
asset: XcmVersionedAsset,
|
|
621
628
|
location: XcmVersionedLocation,
|
|
@@ -625,7 +632,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
625
632
|
/**
|
|
626
633
|
* Generic runtime api call
|
|
627
634
|
**/
|
|
628
|
-
[method: string]: GenericRuntimeApiMethod
|
|
635
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
629
636
|
};
|
|
630
637
|
/**
|
|
631
638
|
* @runtimeapi: AuthorizedAliasersApi - 0x12c8e3d4d7e06de0
|
|
@@ -638,7 +645,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
638
645
|
* @param {XcmVersionedLocation} target
|
|
639
646
|
**/
|
|
640
647
|
authorizedAliasers: GenericRuntimeApiMethod<
|
|
641
|
-
Rv,
|
|
642
648
|
(
|
|
643
649
|
target: XcmVersionedLocation,
|
|
644
650
|
) => Promise<Result<Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>>
|
|
@@ -652,7 +658,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
652
658
|
* @param {XcmVersionedLocation} target
|
|
653
659
|
**/
|
|
654
660
|
isAuthorizedAlias: GenericRuntimeApiMethod<
|
|
655
|
-
Rv,
|
|
656
661
|
(
|
|
657
662
|
origin: XcmVersionedLocation,
|
|
658
663
|
target: XcmVersionedLocation,
|
|
@@ -662,7 +667,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
662
667
|
/**
|
|
663
668
|
* Generic runtime api call
|
|
664
669
|
**/
|
|
665
|
-
[method: string]: GenericRuntimeApiMethod
|
|
670
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
666
671
|
};
|
|
667
672
|
/**
|
|
668
673
|
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
@@ -677,12 +682,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
677
682
|
* @callname: CollectCollationInfo_collect_collation_info
|
|
678
683
|
* @param {Header} header
|
|
679
684
|
**/
|
|
680
|
-
collectCollationInfo: GenericRuntimeApiMethod<
|
|
685
|
+
collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
681
686
|
|
|
682
687
|
/**
|
|
683
688
|
* Generic runtime api call
|
|
684
689
|
**/
|
|
685
|
-
[method: string]: GenericRuntimeApiMethod
|
|
690
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
686
691
|
};
|
|
687
692
|
/**
|
|
688
693
|
* @runtimeapi: GetParachainInfo - 0xa2ddb6a58477bf63
|
|
@@ -693,12 +698,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
693
698
|
*
|
|
694
699
|
* @callname: GetParachainInfo_parachain_id
|
|
695
700
|
**/
|
|
696
|
-
parachainId: GenericRuntimeApiMethod<
|
|
701
|
+
parachainId: GenericRuntimeApiMethod<() => Promise<PolkadotParachainPrimitivesPrimitivesId>>;
|
|
697
702
|
|
|
698
703
|
/**
|
|
699
704
|
* Generic runtime api call
|
|
700
705
|
**/
|
|
701
|
-
[method: string]: GenericRuntimeApiMethod
|
|
706
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
702
707
|
};
|
|
703
708
|
/**
|
|
704
709
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -719,7 +724,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
719
724
|
* @callname: GenesisBuilder_build_state
|
|
720
725
|
* @param {BytesLike} json
|
|
721
726
|
**/
|
|
722
|
-
buildState: GenericRuntimeApiMethod<
|
|
727
|
+
buildState: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
723
728
|
|
|
724
729
|
/**
|
|
725
730
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
@@ -740,7 +745,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
740
745
|
* @callname: GenesisBuilder_get_preset
|
|
741
746
|
* @param {string | undefined} id
|
|
742
747
|
**/
|
|
743
|
-
getPreset: GenericRuntimeApiMethod<
|
|
748
|
+
getPreset: GenericRuntimeApiMethod<(id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
744
749
|
|
|
745
750
|
/**
|
|
746
751
|
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
@@ -750,11 +755,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
750
755
|
*
|
|
751
756
|
* @callname: GenesisBuilder_preset_names
|
|
752
757
|
**/
|
|
753
|
-
presetNames: GenericRuntimeApiMethod<
|
|
758
|
+
presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
|
|
754
759
|
|
|
755
760
|
/**
|
|
756
761
|
* Generic runtime api call
|
|
757
762
|
**/
|
|
758
|
-
[method: string]: GenericRuntimeApiMethod
|
|
763
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
759
764
|
};
|
|
760
765
|
}
|