@dedot/chaintypes 0.14.0 → 0.16.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 (51) hide show
  1. package/kusama/consts.d.ts +48 -30
  2. package/kusama/errors.d.ts +89 -100
  3. package/kusama/events.d.ts +87 -28
  4. package/kusama/index.d.ts +1 -1
  5. package/kusama/query.d.ts +241 -130
  6. package/kusama/runtime.d.ts +347 -95
  7. package/kusama/tx.d.ts +3309 -456
  8. package/kusama/types.d.ts +6341 -1092
  9. package/kusama-asset-hub/consts.d.ts +52 -3
  10. package/kusama-asset-hub/errors.d.ts +30 -5
  11. package/kusama-asset-hub/events.d.ts +61 -1
  12. package/kusama-asset-hub/index.d.ts +1 -1
  13. package/kusama-asset-hub/query.d.ts +100 -18
  14. package/kusama-asset-hub/runtime.d.ts +186 -15
  15. package/kusama-asset-hub/tx.d.ts +3074 -254
  16. package/kusama-asset-hub/types.d.ts +6190 -551
  17. package/package.json +2 -2
  18. package/paseo/index.d.ts +1 -1
  19. package/rococo/errors.d.ts +0 -10
  20. package/rococo/events.d.ts +33 -12
  21. package/rococo/index.d.ts +1 -1
  22. package/rococo/query.d.ts +52 -52
  23. package/rococo/runtime.d.ts +117 -58
  24. package/rococo/tx.d.ts +33 -33
  25. package/rococo/types.d.ts +191 -185
  26. package/rococo-asset-hub/consts.d.ts +2 -2
  27. package/rococo-asset-hub/events.d.ts +87 -80
  28. package/rococo-asset-hub/index.d.ts +1 -1
  29. package/rococo-asset-hub/query.d.ts +66 -54
  30. package/rococo-asset-hub/runtime.d.ts +12 -15
  31. package/rococo-asset-hub/tx.d.ts +250 -241
  32. package/rococo-asset-hub/types.d.ts +353 -404
  33. package/westend/consts.d.ts +9 -0
  34. package/westend/errors.d.ts +0 -10
  35. package/westend/events.d.ts +79 -13
  36. package/westend/index.d.ts +1 -1
  37. package/westend/query.d.ts +75 -52
  38. package/westend/runtime.d.ts +133 -58
  39. package/westend/tx.d.ts +72 -35
  40. package/westend/types.d.ts +308 -190
  41. package/westend-asset-hub/consts.d.ts +2 -2
  42. package/westend-asset-hub/events.d.ts +87 -80
  43. package/westend-asset-hub/index.d.ts +1 -1
  44. package/westend-asset-hub/query.d.ts +66 -54
  45. package/westend-asset-hub/runtime.d.ts +12 -15
  46. package/westend-asset-hub/tx.d.ts +250 -241
  47. package/westend-asset-hub/types.d.ts +353 -404
  48. package/westend-people/index.d.ts +1 -1
  49. package/westend-people/query.d.ts +12 -12
  50. package/westend-people/tx.d.ts +1 -58
  51. package/westend-people/types.d.ts +16 -62
@@ -20,12 +20,12 @@ import type {
20
20
  FrameSystemCodeUpgradeAuthorization,
21
21
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
22
22
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
23
- PolkadotPrimitivesV7PersistedValidationData,
24
- PolkadotPrimitivesV7UpgradeRestriction,
25
- PolkadotPrimitivesV7UpgradeGoAhead,
23
+ PolkadotPrimitivesV8PersistedValidationData,
24
+ PolkadotPrimitivesV8UpgradeRestriction,
25
+ PolkadotPrimitivesV8UpgradeGoAhead,
26
26
  SpTrieStorageProof,
27
27
  CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
28
- PolkadotPrimitivesV7AbridgedHostConfiguration,
28
+ PolkadotPrimitivesV8AbridgedHostConfiguration,
29
29
  CumulusPrimitivesParachainInherentMessageQueueChain,
30
30
  PolkadotParachainPrimitivesPrimitivesId,
31
31
  PolkadotCorePrimitivesOutboundHrmpMessage,
@@ -55,7 +55,6 @@ import type {
55
55
  PalletMultisigMultisig,
56
56
  PalletProxyProxyDefinition,
57
57
  PalletProxyAnnouncement,
58
- BpXcmBridgeHubRouterBridgeState,
59
58
  PalletAssetsAssetDetails,
60
59
  PalletAssetsAssetAccount,
61
60
  PalletAssetsApproval,
@@ -74,7 +73,7 @@ import type {
74
73
  PalletNftsPendingSwap,
75
74
  PalletNftsCollectionConfig,
76
75
  PalletNftsItemConfig,
77
- StagingXcmV3MultilocationMultiLocation,
76
+ StagingXcmV4Location,
78
77
  PalletNftFractionalizationDetails,
79
78
  PalletAssetConversionPoolInfo,
80
79
  FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
@@ -292,9 +291,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
292
291
  * This value is expected to be set only once per block and it's never stored
293
292
  * in the trie.
294
293
  *
295
- * @param {Callback<PolkadotPrimitivesV7PersistedValidationData | undefined> =} callback
294
+ * @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
296
295
  **/
297
- validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7PersistedValidationData | undefined>;
296
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8PersistedValidationData | undefined>;
298
297
 
299
298
  /**
300
299
  * Were the validation data set to notify the relay chain?
@@ -321,9 +320,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
321
320
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
322
321
  * set after the inherent.
323
322
  *
324
- * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
323
+ * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
325
324
  **/
326
- upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeRestriction | undefined>;
325
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
327
326
 
328
327
  /**
329
328
  * Optional upgrade go-ahead signal from the relay-chain.
@@ -332,9 +331,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
332
331
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
333
332
  * set after the inherent.
334
333
  *
335
- * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
334
+ * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
336
335
  **/
337
- upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeGoAhead | undefined>;
336
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
338
337
 
339
338
  /**
340
339
  * The state proof for the last relay parent block.
@@ -372,9 +371,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
372
371
  *
373
372
  * This data is also absent from the genesis.
374
373
  *
375
- * @param {Callback<PolkadotPrimitivesV7AbridgedHostConfiguration | undefined> =} callback
374
+ * @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
376
375
  **/
377
- hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>;
376
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
378
377
 
379
378
  /**
380
379
  * The last downward message queue chain head we have observed.
@@ -1174,17 +1173,40 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1174
1173
  **/
1175
1174
  toWestendXcmRouter: {
1176
1175
  /**
1177
- * Bridge that we are using.
1176
+ * The number to multiply the base delivery fee by.
1178
1177
  *
1179
- * **bridges-v1** assumptions: all outbound messages through this router are using single lane
1180
- * and to single remote consensus. If there is some other remote consensus that uses the same
1181
- * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required
1182
- * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges
1183
- * by the same pallet instance.
1178
+ * This factor is shared by all bridges, served by this pallet. For example, if this
1179
+ * chain (`Config::UniversalLocation`) opens two bridges (
1180
+ * `X2(GlobalConsensus(Config::BridgedNetworkId::get()), Parachain(1000))` and
1181
+ * `X2(GlobalConsensus(Config::BridgedNetworkId::get()), Parachain(2000))`), then they
1182
+ * both will be sharing the same fee factor. This is because both bridges are sharing
1183
+ * the same local XCM channel with the child/sibling bridge hub, which we are using
1184
+ * to detect congestion:
1184
1185
  *
1185
- * @param {Callback<BpXcmBridgeHubRouterBridgeState> =} callback
1186
+ * ```nocompile
1187
+ * ThisChain --- Local XCM channel --> Sibling Bridge Hub ------
1188
+ * | |
1189
+ * | |
1190
+ * | |
1191
+ * Lane1 Lane2
1192
+ * | |
1193
+ * | |
1194
+ * | |
1195
+ * \ / |
1196
+ * Parachain1 <-- Local XCM channel --- Remote Bridge Hub <------
1197
+ * |
1198
+ * |
1199
+ * Parachain1 <-- Local XCM channel ---------
1200
+ * ```
1201
+ *
1202
+ * If at least one of other channels is congested, the local XCM channel with sibling
1203
+ * bridge hub eventually becomes congested too. And we have no means to detect - which
1204
+ * bridge exactly causes the congestion. So the best solution here is not to make
1205
+ * any differences between all bridges, started by this chain.
1206
+ *
1207
+ * @param {Callback<FixedU128> =} callback
1186
1208
  **/
1187
- bridge: GenericStorageQuery<Rv, () => BpXcmBridgeHubRouterBridgeState>;
1209
+ deliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
1188
1210
 
1189
1211
  /**
1190
1212
  * Generic pallet storage query
@@ -1537,25 +1559,25 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1537
1559
  /**
1538
1560
  * Details of an asset.
1539
1561
  *
1540
- * @param {StagingXcmV3MultilocationMultiLocation} arg
1562
+ * @param {StagingXcmV4Location} arg
1541
1563
  * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1542
1564
  **/
1543
1565
  asset: GenericStorageQuery<
1544
1566
  Rv,
1545
- (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined,
1546
- StagingXcmV3MultilocationMultiLocation
1567
+ (arg: StagingXcmV4Location) => PalletAssetsAssetDetails | undefined,
1568
+ StagingXcmV4Location
1547
1569
  >;
1548
1570
 
1549
1571
  /**
1550
1572
  * The holdings of a specific account for a specific asset.
1551
1573
  *
1552
- * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
1574
+ * @param {[StagingXcmV4Location, AccountId32Like]} arg
1553
1575
  * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1554
1576
  **/
1555
1577
  account: GenericStorageQuery<
1556
1578
  Rv,
1557
- (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1558
- [StagingXcmV3MultilocationMultiLocation, AccountId32]
1579
+ (arg: [StagingXcmV4Location, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1580
+ [StagingXcmV4Location, AccountId32]
1559
1581
  >;
1560
1582
 
1561
1583
  /**
@@ -1563,28 +1585,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1563
1585
  * is the amount of `T::Currency` reserved for storing this.
1564
1586
  * First key is the asset ID, second key is the owner and third key is the delegate.
1565
1587
  *
1566
- * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like]} arg
1588
+ * @param {[StagingXcmV4Location, AccountId32Like, AccountId32Like]} arg
1567
1589
  * @param {Callback<PalletAssetsApproval | undefined> =} callback
1568
1590
  **/
1569
1591
  approvals: GenericStorageQuery<
1570
1592
  Rv,
1571
- (
1572
- arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like],
1573
- ) => PalletAssetsApproval | undefined,
1574
- [StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32]
1593
+ (arg: [StagingXcmV4Location, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
1594
+ [StagingXcmV4Location, AccountId32, AccountId32]
1575
1595
  >;
1576
1596
 
1577
1597
  /**
1578
1598
  * Metadata of an asset.
1579
1599
  *
1580
- * @param {StagingXcmV3MultilocationMultiLocation} arg
1600
+ * @param {StagingXcmV4Location} arg
1581
1601
  * @param {Callback<PalletAssetsAssetMetadata> =} callback
1582
1602
  **/
1583
- metadata: GenericStorageQuery<
1584
- Rv,
1585
- (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata,
1586
- StagingXcmV3MultilocationMultiLocation
1587
- >;
1603
+ metadata: GenericStorageQuery<Rv, (arg: StagingXcmV4Location) => PalletAssetsAssetMetadata, StagingXcmV4Location>;
1588
1604
 
1589
1605
  /**
1590
1606
  * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
@@ -1597,9 +1613,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1597
1613
  * The initial next asset ID can be set using the [`GenesisConfig`] or the
1598
1614
  * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1599
1615
  *
1600
- * @param {Callback<StagingXcmV3MultilocationMultiLocation | undefined> =} callback
1616
+ * @param {Callback<StagingXcmV4Location | undefined> =} callback
1601
1617
  **/
1602
- nextAssetId: GenericStorageQuery<Rv, () => StagingXcmV3MultilocationMultiLocation | undefined>;
1618
+ nextAssetId: GenericStorageQuery<Rv, () => StagingXcmV4Location | undefined>;
1603
1619
 
1604
1620
  /**
1605
1621
  * Generic pallet storage query
@@ -1701,15 +1717,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1701
1717
  * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
1702
1718
  * created rather than people sending tokens directly to a pool's public account.
1703
1719
  *
1704
- * @param {[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]} arg
1720
+ * @param {[StagingXcmV4Location, StagingXcmV4Location]} arg
1705
1721
  * @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
1706
1722
  **/
1707
1723
  pools: GenericStorageQuery<
1708
1724
  Rv,
1709
- (
1710
- arg: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation],
1711
- ) => PalletAssetConversionPoolInfo | undefined,
1712
- [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]
1725
+ (arg: [StagingXcmV4Location, StagingXcmV4Location]) => PalletAssetConversionPoolInfo | undefined,
1726
+ [StagingXcmV4Location, StagingXcmV4Location]
1713
1727
  >;
1714
1728
 
1715
1729
  /**
@@ -1765,27 +1779,25 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1765
1779
  /**
1766
1780
  * A map that stores freezes applied on an account for a given AssetId.
1767
1781
  *
1768
- * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
1782
+ * @param {[StagingXcmV4Location, AccountId32Like]} arg
1769
1783
  * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
1770
1784
  **/
1771
1785
  freezes: GenericStorageQuery<
1772
1786
  Rv,
1773
- (
1774
- arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like],
1775
- ) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
1776
- [StagingXcmV3MultilocationMultiLocation, AccountId32]
1787
+ (arg: [StagingXcmV4Location, AccountId32Like]) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
1788
+ [StagingXcmV4Location, AccountId32]
1777
1789
  >;
1778
1790
 
1779
1791
  /**
1780
1792
  * A map that stores the current total frozen balance for every account on a given AssetId.
1781
1793
  *
1782
- * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
1794
+ * @param {[StagingXcmV4Location, AccountId32Like]} arg
1783
1795
  * @param {Callback<bigint | undefined> =} callback
1784
1796
  **/
1785
1797
  frozenBalances: GenericStorageQuery<
1786
1798
  Rv,
1787
- (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => bigint | undefined,
1788
- [StagingXcmV3MultilocationMultiLocation, AccountId32]
1799
+ (arg: [StagingXcmV4Location, AccountId32Like]) => bigint | undefined,
1800
+ [StagingXcmV4Location, AccountId32]
1789
1801
  >;
1790
1802
 
1791
1803
  /**
@@ -27,7 +27,7 @@ import type {
27
27
  SpRuntimeTransactionValidityValidTransaction,
28
28
  SpRuntimeTransactionValidityTransactionSource,
29
29
  SpCoreCryptoKeyTypeId,
30
- StagingXcmV3MultilocationMultiLocation,
30
+ StagingXcmV4Location,
31
31
  PalletTransactionPaymentRuntimeDispatchInfo,
32
32
  PalletTransactionPaymentFeeDetails,
33
33
  SpWeightsWeightV2Weight,
@@ -339,16 +339,16 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
339
339
  * (Use `amount_in_max` to control slippage.)
340
340
  *
341
341
  * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
342
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
343
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
342
+ * @param {StagingXcmV4Location} asset1
343
+ * @param {StagingXcmV4Location} asset2
344
344
  * @param {bigint} amount
345
345
  * @param {boolean} include_fee
346
346
  **/
347
347
  quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
348
348
  Rv,
349
349
  (
350
- asset1: StagingXcmV3MultilocationMultiLocation,
351
- asset2: StagingXcmV3MultilocationMultiLocation,
350
+ asset1: StagingXcmV4Location,
351
+ asset2: StagingXcmV4Location,
352
352
  amount: bigint,
353
353
  includeFee: boolean,
354
354
  ) => Promise<bigint | undefined>
@@ -361,16 +361,16 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
361
361
  * (Use `amount_out_min` to control slippage.)
362
362
  *
363
363
  * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
364
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
365
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
364
+ * @param {StagingXcmV4Location} asset1
365
+ * @param {StagingXcmV4Location} asset2
366
366
  * @param {bigint} amount
367
367
  * @param {boolean} include_fee
368
368
  **/
369
369
  quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
370
370
  Rv,
371
371
  (
372
- asset1: StagingXcmV3MultilocationMultiLocation,
373
- asset2: StagingXcmV3MultilocationMultiLocation,
372
+ asset1: StagingXcmV4Location,
373
+ asset2: StagingXcmV4Location,
374
374
  amount: bigint,
375
375
  includeFee: boolean,
376
376
  ) => Promise<bigint | undefined>
@@ -380,15 +380,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
380
380
  * Returns the size of the liquidity pool for the given asset pair.
381
381
  *
382
382
  * @callname: AssetConversionApi_get_reserves
383
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
384
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
383
+ * @param {StagingXcmV4Location} asset1
384
+ * @param {StagingXcmV4Location} asset2
385
385
  **/
386
386
  getReserves: GenericRuntimeApiMethod<
387
387
  Rv,
388
- (
389
- asset1: StagingXcmV3MultilocationMultiLocation,
390
- asset2: StagingXcmV3MultilocationMultiLocation,
391
- ) => Promise<[bigint, bigint] | undefined>
388
+ (asset1: StagingXcmV4Location, asset2: StagingXcmV4Location) => Promise<[bigint, bigint] | undefined>
392
389
  >;
393
390
 
394
391
  /**