@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
package/aleph/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericRuntimeApis, GenericRuntimeApiMethod
|
|
3
|
+
import type { GenericRuntimeApis, GenericRuntimeApiMethod } from 'dedot/types';
|
|
4
4
|
import type {
|
|
5
5
|
RuntimeVersion,
|
|
6
6
|
Header,
|
|
@@ -44,7 +44,7 @@ import type {
|
|
|
44
44
|
PalletContractsPrimitivesContractAccessError,
|
|
45
45
|
} from './types.js';
|
|
46
46
|
|
|
47
|
-
export interface RuntimeApis
|
|
47
|
+
export interface RuntimeApis extends GenericRuntimeApis {
|
|
48
48
|
/**
|
|
49
49
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
50
50
|
**/
|
|
@@ -54,7 +54,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
54
54
|
*
|
|
55
55
|
* @callname: Core_version
|
|
56
56
|
**/
|
|
57
|
-
version: GenericRuntimeApiMethod<
|
|
57
|
+
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Execute the given block.
|
|
@@ -62,7 +62,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
62
62
|
* @callname: Core_execute_block
|
|
63
63
|
* @param {SpRuntimeBlock} block
|
|
64
64
|
**/
|
|
65
|
-
executeBlock: GenericRuntimeApiMethod<
|
|
65
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* Initialize a block with the given header.
|
|
@@ -70,12 +70,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
70
70
|
* @callname: Core_initialize_block
|
|
71
71
|
* @param {Header} header
|
|
72
72
|
**/
|
|
73
|
-
initializeBlock: GenericRuntimeApiMethod<
|
|
73
|
+
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* Generic runtime api call
|
|
77
77
|
**/
|
|
78
|
-
[method: string]: GenericRuntimeApiMethod
|
|
78
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
79
79
|
};
|
|
80
80
|
/**
|
|
81
81
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -86,7 +86,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
86
86
|
*
|
|
87
87
|
* @callname: Metadata_metadata
|
|
88
88
|
**/
|
|
89
|
-
metadata: GenericRuntimeApiMethod<
|
|
89
|
+
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Returns the metadata at a given version.
|
|
@@ -97,7 +97,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
97
97
|
* @callname: Metadata_metadata_at_version
|
|
98
98
|
* @param {number} version
|
|
99
99
|
**/
|
|
100
|
-
metadataAtVersion: GenericRuntimeApiMethod<
|
|
100
|
+
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* Returns the supported metadata versions.
|
|
@@ -106,12 +106,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
106
106
|
*
|
|
107
107
|
* @callname: Metadata_metadata_versions
|
|
108
108
|
**/
|
|
109
|
-
metadataVersions: GenericRuntimeApiMethod<
|
|
109
|
+
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* Generic runtime api call
|
|
113
113
|
**/
|
|
114
|
-
[method: string]: GenericRuntimeApiMethod
|
|
114
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
115
115
|
};
|
|
116
116
|
/**
|
|
117
117
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -127,7 +127,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
127
127
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
128
128
|
**/
|
|
129
129
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
130
|
-
Rv,
|
|
131
130
|
(
|
|
132
131
|
extrinsic: UncheckedExtrinsicLike,
|
|
133
132
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -138,7 +137,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
138
137
|
*
|
|
139
138
|
* @callname: BlockBuilder_finalize_block
|
|
140
139
|
**/
|
|
141
|
-
finalizeBlock: GenericRuntimeApiMethod<
|
|
140
|
+
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
142
141
|
|
|
143
142
|
/**
|
|
144
143
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -147,7 +146,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
147
146
|
* @param {SpInherentsInherentData} inherent
|
|
148
147
|
**/
|
|
149
148
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
150
|
-
Rv,
|
|
151
149
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
152
150
|
>;
|
|
153
151
|
|
|
@@ -159,14 +157,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
159
157
|
* @param {SpInherentsInherentData} data
|
|
160
158
|
**/
|
|
161
159
|
checkInherents: GenericRuntimeApiMethod<
|
|
162
|
-
Rv,
|
|
163
160
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
164
161
|
>;
|
|
165
162
|
|
|
166
163
|
/**
|
|
167
164
|
* Generic runtime api call
|
|
168
165
|
**/
|
|
169
|
-
[method: string]: GenericRuntimeApiMethod
|
|
166
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
170
167
|
};
|
|
171
168
|
/**
|
|
172
169
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -189,7 +186,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
189
186
|
* @param {H256} block_hash
|
|
190
187
|
**/
|
|
191
188
|
validateTransaction: GenericRuntimeApiMethod<
|
|
192
|
-
Rv,
|
|
193
189
|
(
|
|
194
190
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
195
191
|
tx: UncheckedExtrinsicLike,
|
|
@@ -202,7 +198,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
202
198
|
/**
|
|
203
199
|
* Generic runtime api call
|
|
204
200
|
**/
|
|
205
|
-
[method: string]: GenericRuntimeApiMethod
|
|
201
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
206
202
|
};
|
|
207
203
|
/**
|
|
208
204
|
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
@@ -215,19 +211,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
215
211
|
*
|
|
216
212
|
* @callname: AuraApi_slot_duration
|
|
217
213
|
**/
|
|
218
|
-
slotDuration: GenericRuntimeApiMethod<
|
|
214
|
+
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
219
215
|
|
|
220
216
|
/**
|
|
221
217
|
* Return the current set of authorities.
|
|
222
218
|
*
|
|
223
219
|
* @callname: AuraApi_authorities
|
|
224
220
|
**/
|
|
225
|
-
authorities: GenericRuntimeApiMethod<
|
|
221
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
226
222
|
|
|
227
223
|
/**
|
|
228
224
|
* Generic runtime api call
|
|
229
225
|
**/
|
|
230
|
-
[method: string]: GenericRuntimeApiMethod
|
|
226
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
231
227
|
};
|
|
232
228
|
/**
|
|
233
229
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -239,12 +235,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
239
235
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
240
236
|
* @param {Header} header
|
|
241
237
|
**/
|
|
242
|
-
offchainWorker: GenericRuntimeApiMethod<
|
|
238
|
+
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
243
239
|
|
|
244
240
|
/**
|
|
245
241
|
* Generic runtime api call
|
|
246
242
|
**/
|
|
247
|
-
[method: string]: GenericRuntimeApiMethod
|
|
243
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
248
244
|
};
|
|
249
245
|
/**
|
|
250
246
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -262,7 +258,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
262
258
|
* @callname: SessionKeys_generate_session_keys
|
|
263
259
|
* @param {BytesLike | undefined} seed
|
|
264
260
|
**/
|
|
265
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
261
|
+
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
266
262
|
|
|
267
263
|
/**
|
|
268
264
|
* Decode the given public session keys.
|
|
@@ -273,14 +269,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
273
269
|
* @param {BytesLike} encoded
|
|
274
270
|
**/
|
|
275
271
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
276
|
-
Rv,
|
|
277
272
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
278
273
|
>;
|
|
279
274
|
|
|
280
275
|
/**
|
|
281
276
|
* Generic runtime api call
|
|
282
277
|
**/
|
|
283
|
-
[method: string]: GenericRuntimeApiMethod
|
|
278
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
284
279
|
};
|
|
285
280
|
/**
|
|
286
281
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -292,12 +287,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
292
287
|
* @callname: AccountNonceApi_account_nonce
|
|
293
288
|
* @param {AccountId32Like} account
|
|
294
289
|
**/
|
|
295
|
-
accountNonce: GenericRuntimeApiMethod<
|
|
290
|
+
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
296
291
|
|
|
297
292
|
/**
|
|
298
293
|
* Generic runtime api call
|
|
299
294
|
**/
|
|
300
|
-
[method: string]: GenericRuntimeApiMethod
|
|
295
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
301
296
|
};
|
|
302
297
|
/**
|
|
303
298
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -310,7 +305,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
310
305
|
* @param {number} len
|
|
311
306
|
**/
|
|
312
307
|
queryInfo: GenericRuntimeApiMethod<
|
|
313
|
-
Rv,
|
|
314
308
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
315
309
|
>;
|
|
316
310
|
|
|
@@ -321,7 +315,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
321
315
|
* @param {number} len
|
|
322
316
|
**/
|
|
323
317
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
324
|
-
Rv,
|
|
325
318
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
326
319
|
>;
|
|
327
320
|
|
|
@@ -330,19 +323,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
330
323
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
331
324
|
* @param {SpWeightsWeightV2Weight} weight
|
|
332
325
|
**/
|
|
333
|
-
queryWeightToFee: GenericRuntimeApiMethod<
|
|
326
|
+
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
334
327
|
|
|
335
328
|
/**
|
|
336
329
|
*
|
|
337
330
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
338
331
|
* @param {number} length
|
|
339
332
|
**/
|
|
340
|
-
queryLengthToFee: GenericRuntimeApiMethod<
|
|
333
|
+
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
341
334
|
|
|
342
335
|
/**
|
|
343
336
|
* Generic runtime api call
|
|
344
337
|
**/
|
|
345
|
-
[method: string]: GenericRuntimeApiMethod
|
|
338
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
346
339
|
};
|
|
347
340
|
/**
|
|
348
341
|
* @runtimeapi: AlephSessionApi - 0x2be3f75b696ad1f6
|
|
@@ -353,7 +346,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
353
346
|
* @callname: AlephSessionApi_next_session_authorities
|
|
354
347
|
**/
|
|
355
348
|
nextSessionAuthorities: GenericRuntimeApiMethod<
|
|
356
|
-
Rv,
|
|
357
349
|
() => Promise<Result<Array<PrimitivesAppPublic>, PrimitivesApiError>>
|
|
358
350
|
>;
|
|
359
351
|
|
|
@@ -361,14 +353,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
361
353
|
*
|
|
362
354
|
* @callname: AlephSessionApi_authorities
|
|
363
355
|
**/
|
|
364
|
-
authorities: GenericRuntimeApiMethod<
|
|
356
|
+
authorities: GenericRuntimeApiMethod<() => Promise<Array<PrimitivesAppPublic>>>;
|
|
365
357
|
|
|
366
358
|
/**
|
|
367
359
|
*
|
|
368
360
|
* @callname: AlephSessionApi_next_session_authority_data
|
|
369
361
|
**/
|
|
370
362
|
nextSessionAuthorityData: GenericRuntimeApiMethod<
|
|
371
|
-
Rv,
|
|
372
363
|
() => Promise<Result<PrimitivesSessionAuthorityData, PrimitivesApiError>>
|
|
373
364
|
>;
|
|
374
365
|
|
|
@@ -376,37 +367,37 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
376
367
|
*
|
|
377
368
|
* @callname: AlephSessionApi_authority_data
|
|
378
369
|
**/
|
|
379
|
-
authorityData: GenericRuntimeApiMethod<
|
|
370
|
+
authorityData: GenericRuntimeApiMethod<() => Promise<PrimitivesSessionAuthorityData>>;
|
|
380
371
|
|
|
381
372
|
/**
|
|
382
373
|
*
|
|
383
374
|
* @callname: AlephSessionApi_session_period
|
|
384
375
|
**/
|
|
385
|
-
sessionPeriod: GenericRuntimeApiMethod<
|
|
376
|
+
sessionPeriod: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
386
377
|
|
|
387
378
|
/**
|
|
388
379
|
*
|
|
389
380
|
* @callname: AlephSessionApi_millisecs_per_block
|
|
390
381
|
**/
|
|
391
|
-
millisecsPerBlock: GenericRuntimeApiMethod<
|
|
382
|
+
millisecsPerBlock: GenericRuntimeApiMethod<() => Promise<bigint>>;
|
|
392
383
|
|
|
393
384
|
/**
|
|
394
385
|
*
|
|
395
386
|
* @callname: AlephSessionApi_finality_version
|
|
396
387
|
**/
|
|
397
|
-
finalityVersion: GenericRuntimeApiMethod<
|
|
388
|
+
finalityVersion: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
398
389
|
|
|
399
390
|
/**
|
|
400
391
|
*
|
|
401
392
|
* @callname: AlephSessionApi_next_session_finality_version
|
|
402
393
|
**/
|
|
403
|
-
nextSessionFinalityVersion: GenericRuntimeApiMethod<
|
|
394
|
+
nextSessionFinalityVersion: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
404
395
|
|
|
405
396
|
/**
|
|
406
397
|
*
|
|
407
398
|
* @callname: AlephSessionApi_score_submission_period
|
|
408
399
|
**/
|
|
409
|
-
scoreSubmissionPeriod: GenericRuntimeApiMethod<
|
|
400
|
+
scoreSubmissionPeriod: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
410
401
|
|
|
411
402
|
/**
|
|
412
403
|
* Predict finality committee and block producers for the given session. `session` must be
|
|
@@ -421,7 +412,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
421
412
|
* @param {number} session
|
|
422
413
|
**/
|
|
423
414
|
predictSessionCommittee: GenericRuntimeApiMethod<
|
|
424
|
-
Rv,
|
|
425
415
|
(session: number) => Promise<Result<PrimitivesSessionCommittee, PrimitivesSessionValidatorError>>
|
|
426
416
|
>;
|
|
427
417
|
|
|
@@ -430,7 +420,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
430
420
|
* @callname: AlephSessionApi_next_session_aura_authorities
|
|
431
421
|
**/
|
|
432
422
|
nextSessionAuraAuthorities: GenericRuntimeApiMethod<
|
|
433
|
-
Rv,
|
|
434
423
|
() => Promise<Array<[AccountId32, SpConsensusAuraSr25519AppSr25519Public]>>
|
|
435
424
|
>;
|
|
436
425
|
|
|
@@ -442,21 +431,21 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
442
431
|
* @callname: AlephSessionApi_key_owner
|
|
443
432
|
* @param {PrimitivesAppPublic} key
|
|
444
433
|
**/
|
|
445
|
-
keyOwner: GenericRuntimeApiMethod<
|
|
434
|
+
keyOwner: GenericRuntimeApiMethod<(key: PrimitivesAppPublic) => Promise<AccountId32 | undefined>>;
|
|
446
435
|
|
|
447
436
|
/**
|
|
448
437
|
* Returns inflation from now to now + 1 year. Capped at 100%
|
|
449
438
|
*
|
|
450
439
|
* @callname: AlephSessionApi_yearly_inflation
|
|
451
440
|
**/
|
|
452
|
-
yearlyInflation: GenericRuntimeApiMethod<
|
|
441
|
+
yearlyInflation: GenericRuntimeApiMethod<() => Promise<Perbill>>;
|
|
453
442
|
|
|
454
443
|
/**
|
|
455
444
|
* Returns payout. First tuple item is a validators payout, 2nd is the rest.
|
|
456
445
|
*
|
|
457
446
|
* @callname: AlephSessionApi_current_era_payout
|
|
458
447
|
**/
|
|
459
|
-
currentEraPayout: GenericRuntimeApiMethod<
|
|
448
|
+
currentEraPayout: GenericRuntimeApiMethod<() => Promise<[bigint, bigint]>>;
|
|
460
449
|
|
|
461
450
|
/**
|
|
462
451
|
* Submits score for a nonce in a session of performance of finality committee members.
|
|
@@ -466,14 +455,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
466
455
|
* @param {PrimitivesCryptoSignatureSet} signature
|
|
467
456
|
**/
|
|
468
457
|
submitAbftScore: GenericRuntimeApiMethod<
|
|
469
|
-
Rv,
|
|
470
458
|
(score: PrimitivesScore, signature: PrimitivesCryptoSignatureSet) => Promise<[] | undefined>
|
|
471
459
|
>;
|
|
472
460
|
|
|
473
461
|
/**
|
|
474
462
|
* Generic runtime api call
|
|
475
463
|
**/
|
|
476
|
-
[method: string]: GenericRuntimeApiMethod
|
|
464
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
477
465
|
};
|
|
478
466
|
/**
|
|
479
467
|
* @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
|
|
@@ -485,7 +473,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
485
473
|
* @callname: NominationPoolsApi_pending_rewards
|
|
486
474
|
* @param {AccountId32Like} who
|
|
487
475
|
**/
|
|
488
|
-
pendingRewards: GenericRuntimeApiMethod<
|
|
476
|
+
pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
489
477
|
|
|
490
478
|
/**
|
|
491
479
|
* Returns the equivalent balance of `points` for a given pool.
|
|
@@ -494,7 +482,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
494
482
|
* @param {number} pool_id
|
|
495
483
|
* @param {bigint} points
|
|
496
484
|
**/
|
|
497
|
-
pointsToBalance: GenericRuntimeApiMethod<
|
|
485
|
+
pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
|
|
498
486
|
|
|
499
487
|
/**
|
|
500
488
|
* Returns the equivalent points of `new_funds` for a given pool.
|
|
@@ -503,12 +491,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
503
491
|
* @param {number} pool_id
|
|
504
492
|
* @param {bigint} new_funds
|
|
505
493
|
**/
|
|
506
|
-
balanceToPoints: GenericRuntimeApiMethod<
|
|
494
|
+
balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
|
|
507
495
|
|
|
508
496
|
/**
|
|
509
497
|
* Generic runtime api call
|
|
510
498
|
**/
|
|
511
|
-
[method: string]: GenericRuntimeApiMethod
|
|
499
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
512
500
|
};
|
|
513
501
|
/**
|
|
514
502
|
* @runtimeapi: StakingApi - 0x18ef58a3b67ba770
|
|
@@ -520,7 +508,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
520
508
|
* @callname: StakingApi_nominations_quota
|
|
521
509
|
* @param {bigint} balance
|
|
522
510
|
**/
|
|
523
|
-
nominationsQuota: GenericRuntimeApiMethod<
|
|
511
|
+
nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
|
|
524
512
|
|
|
525
513
|
/**
|
|
526
514
|
* Returns the page count of exposures for a validator in a given era.
|
|
@@ -529,12 +517,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
529
517
|
* @param {number} era
|
|
530
518
|
* @param {AccountId32Like} account
|
|
531
519
|
**/
|
|
532
|
-
erasStakersPageCount: GenericRuntimeApiMethod<
|
|
520
|
+
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
533
521
|
|
|
534
522
|
/**
|
|
535
523
|
* Generic runtime api call
|
|
536
524
|
**/
|
|
537
|
-
[method: string]: GenericRuntimeApiMethod
|
|
525
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
538
526
|
};
|
|
539
527
|
/**
|
|
540
528
|
* @runtimeapi: ContractsApi - 0x68b66ba122c93fa7
|
|
@@ -554,7 +542,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
554
542
|
* @param {BytesLike} input_data
|
|
555
543
|
**/
|
|
556
544
|
call: GenericRuntimeApiMethod<
|
|
557
|
-
Rv,
|
|
558
545
|
(
|
|
559
546
|
origin: AccountId32Like,
|
|
560
547
|
dest: AccountId32Like,
|
|
@@ -580,7 +567,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
580
567
|
* @param {BytesLike} salt
|
|
581
568
|
**/
|
|
582
569
|
instantiate: GenericRuntimeApiMethod<
|
|
583
|
-
Rv,
|
|
584
570
|
(
|
|
585
571
|
origin: AccountId32Like,
|
|
586
572
|
value: bigint,
|
|
@@ -604,7 +590,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
604
590
|
* @param {PalletContractsWasmDeterminism} determinism
|
|
605
591
|
**/
|
|
606
592
|
uploadCode: GenericRuntimeApiMethod<
|
|
607
|
-
Rv,
|
|
608
593
|
(
|
|
609
594
|
origin: AccountId32Like,
|
|
610
595
|
code: BytesLike,
|
|
@@ -625,7 +610,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
625
610
|
* @param {BytesLike} key
|
|
626
611
|
**/
|
|
627
612
|
getStorage: GenericRuntimeApiMethod<
|
|
628
|
-
Rv,
|
|
629
613
|
(
|
|
630
614
|
address: AccountId32Like,
|
|
631
615
|
key: BytesLike,
|
|
@@ -635,7 +619,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
635
619
|
/**
|
|
636
620
|
* Generic runtime api call
|
|
637
621
|
**/
|
|
638
|
-
[method: string]: GenericRuntimeApiMethod
|
|
622
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
639
623
|
};
|
|
640
624
|
/**
|
|
641
625
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
@@ -649,7 +633,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
649
633
|
*
|
|
650
634
|
* @callname: GenesisBuilder_create_default_config
|
|
651
635
|
**/
|
|
652
|
-
createDefaultConfig: GenericRuntimeApiMethod<
|
|
636
|
+
createDefaultConfig: GenericRuntimeApiMethod<() => Promise<Bytes>>;
|
|
653
637
|
|
|
654
638
|
/**
|
|
655
639
|
* Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
|
@@ -663,11 +647,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
663
647
|
* @callname: GenesisBuilder_build_config
|
|
664
648
|
* @param {BytesLike} json
|
|
665
649
|
**/
|
|
666
|
-
buildConfig: GenericRuntimeApiMethod<
|
|
650
|
+
buildConfig: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
|
|
667
651
|
|
|
668
652
|
/**
|
|
669
653
|
* Generic runtime api call
|
|
670
654
|
**/
|
|
671
|
-
[method: string]: GenericRuntimeApiMethod
|
|
655
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
672
656
|
};
|
|
673
657
|
}
|