@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.
Files changed (144) hide show
  1. package/README.md +3 -1
  2. package/aleph/consts.d.ts +94 -13
  3. package/aleph/errors.d.ts +251 -182
  4. package/aleph/events.d.ts +319 -102
  5. package/aleph/index.d.ts +16 -11
  6. package/aleph/json-rpc.d.ts +76 -0
  7. package/aleph/query.d.ts +261 -168
  8. package/aleph/runtime.d.ts +90 -39
  9. package/aleph/tx.d.ts +1822 -1052
  10. package/aleph/types.d.ts +458 -138
  11. package/astar/consts.d.ts +112 -116
  12. package/astar/errors.d.ts +342 -409
  13. package/astar/events.d.ts +449 -358
  14. package/astar/index.d.ts +16 -11
  15. package/astar/json-rpc.d.ts +131 -0
  16. package/astar/query.d.ts +459 -367
  17. package/astar/runtime.d.ts +591 -98
  18. package/astar/tx.d.ts +2485 -3430
  19. package/astar/types.d.ts +1530 -4436
  20. package/index.d.ts +3 -0
  21. package/index.ts +3 -0
  22. package/kusama/consts.d.ts +54 -115
  23. package/kusama/errors.d.ts +696 -682
  24. package/kusama/events.d.ts +592 -407
  25. package/kusama/index.d.ts +16 -11
  26. package/kusama/json-rpc.d.ts +103 -0
  27. package/kusama/query.d.ts +840 -538
  28. package/kusama/runtime.d.ts +136 -65
  29. package/kusama/tx.d.ts +4557 -3051
  30. package/kusama/types.d.ts +1437 -1161
  31. package/kusamaAssetHub/consts.d.ts +66 -20
  32. package/kusamaAssetHub/errors.d.ts +428 -308
  33. package/kusamaAssetHub/events.d.ts +497 -305
  34. package/kusamaAssetHub/index.d.ts +16 -11
  35. package/kusamaAssetHub/json-rpc.d.ts +89 -0
  36. package/kusamaAssetHub/query.d.ts +376 -253
  37. package/kusamaAssetHub/runtime.d.ts +82 -41
  38. package/kusamaAssetHub/tx.d.ts +3264 -1955
  39. package/kusamaAssetHub/types.d.ts +1262 -726
  40. package/moonbeam/consts.d.ts +115 -170
  41. package/moonbeam/errors.d.ts +564 -787
  42. package/moonbeam/events.d.ts +583 -746
  43. package/moonbeam/index.d.ts +16 -11
  44. package/moonbeam/json-rpc.d.ts +137 -0
  45. package/moonbeam/query.d.ts +507 -607
  46. package/moonbeam/runtime.d.ts +132 -47
  47. package/moonbeam/tx.d.ts +3309 -3268
  48. package/moonbeam/types.d.ts +1484 -1375
  49. package/package.json +4 -14
  50. package/paseo/consts.d.ts +1331 -0
  51. package/paseo/errors.d.ts +2644 -0
  52. package/paseo/events.d.ts +2821 -0
  53. package/paseo/index.d.ts +27 -0
  54. package/paseo/json-rpc.d.ts +103 -0
  55. package/paseo/query.d.ts +3709 -0
  56. package/paseo/runtime.d.ts +1205 -0
  57. package/paseo/tx.d.ts +8024 -0
  58. package/paseo/types.d.ts +10194 -0
  59. package/polkadot/consts.d.ts +95 -50
  60. package/polkadot/errors.d.ts +619 -468
  61. package/polkadot/events.d.ts +582 -257
  62. package/polkadot/index.d.ts +16 -11
  63. package/polkadot/json-rpc.d.ts +103 -0
  64. package/polkadot/query.d.ts +770 -399
  65. package/polkadot/runtime.d.ts +136 -65
  66. package/polkadot/tx.d.ts +4268 -2368
  67. package/polkadot/types.d.ts +1570 -745
  68. package/polkadotAssetHub/consts.d.ts +154 -15
  69. package/polkadotAssetHub/errors.d.ts +615 -234
  70. package/polkadotAssetHub/events.d.ts +829 -270
  71. package/polkadotAssetHub/index.d.ts +16 -11
  72. package/polkadotAssetHub/json-rpc.d.ts +89 -0
  73. package/polkadotAssetHub/query.d.ts +438 -243
  74. package/polkadotAssetHub/runtime.d.ts +147 -40
  75. package/polkadotAssetHub/tx.d.ts +3747 -1643
  76. package/polkadotAssetHub/types.d.ts +2096 -806
  77. package/rococo/consts.d.ts +51 -32
  78. package/rococo/errors.d.ts +549 -605
  79. package/rococo/events.d.ts +447 -238
  80. package/rococo/index.d.ts +16 -11
  81. package/rococo/json-rpc.d.ts +103 -0
  82. package/rococo/query.d.ts +724 -426
  83. package/rococo/runtime.d.ts +366 -144
  84. package/rococo/tx.d.ts +6850 -3079
  85. package/rococo/types.d.ts +5959 -1619
  86. package/rococoAssetHub/consts.d.ts +92 -7
  87. package/rococoAssetHub/errors.d.ts +381 -285
  88. package/rococoAssetHub/events.d.ts +461 -140
  89. package/rococoAssetHub/index.d.ts +16 -11
  90. package/rococoAssetHub/json-rpc.d.ts +89 -0
  91. package/rococoAssetHub/query.d.ts +487 -174
  92. package/rococoAssetHub/runtime.d.ts +235 -51
  93. package/rococoAssetHub/tx.d.ts +6005 -2163
  94. package/rococoAssetHub/types.d.ts +6683 -1003
  95. package/substrate/consts.d.ts +233 -52
  96. package/substrate/errors.d.ts +966 -781
  97. package/substrate/events.d.ts +1226 -381
  98. package/substrate/index.d.ts +16 -11
  99. package/substrate/json-rpc.d.ts +103 -0
  100. package/substrate/query.d.ts +1090 -460
  101. package/substrate/runtime.d.ts +274 -71
  102. package/substrate/tx.d.ts +12313 -4510
  103. package/substrate/types.d.ts +11036 -1432
  104. package/westend/consts.d.ts +1349 -0
  105. package/westend/errors.d.ts +2736 -0
  106. package/westend/events.d.ts +2906 -0
  107. package/westend/index.d.ts +27 -0
  108. package/westend/json-rpc.d.ts +103 -0
  109. package/westend/query.d.ts +3855 -0
  110. package/westend/runtime.d.ts +1437 -0
  111. package/westend/tx.d.ts +10248 -0
  112. package/westend/types.d.ts +14769 -0
  113. package/westendAssetHub/consts.d.ts +126 -7
  114. package/westendAssetHub/errors.d.ts +426 -285
  115. package/westendAssetHub/events.d.ts +498 -140
  116. package/westendAssetHub/index.d.ts +16 -11
  117. package/westendAssetHub/json-rpc.d.ts +89 -0
  118. package/westendAssetHub/query.d.ts +526 -174
  119. package/westendAssetHub/runtime.d.ts +245 -56
  120. package/westendAssetHub/tx.d.ts +6196 -2166
  121. package/westendAssetHub/types.d.ts +6913 -1002
  122. package/westendPeople/consts.d.ts +434 -0
  123. package/westendPeople/errors.d.ts +769 -0
  124. package/westendPeople/events.d.ts +1082 -0
  125. package/westendPeople/index.d.ts +27 -0
  126. package/westendPeople/json-rpc.d.ts +89 -0
  127. package/westendPeople/query.d.ts +1209 -0
  128. package/westendPeople/runtime.d.ts +636 -0
  129. package/westendPeople/tx.d.ts +2891 -0
  130. package/westendPeople/types.d.ts +4984 -0
  131. package/aleph/rpc.d.ts +0 -727
  132. package/astar/rpc.d.ts +0 -974
  133. package/kusama/rpc.d.ts +0 -904
  134. package/kusamaAssetHub/rpc.d.ts +0 -746
  135. package/moonbeam/rpc.d.ts +0 -1015
  136. package/packageInfo.d.ts +0 -4
  137. package/packageInfo.js +0 -2
  138. package/packageInfo.ts +0 -3
  139. package/polkadot/rpc.d.ts +0 -904
  140. package/polkadotAssetHub/rpc.d.ts +0 -746
  141. package/rococo/rpc.d.ts +0 -904
  142. package/rococoAssetHub/rpc.d.ts +0 -746
  143. package/substrate/rpc.d.ts +0 -894
  144. package/westendAssetHub/rpc.d.ts +0 -746
@@ -1,6 +1,6 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
- import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '@dedot/types';
3
+ import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
4
4
  import type {
5
5
  RuntimeVersion,
6
6
  Header,
@@ -13,9 +13,10 @@ import type {
13
13
  BytesLike,
14
14
  Bytes,
15
15
  AccountId32,
16
- } from '@dedot/codecs';
16
+ } from 'dedot/codecs';
17
17
  import type {
18
18
  SpRuntimeBlock,
19
+ SpRuntimeExtrinsicInclusionMode,
19
20
  SpCoreOpaqueMetadata,
20
21
  SpRuntimeTransactionValidityTransactionValidityError,
21
22
  SpInherentsInherentData,
@@ -45,15 +46,22 @@ import type {
45
46
  PalletContractsPrimitivesContractAccessError,
46
47
  PalletTransactionPaymentRuntimeDispatchInfo,
47
48
  PalletTransactionPaymentFeeDetails,
48
- PalletAssetConversionNativeOrAssetId,
49
+ FrameSupportTokensFungibleUnionOfNativeOrWithId,
49
50
  KitchensinkRuntimeRuntimeCallLike,
51
+ SpConsensusBeefyValidatorSet,
52
+ SpConsensusBeefyEquivocationProof,
53
+ SpConsensusBeefyOpaqueKeyOwnershipProof,
54
+ SpConsensusBeefyEcdsaCryptoPublic,
50
55
  SpMmrPrimitivesError,
51
56
  SpMmrPrimitivesEncodableOpaqueLeaf,
52
57
  SpMmrPrimitivesProof,
58
+ SpMixnetSessionStatus,
59
+ SpMixnetMixnode,
60
+ SpMixnetMixnodesErr,
53
61
  SpCoreCryptoKeyTypeId,
54
62
  } from './types';
55
63
 
56
- export interface RuntimeApis extends GenericRuntimeApis {
64
+ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
57
65
  /**
58
66
  * @runtimeapi: Core - 0xdf6acb689907609b
59
67
  **/
@@ -63,7 +71,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
63
71
  *
64
72
  * @callname: Core_version
65
73
  **/
66
- version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
74
+ version: GenericRuntimeApiMethod<Rv, () => Promise<RuntimeVersion>>;
67
75
 
68
76
  /**
69
77
  * Execute the given block.
@@ -71,20 +79,20 @@ export interface RuntimeApis extends GenericRuntimeApis {
71
79
  * @callname: Core_execute_block
72
80
  * @param {SpRuntimeBlock} block
73
81
  **/
74
- executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
82
+ executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
75
83
 
76
84
  /**
77
- * Initialize a block with the given header.
85
+ * Initialize a block with the given header and return the runtime executive mode.
78
86
  *
79
87
  * @callname: Core_initialize_block
80
88
  * @param {Header} header
81
89
  **/
82
- initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
90
+ initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
83
91
 
84
92
  /**
85
93
  * Generic runtime api call
86
94
  **/
87
- [method: string]: GenericRuntimeApiMethod;
95
+ [method: string]: GenericRuntimeApiMethod<Rv>;
88
96
  };
89
97
  /**
90
98
  * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
@@ -95,7 +103,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
95
103
  *
96
104
  * @callname: Metadata_metadata
97
105
  **/
98
- metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
106
+ metadata: GenericRuntimeApiMethod<Rv, () => Promise<SpCoreOpaqueMetadata>>;
99
107
 
100
108
  /**
101
109
  * Returns the metadata at a given version.
@@ -106,7 +114,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
106
114
  * @callname: Metadata_metadata_at_version
107
115
  * @param {number} version
108
116
  **/
109
- metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
117
+ metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
110
118
 
111
119
  /**
112
120
  * Returns the supported metadata versions.
@@ -115,12 +123,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
115
123
  *
116
124
  * @callname: Metadata_metadata_versions
117
125
  **/
118
- metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
126
+ metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
119
127
 
120
128
  /**
121
129
  * Generic runtime api call
122
130
  **/
123
- [method: string]: GenericRuntimeApiMethod;
131
+ [method: string]: GenericRuntimeApiMethod<Rv>;
124
132
  };
125
133
  /**
126
134
  * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
@@ -136,6 +144,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
136
144
  * @param {UncheckedExtrinsicLike} extrinsic
137
145
  **/
138
146
  applyExtrinsic: GenericRuntimeApiMethod<
147
+ Rv,
139
148
  (
140
149
  extrinsic: UncheckedExtrinsicLike,
141
150
  ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
@@ -146,7 +155,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
146
155
  *
147
156
  * @callname: BlockBuilder_finalize_block
148
157
  **/
149
- finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
158
+ finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
150
159
 
151
160
  /**
152
161
  * Generate inherent extrinsics. The inherent data will vary from chain to chain.
@@ -155,6 +164,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
155
164
  * @param {SpInherentsInherentData} inherent
156
165
  **/
157
166
  inherentExtrinsics: GenericRuntimeApiMethod<
167
+ Rv,
158
168
  (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
159
169
  >;
160
170
 
@@ -166,13 +176,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
166
176
  * @param {SpInherentsInherentData} data
167
177
  **/
168
178
  checkInherents: GenericRuntimeApiMethod<
179
+ Rv,
169
180
  (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
170
181
  >;
171
182
 
172
183
  /**
173
184
  * Generic runtime api call
174
185
  **/
175
- [method: string]: GenericRuntimeApiMethod;
186
+ [method: string]: GenericRuntimeApiMethod<Rv>;
176
187
  };
177
188
  /**
178
189
  * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
@@ -195,6 +206,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
195
206
  * @param {H256} block_hash
196
207
  **/
197
208
  validateTransaction: GenericRuntimeApiMethod<
209
+ Rv,
198
210
  (
199
211
  source: SpRuntimeTransactionValidityTransactionSource,
200
212
  tx: UncheckedExtrinsicLike,
@@ -207,7 +219,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
207
219
  /**
208
220
  * Generic runtime api call
209
221
  **/
210
- [method: string]: GenericRuntimeApiMethod;
222
+ [method: string]: GenericRuntimeApiMethod<Rv>;
211
223
  };
212
224
  /**
213
225
  * @runtimeapi: ValidateStatement - 0xbe9fb0c91a8046cf
@@ -221,6 +233,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
221
233
  * @param {SpStatementStoreStatement} statement
222
234
  **/
223
235
  validateStatement: GenericRuntimeApiMethod<
236
+ Rv,
224
237
  (
225
238
  source: SpStatementStoreRuntimeApiStatementSource,
226
239
  statement: SpStatementStoreStatement,
@@ -230,7 +243,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
230
243
  /**
231
244
  * Generic runtime api call
232
245
  **/
233
- [method: string]: GenericRuntimeApiMethod;
246
+ [method: string]: GenericRuntimeApiMethod<Rv>;
234
247
  };
235
248
  /**
236
249
  * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
@@ -242,12 +255,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
242
255
  * @callname: OffchainWorkerApi_offchain_worker
243
256
  * @param {Header} header
244
257
  **/
245
- offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
258
+ offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
246
259
 
247
260
  /**
248
261
  * Generic runtime api call
249
262
  **/
250
- [method: string]: GenericRuntimeApiMethod;
263
+ [method: string]: GenericRuntimeApiMethod<Rv>;
251
264
  };
252
265
  /**
253
266
  * @runtimeapi: GrandpaApi - 0xed99c5acb25eedf5
@@ -263,7 +276,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
263
276
  *
264
277
  * @callname: GrandpaApi_grandpa_authorities
265
278
  **/
266
- grandpaAuthorities: GenericRuntimeApiMethod<() => Promise<Array<[SpConsensusGrandpaAppPublic, bigint]>>>;
279
+ grandpaAuthorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<[SpConsensusGrandpaAppPublic, bigint]>>>;
267
280
 
268
281
  /**
269
282
  * Submits an unsigned extrinsic to report an equivocation. The caller
@@ -280,6 +293,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
280
293
  * @param {SpConsensusGrandpaOpaqueKeyOwnershipProof} key_owner_proof
281
294
  **/
282
295
  submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
296
+ Rv,
283
297
  (
284
298
  equivocationProof: SpConsensusGrandpaEquivocationProof,
285
299
  keyOwnerProof: SpConsensusGrandpaOpaqueKeyOwnershipProof,
@@ -304,6 +318,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
304
318
  * @param {SpConsensusGrandpaAppPublic} authority_id
305
319
  **/
306
320
  generateKeyOwnershipProof: GenericRuntimeApiMethod<
321
+ Rv,
307
322
  (
308
323
  setId: bigint,
309
324
  authorityId: SpConsensusGrandpaAppPublic,
@@ -315,12 +330,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
315
330
  *
316
331
  * @callname: GrandpaApi_current_set_id
317
332
  **/
318
- currentSetId: GenericRuntimeApiMethod<() => Promise<bigint>>;
333
+ currentSetId: GenericRuntimeApiMethod<Rv, () => Promise<bigint>>;
319
334
 
320
335
  /**
321
336
  * Generic runtime api call
322
337
  **/
323
- [method: string]: GenericRuntimeApiMethod;
338
+ [method: string]: GenericRuntimeApiMethod<Rv>;
324
339
  };
325
340
  /**
326
341
  * @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
@@ -332,7 +347,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
332
347
  * @callname: NominationPoolsApi_pending_rewards
333
348
  * @param {AccountId32Like} who
334
349
  **/
335
- pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
350
+ pendingRewards: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
336
351
 
337
352
  /**
338
353
  * Returns the equivalent balance of `points` for a given pool.
@@ -341,7 +356,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
341
356
  * @param {number} pool_id
342
357
  * @param {bigint} points
343
358
  **/
344
- pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
359
+ pointsToBalance: GenericRuntimeApiMethod<Rv, (poolId: number, points: bigint) => Promise<bigint>>;
345
360
 
346
361
  /**
347
362
  * Returns the equivalent points of `new_funds` for a given pool.
@@ -350,12 +365,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
350
365
  * @param {number} pool_id
351
366
  * @param {bigint} new_funds
352
367
  **/
353
- balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
368
+ balanceToPoints: GenericRuntimeApiMethod<Rv, (poolId: number, newFunds: bigint) => Promise<bigint>>;
354
369
 
355
370
  /**
356
371
  * Generic runtime api call
357
372
  **/
358
- [method: string]: GenericRuntimeApiMethod;
373
+ [method: string]: GenericRuntimeApiMethod<Rv>;
359
374
  };
360
375
  /**
361
376
  * @runtimeapi: StakingApi - 0x18ef58a3b67ba770
@@ -367,12 +382,21 @@ export interface RuntimeApis extends GenericRuntimeApis {
367
382
  * @callname: StakingApi_nominations_quota
368
383
  * @param {bigint} balance
369
384
  **/
370
- nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
385
+ nominationsQuota: GenericRuntimeApiMethod<Rv, (balance: bigint) => Promise<number>>;
386
+
387
+ /**
388
+ * Returns the page count of exposures for a validator in a given era.
389
+ *
390
+ * @callname: StakingApi_eras_stakers_page_count
391
+ * @param {number} era
392
+ * @param {AccountId32Like} account
393
+ **/
394
+ erasStakersPageCount: GenericRuntimeApiMethod<Rv, (era: number, account: AccountId32Like) => Promise<number>>;
371
395
 
372
396
  /**
373
397
  * Generic runtime api call
374
398
  **/
375
- [method: string]: GenericRuntimeApiMethod;
399
+ [method: string]: GenericRuntimeApiMethod<Rv>;
376
400
  };
377
401
  /**
378
402
  * @runtimeapi: BabeApi - 0xcbca25e39f142387
@@ -383,21 +407,21 @@ export interface RuntimeApis extends GenericRuntimeApis {
383
407
  *
384
408
  * @callname: BabeApi_configuration
385
409
  **/
386
- configuration: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeBabeConfiguration>>;
410
+ configuration: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusBabeBabeConfiguration>>;
387
411
 
388
412
  /**
389
413
  * Returns the slot that started the current epoch.
390
414
  *
391
415
  * @callname: BabeApi_current_epoch_start
392
416
  **/
393
- currentEpochStart: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlot>>;
417
+ currentEpochStart: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusSlotsSlot>>;
394
418
 
395
419
  /**
396
420
  * Returns information regarding the current epoch.
397
421
  *
398
422
  * @callname: BabeApi_current_epoch
399
423
  **/
400
- currentEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
424
+ currentEpoch: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusBabeEpoch>>;
401
425
 
402
426
  /**
403
427
  * Returns information regarding the next epoch (which was already
@@ -405,7 +429,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
405
429
  *
406
430
  * @callname: BabeApi_next_epoch
407
431
  **/
408
- nextEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
432
+ nextEpoch: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusBabeEpoch>>;
409
433
 
410
434
  /**
411
435
  * Generates a proof of key ownership for the given authority in the
@@ -425,6 +449,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
425
449
  * @param {SpConsensusBabeAppPublic} authority_id
426
450
  **/
427
451
  generateKeyOwnershipProof: GenericRuntimeApiMethod<
452
+ Rv,
428
453
  (
429
454
  slot: SpConsensusSlotsSlot,
430
455
  authorityId: SpConsensusBabeAppPublic,
@@ -446,6 +471,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
446
471
  * @param {SpConsensusBabeOpaqueKeyOwnershipProof} key_owner_proof
447
472
  **/
448
473
  submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
474
+ Rv,
449
475
  (
450
476
  equivocationProof: SpConsensusSlotsEquivocationProof,
451
477
  keyOwnerProof: SpConsensusBabeOpaqueKeyOwnershipProof,
@@ -455,7 +481,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
455
481
  /**
456
482
  * Generic runtime api call
457
483
  **/
458
- [method: string]: GenericRuntimeApiMethod;
484
+ [method: string]: GenericRuntimeApiMethod<Rv>;
459
485
  };
460
486
  /**
461
487
  * @runtimeapi: AuthorityDiscoveryApi - 0x687ad44ad37f03c2
@@ -466,12 +492,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
466
492
  *
467
493
  * @callname: AuthorityDiscoveryApi_authorities
468
494
  **/
469
- authorities: GenericRuntimeApiMethod<() => Promise<Array<SpAuthorityDiscoveryAppPublic>>>;
495
+ authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpAuthorityDiscoveryAppPublic>>>;
470
496
 
471
497
  /**
472
498
  * Generic runtime api call
473
499
  **/
474
- [method: string]: GenericRuntimeApiMethod;
500
+ [method: string]: GenericRuntimeApiMethod<Rv>;
475
501
  };
476
502
  /**
477
503
  * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
@@ -483,12 +509,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
483
509
  * @callname: AccountNonceApi_account_nonce
484
510
  * @param {AccountId32Like} account
485
511
  **/
486
- accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
512
+ accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
487
513
 
488
514
  /**
489
515
  * Generic runtime api call
490
516
  **/
491
- [method: string]: GenericRuntimeApiMethod;
517
+ [method: string]: GenericRuntimeApiMethod<Rv>;
492
518
  };
493
519
  /**
494
520
  * @runtimeapi: AssetsApi - 0x8453b50b22293977
@@ -500,12 +526,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
500
526
  * @callname: AssetsApi_account_balances
501
527
  * @param {AccountId32Like} account
502
528
  **/
503
- accountBalances: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<Array<[number, bigint]>>>;
529
+ accountBalances: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<Array<[number, bigint]>>>;
504
530
 
505
531
  /**
506
532
  * Generic runtime api call
507
533
  **/
508
- [method: string]: GenericRuntimeApiMethod;
534
+ [method: string]: GenericRuntimeApiMethod<Rv>;
509
535
  };
510
536
  /**
511
537
  * @runtimeapi: ContractsApi - 0x68b66ba122c93fa7
@@ -525,6 +551,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
525
551
  * @param {BytesLike} input_data
526
552
  **/
527
553
  call: GenericRuntimeApiMethod<
554
+ Rv,
528
555
  (
529
556
  origin: AccountId32Like,
530
557
  dest: AccountId32Like,
@@ -550,6 +577,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
550
577
  * @param {BytesLike} salt
551
578
  **/
552
579
  instantiate: GenericRuntimeApiMethod<
580
+ Rv,
553
581
  (
554
582
  origin: AccountId32Like,
555
583
  value: bigint,
@@ -573,6 +601,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
573
601
  * @param {PalletContractsWasmDeterminism} determinism
574
602
  **/
575
603
  uploadCode: GenericRuntimeApiMethod<
604
+ Rv,
576
605
  (
577
606
  origin: AccountId32Like,
578
607
  code: BytesLike,
@@ -593,6 +622,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
593
622
  * @param {BytesLike} key
594
623
  **/
595
624
  getStorage: GenericRuntimeApiMethod<
625
+ Rv,
596
626
  (
597
627
  address: AccountId32Like,
598
628
  key: BytesLike,
@@ -602,7 +632,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
602
632
  /**
603
633
  * Generic runtime api call
604
634
  **/
605
- [method: string]: GenericRuntimeApiMethod;
635
+ [method: string]: GenericRuntimeApiMethod<Rv>;
606
636
  };
607
637
  /**
608
638
  * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
@@ -615,6 +645,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
615
645
  * @param {number} len
616
646
  **/
617
647
  queryInfo: GenericRuntimeApiMethod<
648
+ Rv,
618
649
  (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
619
650
  >;
620
651
 
@@ -625,6 +656,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
625
656
  * @param {number} len
626
657
  **/
627
658
  queryFeeDetails: GenericRuntimeApiMethod<
659
+ Rv,
628
660
  (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
629
661
  >;
630
662
 
@@ -633,19 +665,19 @@ export interface RuntimeApis extends GenericRuntimeApis {
633
665
  * @callname: TransactionPaymentApi_query_weight_to_fee
634
666
  * @param {SpWeightsWeightV2Weight} weight
635
667
  **/
636
- queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
668
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
637
669
 
638
670
  /**
639
671
  *
640
672
  * @callname: TransactionPaymentApi_query_length_to_fee
641
673
  * @param {number} length
642
674
  **/
643
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
675
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
644
676
 
645
677
  /**
646
678
  * Generic runtime api call
647
679
  **/
648
- [method: string]: GenericRuntimeApiMethod;
680
+ [method: string]: GenericRuntimeApiMethod<Rv>;
649
681
  };
650
682
  /**
651
683
  * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
@@ -658,15 +690,16 @@ export interface RuntimeApis extends GenericRuntimeApis {
658
690
  * (Use `amount_in_max` to control slippage.)
659
691
  *
660
692
  * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
661
- * @param {PalletAssetConversionNativeOrAssetId} asset1
662
- * @param {PalletAssetConversionNativeOrAssetId} asset2
693
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset1
694
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset2
663
695
  * @param {bigint} amount
664
696
  * @param {boolean} include_fee
665
697
  **/
666
698
  quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
699
+ Rv,
667
700
  (
668
- asset1: PalletAssetConversionNativeOrAssetId,
669
- asset2: PalletAssetConversionNativeOrAssetId,
701
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId,
702
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId,
670
703
  amount: bigint,
671
704
  includeFee: boolean,
672
705
  ) => Promise<bigint | undefined>
@@ -679,15 +712,16 @@ export interface RuntimeApis extends GenericRuntimeApis {
679
712
  * (Use `amount_out_min` to control slippage.)
680
713
  *
681
714
  * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
682
- * @param {PalletAssetConversionNativeOrAssetId} asset1
683
- * @param {PalletAssetConversionNativeOrAssetId} asset2
715
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset1
716
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset2
684
717
  * @param {bigint} amount
685
718
  * @param {boolean} include_fee
686
719
  **/
687
720
  quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
721
+ Rv,
688
722
  (
689
- asset1: PalletAssetConversionNativeOrAssetId,
690
- asset2: PalletAssetConversionNativeOrAssetId,
723
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId,
724
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId,
691
725
  amount: bigint,
692
726
  includeFee: boolean,
693
727
  ) => Promise<bigint | undefined>
@@ -697,20 +731,21 @@ export interface RuntimeApis extends GenericRuntimeApis {
697
731
  * Returns the size of the liquidity pool for the given asset pair.
698
732
  *
699
733
  * @callname: AssetConversionApi_get_reserves
700
- * @param {PalletAssetConversionNativeOrAssetId} asset1
701
- * @param {PalletAssetConversionNativeOrAssetId} asset2
734
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset1
735
+ * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} asset2
702
736
  **/
703
737
  getReserves: GenericRuntimeApiMethod<
738
+ Rv,
704
739
  (
705
- asset1: PalletAssetConversionNativeOrAssetId,
706
- asset2: PalletAssetConversionNativeOrAssetId,
740
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId,
741
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId,
707
742
  ) => Promise<[bigint, bigint] | undefined>
708
743
  >;
709
744
 
710
745
  /**
711
746
  * Generic runtime api call
712
747
  **/
713
- [method: string]: GenericRuntimeApiMethod;
748
+ [method: string]: GenericRuntimeApiMethod<Rv>;
714
749
  };
715
750
  /**
716
751
  * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
@@ -724,6 +759,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
724
759
  * @param {number} len
725
760
  **/
726
761
  queryCallInfo: GenericRuntimeApiMethod<
762
+ Rv,
727
763
  (call: KitchensinkRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
728
764
  >;
729
765
 
@@ -735,6 +771,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
735
771
  * @param {number} len
736
772
  **/
737
773
  queryCallFeeDetails: GenericRuntimeApiMethod<
774
+ Rv,
738
775
  (call: KitchensinkRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
739
776
  >;
740
777
 
@@ -744,7 +781,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
744
781
  * @callname: TransactionPaymentCallApi_query_weight_to_fee
745
782
  * @param {SpWeightsWeightV2Weight} weight
746
783
  **/
747
- queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
784
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
748
785
 
749
786
  /**
750
787
  * Query the output of the current `LengthToFee` given some input.
@@ -752,12 +789,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
752
789
  * @callname: TransactionPaymentCallApi_query_length_to_fee
753
790
  * @param {number} length
754
791
  **/
755
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
792
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
756
793
 
757
794
  /**
758
795
  * Generic runtime api call
759
796
  **/
760
- [method: string]: GenericRuntimeApiMethod;
797
+ [method: string]: GenericRuntimeApiMethod<Rv>;
761
798
  };
762
799
  /**
763
800
  * @runtimeapi: NftsApi - 0x899a250cbe84f250
@@ -769,14 +806,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
769
806
  * @param {number} collection
770
807
  * @param {number} item
771
808
  **/
772
- owner: GenericRuntimeApiMethod<(collection: number, item: number) => Promise<AccountId32 | undefined>>;
809
+ owner: GenericRuntimeApiMethod<Rv, (collection: number, item: number) => Promise<AccountId32 | undefined>>;
773
810
 
774
811
  /**
775
812
  *
776
813
  * @callname: NftsApi_collection_owner
777
814
  * @param {number} collection
778
815
  **/
779
- collectionOwner: GenericRuntimeApiMethod<(collection: number) => Promise<AccountId32 | undefined>>;
816
+ collectionOwner: GenericRuntimeApiMethod<Rv, (collection: number) => Promise<AccountId32 | undefined>>;
780
817
 
781
818
  /**
782
819
  *
@@ -786,6 +823,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
786
823
  * @param {BytesLike} key
787
824
  **/
788
825
  attribute: GenericRuntimeApiMethod<
826
+ Rv,
789
827
  (collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>
790
828
  >;
791
829
 
@@ -798,6 +836,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
798
836
  * @param {BytesLike} key
799
837
  **/
800
838
  customAttribute: GenericRuntimeApiMethod<
839
+ Rv,
801
840
  (account: AccountId32Like, collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>
802
841
  >;
803
842
 
@@ -805,11 +844,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
805
844
  *
806
845
  * @callname: NftsApi_system_attribute
807
846
  * @param {number} collection
808
- * @param {number} item
847
+ * @param {number | undefined} item
809
848
  * @param {BytesLike} key
810
849
  **/
811
850
  systemAttribute: GenericRuntimeApiMethod<
812
- (collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>
851
+ Rv,
852
+ (collection: number, item: number | undefined, key: BytesLike) => Promise<Bytes | undefined>
813
853
  >;
814
854
 
815
855
  /**
@@ -818,12 +858,85 @@ export interface RuntimeApis extends GenericRuntimeApis {
818
858
  * @param {number} collection
819
859
  * @param {BytesLike} key
820
860
  **/
821
- collectionAttribute: GenericRuntimeApiMethod<(collection: number, key: BytesLike) => Promise<Bytes | undefined>>;
861
+ collectionAttribute: GenericRuntimeApiMethod<
862
+ Rv,
863
+ (collection: number, key: BytesLike) => Promise<Bytes | undefined>
864
+ >;
822
865
 
823
866
  /**
824
867
  * Generic runtime api call
825
868
  **/
826
- [method: string]: GenericRuntimeApiMethod;
869
+ [method: string]: GenericRuntimeApiMethod<Rv>;
870
+ };
871
+ /**
872
+ * @runtimeapi: BeefyApi - 0x49eaaf1b548a0cb0
873
+ **/
874
+ beefyApi: {
875
+ /**
876
+ * Return the block number where BEEFY consensus is enabled/started
877
+ *
878
+ * @callname: BeefyApi_beefy_genesis
879
+ **/
880
+ beefyGenesis: GenericRuntimeApiMethod<Rv, () => Promise<number | undefined>>;
881
+
882
+ /**
883
+ * Return the current active BEEFY validator set
884
+ *
885
+ * @callname: BeefyApi_validator_set
886
+ **/
887
+ validatorSet: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusBeefyValidatorSet | undefined>>;
888
+
889
+ /**
890
+ * Submits an unsigned extrinsic to report an equivocation. The caller
891
+ * must provide the equivocation proof and a key ownership proof
892
+ * (should be obtained using `generate_key_ownership_proof`). The
893
+ * extrinsic will be unsigned and should only be accepted for local
894
+ * authorship (not to be broadcast to the network). This method returns
895
+ * `None` when creation of the extrinsic fails, e.g. if equivocation
896
+ * reporting is disabled for the given runtime (i.e. this method is
897
+ * hardcoded to return `None`). Only useful in an offchain context.
898
+ *
899
+ * @callname: BeefyApi_submit_report_equivocation_unsigned_extrinsic
900
+ * @param {SpConsensusBeefyEquivocationProof} equivocation_proof
901
+ * @param {SpConsensusBeefyOpaqueKeyOwnershipProof} key_owner_proof
902
+ **/
903
+ submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
904
+ Rv,
905
+ (
906
+ equivocationProof: SpConsensusBeefyEquivocationProof,
907
+ keyOwnerProof: SpConsensusBeefyOpaqueKeyOwnershipProof,
908
+ ) => Promise<[] | undefined>
909
+ >;
910
+
911
+ /**
912
+ * Generates a proof of key ownership for the given authority in the
913
+ * given set. An example usage of this module is coupled with the
914
+ * session historical module to prove that a given authority key is
915
+ * tied to a given staking identity during a specific session. Proofs
916
+ * of key ownership are necessary for submitting equivocation reports.
917
+ * NOTE: even though the API takes a `set_id` as parameter the current
918
+ * implementations ignores this parameter and instead relies on this
919
+ * method being called at the correct block height, i.e. any point at
920
+ * which the given set id is live on-chain. Future implementations will
921
+ * instead use indexed data through an offchain worker, not requiring
922
+ * older states to be available.
923
+ *
924
+ * @callname: BeefyApi_generate_key_ownership_proof
925
+ * @param {bigint} set_id
926
+ * @param {SpConsensusBeefyEcdsaCryptoPublic} authority_id
927
+ **/
928
+ generateKeyOwnershipProof: GenericRuntimeApiMethod<
929
+ Rv,
930
+ (
931
+ setId: bigint,
932
+ authorityId: SpConsensusBeefyEcdsaCryptoPublic,
933
+ ) => Promise<SpConsensusBeefyOpaqueKeyOwnershipProof | undefined>
934
+ >;
935
+
936
+ /**
937
+ * Generic runtime api call
938
+ **/
939
+ [method: string]: GenericRuntimeApiMethod<Rv>;
827
940
  };
828
941
  /**
829
942
  * @runtimeapi: MmrApi - 0x91d5df18b0d2cf58
@@ -834,14 +947,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
834
947
  *
835
948
  * @callname: MmrApi_mmr_root
836
949
  **/
837
- mmrRoot: GenericRuntimeApiMethod<() => Promise<Result<H256, SpMmrPrimitivesError>>>;
950
+ mmrRoot: GenericRuntimeApiMethod<Rv, () => Promise<Result<H256, SpMmrPrimitivesError>>>;
838
951
 
839
952
  /**
840
953
  * Return the number of MMR blocks in the chain.
841
954
  *
842
955
  * @callname: MmrApi_mmr_leaf_count
843
956
  **/
844
- mmrLeafCount: GenericRuntimeApiMethod<() => Promise<Result<bigint, SpMmrPrimitivesError>>>;
957
+ mmrLeafCount: GenericRuntimeApiMethod<Rv, () => Promise<Result<bigint, SpMmrPrimitivesError>>>;
845
958
 
846
959
  /**
847
960
  * Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,
@@ -852,6 +965,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
852
965
  * @param {number | undefined} best_known_block_number
853
966
  **/
854
967
  generateProof: GenericRuntimeApiMethod<
968
+ Rv,
855
969
  (
856
970
  blockNumbers: Array<number>,
857
971
  bestKnownBlockNumber?: number | undefined,
@@ -870,6 +984,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
870
984
  * @param {SpMmrPrimitivesProof} proof
871
985
  **/
872
986
  verifyProof: GenericRuntimeApiMethod<
987
+ Rv,
873
988
  (
874
989
  leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
875
990
  proof: SpMmrPrimitivesProof,
@@ -891,6 +1006,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
891
1006
  * @param {SpMmrPrimitivesProof} proof
892
1007
  **/
893
1008
  verifyProofStateless: GenericRuntimeApiMethod<
1009
+ Rv,
894
1010
  (
895
1011
  root: H256,
896
1012
  leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
@@ -901,7 +1017,60 @@ export interface RuntimeApis extends GenericRuntimeApis {
901
1017
  /**
902
1018
  * Generic runtime api call
903
1019
  **/
904
- [method: string]: GenericRuntimeApiMethod;
1020
+ [method: string]: GenericRuntimeApiMethod<Rv>;
1021
+ };
1022
+ /**
1023
+ * @runtimeapi: MixnetApi - 0x6fd7c327202e4a8d
1024
+ **/
1025
+ mixnetApi: {
1026
+ /**
1027
+ * Get the index and phase of the current session.
1028
+ *
1029
+ * @callname: MixnetApi_session_status
1030
+ **/
1031
+ sessionStatus: GenericRuntimeApiMethod<Rv, () => Promise<SpMixnetSessionStatus>>;
1032
+
1033
+ /**
1034
+ * Get the mixnode set for the previous session.
1035
+ *
1036
+ * @callname: MixnetApi_prev_mixnodes
1037
+ **/
1038
+ prevMixnodes: GenericRuntimeApiMethod<Rv, () => Promise<Result<Array<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
1039
+
1040
+ /**
1041
+ * Get the mixnode set for the current session.
1042
+ *
1043
+ * @callname: MixnetApi_current_mixnodes
1044
+ **/
1045
+ currentMixnodes: GenericRuntimeApiMethod<Rv, () => Promise<Result<Array<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
1046
+
1047
+ /**
1048
+ * Try to register a mixnode for the next session.
1049
+ *
1050
+ * If a registration extrinsic is submitted, `true` is returned. The caller should avoid
1051
+ * calling `maybe_register` again for a few blocks, to give the submitted extrinsic a
1052
+ * chance to get included.
1053
+ *
1054
+ * With the above exception, `maybe_register` is designed to be called every block. Most
1055
+ * of the time it will not do anything, for example:
1056
+ *
1057
+ * - If it is not an appropriate time to submit a registration extrinsic.
1058
+ * - If the local node has already registered a mixnode for the next session.
1059
+ * - If the local node is not permitted to register a mixnode for the next session.
1060
+ *
1061
+ * `session_index` should match `session_status().current_index`; if it does not, `false`
1062
+ * is returned immediately.
1063
+ *
1064
+ * @callname: MixnetApi_maybe_register
1065
+ * @param {number} session_index
1066
+ * @param {SpMixnetMixnode} mixnode
1067
+ **/
1068
+ maybeRegister: GenericRuntimeApiMethod<Rv, (sessionIndex: number, mixnode: SpMixnetMixnode) => Promise<boolean>>;
1069
+
1070
+ /**
1071
+ * Generic runtime api call
1072
+ **/
1073
+ [method: string]: GenericRuntimeApiMethod<Rv>;
905
1074
  };
906
1075
  /**
907
1076
  * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
@@ -919,7 +1088,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
919
1088
  * @callname: SessionKeys_generate_session_keys
920
1089
  * @param {BytesLike | undefined} seed
921
1090
  **/
922
- generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
1091
+ generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
923
1092
 
924
1093
  /**
925
1094
  * Decode the given public session keys.
@@ -930,12 +1099,46 @@ export interface RuntimeApis extends GenericRuntimeApis {
930
1099
  * @param {BytesLike} encoded
931
1100
  **/
932
1101
  decodeSessionKeys: GenericRuntimeApiMethod<
1102
+ Rv,
933
1103
  (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
934
1104
  >;
935
1105
 
936
1106
  /**
937
1107
  * Generic runtime api call
938
1108
  **/
939
- [method: string]: GenericRuntimeApiMethod;
1109
+ [method: string]: GenericRuntimeApiMethod<Rv>;
1110
+ };
1111
+ /**
1112
+ * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
1113
+ **/
1114
+ genesisBuilder: {
1115
+ /**
1116
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
1117
+ *
1118
+ * This function instantiates the default `RuntimeGenesisConfig` struct for the runtime and serializes it into a JSON
1119
+ * blob. It returns a `Vec<u8>` containing the JSON representation of the default `RuntimeGenesisConfig`.
1120
+ *
1121
+ * @callname: GenesisBuilder_create_default_config
1122
+ **/
1123
+ createDefaultConfig: GenericRuntimeApiMethod<Rv, () => Promise<Bytes>>;
1124
+
1125
+ /**
1126
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
1127
+ *
1128
+ * This function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage.
1129
+ * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
1130
+ * It is recommended to log any errors encountered during the process.
1131
+ *
1132
+ * Please note that provided json blob must contain all `RuntimeGenesisConfig` fields, no defaults will be used.
1133
+ *
1134
+ * @callname: GenesisBuilder_build_config
1135
+ * @param {BytesLike} json
1136
+ **/
1137
+ buildConfig: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
1138
+
1139
+ /**
1140
+ * Generic runtime api call
1141
+ **/
1142
+ [method: string]: GenericRuntimeApiMethod<Rv>;
940
1143
  };
941
1144
  }