@dedot/chaintypes 0.11.0 → 0.13.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 (57) hide show
  1. package/astar/consts.d.ts +25 -12
  2. package/astar/errors.d.ts +1 -6
  3. package/astar/events.d.ts +0 -68
  4. package/astar/index.d.ts +1 -1
  5. package/astar/query.d.ts +18 -31
  6. package/astar/runtime.d.ts +151 -14
  7. package/astar/tx.d.ts +114 -13
  8. package/astar/types.d.ts +185 -121
  9. package/index.d.ts +5 -5
  10. package/index.ts +5 -5
  11. package/moonbeam/json-rpc.d.ts +12 -9
  12. package/package.json +2 -2
  13. package/kusamaAssetHub/consts.d.ts +0 -765
  14. package/kusamaAssetHub/errors.d.ts +0 -1529
  15. package/kusamaAssetHub/events.d.ts +0 -2443
  16. package/kusamaAssetHub/index.d.ts +0 -27
  17. package/kusamaAssetHub/json-rpc.d.ts +0 -90
  18. package/kusamaAssetHub/query.d.ts +0 -1677
  19. package/kusamaAssetHub/runtime.d.ts +0 -555
  20. package/kusamaAssetHub/tx.d.ts +0 -6364
  21. package/kusamaAssetHub/types.d.ts +0 -6921
  22. package/polkadotAssetHub/consts.d.ts +0 -730
  23. package/polkadotAssetHub/errors.d.ts +0 -1500
  24. package/polkadotAssetHub/events.d.ts +0 -2414
  25. package/polkadotAssetHub/index.d.ts +0 -27
  26. package/polkadotAssetHub/json-rpc.d.ts +0 -90
  27. package/polkadotAssetHub/query.d.ts +0 -1655
  28. package/polkadotAssetHub/runtime.d.ts +0 -558
  29. package/polkadotAssetHub/tx.d.ts +0 -6293
  30. package/polkadotAssetHub/types.d.ts +0 -6829
  31. package/rococoAssetHub/consts.d.ts +0 -835
  32. package/rococoAssetHub/errors.d.ts +0 -1590
  33. package/rococoAssetHub/events.d.ts +0 -2573
  34. package/rococoAssetHub/index.d.ts +0 -27
  35. package/rococoAssetHub/json-rpc.d.ts +0 -90
  36. package/rococoAssetHub/query.d.ts +0 -1829
  37. package/rococoAssetHub/runtime.d.ts +0 -726
  38. package/rococoAssetHub/tx.d.ts +0 -9011
  39. package/rococoAssetHub/types.d.ts +0 -12431
  40. package/westendAssetHub/consts.d.ts +0 -869
  41. package/westendAssetHub/errors.d.ts +0 -1635
  42. package/westendAssetHub/events.d.ts +0 -2610
  43. package/westendAssetHub/index.d.ts +0 -27
  44. package/westendAssetHub/json-rpc.d.ts +0 -90
  45. package/westendAssetHub/query.d.ts +0 -1868
  46. package/westendAssetHub/runtime.d.ts +0 -798
  47. package/westendAssetHub/tx.d.ts +0 -9199
  48. package/westendAssetHub/types.d.ts +0 -12661
  49. package/westendPeople/consts.d.ts +0 -434
  50. package/westendPeople/errors.d.ts +0 -769
  51. package/westendPeople/events.d.ts +0 -1082
  52. package/westendPeople/index.d.ts +0 -27
  53. package/westendPeople/json-rpc.d.ts +0 -89
  54. package/westendPeople/query.d.ts +0 -1209
  55. package/westendPeople/runtime.d.ts +0 -636
  56. package/westendPeople/tx.d.ts +0 -2891
  57. package/westendPeople/types.d.ts +0 -4984
package/astar/consts.d.ts CHANGED
@@ -99,7 +99,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
99
99
  maxSubAccounts: number;
100
100
 
101
101
  /**
102
- * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
102
+ * Maximum number of registrars allowed in the system. Needed to bound the complexity
103
103
  * of, e.g., updating judgements.
104
104
  **/
105
105
  maxRegistrars: number;
@@ -302,11 +302,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
302
302
  /**
303
303
  * The maximum number of locks that should exist on an account.
304
304
  * Not strictly enforced, but used for weight estimation.
305
+ *
306
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
305
307
  **/
306
308
  maxLocks: number;
307
309
 
308
310
  /**
309
311
  * The maximum number of named reserves that can exist on an account.
312
+ *
313
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
310
314
  **/
311
315
  maxReserves: number;
312
316
 
@@ -554,6 +558,14 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
554
558
  * Pallet `Aura`'s constants
555
559
  **/
556
560
  aura: {
561
+ /**
562
+ * The slot duration Aura should run with, expressed in milliseconds.
563
+ * The effective value of this type should not change while the chain is running.
564
+ *
565
+ * For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
566
+ **/
567
+ slotDuration: bigint;
568
+
557
569
  /**
558
570
  * Generic pallet constant
559
571
  **/
@@ -604,15 +616,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
604
616
  **/
605
617
  [name: string]: any;
606
618
  };
607
- /**
608
- * Pallet `DmpQueue`'s constants
609
- **/
610
- dmpQueue: {
611
- /**
612
- * Generic pallet constant
613
- **/
614
- [name: string]: any;
615
- };
616
619
  /**
617
620
  * Pallet `XcAssetConfig`'s constants
618
621
  **/
@@ -671,13 +674,23 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
671
674
 
672
675
  /**
673
676
  * The amount of weight (if any) which should be provided to the message queue for
674
- * servicing enqueued items.
677
+ * servicing enqueued items `on_initialize`.
675
678
  *
676
679
  * This may be legitimately `None` in the case that you will call
677
- * `ServiceQueues::service_queues` manually.
680
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
681
+ * it run in `on_idle`.
678
682
  **/
679
683
  serviceWeight: SpWeightsWeightV2Weight | undefined;
680
684
 
685
+ /**
686
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
687
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
688
+ * Useful for parachains to process messages at the same block they are received.
689
+ *
690
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
691
+ **/
692
+ idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
693
+
681
694
  /**
682
695
  * Generic pallet constant
683
696
  **/
package/astar/errors.d.ts CHANGED
@@ -1090,11 +1090,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1090
1090
  **/
1091
1091
  InUse: GenericPalletError<Rv>;
1092
1092
 
1093
- /**
1094
- * Invalid non-concrete asset.
1095
- **/
1096
- InvalidAssetNotConcrete: GenericPalletError<Rv>;
1097
-
1098
1093
  /**
1099
1094
  * Invalid asset, reserve chain could not be determined for it.
1100
1095
  **/
@@ -1589,7 +1584,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1589
1584
  CodeRejected: GenericPalletError<Rv>;
1590
1585
 
1591
1586
  /**
1592
- * An indetermistic code was used in a context where this is not permitted.
1587
+ * An indeterministic code was used in a context where this is not permitted.
1593
1588
  **/
1594
1589
  Indeterministic: GenericPalletError<Rv>;
1595
1590
 
package/astar/events.d.ts CHANGED
@@ -1429,74 +1429,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1429
1429
  **/
1430
1430
  [prop: string]: GenericPalletEvent<Rv>;
1431
1431
  };
1432
- /**
1433
- * Pallet `DmpQueue`'s events
1434
- **/
1435
- dmpQueue: {
1436
- /**
1437
- * The export of pages started.
1438
- **/
1439
- StartedExport: GenericPalletEvent<Rv, 'DmpQueue', 'StartedExport', null>;
1440
-
1441
- /**
1442
- * The export of a page completed.
1443
- **/
1444
- Exported: GenericPalletEvent<Rv, 'DmpQueue', 'Exported', { page: number }>;
1445
-
1446
- /**
1447
- * The export of a page failed.
1448
- *
1449
- * This should never be emitted.
1450
- **/
1451
- ExportFailed: GenericPalletEvent<Rv, 'DmpQueue', 'ExportFailed', { page: number }>;
1452
-
1453
- /**
1454
- * The export of pages completed.
1455
- **/
1456
- CompletedExport: GenericPalletEvent<Rv, 'DmpQueue', 'CompletedExport', null>;
1457
-
1458
- /**
1459
- * The export of overweight messages started.
1460
- **/
1461
- StartedOverweightExport: GenericPalletEvent<Rv, 'DmpQueue', 'StartedOverweightExport', null>;
1462
-
1463
- /**
1464
- * The export of an overweight message completed.
1465
- **/
1466
- ExportedOverweight: GenericPalletEvent<Rv, 'DmpQueue', 'ExportedOverweight', { index: bigint }>;
1467
-
1468
- /**
1469
- * The export of an overweight message failed.
1470
- *
1471
- * This should never be emitted.
1472
- **/
1473
- ExportOverweightFailed: GenericPalletEvent<Rv, 'DmpQueue', 'ExportOverweightFailed', { index: bigint }>;
1474
-
1475
- /**
1476
- * The export of overweight messages completed.
1477
- **/
1478
- CompletedOverweightExport: GenericPalletEvent<Rv, 'DmpQueue', 'CompletedOverweightExport', null>;
1479
-
1480
- /**
1481
- * The cleanup of remaining pallet storage started.
1482
- **/
1483
- StartedCleanup: GenericPalletEvent<Rv, 'DmpQueue', 'StartedCleanup', null>;
1484
-
1485
- /**
1486
- * Some debris was cleaned up.
1487
- **/
1488
- CleanedSome: GenericPalletEvent<Rv, 'DmpQueue', 'CleanedSome', { keysRemoved: number }>;
1489
-
1490
- /**
1491
- * The cleanup of remaining pallet storage completed.
1492
- **/
1493
- Completed: GenericPalletEvent<Rv, 'DmpQueue', 'Completed', { error: boolean }>;
1494
-
1495
- /**
1496
- * Generic pallet event
1497
- **/
1498
- [prop: string]: GenericPalletEvent<Rv>;
1499
- };
1500
1432
  /**
1501
1433
  * Pallet `XcAssetConfig`'s events
1502
1434
  **/
package/astar/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface VersionedAstarApi<Rv extends RpcVersion> extends GenericSubstra
23
23
 
24
24
  /**
25
25
  * @name: AstarApi
26
- * @specVersion: 92
26
+ * @specVersion: 94
27
27
  **/
28
28
  export interface AstarApi {
29
29
  legacy: VersionedAstarApi<RpcLegacy>;
package/astar/query.d.ts CHANGED
@@ -29,12 +29,12 @@ import type {
29
29
  PalletProxyAnnouncement,
30
30
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
31
31
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
32
- PolkadotPrimitivesV6PersistedValidationData,
33
- PolkadotPrimitivesV6UpgradeRestriction,
34
- PolkadotPrimitivesV6UpgradeGoAhead,
32
+ PolkadotPrimitivesV7PersistedValidationData,
33
+ PolkadotPrimitivesV7UpgradeRestriction,
34
+ PolkadotPrimitivesV7UpgradeGoAhead,
35
35
  SpTrieStorageProof,
36
36
  CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
37
- PolkadotPrimitivesV6AbridgedHostConfiguration,
37
+ PolkadotPrimitivesV7AbridgedHostConfiguration,
38
38
  CumulusPrimitivesParachainInherentMessageQueueChain,
39
39
  PolkadotParachainPrimitivesPrimitivesId,
40
40
  PolkadotCorePrimitivesOutboundHrmpMessage,
@@ -83,7 +83,6 @@ import type {
83
83
  PalletXcmVersionMigrationStage,
84
84
  PalletXcmRemoteLockedFungibleRecord,
85
85
  XcmVersionedAssetId,
86
- CumulusPalletDmpQueueMigrationState,
87
86
  PalletMessageQueueBookState,
88
87
  CumulusPrimitivesCoreAggregateMessageOrigin,
89
88
  PalletMessageQueuePage,
@@ -482,9 +481,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
482
481
  * This value is expected to be set only once per block and it's never stored
483
482
  * in the trie.
484
483
  *
485
- * @param {Callback<PolkadotPrimitivesV6PersistedValidationData | undefined> =} callback
484
+ * @param {Callback<PolkadotPrimitivesV7PersistedValidationData | undefined> =} callback
486
485
  **/
487
- validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6PersistedValidationData | undefined>;
486
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7PersistedValidationData | undefined>;
488
487
 
489
488
  /**
490
489
  * Were the validation data set to notify the relay chain?
@@ -511,9 +510,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
511
510
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
512
511
  * set after the inherent.
513
512
  *
514
- * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
513
+ * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
515
514
  **/
516
- upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
515
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeRestriction | undefined>;
517
516
 
518
517
  /**
519
518
  * Optional upgrade go-ahead signal from the relay-chain.
@@ -522,9 +521,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
522
521
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
523
522
  * set after the inherent.
524
523
  *
525
- * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
524
+ * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
526
525
  **/
527
- upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
526
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeGoAhead | undefined>;
528
527
 
529
528
  /**
530
529
  * The state proof for the last relay parent block.
@@ -562,9 +561,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
562
561
  *
563
562
  * This data is also absent from the genesis.
564
563
  *
565
- * @param {Callback<PolkadotPrimitivesV6AbridgedHostConfiguration | undefined> =} callback
564
+ * @param {Callback<PolkadotPrimitivesV7AbridgedHostConfiguration | undefined> =} callback
566
565
  **/
567
- hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>;
566
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>;
568
567
 
569
568
  /**
570
569
  * The last downward message queue chain head we have observed.
@@ -766,6 +765,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
766
765
  * Any liquidity locks on some account balances.
767
766
  * NOTE: Should only be accessed when setting, changing and freeing a lock.
768
767
  *
768
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
769
+ *
769
770
  * @param {AccountId32Like} arg
770
771
  * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
771
772
  **/
@@ -774,6 +775,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
774
775
  /**
775
776
  * Named reserves on some account balances.
776
777
  *
778
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
779
+ *
777
780
  * @param {AccountId32Like} arg
778
781
  * @param {Callback<Array<PalletBalancesReserveData>> =} callback
779
782
  **/
@@ -1191,9 +1194,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1191
1194
  * Candidates who initiated leave intent or kicked.
1192
1195
  *
1193
1196
  * @param {AccountId32Like} arg
1194
- * @param {Callback<[number, bigint]> =} callback
1197
+ * @param {Callback<[number, bigint] | undefined> =} callback
1195
1198
  **/
1196
- nonCandidates: GenericStorageQuery<Rv, (arg: AccountId32Like) => [number, bigint], AccountId32>;
1199
+ nonCandidates: GenericStorageQuery<Rv, (arg: AccountId32Like) => [number, bigint] | undefined, AccountId32>;
1197
1200
 
1198
1201
  /**
1199
1202
  * Last block authored by collator.
@@ -1569,22 +1572,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1569
1572
  **/
1570
1573
  [storage: string]: GenericStorageQuery<Rv>;
1571
1574
  };
1572
- /**
1573
- * Pallet `DmpQueue`'s storage queries
1574
- **/
1575
- dmpQueue: {
1576
- /**
1577
- * The migration state of this pallet.
1578
- *
1579
- * @param {Callback<CumulusPalletDmpQueueMigrationState> =} callback
1580
- **/
1581
- migrationStatus: GenericStorageQuery<Rv, () => CumulusPalletDmpQueueMigrationState>;
1582
-
1583
- /**
1584
- * Generic pallet storage query
1585
- **/
1586
- [storage: string]: GenericStorageQuery<Rv>;
1587
- };
1588
1575
  /**
1589
1576
  * Pallet `XcAssetConfig`'s storage queries
1590
1577
  **/
@@ -4,9 +4,9 @@ import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'de
4
4
  import type {
5
5
  RuntimeVersion,
6
6
  Header,
7
+ H256,
7
8
  DispatchError,
8
9
  Result,
9
- H256,
10
10
  AccountId32Like,
11
11
  Bytes,
12
12
  BytesLike,
@@ -20,6 +20,7 @@ import type {
20
20
  SpCoreOpaqueMetadata,
21
21
  SpConsensusSlotsSlotDuration,
22
22
  SpConsensusAuraSr25519AppSr25519Public,
23
+ SpConsensusSlotsSlot,
23
24
  SpRuntimeTransactionValidityTransactionValidityError,
24
25
  FpSelfContainedUncheckedExtrinsic,
25
26
  SpInherentsInherentData,
@@ -46,6 +47,11 @@ import type {
46
47
  PalletContractsWasmDeterminism,
47
48
  PalletContractsPrimitivesContractAccessError,
48
49
  AstarPrimitivesDappStakingRankedTier,
50
+ XcmVersionedAssetId,
51
+ XcmFeePaymentRuntimeApiError,
52
+ XcmVersionedXcm,
53
+ XcmVersionedAssets,
54
+ XcmVersionedLocation,
49
55
  } from './types';
50
56
 
51
57
  export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
@@ -142,6 +148,33 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
142
148
  **/
143
149
  [method: string]: GenericRuntimeApiMethod<Rv>;
144
150
  };
151
+ /**
152
+ * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
153
+ **/
154
+ auraUnincludedSegmentApi: {
155
+ /**
156
+ * Whether it is legal to extend the chain, assuming the given block is the most
157
+ * recently included one as-of the relay parent that will be built against, and
158
+ * the given slot.
159
+ *
160
+ * This should be consistent with the logic the runtime uses when validating blocks to
161
+ * avoid issues.
162
+ *
163
+ * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block
164
+ * whose state we are querying against, this must always return `true` as long as the slot
165
+ * is more recent than the included block itself.
166
+ *
167
+ * @callname: AuraUnincludedSegmentApi_can_build_upon
168
+ * @param {H256} included_hash
169
+ * @param {SpConsensusSlotsSlot} slot
170
+ **/
171
+ canBuildUpon: GenericRuntimeApiMethod<Rv, (includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
172
+
173
+ /**
174
+ * Generic runtime api call
175
+ **/
176
+ [method: string]: GenericRuntimeApiMethod<Rv>;
177
+ };
145
178
  /**
146
179
  * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
147
180
  **/
@@ -772,33 +805,137 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
772
805
  **/
773
806
  [method: string]: GenericRuntimeApiMethod<Rv>;
774
807
  };
808
+ /**
809
+ * @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
810
+ **/
811
+ xcmPaymentApi: {
812
+ /**
813
+ * Returns a list of acceptable payment assets.
814
+ *
815
+ * # Arguments
816
+ *
817
+ * * `xcm_version`: Version.
818
+ *
819
+ * @callname: XcmPaymentApi_query_acceptable_payment_assets
820
+ * @param {number} xcm_version
821
+ **/
822
+ queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
823
+ Rv,
824
+ (xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmFeePaymentRuntimeApiError>>
825
+ >;
826
+
827
+ /**
828
+ * Returns a weight needed to execute a XCM.
829
+ *
830
+ * # Arguments
831
+ *
832
+ * * `message`: `VersionedXcm`.
833
+ *
834
+ * @callname: XcmPaymentApi_query_xcm_weight
835
+ * @param {XcmVersionedXcm} message
836
+ **/
837
+ queryXcmWeight: GenericRuntimeApiMethod<
838
+ Rv,
839
+ (message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmFeePaymentRuntimeApiError>>
840
+ >;
841
+
842
+ /**
843
+ * Converts a weight into a fee for the specified `AssetId`.
844
+ *
845
+ * # Arguments
846
+ *
847
+ * * `weight`: convertible `Weight`.
848
+ * * `asset`: `VersionedAssetId`.
849
+ *
850
+ * @callname: XcmPaymentApi_query_weight_to_asset_fee
851
+ * @param {SpWeightsWeightV2Weight} weight
852
+ * @param {XcmVersionedAssetId} asset
853
+ **/
854
+ queryWeightToAssetFee: GenericRuntimeApiMethod<
855
+ Rv,
856
+ (
857
+ weight: SpWeightsWeightV2Weight,
858
+ asset: XcmVersionedAssetId,
859
+ ) => Promise<Result<bigint, XcmFeePaymentRuntimeApiError>>
860
+ >;
861
+
862
+ /**
863
+ * Get delivery fees for sending a specific `message` to a `destination`.
864
+ * These always come in a specific asset, defined by the chain.
865
+ *
866
+ * # Arguments
867
+ * * `message`: The message that'll be sent, necessary because most delivery fees are based on the
868
+ * size of the message.
869
+ * * `destination`: The destination to send the message to. Different destinations may use
870
+ * different senders that charge different fees.
871
+ *
872
+ * @callname: XcmPaymentApi_query_delivery_fees
873
+ * @param {XcmVersionedLocation} destination
874
+ * @param {XcmVersionedXcm} message
875
+ **/
876
+ queryDeliveryFees: GenericRuntimeApiMethod<
877
+ Rv,
878
+ (
879
+ destination: XcmVersionedLocation,
880
+ message: XcmVersionedXcm,
881
+ ) => Promise<Result<XcmVersionedAssets, XcmFeePaymentRuntimeApiError>>
882
+ >;
883
+
884
+ /**
885
+ * Generic runtime api call
886
+ **/
887
+ [method: string]: GenericRuntimeApiMethod<Rv>;
888
+ };
775
889
  /**
776
890
  * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
777
891
  **/
778
892
  genesisBuilder: {
779
893
  /**
780
- * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
894
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
895
+ * storage.
781
896
  *
782
- * This function instantiates the default `RuntimeGenesisConfig` struct for the runtime and serializes it into a JSON
783
- * blob. It returns a `Vec<u8>` containing the JSON representation of the default `RuntimeGenesisConfig`.
897
+ * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
898
+ * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
899
+ * deserialization fails, an error is returned.
784
900
  *
785
- * @callname: GenesisBuilder_create_default_config
901
+ * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
902
+ * defaults will be used.
903
+ *
904
+ * @callname: GenesisBuilder_build_state
905
+ * @param {BytesLike} json
786
906
  **/
787
- createDefaultConfig: GenericRuntimeApiMethod<Rv, () => Promise<Bytes>>;
907
+ buildState: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
788
908
 
789
909
  /**
790
- * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
910
+ * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
911
+ * `id`.
791
912
  *
792
- * This function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage.
793
- * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
794
- * It is recommended to log any errors encountered during the process.
913
+ * If `id` is `None` the function returns JSON blob representation of the default
914
+ * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
915
+ * `RuntimeGenesisConfig`.
795
916
  *
796
- * Please note that provided json blob must contain all `RuntimeGenesisConfig` fields, no defaults will be used.
917
+ * Otherwise function returns a JSON representation of the built-in, named
918
+ * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
919
+ * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
920
+ * (potentially nested) key-value pairs that are intended for customizing the default
921
+ * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
922
+ * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
923
+ * be used in `build_state` method.
797
924
  *
798
- * @callname: GenesisBuilder_build_config
799
- * @param {BytesLike} json
925
+ * @callname: GenesisBuilder_get_preset
926
+ * @param {string | undefined} id
927
+ **/
928
+ getPreset: GenericRuntimeApiMethod<Rv, (id?: string | undefined) => Promise<Bytes | undefined>>;
929
+
930
+ /**
931
+ * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
932
+ *
933
+ * The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If
934
+ * no named presets are provided by the runtime the list is empty.
935
+ *
936
+ * @callname: GenesisBuilder_preset_names
800
937
  **/
801
- buildConfig: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
938
+ presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
802
939
 
803
940
  /**
804
941
  * Generic runtime api call