@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
  H256,
6
6
  RuntimeVersion,
@@ -12,12 +12,14 @@ import type {
12
12
  Bytes,
13
13
  BytesLike,
14
14
  AccountId32Like,
15
- } from '@dedot/codecs';
15
+ AccountId32,
16
+ } from 'dedot/codecs';
16
17
  import type {
17
18
  SpConsensusSlotsSlotDuration,
18
19
  SpConsensusAuraSr25519AppSr25519Public,
19
20
  SpConsensusSlotsSlot,
20
21
  SpRuntimeBlock,
22
+ SpRuntimeExtrinsicInclusionMode,
21
23
  SpCoreOpaqueMetadata,
22
24
  SpRuntimeTransactionValidityTransactionValidityError,
23
25
  SpInherentsInherentData,
@@ -32,10 +34,19 @@ import type {
32
34
  AssetHubRococoRuntimeRuntimeCallLike,
33
35
  XcmVersionedAssets,
34
36
  AssetsCommonRuntimeApiFungiblesAccessError,
37
+ XcmVersionedAssetId,
38
+ XcmRuntimeApisFeesError,
39
+ XcmVersionedXcm,
40
+ XcmVersionedLocation,
41
+ XcmRuntimeApisDryRunCallDryRunEffects,
42
+ XcmRuntimeApisDryRunError,
43
+ AssetHubRococoRuntimeOriginCaller,
44
+ XcmRuntimeApisDryRunXcmDryRunEffects,
45
+ XcmRuntimeApisConversionsError,
35
46
  CumulusPrimitivesCoreCollationInfo,
36
47
  } from './types';
37
48
 
38
- export interface RuntimeApis extends GenericRuntimeApis {
49
+ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
39
50
  /**
40
51
  * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
41
52
  **/
@@ -47,19 +58,19 @@ export interface RuntimeApis extends GenericRuntimeApis {
47
58
  *
48
59
  * @callname: AuraApi_slot_duration
49
60
  **/
50
- slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
61
+ slotDuration: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusSlotsSlotDuration>>;
51
62
 
52
63
  /**
53
64
  * Return the current set of authorities.
54
65
  *
55
66
  * @callname: AuraApi_authorities
56
67
  **/
57
- authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
68
+ authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
58
69
 
59
70
  /**
60
71
  * Generic runtime api call
61
72
  **/
62
- [method: string]: GenericRuntimeApiMethod;
73
+ [method: string]: GenericRuntimeApiMethod<Rv>;
63
74
  };
64
75
  /**
65
76
  * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
@@ -81,12 +92,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
81
92
  * @param {H256} included_hash
82
93
  * @param {SpConsensusSlotsSlot} slot
83
94
  **/
84
- canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
95
+ canBuildUpon: GenericRuntimeApiMethod<Rv, (includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
85
96
 
86
97
  /**
87
98
  * Generic runtime api call
88
99
  **/
89
- [method: string]: GenericRuntimeApiMethod;
100
+ [method: string]: GenericRuntimeApiMethod<Rv>;
90
101
  };
91
102
  /**
92
103
  * @runtimeapi: Core - 0xdf6acb689907609b
@@ -97,7 +108,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
97
108
  *
98
109
  * @callname: Core_version
99
110
  **/
100
- version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
111
+ version: GenericRuntimeApiMethod<Rv, () => Promise<RuntimeVersion>>;
101
112
 
102
113
  /**
103
114
  * Execute the given block.
@@ -105,20 +116,20 @@ export interface RuntimeApis extends GenericRuntimeApis {
105
116
  * @callname: Core_execute_block
106
117
  * @param {SpRuntimeBlock} block
107
118
  **/
108
- executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
119
+ executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
109
120
 
110
121
  /**
111
- * Initialize a block with the given header.
122
+ * Initialize a block with the given header and return the runtime executive mode.
112
123
  *
113
124
  * @callname: Core_initialize_block
114
125
  * @param {Header} header
115
126
  **/
116
- initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
127
+ initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
117
128
 
118
129
  /**
119
130
  * Generic runtime api call
120
131
  **/
121
- [method: string]: GenericRuntimeApiMethod;
132
+ [method: string]: GenericRuntimeApiMethod<Rv>;
122
133
  };
123
134
  /**
124
135
  * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
@@ -129,7 +140,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
129
140
  *
130
141
  * @callname: Metadata_metadata
131
142
  **/
132
- metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
143
+ metadata: GenericRuntimeApiMethod<Rv, () => Promise<SpCoreOpaqueMetadata>>;
133
144
 
134
145
  /**
135
146
  * Returns the metadata at a given version.
@@ -140,7 +151,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
140
151
  * @callname: Metadata_metadata_at_version
141
152
  * @param {number} version
142
153
  **/
143
- metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
154
+ metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
144
155
 
145
156
  /**
146
157
  * Returns the supported metadata versions.
@@ -149,12 +160,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
149
160
  *
150
161
  * @callname: Metadata_metadata_versions
151
162
  **/
152
- metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
163
+ metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
153
164
 
154
165
  /**
155
166
  * Generic runtime api call
156
167
  **/
157
- [method: string]: GenericRuntimeApiMethod;
168
+ [method: string]: GenericRuntimeApiMethod<Rv>;
158
169
  };
159
170
  /**
160
171
  * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
@@ -170,6 +181,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
170
181
  * @param {UncheckedExtrinsicLike} extrinsic
171
182
  **/
172
183
  applyExtrinsic: GenericRuntimeApiMethod<
184
+ Rv,
173
185
  (
174
186
  extrinsic: UncheckedExtrinsicLike,
175
187
  ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
@@ -180,7 +192,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
180
192
  *
181
193
  * @callname: BlockBuilder_finalize_block
182
194
  **/
183
- finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
195
+ finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
184
196
 
185
197
  /**
186
198
  * Generate inherent extrinsics. The inherent data will vary from chain to chain.
@@ -189,6 +201,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
189
201
  * @param {SpInherentsInherentData} inherent
190
202
  **/
191
203
  inherentExtrinsics: GenericRuntimeApiMethod<
204
+ Rv,
192
205
  (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
193
206
  >;
194
207
 
@@ -200,13 +213,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
200
213
  * @param {SpInherentsInherentData} data
201
214
  **/
202
215
  checkInherents: GenericRuntimeApiMethod<
216
+ Rv,
203
217
  (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
204
218
  >;
205
219
 
206
220
  /**
207
221
  * Generic runtime api call
208
222
  **/
209
- [method: string]: GenericRuntimeApiMethod;
223
+ [method: string]: GenericRuntimeApiMethod<Rv>;
210
224
  };
211
225
  /**
212
226
  * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
@@ -229,6 +243,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
229
243
  * @param {H256} block_hash
230
244
  **/
231
245
  validateTransaction: GenericRuntimeApiMethod<
246
+ Rv,
232
247
  (
233
248
  source: SpRuntimeTransactionValidityTransactionSource,
234
249
  tx: UncheckedExtrinsicLike,
@@ -241,7 +256,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
241
256
  /**
242
257
  * Generic runtime api call
243
258
  **/
244
- [method: string]: GenericRuntimeApiMethod;
259
+ [method: string]: GenericRuntimeApiMethod<Rv>;
245
260
  };
246
261
  /**
247
262
  * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
@@ -253,12 +268,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
253
268
  * @callname: OffchainWorkerApi_offchain_worker
254
269
  * @param {Header} header
255
270
  **/
256
- offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
271
+ offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
257
272
 
258
273
  /**
259
274
  * Generic runtime api call
260
275
  **/
261
- [method: string]: GenericRuntimeApiMethod;
276
+ [method: string]: GenericRuntimeApiMethod<Rv>;
262
277
  };
263
278
  /**
264
279
  * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
@@ -276,7 +291,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
276
291
  * @callname: SessionKeys_generate_session_keys
277
292
  * @param {BytesLike | undefined} seed
278
293
  **/
279
- generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
294
+ generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
280
295
 
281
296
  /**
282
297
  * Decode the given public session keys.
@@ -287,13 +302,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
287
302
  * @param {BytesLike} encoded
288
303
  **/
289
304
  decodeSessionKeys: GenericRuntimeApiMethod<
305
+ Rv,
290
306
  (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
291
307
  >;
292
308
 
293
309
  /**
294
310
  * Generic runtime api call
295
311
  **/
296
- [method: string]: GenericRuntimeApiMethod;
312
+ [method: string]: GenericRuntimeApiMethod<Rv>;
297
313
  };
298
314
  /**
299
315
  * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
@@ -305,12 +321,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
305
321
  * @callname: AccountNonceApi_account_nonce
306
322
  * @param {AccountId32Like} account
307
323
  **/
308
- accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
324
+ accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
309
325
 
310
326
  /**
311
327
  * Generic runtime api call
312
328
  **/
313
- [method: string]: GenericRuntimeApiMethod;
329
+ [method: string]: GenericRuntimeApiMethod<Rv>;
314
330
  };
315
331
  /**
316
332
  * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
@@ -329,6 +345,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
329
345
  * @param {boolean} include_fee
330
346
  **/
331
347
  quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
348
+ Rv,
332
349
  (
333
350
  asset1: StagingXcmV3MultilocationMultiLocation,
334
351
  asset2: StagingXcmV3MultilocationMultiLocation,
@@ -350,6 +367,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
350
367
  * @param {boolean} include_fee
351
368
  **/
352
369
  quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
370
+ Rv,
353
371
  (
354
372
  asset1: StagingXcmV3MultilocationMultiLocation,
355
373
  asset2: StagingXcmV3MultilocationMultiLocation,
@@ -366,6 +384,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
366
384
  * @param {StagingXcmV3MultilocationMultiLocation} asset2
367
385
  **/
368
386
  getReserves: GenericRuntimeApiMethod<
387
+ Rv,
369
388
  (
370
389
  asset1: StagingXcmV3MultilocationMultiLocation,
371
390
  asset2: StagingXcmV3MultilocationMultiLocation,
@@ -375,7 +394,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
375
394
  /**
376
395
  * Generic runtime api call
377
396
  **/
378
- [method: string]: GenericRuntimeApiMethod;
397
+ [method: string]: GenericRuntimeApiMethod<Rv>;
379
398
  };
380
399
  /**
381
400
  * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
@@ -388,6 +407,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
388
407
  * @param {number} len
389
408
  **/
390
409
  queryInfo: GenericRuntimeApiMethod<
410
+ Rv,
391
411
  (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
392
412
  >;
393
413
 
@@ -398,6 +418,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
398
418
  * @param {number} len
399
419
  **/
400
420
  queryFeeDetails: GenericRuntimeApiMethod<
421
+ Rv,
401
422
  (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
402
423
  >;
403
424
 
@@ -406,19 +427,19 @@ export interface RuntimeApis extends GenericRuntimeApis {
406
427
  * @callname: TransactionPaymentApi_query_weight_to_fee
407
428
  * @param {SpWeightsWeightV2Weight} weight
408
429
  **/
409
- queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
430
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
410
431
 
411
432
  /**
412
433
  *
413
434
  * @callname: TransactionPaymentApi_query_length_to_fee
414
435
  * @param {number} length
415
436
  **/
416
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
437
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
417
438
 
418
439
  /**
419
440
  * Generic runtime api call
420
441
  **/
421
- [method: string]: GenericRuntimeApiMethod;
442
+ [method: string]: GenericRuntimeApiMethod<Rv>;
422
443
  };
423
444
  /**
424
445
  * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
@@ -432,6 +453,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
432
453
  * @param {number} len
433
454
  **/
434
455
  queryCallInfo: GenericRuntimeApiMethod<
456
+ Rv,
435
457
  (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
436
458
  >;
437
459
 
@@ -443,6 +465,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
443
465
  * @param {number} len
444
466
  **/
445
467
  queryCallFeeDetails: GenericRuntimeApiMethod<
468
+ Rv,
446
469
  (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
447
470
  >;
448
471
 
@@ -452,7 +475,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
452
475
  * @callname: TransactionPaymentCallApi_query_weight_to_fee
453
476
  * @param {SpWeightsWeightV2Weight} weight
454
477
  **/
455
- queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
478
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
456
479
 
457
480
  /**
458
481
  * Query the output of the current `LengthToFee` given some input.
@@ -460,12 +483,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
460
483
  * @callname: TransactionPaymentCallApi_query_length_to_fee
461
484
  * @param {number} length
462
485
  **/
463
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
486
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
464
487
 
465
488
  /**
466
489
  * Generic runtime api call
467
490
  **/
468
- [method: string]: GenericRuntimeApiMethod;
491
+ [method: string]: GenericRuntimeApiMethod<Rv>;
469
492
  };
470
493
  /**
471
494
  * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
@@ -478,13 +501,151 @@ export interface RuntimeApis extends GenericRuntimeApis {
478
501
  * @param {AccountId32Like} account
479
502
  **/
480
503
  queryAccountBalances: GenericRuntimeApiMethod<
504
+ Rv,
481
505
  (account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
482
506
  >;
483
507
 
484
508
  /**
485
509
  * Generic runtime api call
486
510
  **/
487
- [method: string]: GenericRuntimeApiMethod;
511
+ [method: string]: GenericRuntimeApiMethod<Rv>;
512
+ };
513
+ /**
514
+ * @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
515
+ **/
516
+ xcmPaymentApi: {
517
+ /**
518
+ * Returns a list of acceptable payment assets.
519
+ *
520
+ * # Arguments
521
+ *
522
+ * * `xcm_version`: Version.
523
+ *
524
+ * @callname: XcmPaymentApi_query_acceptable_payment_assets
525
+ * @param {number} xcm_version
526
+ **/
527
+ queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
528
+ Rv,
529
+ (xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
530
+ >;
531
+
532
+ /**
533
+ * Returns a weight needed to execute a XCM.
534
+ *
535
+ * # Arguments
536
+ *
537
+ * * `message`: `VersionedXcm`.
538
+ *
539
+ * @callname: XcmPaymentApi_query_xcm_weight
540
+ * @param {XcmVersionedXcm} message
541
+ **/
542
+ queryXcmWeight: GenericRuntimeApiMethod<
543
+ Rv,
544
+ (message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
545
+ >;
546
+
547
+ /**
548
+ * Converts a weight into a fee for the specified `AssetId`.
549
+ *
550
+ * # Arguments
551
+ *
552
+ * * `weight`: convertible `Weight`.
553
+ * * `asset`: `VersionedAssetId`.
554
+ *
555
+ * @callname: XcmPaymentApi_query_weight_to_asset_fee
556
+ * @param {SpWeightsWeightV2Weight} weight
557
+ * @param {XcmVersionedAssetId} asset
558
+ **/
559
+ queryWeightToAssetFee: GenericRuntimeApiMethod<
560
+ Rv,
561
+ (weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
562
+ >;
563
+
564
+ /**
565
+ * Get delivery fees for sending a specific `message` to a `destination`.
566
+ * These always come in a specific asset, defined by the chain.
567
+ *
568
+ * # Arguments
569
+ * * `message`: The message that'll be sent, necessary because most delivery fees are based on the
570
+ * size of the message.
571
+ * * `destination`: The destination to send the message to. Different destinations may use
572
+ * different senders that charge different fees.
573
+ *
574
+ * @callname: XcmPaymentApi_query_delivery_fees
575
+ * @param {XcmVersionedLocation} destination
576
+ * @param {XcmVersionedXcm} message
577
+ **/
578
+ queryDeliveryFees: GenericRuntimeApiMethod<
579
+ Rv,
580
+ (
581
+ destination: XcmVersionedLocation,
582
+ message: XcmVersionedXcm,
583
+ ) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
584
+ >;
585
+
586
+ /**
587
+ * Generic runtime api call
588
+ **/
589
+ [method: string]: GenericRuntimeApiMethod<Rv>;
590
+ };
591
+ /**
592
+ * @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
593
+ **/
594
+ dryRunApi: {
595
+ /**
596
+ * Dry run call.
597
+ *
598
+ * @callname: DryRunApi_dry_run_call
599
+ * @param {AssetHubRococoRuntimeOriginCaller} origin
600
+ * @param {AssetHubRococoRuntimeRuntimeCallLike} call
601
+ **/
602
+ dryRunCall: GenericRuntimeApiMethod<
603
+ Rv,
604
+ (
605
+ origin: AssetHubRococoRuntimeOriginCaller,
606
+ call: AssetHubRococoRuntimeRuntimeCallLike,
607
+ ) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
608
+ >;
609
+
610
+ /**
611
+ * Dry run XCM program
612
+ *
613
+ * @callname: DryRunApi_dry_run_xcm
614
+ * @param {XcmVersionedLocation} origin_location
615
+ * @param {XcmVersionedXcm} xcm
616
+ **/
617
+ dryRunXcm: GenericRuntimeApiMethod<
618
+ Rv,
619
+ (
620
+ originLocation: XcmVersionedLocation,
621
+ xcm: XcmVersionedXcm,
622
+ ) => Promise<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>
623
+ >;
624
+
625
+ /**
626
+ * Generic runtime api call
627
+ **/
628
+ [method: string]: GenericRuntimeApiMethod<Rv>;
629
+ };
630
+ /**
631
+ * @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
632
+ **/
633
+ locationToAccountApi: {
634
+ /**
635
+ * Converts `Location` to `AccountId`.
636
+ *
637
+ * @callname: LocationToAccountApi_convert_location
638
+ * @param {XcmVersionedLocation} location
639
+ **/
640
+ convertLocation: GenericRuntimeApiMethod<
641
+ Rv,
642
+ (location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
643
+ >;
644
+
645
+ /**
646
+ * Generic runtime api call
647
+ **/
648
+ [method: string]: GenericRuntimeApiMethod<Rv>;
488
649
  };
489
650
  /**
490
651
  * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
@@ -499,44 +660,67 @@ export interface RuntimeApis extends GenericRuntimeApis {
499
660
  * @callname: CollectCollationInfo_collect_collation_info
500
661
  * @param {Header} header
501
662
  **/
502
- collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
663
+ collectCollationInfo: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
503
664
 
504
665
  /**
505
666
  * Generic runtime api call
506
667
  **/
507
- [method: string]: GenericRuntimeApiMethod;
668
+ [method: string]: GenericRuntimeApiMethod<Rv>;
508
669
  };
509
670
  /**
510
671
  * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
511
672
  **/
512
673
  genesisBuilder: {
513
674
  /**
514
- * Creates the default `GenesisConfig` and returns it as a JSON blob.
675
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
676
+ * storage.
677
+ *
678
+ * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
679
+ * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
680
+ * deserialization fails, an error is returned.
515
681
  *
516
- * This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
517
- * blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
682
+ * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
683
+ * defaults will be used.
518
684
  *
519
- * @callname: GenesisBuilder_create_default_config
685
+ * @callname: GenesisBuilder_build_state
686
+ * @param {BytesLike} json
520
687
  **/
521
- createDefaultConfig: GenericRuntimeApiMethod<() => Promise<Bytes>>;
688
+ buildState: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
522
689
 
523
690
  /**
524
- * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
691
+ * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
692
+ * `id`.
525
693
  *
526
- * This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
527
- * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
528
- * It is recommended to log any errors encountered during the process.
694
+ * If `id` is `None` the function returns JSON blob representation of the default
695
+ * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
696
+ * `RuntimeGenesisConfig`.
529
697
  *
530
- * Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
698
+ * Otherwise function returns a JSON representation of the built-in, named
699
+ * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
700
+ * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
701
+ * (potentially nested) key-value pairs that are intended for customizing the default
702
+ * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
703
+ * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
704
+ * be used in `build_state` method.
531
705
  *
532
- * @callname: GenesisBuilder_build_config
533
- * @param {BytesLike} json
706
+ * @callname: GenesisBuilder_get_preset
707
+ * @param {string | undefined} id
708
+ **/
709
+ getPreset: GenericRuntimeApiMethod<Rv, (id?: string | undefined) => Promise<Bytes | undefined>>;
710
+
711
+ /**
712
+ * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
713
+ *
714
+ * The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If
715
+ * no named presets are provided by the runtime the list is empty.
716
+ *
717
+ * @callname: GenesisBuilder_preset_names
534
718
  **/
535
- buildConfig: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
719
+ presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
536
720
 
537
721
  /**
538
722
  * Generic runtime api call
539
723
  **/
540
- [method: string]: GenericRuntimeApiMethod;
724
+ [method: string]: GenericRuntimeApiMethod<Rv>;
541
725
  };
542
726
  }