@dedot/chaintypes 0.0.1-alpha.100

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 (105) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +5 -0
  3. package/aleph/consts.d.ts +676 -0
  4. package/aleph/errors.d.ts +1054 -0
  5. package/aleph/events.d.ts +1201 -0
  6. package/aleph/index.d.ts +27 -0
  7. package/aleph/json-rpc.d.ts +85 -0
  8. package/aleph/query.d.ts +1573 -0
  9. package/aleph/runtime.d.ts +596 -0
  10. package/aleph/tx.d.ts +3440 -0
  11. package/aleph/types.d.ts +3951 -0
  12. package/astar/consts.d.ts +737 -0
  13. package/astar/errors.d.ts +1508 -0
  14. package/astar/events.d.ts +1878 -0
  15. package/astar/index.d.ts +27 -0
  16. package/astar/json-rpc.d.ts +131 -0
  17. package/astar/query.d.ts +1851 -0
  18. package/astar/runtime.d.ts +803 -0
  19. package/astar/tx.d.ts +4516 -0
  20. package/astar/types.d.ts +6141 -0
  21. package/index.d.ts +11 -0
  22. package/index.js +1 -0
  23. package/index.ts +11 -0
  24. package/kusama/consts.d.ts +1578 -0
  25. package/kusama/errors.d.ts +3152 -0
  26. package/kusama/events.d.ts +3579 -0
  27. package/kusama/index.d.ts +27 -0
  28. package/kusama/json-rpc.d.ts +103 -0
  29. package/kusama/query.d.ts +4229 -0
  30. package/kusama/runtime.d.ts +1196 -0
  31. package/kusama/tx.d.ts +9040 -0
  32. package/kusama/types.d.ts +11369 -0
  33. package/kusamaAssetHub/consts.d.ts +759 -0
  34. package/kusamaAssetHub/errors.d.ts +1494 -0
  35. package/kusamaAssetHub/events.d.ts +2491 -0
  36. package/kusamaAssetHub/index.d.ts +27 -0
  37. package/kusamaAssetHub/json-rpc.d.ts +89 -0
  38. package/kusamaAssetHub/query.d.ts +1662 -0
  39. package/kusamaAssetHub/runtime.d.ts +555 -0
  40. package/kusamaAssetHub/tx.d.ts +6192 -0
  41. package/kusamaAssetHub/types.d.ts +6831 -0
  42. package/moonbeam/consts.d.ts +1010 -0
  43. package/moonbeam/errors.d.ts +1932 -0
  44. package/moonbeam/events.d.ts +2928 -0
  45. package/moonbeam/index.d.ts +27 -0
  46. package/moonbeam/json-rpc.d.ts +137 -0
  47. package/moonbeam/query.d.ts +2282 -0
  48. package/moonbeam/runtime.d.ts +724 -0
  49. package/moonbeam/tx.d.ts +6222 -0
  50. package/moonbeam/types.d.ts +8165 -0
  51. package/package.json +25 -0
  52. package/polkadot/consts.d.ts +1313 -0
  53. package/polkadot/errors.d.ts +2575 -0
  54. package/polkadot/events.d.ts +2757 -0
  55. package/polkadot/index.d.ts +27 -0
  56. package/polkadot/json-rpc.d.ts +103 -0
  57. package/polkadot/query.d.ts +3693 -0
  58. package/polkadot/runtime.d.ts +1196 -0
  59. package/polkadot/tx.d.ts +7706 -0
  60. package/polkadot/types.d.ts +9893 -0
  61. package/polkadotAssetHub/consts.d.ts +724 -0
  62. package/polkadotAssetHub/errors.d.ts +1465 -0
  63. package/polkadotAssetHub/events.d.ts +2462 -0
  64. package/polkadotAssetHub/index.d.ts +27 -0
  65. package/polkadotAssetHub/json-rpc.d.ts +89 -0
  66. package/polkadotAssetHub/query.d.ts +1640 -0
  67. package/polkadotAssetHub/runtime.d.ts +558 -0
  68. package/polkadotAssetHub/tx.d.ts +6121 -0
  69. package/polkadotAssetHub/types.d.ts +6739 -0
  70. package/rococo/consts.d.ts +1423 -0
  71. package/rococo/errors.d.ts +2783 -0
  72. package/rococo/events.d.ts +3361 -0
  73. package/rococo/index.d.ts +27 -0
  74. package/rococo/json-rpc.d.ts +103 -0
  75. package/rococo/query.d.ts +3561 -0
  76. package/rococo/runtime.d.ts +1257 -0
  77. package/rococo/tx.d.ts +10721 -0
  78. package/rococo/types.d.ts +14828 -0
  79. package/rococoAssetHub/consts.d.ts +787 -0
  80. package/rococoAssetHub/errors.d.ts +1523 -0
  81. package/rococoAssetHub/events.d.ts +2517 -0
  82. package/rococoAssetHub/index.d.ts +27 -0
  83. package/rococoAssetHub/json-rpc.d.ts +89 -0
  84. package/rococoAssetHub/query.d.ts +1682 -0
  85. package/rococoAssetHub/runtime.d.ts +704 -0
  86. package/rococoAssetHub/tx.d.ts +9013 -0
  87. package/rococoAssetHub/types.d.ts +12352 -0
  88. package/substrate/consts.d.ts +2223 -0
  89. package/substrate/errors.d.ts +4023 -0
  90. package/substrate/events.d.ts +5430 -0
  91. package/substrate/index.d.ts +27 -0
  92. package/substrate/json-rpc.d.ts +101 -0
  93. package/substrate/query.d.ts +4083 -0
  94. package/substrate/runtime.d.ts +971 -0
  95. package/substrate/tx.d.ts +12501 -0
  96. package/substrate/types.d.ts +13380 -0
  97. package/westendAssetHub/consts.d.ts +787 -0
  98. package/westendAssetHub/errors.d.ts +1523 -0
  99. package/westendAssetHub/events.d.ts +2477 -0
  100. package/westendAssetHub/index.d.ts +27 -0
  101. package/westendAssetHub/json-rpc.d.ts +89 -0
  102. package/westendAssetHub/query.d.ts +1656 -0
  103. package/westendAssetHub/runtime.d.ts +652 -0
  104. package/westendAssetHub/tx.d.ts +8984 -0
  105. package/westendAssetHub/types.d.ts +12292 -0
@@ -0,0 +1,704 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
4
+ import type {
5
+ H256,
6
+ RuntimeVersion,
7
+ Header,
8
+ DispatchError,
9
+ Result,
10
+ UncheckedExtrinsicLike,
11
+ UncheckedExtrinsic,
12
+ Bytes,
13
+ BytesLike,
14
+ AccountId32Like,
15
+ } from 'dedot/codecs';
16
+ import type {
17
+ SpConsensusSlotsSlotDuration,
18
+ SpConsensusAuraSr25519AppSr25519Public,
19
+ SpConsensusSlotsSlot,
20
+ SpRuntimeBlock,
21
+ SpRuntimeExtrinsicInclusionMode,
22
+ SpCoreOpaqueMetadata,
23
+ SpRuntimeTransactionValidityTransactionValidityError,
24
+ SpInherentsInherentData,
25
+ SpInherentsCheckInherentsResult,
26
+ SpRuntimeTransactionValidityValidTransaction,
27
+ SpRuntimeTransactionValidityTransactionSource,
28
+ SpCoreCryptoKeyTypeId,
29
+ StagingXcmV3MultilocationMultiLocation,
30
+ PalletTransactionPaymentRuntimeDispatchInfo,
31
+ PalletTransactionPaymentFeeDetails,
32
+ SpWeightsWeightV2Weight,
33
+ AssetHubRococoRuntimeRuntimeCallLike,
34
+ XcmVersionedAssets,
35
+ AssetsCommonRuntimeApiFungiblesAccessError,
36
+ XcmVersionedAssetId,
37
+ XcmFeePaymentRuntimeApiFeesError,
38
+ XcmVersionedXcm,
39
+ XcmVersionedLocation,
40
+ XcmFeePaymentRuntimeApiDryRunExtrinsicDryRunEffects,
41
+ XcmFeePaymentRuntimeApiDryRunError,
42
+ XcmFeePaymentRuntimeApiDryRunXcmDryRunEffects,
43
+ CumulusPrimitivesCoreCollationInfo,
44
+ } from './types';
45
+
46
+ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
47
+ /**
48
+ * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
49
+ **/
50
+ auraApi: {
51
+ /**
52
+ * Returns the slot duration for Aura.
53
+ *
54
+ * Currently, only the value provided by this type at genesis will be used.
55
+ *
56
+ * @callname: AuraApi_slot_duration
57
+ **/
58
+ slotDuration: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusSlotsSlotDuration>>;
59
+
60
+ /**
61
+ * Return the current set of authorities.
62
+ *
63
+ * @callname: AuraApi_authorities
64
+ **/
65
+ authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
66
+
67
+ /**
68
+ * Generic runtime api call
69
+ **/
70
+ [method: string]: GenericRuntimeApiMethod<Rv>;
71
+ };
72
+ /**
73
+ * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
74
+ **/
75
+ auraUnincludedSegmentApi: {
76
+ /**
77
+ * Whether it is legal to extend the chain, assuming the given block is the most
78
+ * recently included one as-of the relay parent that will be built against, and
79
+ * the given slot.
80
+ *
81
+ * This should be consistent with the logic the runtime uses when validating blocks to
82
+ * avoid issues.
83
+ *
84
+ * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block
85
+ * whose state we are querying against, this must always return `true` as long as the slot
86
+ * is more recent than the included block itself.
87
+ *
88
+ * @callname: AuraUnincludedSegmentApi_can_build_upon
89
+ * @param {H256} included_hash
90
+ * @param {SpConsensusSlotsSlot} slot
91
+ **/
92
+ canBuildUpon: GenericRuntimeApiMethod<Rv, (includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
93
+
94
+ /**
95
+ * Generic runtime api call
96
+ **/
97
+ [method: string]: GenericRuntimeApiMethod<Rv>;
98
+ };
99
+ /**
100
+ * @runtimeapi: Core - 0xdf6acb689907609b
101
+ **/
102
+ core: {
103
+ /**
104
+ * Returns the version of the runtime.
105
+ *
106
+ * @callname: Core_version
107
+ **/
108
+ version: GenericRuntimeApiMethod<Rv, () => Promise<RuntimeVersion>>;
109
+
110
+ /**
111
+ * Execute the given block.
112
+ *
113
+ * @callname: Core_execute_block
114
+ * @param {SpRuntimeBlock} block
115
+ **/
116
+ executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
117
+
118
+ /**
119
+ * Initialize a block with the given header and return the runtime executive mode.
120
+ *
121
+ * @callname: Core_initialize_block
122
+ * @param {Header} header
123
+ **/
124
+ initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
125
+
126
+ /**
127
+ * Generic runtime api call
128
+ **/
129
+ [method: string]: GenericRuntimeApiMethod<Rv>;
130
+ };
131
+ /**
132
+ * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
133
+ **/
134
+ metadata: {
135
+ /**
136
+ * Returns the metadata of a runtime.
137
+ *
138
+ * @callname: Metadata_metadata
139
+ **/
140
+ metadata: GenericRuntimeApiMethod<Rv, () => Promise<SpCoreOpaqueMetadata>>;
141
+
142
+ /**
143
+ * Returns the metadata at a given version.
144
+ *
145
+ * If the given `version` isn't supported, this will return `None`.
146
+ * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
147
+ *
148
+ * @callname: Metadata_metadata_at_version
149
+ * @param {number} version
150
+ **/
151
+ metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
152
+
153
+ /**
154
+ * Returns the supported metadata versions.
155
+ *
156
+ * This can be used to call `metadata_at_version`.
157
+ *
158
+ * @callname: Metadata_metadata_versions
159
+ **/
160
+ metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
161
+
162
+ /**
163
+ * Generic runtime api call
164
+ **/
165
+ [method: string]: GenericRuntimeApiMethod<Rv>;
166
+ };
167
+ /**
168
+ * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
169
+ **/
170
+ blockBuilder: {
171
+ /**
172
+ * Apply the given extrinsic.
173
+ *
174
+ * Returns an inclusion outcome which specifies if this extrinsic is included in
175
+ * this block or not.
176
+ *
177
+ * @callname: BlockBuilder_apply_extrinsic
178
+ * @param {UncheckedExtrinsicLike} extrinsic
179
+ **/
180
+ applyExtrinsic: GenericRuntimeApiMethod<
181
+ Rv,
182
+ (
183
+ extrinsic: UncheckedExtrinsicLike,
184
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
185
+ >;
186
+
187
+ /**
188
+ * Finish the current block.
189
+ *
190
+ * @callname: BlockBuilder_finalize_block
191
+ **/
192
+ finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
193
+
194
+ /**
195
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
196
+ *
197
+ * @callname: BlockBuilder_inherent_extrinsics
198
+ * @param {SpInherentsInherentData} inherent
199
+ **/
200
+ inherentExtrinsics: GenericRuntimeApiMethod<
201
+ Rv,
202
+ (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
203
+ >;
204
+
205
+ /**
206
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
207
+ *
208
+ * @callname: BlockBuilder_check_inherents
209
+ * @param {SpRuntimeBlock} block
210
+ * @param {SpInherentsInherentData} data
211
+ **/
212
+ checkInherents: GenericRuntimeApiMethod<
213
+ Rv,
214
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
215
+ >;
216
+
217
+ /**
218
+ * Generic runtime api call
219
+ **/
220
+ [method: string]: GenericRuntimeApiMethod<Rv>;
221
+ };
222
+ /**
223
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
224
+ **/
225
+ taggedTransactionQueue: {
226
+ /**
227
+ * Validate the transaction.
228
+ *
229
+ * This method is invoked by the transaction pool to learn details about given transaction.
230
+ * The implementation should make sure to verify the correctness of the transaction
231
+ * against current state. The given `block_hash` corresponds to the hash of the block
232
+ * that is used as current state.
233
+ *
234
+ * Note that this call may be performed by the pool multiple times and transactions
235
+ * might be verified in any possible order.
236
+ *
237
+ * @callname: TaggedTransactionQueue_validate_transaction
238
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
239
+ * @param {UncheckedExtrinsicLike} tx
240
+ * @param {H256} block_hash
241
+ **/
242
+ validateTransaction: GenericRuntimeApiMethod<
243
+ Rv,
244
+ (
245
+ source: SpRuntimeTransactionValidityTransactionSource,
246
+ tx: UncheckedExtrinsicLike,
247
+ blockHash: H256,
248
+ ) => Promise<
249
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
250
+ >
251
+ >;
252
+
253
+ /**
254
+ * Generic runtime api call
255
+ **/
256
+ [method: string]: GenericRuntimeApiMethod<Rv>;
257
+ };
258
+ /**
259
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
260
+ **/
261
+ offchainWorkerApi: {
262
+ /**
263
+ * Starts the off-chain task for given block header.
264
+ *
265
+ * @callname: OffchainWorkerApi_offchain_worker
266
+ * @param {Header} header
267
+ **/
268
+ offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
269
+
270
+ /**
271
+ * Generic runtime api call
272
+ **/
273
+ [method: string]: GenericRuntimeApiMethod<Rv>;
274
+ };
275
+ /**
276
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
277
+ **/
278
+ sessionKeys: {
279
+ /**
280
+ * Generate a set of session keys with optionally using the given seed.
281
+ * The keys should be stored within the keystore exposed via runtime
282
+ * externalities.
283
+ *
284
+ * The seed needs to be a valid `utf8` string.
285
+ *
286
+ * Returns the concatenated SCALE encoded public keys.
287
+ *
288
+ * @callname: SessionKeys_generate_session_keys
289
+ * @param {BytesLike | undefined} seed
290
+ **/
291
+ generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
292
+
293
+ /**
294
+ * Decode the given public session keys.
295
+ *
296
+ * Returns the list of public raw public keys + key type.
297
+ *
298
+ * @callname: SessionKeys_decode_session_keys
299
+ * @param {BytesLike} encoded
300
+ **/
301
+ decodeSessionKeys: GenericRuntimeApiMethod<
302
+ Rv,
303
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
304
+ >;
305
+
306
+ /**
307
+ * Generic runtime api call
308
+ **/
309
+ [method: string]: GenericRuntimeApiMethod<Rv>;
310
+ };
311
+ /**
312
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
313
+ **/
314
+ accountNonceApi: {
315
+ /**
316
+ * Get current account nonce of given `AccountId`.
317
+ *
318
+ * @callname: AccountNonceApi_account_nonce
319
+ * @param {AccountId32Like} account
320
+ **/
321
+ accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
322
+
323
+ /**
324
+ * Generic runtime api call
325
+ **/
326
+ [method: string]: GenericRuntimeApiMethod<Rv>;
327
+ };
328
+ /**
329
+ * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
330
+ **/
331
+ assetConversionApi: {
332
+ /**
333
+ * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
334
+ *
335
+ * Note that the price may have changed by the time the transaction is executed.
336
+ * (Use `amount_in_max` to control slippage.)
337
+ *
338
+ * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
339
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
340
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
341
+ * @param {bigint} amount
342
+ * @param {boolean} include_fee
343
+ **/
344
+ quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
345
+ Rv,
346
+ (
347
+ asset1: StagingXcmV3MultilocationMultiLocation,
348
+ asset2: StagingXcmV3MultilocationMultiLocation,
349
+ amount: bigint,
350
+ includeFee: boolean,
351
+ ) => Promise<bigint | undefined>
352
+ >;
353
+
354
+ /**
355
+ * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
356
+ *
357
+ * Note that the price may have changed by the time the transaction is executed.
358
+ * (Use `amount_out_min` to control slippage.)
359
+ *
360
+ * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
361
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
362
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
363
+ * @param {bigint} amount
364
+ * @param {boolean} include_fee
365
+ **/
366
+ quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
367
+ Rv,
368
+ (
369
+ asset1: StagingXcmV3MultilocationMultiLocation,
370
+ asset2: StagingXcmV3MultilocationMultiLocation,
371
+ amount: bigint,
372
+ includeFee: boolean,
373
+ ) => Promise<bigint | undefined>
374
+ >;
375
+
376
+ /**
377
+ * Returns the size of the liquidity pool for the given asset pair.
378
+ *
379
+ * @callname: AssetConversionApi_get_reserves
380
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
381
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
382
+ **/
383
+ getReserves: GenericRuntimeApiMethod<
384
+ Rv,
385
+ (
386
+ asset1: StagingXcmV3MultilocationMultiLocation,
387
+ asset2: StagingXcmV3MultilocationMultiLocation,
388
+ ) => Promise<[bigint, bigint] | undefined>
389
+ >;
390
+
391
+ /**
392
+ * Generic runtime api call
393
+ **/
394
+ [method: string]: GenericRuntimeApiMethod<Rv>;
395
+ };
396
+ /**
397
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
398
+ **/
399
+ transactionPaymentApi: {
400
+ /**
401
+ *
402
+ * @callname: TransactionPaymentApi_query_info
403
+ * @param {UncheckedExtrinsicLike} uxt
404
+ * @param {number} len
405
+ **/
406
+ queryInfo: GenericRuntimeApiMethod<
407
+ Rv,
408
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
409
+ >;
410
+
411
+ /**
412
+ *
413
+ * @callname: TransactionPaymentApi_query_fee_details
414
+ * @param {UncheckedExtrinsicLike} uxt
415
+ * @param {number} len
416
+ **/
417
+ queryFeeDetails: GenericRuntimeApiMethod<
418
+ Rv,
419
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
420
+ >;
421
+
422
+ /**
423
+ *
424
+ * @callname: TransactionPaymentApi_query_weight_to_fee
425
+ * @param {SpWeightsWeightV2Weight} weight
426
+ **/
427
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
428
+
429
+ /**
430
+ *
431
+ * @callname: TransactionPaymentApi_query_length_to_fee
432
+ * @param {number} length
433
+ **/
434
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
435
+
436
+ /**
437
+ * Generic runtime api call
438
+ **/
439
+ [method: string]: GenericRuntimeApiMethod<Rv>;
440
+ };
441
+ /**
442
+ * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
443
+ **/
444
+ transactionPaymentCallApi: {
445
+ /**
446
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
447
+ *
448
+ * @callname: TransactionPaymentCallApi_query_call_info
449
+ * @param {AssetHubRococoRuntimeRuntimeCallLike} call
450
+ * @param {number} len
451
+ **/
452
+ queryCallInfo: GenericRuntimeApiMethod<
453
+ Rv,
454
+ (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
455
+ >;
456
+
457
+ /**
458
+ * Query fee details of a given encoded `Call`.
459
+ *
460
+ * @callname: TransactionPaymentCallApi_query_call_fee_details
461
+ * @param {AssetHubRococoRuntimeRuntimeCallLike} call
462
+ * @param {number} len
463
+ **/
464
+ queryCallFeeDetails: GenericRuntimeApiMethod<
465
+ Rv,
466
+ (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
467
+ >;
468
+
469
+ /**
470
+ * Query the output of the current `WeightToFee` given some input.
471
+ *
472
+ * @callname: TransactionPaymentCallApi_query_weight_to_fee
473
+ * @param {SpWeightsWeightV2Weight} weight
474
+ **/
475
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
476
+
477
+ /**
478
+ * Query the output of the current `LengthToFee` given some input.
479
+ *
480
+ * @callname: TransactionPaymentCallApi_query_length_to_fee
481
+ * @param {number} length
482
+ **/
483
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
484
+
485
+ /**
486
+ * Generic runtime api call
487
+ **/
488
+ [method: string]: GenericRuntimeApiMethod<Rv>;
489
+ };
490
+ /**
491
+ * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
492
+ **/
493
+ fungiblesApi: {
494
+ /**
495
+ * Returns the list of all [`Asset`] that an `AccountId` has.
496
+ *
497
+ * @callname: FungiblesApi_query_account_balances
498
+ * @param {AccountId32Like} account
499
+ **/
500
+ queryAccountBalances: GenericRuntimeApiMethod<
501
+ Rv,
502
+ (account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
503
+ >;
504
+
505
+ /**
506
+ * Generic runtime api call
507
+ **/
508
+ [method: string]: GenericRuntimeApiMethod<Rv>;
509
+ };
510
+ /**
511
+ * @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
512
+ **/
513
+ xcmPaymentApi: {
514
+ /**
515
+ * Returns a list of acceptable payment assets.
516
+ *
517
+ * # Arguments
518
+ *
519
+ * * `xcm_version`: Version.
520
+ *
521
+ * @callname: XcmPaymentApi_query_acceptable_payment_assets
522
+ * @param {number} xcm_version
523
+ **/
524
+ queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
525
+ Rv,
526
+ (xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmFeePaymentRuntimeApiFeesError>>
527
+ >;
528
+
529
+ /**
530
+ * Returns a weight needed to execute a XCM.
531
+ *
532
+ * # Arguments
533
+ *
534
+ * * `message`: `VersionedXcm`.
535
+ *
536
+ * @callname: XcmPaymentApi_query_xcm_weight
537
+ * @param {XcmVersionedXcm} message
538
+ **/
539
+ queryXcmWeight: GenericRuntimeApiMethod<
540
+ Rv,
541
+ (message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmFeePaymentRuntimeApiFeesError>>
542
+ >;
543
+
544
+ /**
545
+ * Converts a weight into a fee for the specified `AssetId`.
546
+ *
547
+ * # Arguments
548
+ *
549
+ * * `weight`: convertible `Weight`.
550
+ * * `asset`: `VersionedAssetId`.
551
+ *
552
+ * @callname: XcmPaymentApi_query_weight_to_asset_fee
553
+ * @param {SpWeightsWeightV2Weight} weight
554
+ * @param {XcmVersionedAssetId} asset
555
+ **/
556
+ queryWeightToAssetFee: GenericRuntimeApiMethod<
557
+ Rv,
558
+ (
559
+ weight: SpWeightsWeightV2Weight,
560
+ asset: XcmVersionedAssetId,
561
+ ) => Promise<Result<bigint, XcmFeePaymentRuntimeApiFeesError>>
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, XcmFeePaymentRuntimeApiFeesError>>
584
+ >;
585
+
586
+ /**
587
+ * Generic runtime api call
588
+ **/
589
+ [method: string]: GenericRuntimeApiMethod<Rv>;
590
+ };
591
+ /**
592
+ * @runtimeapi: XcmDryRunApi - 0x12cbf43724c82779
593
+ **/
594
+ xcmDryRunApi: {
595
+ /**
596
+ * Dry run extrinsic.
597
+ *
598
+ * @callname: XcmDryRunApi_dry_run_extrinsic
599
+ * @param {UncheckedExtrinsicLike} extrinsic
600
+ **/
601
+ dryRunExtrinsic: GenericRuntimeApiMethod<
602
+ Rv,
603
+ (
604
+ extrinsic: UncheckedExtrinsicLike,
605
+ ) => Promise<Result<XcmFeePaymentRuntimeApiDryRunExtrinsicDryRunEffects, XcmFeePaymentRuntimeApiDryRunError>>
606
+ >;
607
+
608
+ /**
609
+ * Dry run XCM program
610
+ *
611
+ * @callname: XcmDryRunApi_dry_run_xcm
612
+ * @param {XcmVersionedLocation} origin_location
613
+ * @param {XcmVersionedXcm} xcm
614
+ **/
615
+ dryRunXcm: GenericRuntimeApiMethod<
616
+ Rv,
617
+ (
618
+ originLocation: XcmVersionedLocation,
619
+ xcm: XcmVersionedXcm,
620
+ ) => Promise<Result<XcmFeePaymentRuntimeApiDryRunXcmDryRunEffects, XcmFeePaymentRuntimeApiDryRunError>>
621
+ >;
622
+
623
+ /**
624
+ * Generic runtime api call
625
+ **/
626
+ [method: string]: GenericRuntimeApiMethod<Rv>;
627
+ };
628
+ /**
629
+ * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
630
+ **/
631
+ collectCollationInfo: {
632
+ /**
633
+ * Collect information about a collation.
634
+ *
635
+ * The given `header` is the header of the built block for that
636
+ * we are collecting the collation info for.
637
+ *
638
+ * @callname: CollectCollationInfo_collect_collation_info
639
+ * @param {Header} header
640
+ **/
641
+ collectCollationInfo: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
642
+
643
+ /**
644
+ * Generic runtime api call
645
+ **/
646
+ [method: string]: GenericRuntimeApiMethod<Rv>;
647
+ };
648
+ /**
649
+ * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
650
+ **/
651
+ genesisBuilder: {
652
+ /**
653
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
654
+ * storage.
655
+ *
656
+ * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
657
+ * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
658
+ * deserialization fails, an error is returned.
659
+ *
660
+ * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
661
+ * defaults will be used.
662
+ *
663
+ * @callname: GenesisBuilder_build_state
664
+ * @param {BytesLike} json
665
+ **/
666
+ buildState: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
667
+
668
+ /**
669
+ * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
670
+ * `id`.
671
+ *
672
+ * If `id` is `None` the function returns JSON blob representation of the default
673
+ * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
674
+ * `RuntimeGenesisConfig`.
675
+ *
676
+ * Otherwise function returns a JSON representation of the built-in, named
677
+ * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
678
+ * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
679
+ * (potentially nested) key-value pairs that are intended for customizing the default
680
+ * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
681
+ * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
682
+ * be used in `build_state` method.
683
+ *
684
+ * @callname: GenesisBuilder_get_preset
685
+ * @param {string | undefined} id
686
+ **/
687
+ getPreset: GenericRuntimeApiMethod<Rv, (id?: string | undefined) => Promise<Bytes | undefined>>;
688
+
689
+ /**
690
+ * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
691
+ *
692
+ * The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If
693
+ * no named presets are provided by the runtime the list is empty.
694
+ *
695
+ * @callname: GenesisBuilder_preset_names
696
+ **/
697
+ presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
698
+
699
+ /**
700
+ * Generic runtime api call
701
+ **/
702
+ [method: string]: GenericRuntimeApiMethod<Rv>;
703
+ };
704
+ }