@dedot/chaintypes 0.4.0 → 0.6.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 (46) hide show
  1. package/kusama-asset-hub/consts.d.ts +765 -0
  2. package/kusama-asset-hub/errors.d.ts +1529 -0
  3. package/kusama-asset-hub/events.d.ts +2443 -0
  4. package/kusama-asset-hub/index.d.ts +27 -0
  5. package/kusama-asset-hub/json-rpc.d.ts +90 -0
  6. package/kusama-asset-hub/query.d.ts +1677 -0
  7. package/kusama-asset-hub/runtime.d.ts +555 -0
  8. package/kusama-asset-hub/tx.d.ts +6364 -0
  9. package/kusama-asset-hub/types.d.ts +6921 -0
  10. package/package.json +3 -3
  11. package/polkadot-asset-hub/consts.d.ts +730 -0
  12. package/polkadot-asset-hub/errors.d.ts +1500 -0
  13. package/polkadot-asset-hub/events.d.ts +2414 -0
  14. package/polkadot-asset-hub/index.d.ts +27 -0
  15. package/polkadot-asset-hub/json-rpc.d.ts +90 -0
  16. package/polkadot-asset-hub/query.d.ts +1655 -0
  17. package/polkadot-asset-hub/runtime.d.ts +558 -0
  18. package/polkadot-asset-hub/tx.d.ts +6293 -0
  19. package/polkadot-asset-hub/types.d.ts +6829 -0
  20. package/rococo-asset-hub/consts.d.ts +835 -0
  21. package/rococo-asset-hub/errors.d.ts +1590 -0
  22. package/rococo-asset-hub/events.d.ts +2573 -0
  23. package/rococo-asset-hub/index.d.ts +27 -0
  24. package/rococo-asset-hub/json-rpc.d.ts +90 -0
  25. package/rococo-asset-hub/query.d.ts +1829 -0
  26. package/rococo-asset-hub/runtime.d.ts +726 -0
  27. package/rococo-asset-hub/tx.d.ts +9011 -0
  28. package/rococo-asset-hub/types.d.ts +12431 -0
  29. package/westend-asset-hub/consts.d.ts +869 -0
  30. package/westend-asset-hub/errors.d.ts +1635 -0
  31. package/westend-asset-hub/events.d.ts +2610 -0
  32. package/westend-asset-hub/index.d.ts +27 -0
  33. package/westend-asset-hub/json-rpc.d.ts +90 -0
  34. package/westend-asset-hub/query.d.ts +1868 -0
  35. package/westend-asset-hub/runtime.d.ts +798 -0
  36. package/westend-asset-hub/tx.d.ts +9199 -0
  37. package/westend-asset-hub/types.d.ts +12661 -0
  38. package/westend-people/consts.d.ts +434 -0
  39. package/westend-people/errors.d.ts +769 -0
  40. package/westend-people/events.d.ts +1082 -0
  41. package/westend-people/index.d.ts +27 -0
  42. package/westend-people/json-rpc.d.ts +89 -0
  43. package/westend-people/query.d.ts +1209 -0
  44. package/westend-people/runtime.d.ts +636 -0
  45. package/westend-people/tx.d.ts +2891 -0
  46. package/westend-people/types.d.ts +4984 -0
@@ -0,0 +1,726 @@
1
+ // Generated by dedot cli
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
+ AccountId32,
16
+ } from 'dedot/codecs';
17
+ import type {
18
+ SpConsensusSlotsSlotDuration,
19
+ SpConsensusAuraSr25519AppSr25519Public,
20
+ SpConsensusSlotsSlot,
21
+ SpRuntimeBlock,
22
+ SpRuntimeExtrinsicInclusionMode,
23
+ SpCoreOpaqueMetadata,
24
+ SpRuntimeTransactionValidityTransactionValidityError,
25
+ SpInherentsInherentData,
26
+ SpInherentsCheckInherentsResult,
27
+ SpRuntimeTransactionValidityValidTransaction,
28
+ SpRuntimeTransactionValidityTransactionSource,
29
+ SpCoreCryptoKeyTypeId,
30
+ StagingXcmV3MultilocationMultiLocation,
31
+ PalletTransactionPaymentRuntimeDispatchInfo,
32
+ PalletTransactionPaymentFeeDetails,
33
+ SpWeightsWeightV2Weight,
34
+ AssetHubRococoRuntimeRuntimeCallLike,
35
+ XcmVersionedAssets,
36
+ AssetsCommonRuntimeApiFungiblesAccessError,
37
+ XcmVersionedAssetId,
38
+ XcmRuntimeApisFeesError,
39
+ XcmVersionedXcm,
40
+ XcmVersionedLocation,
41
+ XcmRuntimeApisDryRunCallDryRunEffects,
42
+ XcmRuntimeApisDryRunError,
43
+ AssetHubRococoRuntimeOriginCaller,
44
+ XcmRuntimeApisDryRunXcmDryRunEffects,
45
+ XcmRuntimeApisConversionsError,
46
+ CumulusPrimitivesCoreCollationInfo,
47
+ } from './types';
48
+
49
+ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
50
+ /**
51
+ * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
52
+ **/
53
+ auraApi: {
54
+ /**
55
+ * Returns the slot duration for Aura.
56
+ *
57
+ * Currently, only the value provided by this type at genesis will be used.
58
+ *
59
+ * @callname: AuraApi_slot_duration
60
+ **/
61
+ slotDuration: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusSlotsSlotDuration>>;
62
+
63
+ /**
64
+ * Return the current set of authorities.
65
+ *
66
+ * @callname: AuraApi_authorities
67
+ **/
68
+ authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
69
+
70
+ /**
71
+ * Generic runtime api call
72
+ **/
73
+ [method: string]: GenericRuntimeApiMethod<Rv>;
74
+ };
75
+ /**
76
+ * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
77
+ **/
78
+ auraUnincludedSegmentApi: {
79
+ /**
80
+ * Whether it is legal to extend the chain, assuming the given block is the most
81
+ * recently included one as-of the relay parent that will be built against, and
82
+ * the given slot.
83
+ *
84
+ * This should be consistent with the logic the runtime uses when validating blocks to
85
+ * avoid issues.
86
+ *
87
+ * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block
88
+ * whose state we are querying against, this must always return `true` as long as the slot
89
+ * is more recent than the included block itself.
90
+ *
91
+ * @callname: AuraUnincludedSegmentApi_can_build_upon
92
+ * @param {H256} included_hash
93
+ * @param {SpConsensusSlotsSlot} slot
94
+ **/
95
+ canBuildUpon: GenericRuntimeApiMethod<Rv, (includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
96
+
97
+ /**
98
+ * Generic runtime api call
99
+ **/
100
+ [method: string]: GenericRuntimeApiMethod<Rv>;
101
+ };
102
+ /**
103
+ * @runtimeapi: Core - 0xdf6acb689907609b
104
+ **/
105
+ core: {
106
+ /**
107
+ * Returns the version of the runtime.
108
+ *
109
+ * @callname: Core_version
110
+ **/
111
+ version: GenericRuntimeApiMethod<Rv, () => Promise<RuntimeVersion>>;
112
+
113
+ /**
114
+ * Execute the given block.
115
+ *
116
+ * @callname: Core_execute_block
117
+ * @param {SpRuntimeBlock} block
118
+ **/
119
+ executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
120
+
121
+ /**
122
+ * Initialize a block with the given header and return the runtime executive mode.
123
+ *
124
+ * @callname: Core_initialize_block
125
+ * @param {Header} header
126
+ **/
127
+ initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
128
+
129
+ /**
130
+ * Generic runtime api call
131
+ **/
132
+ [method: string]: GenericRuntimeApiMethod<Rv>;
133
+ };
134
+ /**
135
+ * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
136
+ **/
137
+ metadata: {
138
+ /**
139
+ * Returns the metadata of a runtime.
140
+ *
141
+ * @callname: Metadata_metadata
142
+ **/
143
+ metadata: GenericRuntimeApiMethod<Rv, () => Promise<SpCoreOpaqueMetadata>>;
144
+
145
+ /**
146
+ * Returns the metadata at a given version.
147
+ *
148
+ * If the given `version` isn't supported, this will return `None`.
149
+ * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
150
+ *
151
+ * @callname: Metadata_metadata_at_version
152
+ * @param {number} version
153
+ **/
154
+ metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
155
+
156
+ /**
157
+ * Returns the supported metadata versions.
158
+ *
159
+ * This can be used to call `metadata_at_version`.
160
+ *
161
+ * @callname: Metadata_metadata_versions
162
+ **/
163
+ metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
164
+
165
+ /**
166
+ * Generic runtime api call
167
+ **/
168
+ [method: string]: GenericRuntimeApiMethod<Rv>;
169
+ };
170
+ /**
171
+ * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
172
+ **/
173
+ blockBuilder: {
174
+ /**
175
+ * Apply the given extrinsic.
176
+ *
177
+ * Returns an inclusion outcome which specifies if this extrinsic is included in
178
+ * this block or not.
179
+ *
180
+ * @callname: BlockBuilder_apply_extrinsic
181
+ * @param {UncheckedExtrinsicLike} extrinsic
182
+ **/
183
+ applyExtrinsic: GenericRuntimeApiMethod<
184
+ Rv,
185
+ (
186
+ extrinsic: UncheckedExtrinsicLike,
187
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
188
+ >;
189
+
190
+ /**
191
+ * Finish the current block.
192
+ *
193
+ * @callname: BlockBuilder_finalize_block
194
+ **/
195
+ finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
196
+
197
+ /**
198
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
199
+ *
200
+ * @callname: BlockBuilder_inherent_extrinsics
201
+ * @param {SpInherentsInherentData} inherent
202
+ **/
203
+ inherentExtrinsics: GenericRuntimeApiMethod<
204
+ Rv,
205
+ (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
206
+ >;
207
+
208
+ /**
209
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
210
+ *
211
+ * @callname: BlockBuilder_check_inherents
212
+ * @param {SpRuntimeBlock} block
213
+ * @param {SpInherentsInherentData} data
214
+ **/
215
+ checkInherents: GenericRuntimeApiMethod<
216
+ Rv,
217
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
218
+ >;
219
+
220
+ /**
221
+ * Generic runtime api call
222
+ **/
223
+ [method: string]: GenericRuntimeApiMethod<Rv>;
224
+ };
225
+ /**
226
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
227
+ **/
228
+ taggedTransactionQueue: {
229
+ /**
230
+ * Validate the transaction.
231
+ *
232
+ * This method is invoked by the transaction pool to learn details about given transaction.
233
+ * The implementation should make sure to verify the correctness of the transaction
234
+ * against current state. The given `block_hash` corresponds to the hash of the block
235
+ * that is used as current state.
236
+ *
237
+ * Note that this call may be performed by the pool multiple times and transactions
238
+ * might be verified in any possible order.
239
+ *
240
+ * @callname: TaggedTransactionQueue_validate_transaction
241
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
242
+ * @param {UncheckedExtrinsicLike} tx
243
+ * @param {H256} block_hash
244
+ **/
245
+ validateTransaction: GenericRuntimeApiMethod<
246
+ Rv,
247
+ (
248
+ source: SpRuntimeTransactionValidityTransactionSource,
249
+ tx: UncheckedExtrinsicLike,
250
+ blockHash: H256,
251
+ ) => Promise<
252
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
253
+ >
254
+ >;
255
+
256
+ /**
257
+ * Generic runtime api call
258
+ **/
259
+ [method: string]: GenericRuntimeApiMethod<Rv>;
260
+ };
261
+ /**
262
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
263
+ **/
264
+ offchainWorkerApi: {
265
+ /**
266
+ * Starts the off-chain task for given block header.
267
+ *
268
+ * @callname: OffchainWorkerApi_offchain_worker
269
+ * @param {Header} header
270
+ **/
271
+ offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
272
+
273
+ /**
274
+ * Generic runtime api call
275
+ **/
276
+ [method: string]: GenericRuntimeApiMethod<Rv>;
277
+ };
278
+ /**
279
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
280
+ **/
281
+ sessionKeys: {
282
+ /**
283
+ * Generate a set of session keys with optionally using the given seed.
284
+ * The keys should be stored within the keystore exposed via runtime
285
+ * externalities.
286
+ *
287
+ * The seed needs to be a valid `utf8` string.
288
+ *
289
+ * Returns the concatenated SCALE encoded public keys.
290
+ *
291
+ * @callname: SessionKeys_generate_session_keys
292
+ * @param {BytesLike | undefined} seed
293
+ **/
294
+ generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
295
+
296
+ /**
297
+ * Decode the given public session keys.
298
+ *
299
+ * Returns the list of public raw public keys + key type.
300
+ *
301
+ * @callname: SessionKeys_decode_session_keys
302
+ * @param {BytesLike} encoded
303
+ **/
304
+ decodeSessionKeys: GenericRuntimeApiMethod<
305
+ Rv,
306
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
307
+ >;
308
+
309
+ /**
310
+ * Generic runtime api call
311
+ **/
312
+ [method: string]: GenericRuntimeApiMethod<Rv>;
313
+ };
314
+ /**
315
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
316
+ **/
317
+ accountNonceApi: {
318
+ /**
319
+ * Get current account nonce of given `AccountId`.
320
+ *
321
+ * @callname: AccountNonceApi_account_nonce
322
+ * @param {AccountId32Like} account
323
+ **/
324
+ accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
325
+
326
+ /**
327
+ * Generic runtime api call
328
+ **/
329
+ [method: string]: GenericRuntimeApiMethod<Rv>;
330
+ };
331
+ /**
332
+ * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
333
+ **/
334
+ assetConversionApi: {
335
+ /**
336
+ * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
337
+ *
338
+ * Note that the price may have changed by the time the transaction is executed.
339
+ * (Use `amount_in_max` to control slippage.)
340
+ *
341
+ * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
342
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
343
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
344
+ * @param {bigint} amount
345
+ * @param {boolean} include_fee
346
+ **/
347
+ quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
348
+ Rv,
349
+ (
350
+ asset1: StagingXcmV3MultilocationMultiLocation,
351
+ asset2: StagingXcmV3MultilocationMultiLocation,
352
+ amount: bigint,
353
+ includeFee: boolean,
354
+ ) => Promise<bigint | undefined>
355
+ >;
356
+
357
+ /**
358
+ * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
359
+ *
360
+ * Note that the price may have changed by the time the transaction is executed.
361
+ * (Use `amount_out_min` to control slippage.)
362
+ *
363
+ * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
364
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
365
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
366
+ * @param {bigint} amount
367
+ * @param {boolean} include_fee
368
+ **/
369
+ quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
370
+ Rv,
371
+ (
372
+ asset1: StagingXcmV3MultilocationMultiLocation,
373
+ asset2: StagingXcmV3MultilocationMultiLocation,
374
+ amount: bigint,
375
+ includeFee: boolean,
376
+ ) => Promise<bigint | undefined>
377
+ >;
378
+
379
+ /**
380
+ * Returns the size of the liquidity pool for the given asset pair.
381
+ *
382
+ * @callname: AssetConversionApi_get_reserves
383
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
384
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
385
+ **/
386
+ getReserves: GenericRuntimeApiMethod<
387
+ Rv,
388
+ (
389
+ asset1: StagingXcmV3MultilocationMultiLocation,
390
+ asset2: StagingXcmV3MultilocationMultiLocation,
391
+ ) => Promise<[bigint, bigint] | undefined>
392
+ >;
393
+
394
+ /**
395
+ * Generic runtime api call
396
+ **/
397
+ [method: string]: GenericRuntimeApiMethod<Rv>;
398
+ };
399
+ /**
400
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
401
+ **/
402
+ transactionPaymentApi: {
403
+ /**
404
+ *
405
+ * @callname: TransactionPaymentApi_query_info
406
+ * @param {UncheckedExtrinsicLike} uxt
407
+ * @param {number} len
408
+ **/
409
+ queryInfo: GenericRuntimeApiMethod<
410
+ Rv,
411
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
412
+ >;
413
+
414
+ /**
415
+ *
416
+ * @callname: TransactionPaymentApi_query_fee_details
417
+ * @param {UncheckedExtrinsicLike} uxt
418
+ * @param {number} len
419
+ **/
420
+ queryFeeDetails: GenericRuntimeApiMethod<
421
+ Rv,
422
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
423
+ >;
424
+
425
+ /**
426
+ *
427
+ * @callname: TransactionPaymentApi_query_weight_to_fee
428
+ * @param {SpWeightsWeightV2Weight} weight
429
+ **/
430
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
431
+
432
+ /**
433
+ *
434
+ * @callname: TransactionPaymentApi_query_length_to_fee
435
+ * @param {number} length
436
+ **/
437
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
438
+
439
+ /**
440
+ * Generic runtime api call
441
+ **/
442
+ [method: string]: GenericRuntimeApiMethod<Rv>;
443
+ };
444
+ /**
445
+ * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
446
+ **/
447
+ transactionPaymentCallApi: {
448
+ /**
449
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
450
+ *
451
+ * @callname: TransactionPaymentCallApi_query_call_info
452
+ * @param {AssetHubRococoRuntimeRuntimeCallLike} call
453
+ * @param {number} len
454
+ **/
455
+ queryCallInfo: GenericRuntimeApiMethod<
456
+ Rv,
457
+ (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
458
+ >;
459
+
460
+ /**
461
+ * Query fee details of a given encoded `Call`.
462
+ *
463
+ * @callname: TransactionPaymentCallApi_query_call_fee_details
464
+ * @param {AssetHubRococoRuntimeRuntimeCallLike} call
465
+ * @param {number} len
466
+ **/
467
+ queryCallFeeDetails: GenericRuntimeApiMethod<
468
+ Rv,
469
+ (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
470
+ >;
471
+
472
+ /**
473
+ * Query the output of the current `WeightToFee` given some input.
474
+ *
475
+ * @callname: TransactionPaymentCallApi_query_weight_to_fee
476
+ * @param {SpWeightsWeightV2Weight} weight
477
+ **/
478
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
479
+
480
+ /**
481
+ * Query the output of the current `LengthToFee` given some input.
482
+ *
483
+ * @callname: TransactionPaymentCallApi_query_length_to_fee
484
+ * @param {number} length
485
+ **/
486
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
487
+
488
+ /**
489
+ * Generic runtime api call
490
+ **/
491
+ [method: string]: GenericRuntimeApiMethod<Rv>;
492
+ };
493
+ /**
494
+ * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
495
+ **/
496
+ fungiblesApi: {
497
+ /**
498
+ * Returns the list of all [`Asset`] that an `AccountId` has.
499
+ *
500
+ * @callname: FungiblesApi_query_account_balances
501
+ * @param {AccountId32Like} account
502
+ **/
503
+ queryAccountBalances: GenericRuntimeApiMethod<
504
+ Rv,
505
+ (account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
506
+ >;
507
+
508
+ /**
509
+ * Generic runtime api call
510
+ **/
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>;
649
+ };
650
+ /**
651
+ * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
652
+ **/
653
+ collectCollationInfo: {
654
+ /**
655
+ * Collect information about a collation.
656
+ *
657
+ * The given `header` is the header of the built block for that
658
+ * we are collecting the collation info for.
659
+ *
660
+ * @callname: CollectCollationInfo_collect_collation_info
661
+ * @param {Header} header
662
+ **/
663
+ collectCollationInfo: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
664
+
665
+ /**
666
+ * Generic runtime api call
667
+ **/
668
+ [method: string]: GenericRuntimeApiMethod<Rv>;
669
+ };
670
+ /**
671
+ * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
672
+ **/
673
+ genesisBuilder: {
674
+ /**
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.
681
+ *
682
+ * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
683
+ * defaults will be used.
684
+ *
685
+ * @callname: GenesisBuilder_build_state
686
+ * @param {BytesLike} json
687
+ **/
688
+ buildState: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
689
+
690
+ /**
691
+ * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
692
+ * `id`.
693
+ *
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`.
697
+ *
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.
705
+ *
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
718
+ **/
719
+ presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
720
+
721
+ /**
722
+ * Generic runtime api call
723
+ **/
724
+ [method: string]: GenericRuntimeApiMethod<Rv>;
725
+ };
726
+ }