@dedot/chaintypes 0.0.1-next.f5bf4fc2.1 → 0.1.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/README.md +3 -1
- package/aleph/consts.d.ts +94 -13
- package/aleph/errors.d.ts +251 -182
- package/aleph/events.d.ts +319 -102
- package/aleph/index.d.ts +16 -11
- package/aleph/json-rpc.d.ts +76 -0
- package/aleph/query.d.ts +261 -168
- package/aleph/runtime.d.ts +90 -39
- package/aleph/tx.d.ts +1822 -1052
- package/aleph/types.d.ts +458 -138
- package/astar/consts.d.ts +112 -116
- package/astar/errors.d.ts +342 -409
- package/astar/events.d.ts +449 -358
- package/astar/index.d.ts +16 -11
- package/astar/json-rpc.d.ts +131 -0
- package/astar/query.d.ts +459 -367
- package/astar/runtime.d.ts +591 -98
- package/astar/tx.d.ts +2485 -3430
- package/astar/types.d.ts +1530 -4436
- package/index.d.ts +3 -0
- package/index.ts +3 -0
- package/kusama/consts.d.ts +54 -115
- package/kusama/errors.d.ts +696 -682
- package/kusama/events.d.ts +592 -407
- package/kusama/index.d.ts +16 -11
- package/kusama/json-rpc.d.ts +103 -0
- package/kusama/query.d.ts +840 -538
- package/kusama/runtime.d.ts +136 -65
- package/kusama/tx.d.ts +4557 -3051
- package/kusama/types.d.ts +1437 -1161
- package/kusamaAssetHub/consts.d.ts +66 -20
- package/kusamaAssetHub/errors.d.ts +428 -308
- package/kusamaAssetHub/events.d.ts +497 -305
- package/kusamaAssetHub/index.d.ts +16 -11
- package/kusamaAssetHub/json-rpc.d.ts +89 -0
- package/kusamaAssetHub/query.d.ts +376 -253
- package/kusamaAssetHub/runtime.d.ts +82 -41
- package/kusamaAssetHub/tx.d.ts +3264 -1955
- package/kusamaAssetHub/types.d.ts +1262 -726
- package/moonbeam/consts.d.ts +115 -170
- package/moonbeam/errors.d.ts +564 -787
- package/moonbeam/events.d.ts +583 -746
- package/moonbeam/index.d.ts +16 -11
- package/moonbeam/json-rpc.d.ts +137 -0
- package/moonbeam/query.d.ts +507 -607
- package/moonbeam/runtime.d.ts +132 -47
- package/moonbeam/tx.d.ts +3309 -3268
- package/moonbeam/types.d.ts +1484 -1375
- package/package.json +4 -14
- package/paseo/consts.d.ts +1331 -0
- package/paseo/errors.d.ts +2644 -0
- package/paseo/events.d.ts +2821 -0
- package/paseo/index.d.ts +27 -0
- package/paseo/json-rpc.d.ts +103 -0
- package/paseo/query.d.ts +3709 -0
- package/paseo/runtime.d.ts +1205 -0
- package/paseo/tx.d.ts +8024 -0
- package/paseo/types.d.ts +10194 -0
- package/polkadot/consts.d.ts +95 -50
- package/polkadot/errors.d.ts +619 -468
- package/polkadot/events.d.ts +582 -257
- package/polkadot/index.d.ts +16 -11
- package/polkadot/json-rpc.d.ts +103 -0
- package/polkadot/query.d.ts +770 -399
- package/polkadot/runtime.d.ts +136 -65
- package/polkadot/tx.d.ts +4268 -2368
- package/polkadot/types.d.ts +1570 -745
- package/polkadotAssetHub/consts.d.ts +154 -15
- package/polkadotAssetHub/errors.d.ts +615 -234
- package/polkadotAssetHub/events.d.ts +829 -270
- package/polkadotAssetHub/index.d.ts +16 -11
- package/polkadotAssetHub/json-rpc.d.ts +89 -0
- package/polkadotAssetHub/query.d.ts +438 -243
- package/polkadotAssetHub/runtime.d.ts +147 -40
- package/polkadotAssetHub/tx.d.ts +3747 -1643
- package/polkadotAssetHub/types.d.ts +2096 -806
- package/rococo/consts.d.ts +51 -32
- package/rococo/errors.d.ts +549 -605
- package/rococo/events.d.ts +447 -238
- package/rococo/index.d.ts +16 -11
- package/rococo/json-rpc.d.ts +103 -0
- package/rococo/query.d.ts +724 -426
- package/rococo/runtime.d.ts +366 -144
- package/rococo/tx.d.ts +6850 -3079
- package/rococo/types.d.ts +5959 -1619
- package/rococoAssetHub/consts.d.ts +92 -7
- package/rococoAssetHub/errors.d.ts +381 -285
- package/rococoAssetHub/events.d.ts +461 -140
- package/rococoAssetHub/index.d.ts +16 -11
- package/rococoAssetHub/json-rpc.d.ts +89 -0
- package/rococoAssetHub/query.d.ts +487 -174
- package/rococoAssetHub/runtime.d.ts +235 -51
- package/rococoAssetHub/tx.d.ts +6005 -2163
- package/rococoAssetHub/types.d.ts +6683 -1003
- package/substrate/consts.d.ts +233 -52
- package/substrate/errors.d.ts +966 -781
- package/substrate/events.d.ts +1226 -381
- package/substrate/index.d.ts +16 -11
- package/substrate/json-rpc.d.ts +103 -0
- package/substrate/query.d.ts +1090 -460
- package/substrate/runtime.d.ts +274 -71
- package/substrate/tx.d.ts +12313 -4510
- package/substrate/types.d.ts +11036 -1432
- package/westend/consts.d.ts +1349 -0
- package/westend/errors.d.ts +2736 -0
- package/westend/events.d.ts +2906 -0
- package/westend/index.d.ts +27 -0
- package/westend/json-rpc.d.ts +103 -0
- package/westend/query.d.ts +3855 -0
- package/westend/runtime.d.ts +1437 -0
- package/westend/tx.d.ts +10248 -0
- package/westend/types.d.ts +14769 -0
- package/westendAssetHub/consts.d.ts +126 -7
- package/westendAssetHub/errors.d.ts +426 -285
- package/westendAssetHub/events.d.ts +498 -140
- package/westendAssetHub/index.d.ts +16 -11
- package/westendAssetHub/json-rpc.d.ts +89 -0
- package/westendAssetHub/query.d.ts +526 -174
- package/westendAssetHub/runtime.d.ts +245 -56
- package/westendAssetHub/tx.d.ts +6196 -2166
- package/westendAssetHub/types.d.ts +6913 -1002
- package/westendPeople/consts.d.ts +434 -0
- package/westendPeople/errors.d.ts +769 -0
- package/westendPeople/events.d.ts +1082 -0
- package/westendPeople/index.d.ts +27 -0
- package/westendPeople/json-rpc.d.ts +89 -0
- package/westendPeople/query.d.ts +1209 -0
- package/westendPeople/runtime.d.ts +636 -0
- package/westendPeople/tx.d.ts +2891 -0
- package/westendPeople/types.d.ts +4984 -0
- package/aleph/rpc.d.ts +0 -727
- package/astar/rpc.d.ts +0 -974
- package/kusama/rpc.d.ts +0 -904
- package/kusamaAssetHub/rpc.d.ts +0 -746
- package/moonbeam/rpc.d.ts +0 -1015
- package/packageInfo.d.ts +0 -4
- package/packageInfo.js +0 -2
- package/packageInfo.ts +0 -3
- package/polkadot/rpc.d.ts +0 -904
- package/polkadotAssetHub/rpc.d.ts +0 -746
- package/rococo/rpc.d.ts +0 -904
- package/rococoAssetHub/rpc.d.ts +0 -746
- package/substrate/rpc.d.ts +0 -894
- package/westendAssetHub/rpc.d.ts +0 -746
package/aleph/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Generated by
|
|
1
|
+
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '
|
|
3
|
+
import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
|
|
4
4
|
import type {
|
|
5
5
|
RuntimeVersion,
|
|
6
6
|
Header,
|
|
@@ -12,7 +12,8 @@ import type {
|
|
|
12
12
|
Bytes,
|
|
13
13
|
BytesLike,
|
|
14
14
|
AccountId32Like,
|
|
15
|
-
|
|
15
|
+
AccountId32,
|
|
16
|
+
} from 'dedot/codecs';
|
|
16
17
|
import type {
|
|
17
18
|
SpRuntimeBlock,
|
|
18
19
|
SpCoreOpaqueMetadata,
|
|
@@ -40,7 +41,7 @@ import type {
|
|
|
40
41
|
PalletContractsPrimitivesContractAccessError,
|
|
41
42
|
} from './types';
|
|
42
43
|
|
|
43
|
-
export interface RuntimeApis extends GenericRuntimeApis {
|
|
44
|
+
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
44
45
|
/**
|
|
45
46
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
46
47
|
**/
|
|
@@ -50,7 +51,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
50
51
|
*
|
|
51
52
|
* @callname: Core_version
|
|
52
53
|
**/
|
|
53
|
-
version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
|
|
54
|
+
version: GenericRuntimeApiMethod<Rv, () => Promise<RuntimeVersion>>;
|
|
54
55
|
|
|
55
56
|
/**
|
|
56
57
|
* Execute the given block.
|
|
@@ -58,7 +59,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
58
59
|
* @callname: Core_execute_block
|
|
59
60
|
* @param {SpRuntimeBlock} block
|
|
60
61
|
**/
|
|
61
|
-
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
|
|
62
|
+
executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
|
|
62
63
|
|
|
63
64
|
/**
|
|
64
65
|
* Initialize a block with the given header.
|
|
@@ -66,12 +67,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
66
67
|
* @callname: Core_initialize_block
|
|
67
68
|
* @param {Header} header
|
|
68
69
|
**/
|
|
69
|
-
initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
70
|
+
initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
|
|
70
71
|
|
|
71
72
|
/**
|
|
72
73
|
* Generic runtime api call
|
|
73
74
|
**/
|
|
74
|
-
[method: string]: GenericRuntimeApiMethod
|
|
75
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
75
76
|
};
|
|
76
77
|
/**
|
|
77
78
|
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
@@ -82,7 +83,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
82
83
|
*
|
|
83
84
|
* @callname: Metadata_metadata
|
|
84
85
|
**/
|
|
85
|
-
metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
|
|
86
|
+
metadata: GenericRuntimeApiMethod<Rv, () => Promise<SpCoreOpaqueMetadata>>;
|
|
86
87
|
|
|
87
88
|
/**
|
|
88
89
|
* Returns the metadata at a given version.
|
|
@@ -93,7 +94,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
93
94
|
* @callname: Metadata_metadata_at_version
|
|
94
95
|
* @param {number} version
|
|
95
96
|
**/
|
|
96
|
-
metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
97
|
+
metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
97
98
|
|
|
98
99
|
/**
|
|
99
100
|
* Returns the supported metadata versions.
|
|
@@ -102,12 +103,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
102
103
|
*
|
|
103
104
|
* @callname: Metadata_metadata_versions
|
|
104
105
|
**/
|
|
105
|
-
metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
106
|
+
metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
|
|
106
107
|
|
|
107
108
|
/**
|
|
108
109
|
* Generic runtime api call
|
|
109
110
|
**/
|
|
110
|
-
[method: string]: GenericRuntimeApiMethod
|
|
111
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
111
112
|
};
|
|
112
113
|
/**
|
|
113
114
|
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
@@ -123,6 +124,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
123
124
|
* @param {UncheckedExtrinsicLike} extrinsic
|
|
124
125
|
**/
|
|
125
126
|
applyExtrinsic: GenericRuntimeApiMethod<
|
|
127
|
+
Rv,
|
|
126
128
|
(
|
|
127
129
|
extrinsic: UncheckedExtrinsicLike,
|
|
128
130
|
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
@@ -133,7 +135,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
133
135
|
*
|
|
134
136
|
* @callname: BlockBuilder_finalize_block
|
|
135
137
|
**/
|
|
136
|
-
finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
|
|
138
|
+
finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
|
|
137
139
|
|
|
138
140
|
/**
|
|
139
141
|
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
@@ -142,6 +144,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
142
144
|
* @param {SpInherentsInherentData} inherent
|
|
143
145
|
**/
|
|
144
146
|
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
147
|
+
Rv,
|
|
145
148
|
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
146
149
|
>;
|
|
147
150
|
|
|
@@ -153,13 +156,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
153
156
|
* @param {SpInherentsInherentData} data
|
|
154
157
|
**/
|
|
155
158
|
checkInherents: GenericRuntimeApiMethod<
|
|
159
|
+
Rv,
|
|
156
160
|
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
157
161
|
>;
|
|
158
162
|
|
|
159
163
|
/**
|
|
160
164
|
* Generic runtime api call
|
|
161
165
|
**/
|
|
162
|
-
[method: string]: GenericRuntimeApiMethod
|
|
166
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
163
167
|
};
|
|
164
168
|
/**
|
|
165
169
|
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
@@ -182,6 +186,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
182
186
|
* @param {H256} block_hash
|
|
183
187
|
**/
|
|
184
188
|
validateTransaction: GenericRuntimeApiMethod<
|
|
189
|
+
Rv,
|
|
185
190
|
(
|
|
186
191
|
source: SpRuntimeTransactionValidityTransactionSource,
|
|
187
192
|
tx: UncheckedExtrinsicLike,
|
|
@@ -194,7 +199,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
194
199
|
/**
|
|
195
200
|
* Generic runtime api call
|
|
196
201
|
**/
|
|
197
|
-
[method: string]: GenericRuntimeApiMethod
|
|
202
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
198
203
|
};
|
|
199
204
|
/**
|
|
200
205
|
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
@@ -207,19 +212,19 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
207
212
|
*
|
|
208
213
|
* @callname: AuraApi_slot_duration
|
|
209
214
|
**/
|
|
210
|
-
slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
|
|
215
|
+
slotDuration: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusSlotsSlotDuration>>;
|
|
211
216
|
|
|
212
217
|
/**
|
|
213
218
|
* Return the current set of authorities.
|
|
214
219
|
*
|
|
215
220
|
* @callname: AuraApi_authorities
|
|
216
221
|
**/
|
|
217
|
-
authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
222
|
+
authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
218
223
|
|
|
219
224
|
/**
|
|
220
225
|
* Generic runtime api call
|
|
221
226
|
**/
|
|
222
|
-
[method: string]: GenericRuntimeApiMethod
|
|
227
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
223
228
|
};
|
|
224
229
|
/**
|
|
225
230
|
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
@@ -231,12 +236,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
231
236
|
* @callname: OffchainWorkerApi_offchain_worker
|
|
232
237
|
* @param {Header} header
|
|
233
238
|
**/
|
|
234
|
-
offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
|
|
239
|
+
offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
|
|
235
240
|
|
|
236
241
|
/**
|
|
237
242
|
* Generic runtime api call
|
|
238
243
|
**/
|
|
239
|
-
[method: string]: GenericRuntimeApiMethod
|
|
244
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
240
245
|
};
|
|
241
246
|
/**
|
|
242
247
|
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
@@ -254,7 +259,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
254
259
|
* @callname: SessionKeys_generate_session_keys
|
|
255
260
|
* @param {BytesLike | undefined} seed
|
|
256
261
|
**/
|
|
257
|
-
generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
262
|
+
generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
258
263
|
|
|
259
264
|
/**
|
|
260
265
|
* Decode the given public session keys.
|
|
@@ -265,13 +270,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
265
270
|
* @param {BytesLike} encoded
|
|
266
271
|
**/
|
|
267
272
|
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
273
|
+
Rv,
|
|
268
274
|
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
269
275
|
>;
|
|
270
276
|
|
|
271
277
|
/**
|
|
272
278
|
* Generic runtime api call
|
|
273
279
|
**/
|
|
274
|
-
[method: string]: GenericRuntimeApiMethod
|
|
280
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
275
281
|
};
|
|
276
282
|
/**
|
|
277
283
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
@@ -283,12 +289,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
283
289
|
* @callname: AccountNonceApi_account_nonce
|
|
284
290
|
* @param {AccountId32Like} account
|
|
285
291
|
**/
|
|
286
|
-
accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
|
|
292
|
+
accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
|
|
287
293
|
|
|
288
294
|
/**
|
|
289
295
|
* Generic runtime api call
|
|
290
296
|
**/
|
|
291
|
-
[method: string]: GenericRuntimeApiMethod
|
|
297
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
292
298
|
};
|
|
293
299
|
/**
|
|
294
300
|
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
@@ -301,6 +307,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
301
307
|
* @param {number} len
|
|
302
308
|
**/
|
|
303
309
|
queryInfo: GenericRuntimeApiMethod<
|
|
310
|
+
Rv,
|
|
304
311
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
305
312
|
>;
|
|
306
313
|
|
|
@@ -311,6 +318,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
311
318
|
* @param {number} len
|
|
312
319
|
**/
|
|
313
320
|
queryFeeDetails: GenericRuntimeApiMethod<
|
|
321
|
+
Rv,
|
|
314
322
|
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
315
323
|
>;
|
|
316
324
|
|
|
@@ -319,19 +327,19 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
319
327
|
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
320
328
|
* @param {SpWeightsWeightV2Weight} weight
|
|
321
329
|
**/
|
|
322
|
-
queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
330
|
+
queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
323
331
|
|
|
324
332
|
/**
|
|
325
333
|
*
|
|
326
334
|
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
327
335
|
* @param {number} length
|
|
328
336
|
**/
|
|
329
|
-
queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
|
|
337
|
+
queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
|
|
330
338
|
|
|
331
339
|
/**
|
|
332
340
|
* Generic runtime api call
|
|
333
341
|
**/
|
|
334
|
-
[method: string]: GenericRuntimeApiMethod
|
|
342
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
335
343
|
};
|
|
336
344
|
/**
|
|
337
345
|
* @runtimeapi: AlephSessionApi - 0x2be3f75b696ad1f6
|
|
@@ -342,6 +350,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
342
350
|
* @callname: AlephSessionApi_next_session_authorities
|
|
343
351
|
**/
|
|
344
352
|
nextSessionAuthorities: GenericRuntimeApiMethod<
|
|
353
|
+
Rv,
|
|
345
354
|
() => Promise<Result<Array<PrimitivesAppPublic>, PrimitivesApiError>>
|
|
346
355
|
>;
|
|
347
356
|
|
|
@@ -349,13 +358,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
349
358
|
*
|
|
350
359
|
* @callname: AlephSessionApi_authorities
|
|
351
360
|
**/
|
|
352
|
-
authorities: GenericRuntimeApiMethod<() => Promise<Array<PrimitivesAppPublic>>>;
|
|
361
|
+
authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<PrimitivesAppPublic>>>;
|
|
353
362
|
|
|
354
363
|
/**
|
|
355
364
|
*
|
|
356
365
|
* @callname: AlephSessionApi_next_session_authority_data
|
|
357
366
|
**/
|
|
358
367
|
nextSessionAuthorityData: GenericRuntimeApiMethod<
|
|
368
|
+
Rv,
|
|
359
369
|
() => Promise<Result<PrimitivesSessionAuthorityData, PrimitivesApiError>>
|
|
360
370
|
>;
|
|
361
371
|
|
|
@@ -363,31 +373,31 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
363
373
|
*
|
|
364
374
|
* @callname: AlephSessionApi_authority_data
|
|
365
375
|
**/
|
|
366
|
-
authorityData: GenericRuntimeApiMethod<() => Promise<PrimitivesSessionAuthorityData>>;
|
|
376
|
+
authorityData: GenericRuntimeApiMethod<Rv, () => Promise<PrimitivesSessionAuthorityData>>;
|
|
367
377
|
|
|
368
378
|
/**
|
|
369
379
|
*
|
|
370
380
|
* @callname: AlephSessionApi_session_period
|
|
371
381
|
**/
|
|
372
|
-
sessionPeriod: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
382
|
+
sessionPeriod: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
|
|
373
383
|
|
|
374
384
|
/**
|
|
375
385
|
*
|
|
376
386
|
* @callname: AlephSessionApi_millisecs_per_block
|
|
377
387
|
**/
|
|
378
|
-
millisecsPerBlock: GenericRuntimeApiMethod<() => Promise<bigint>>;
|
|
388
|
+
millisecsPerBlock: GenericRuntimeApiMethod<Rv, () => Promise<bigint>>;
|
|
379
389
|
|
|
380
390
|
/**
|
|
381
391
|
*
|
|
382
392
|
* @callname: AlephSessionApi_finality_version
|
|
383
393
|
**/
|
|
384
|
-
finalityVersion: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
394
|
+
finalityVersion: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
|
|
385
395
|
|
|
386
396
|
/**
|
|
387
397
|
*
|
|
388
398
|
* @callname: AlephSessionApi_next_session_finality_version
|
|
389
399
|
**/
|
|
390
|
-
nextSessionFinalityVersion: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
400
|
+
nextSessionFinalityVersion: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
|
|
391
401
|
|
|
392
402
|
/**
|
|
393
403
|
* Predict finality committee and block producers for the given session. `session` must be
|
|
@@ -402,13 +412,33 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
402
412
|
* @param {number} session
|
|
403
413
|
**/
|
|
404
414
|
predictSessionCommittee: GenericRuntimeApiMethod<
|
|
415
|
+
Rv,
|
|
405
416
|
(session: number) => Promise<Result<PrimitivesSessionCommittee, PrimitivesSessionValidatorError>>
|
|
406
417
|
>;
|
|
407
418
|
|
|
419
|
+
/**
|
|
420
|
+
*
|
|
421
|
+
* @callname: AlephSessionApi_next_session_aura_authorities
|
|
422
|
+
**/
|
|
423
|
+
nextSessionAuraAuthorities: GenericRuntimeApiMethod<
|
|
424
|
+
Rv,
|
|
425
|
+
() => Promise<Array<[AccountId32, SpConsensusAuraSr25519AppSr25519Public]>>
|
|
426
|
+
>;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Returns owner (`AccountId`) corresponding to an AuthorityId (in some contexts referenced
|
|
430
|
+
* also as `aleph_key` - consensus engine's part of session keys) in the current session
|
|
431
|
+
* of AlephBFT (finalisation committee).
|
|
432
|
+
*
|
|
433
|
+
* @callname: AlephSessionApi_key_owner
|
|
434
|
+
* @param {PrimitivesAppPublic} key
|
|
435
|
+
**/
|
|
436
|
+
keyOwner: GenericRuntimeApiMethod<Rv, (key: PrimitivesAppPublic) => Promise<AccountId32 | undefined>>;
|
|
437
|
+
|
|
408
438
|
/**
|
|
409
439
|
* Generic runtime api call
|
|
410
440
|
**/
|
|
411
|
-
[method: string]: GenericRuntimeApiMethod
|
|
441
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
412
442
|
};
|
|
413
443
|
/**
|
|
414
444
|
* @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
|
|
@@ -420,7 +450,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
420
450
|
* @callname: NominationPoolsApi_pending_rewards
|
|
421
451
|
* @param {AccountId32Like} who
|
|
422
452
|
**/
|
|
423
|
-
pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
|
|
453
|
+
pendingRewards: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
|
|
424
454
|
|
|
425
455
|
/**
|
|
426
456
|
* Returns the equivalent balance of `points` for a given pool.
|
|
@@ -429,7 +459,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
429
459
|
* @param {number} pool_id
|
|
430
460
|
* @param {bigint} points
|
|
431
461
|
**/
|
|
432
|
-
pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
|
|
462
|
+
pointsToBalance: GenericRuntimeApiMethod<Rv, (poolId: number, points: bigint) => Promise<bigint>>;
|
|
433
463
|
|
|
434
464
|
/**
|
|
435
465
|
* Returns the equivalent points of `new_funds` for a given pool.
|
|
@@ -438,12 +468,29 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
438
468
|
* @param {number} pool_id
|
|
439
469
|
* @param {bigint} new_funds
|
|
440
470
|
**/
|
|
441
|
-
balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
|
|
471
|
+
balanceToPoints: GenericRuntimeApiMethod<Rv, (poolId: number, newFunds: bigint) => Promise<bigint>>;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Generic runtime api call
|
|
475
|
+
**/
|
|
476
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
477
|
+
};
|
|
478
|
+
/**
|
|
479
|
+
* @runtimeapi: StakingApi - 0x18ef58a3b67ba770
|
|
480
|
+
**/
|
|
481
|
+
stakingApi: {
|
|
482
|
+
/**
|
|
483
|
+
* Returns the nominations quota for a nominator with a given balance.
|
|
484
|
+
*
|
|
485
|
+
* @callname: StakingApi_nominations_quota
|
|
486
|
+
* @param {bigint} balance
|
|
487
|
+
**/
|
|
488
|
+
nominationsQuota: GenericRuntimeApiMethod<Rv, (balance: bigint) => Promise<number>>;
|
|
442
489
|
|
|
443
490
|
/**
|
|
444
491
|
* Generic runtime api call
|
|
445
492
|
**/
|
|
446
|
-
[method: string]: GenericRuntimeApiMethod
|
|
493
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
447
494
|
};
|
|
448
495
|
/**
|
|
449
496
|
* @runtimeapi: ContractsApi - 0x68b66ba122c93fa7
|
|
@@ -463,6 +510,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
463
510
|
* @param {BytesLike} input_data
|
|
464
511
|
**/
|
|
465
512
|
call: GenericRuntimeApiMethod<
|
|
513
|
+
Rv,
|
|
466
514
|
(
|
|
467
515
|
origin: AccountId32Like,
|
|
468
516
|
dest: AccountId32Like,
|
|
@@ -488,6 +536,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
488
536
|
* @param {BytesLike} salt
|
|
489
537
|
**/
|
|
490
538
|
instantiate: GenericRuntimeApiMethod<
|
|
539
|
+
Rv,
|
|
491
540
|
(
|
|
492
541
|
origin: AccountId32Like,
|
|
493
542
|
value: bigint,
|
|
@@ -511,6 +560,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
511
560
|
* @param {PalletContractsWasmDeterminism} determinism
|
|
512
561
|
**/
|
|
513
562
|
uploadCode: GenericRuntimeApiMethod<
|
|
563
|
+
Rv,
|
|
514
564
|
(
|
|
515
565
|
origin: AccountId32Like,
|
|
516
566
|
code: BytesLike,
|
|
@@ -531,6 +581,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
531
581
|
* @param {BytesLike} key
|
|
532
582
|
**/
|
|
533
583
|
getStorage: GenericRuntimeApiMethod<
|
|
584
|
+
Rv,
|
|
534
585
|
(
|
|
535
586
|
address: AccountId32Like,
|
|
536
587
|
key: BytesLike,
|
|
@@ -540,6 +591,6 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
540
591
|
/**
|
|
541
592
|
* Generic runtime api call
|
|
542
593
|
**/
|
|
543
|
-
[method: string]: GenericRuntimeApiMethod
|
|
594
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
544
595
|
};
|
|
545
596
|
}
|