@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.
- package/kusama/consts.d.ts +48 -30
- package/kusama/errors.d.ts +89 -100
- package/kusama/events.d.ts +87 -28
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +241 -130
- package/kusama/runtime.d.ts +347 -95
- package/kusama/tx.d.ts +3309 -456
- package/kusama/types.d.ts +6341 -1092
- package/kusama-asset-hub/consts.d.ts +52 -3
- package/kusama-asset-hub/errors.d.ts +30 -5
- package/kusama-asset-hub/events.d.ts +61 -1
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +100 -18
- package/kusama-asset-hub/runtime.d.ts +186 -15
- package/kusama-asset-hub/tx.d.ts +3074 -254
- package/kusama-asset-hub/types.d.ts +6190 -551
- package/package.json +2 -2
- package/paseo/index.d.ts +1 -1
- package/rococo/errors.d.ts +0 -10
- package/rococo/events.d.ts +33 -12
- package/rococo/index.d.ts +1 -1
- package/rococo/query.d.ts +52 -52
- package/rococo/runtime.d.ts +117 -58
- package/rococo/tx.d.ts +33 -33
- package/rococo/types.d.ts +191 -185
- package/rococo-asset-hub/consts.d.ts +2 -2
- package/rococo-asset-hub/events.d.ts +87 -80
- package/rococo-asset-hub/index.d.ts +1 -1
- package/rococo-asset-hub/query.d.ts +66 -54
- package/rococo-asset-hub/runtime.d.ts +12 -15
- package/rococo-asset-hub/tx.d.ts +250 -241
- package/rococo-asset-hub/types.d.ts +353 -404
- package/westend/consts.d.ts +9 -0
- package/westend/errors.d.ts +0 -10
- package/westend/events.d.ts +79 -13
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +75 -52
- package/westend/runtime.d.ts +133 -58
- package/westend/tx.d.ts +72 -35
- package/westend/types.d.ts +308 -190
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/events.d.ts +87 -80
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +66 -54
- package/westend-asset-hub/runtime.d.ts +12 -15
- package/westend-asset-hub/tx.d.ts +250 -241
- package/westend-asset-hub/types.d.ts +353 -404
- package/westend-people/index.d.ts +1 -1
- package/westend-people/query.d.ts +12 -12
- package/westend-people/tx.d.ts +1 -58
- package/westend-people/types.d.ts +16 -62
|
@@ -20,12 +20,12 @@ import type {
|
|
|
20
20
|
FrameSystemCodeUpgradeAuthorization,
|
|
21
21
|
CumulusPalletParachainSystemUnincludedSegmentAncestor,
|
|
22
22
|
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
PolkadotPrimitivesV8PersistedValidationData,
|
|
24
|
+
PolkadotPrimitivesV8UpgradeRestriction,
|
|
25
|
+
PolkadotPrimitivesV8UpgradeGoAhead,
|
|
26
26
|
SpTrieStorageProof,
|
|
27
27
|
CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
|
|
28
|
-
|
|
28
|
+
PolkadotPrimitivesV8AbridgedHostConfiguration,
|
|
29
29
|
CumulusPrimitivesParachainInherentMessageQueueChain,
|
|
30
30
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
31
31
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
@@ -49,7 +49,6 @@ import type {
|
|
|
49
49
|
PalletXcmRemoteLockedFungibleRecord,
|
|
50
50
|
XcmVersionedAssetId,
|
|
51
51
|
StagingXcmV4Xcm,
|
|
52
|
-
BpXcmBridgeHubRouterBridgeState,
|
|
53
52
|
PalletMessageQueueBookState,
|
|
54
53
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
55
54
|
PalletMessageQueuePage,
|
|
@@ -74,7 +73,7 @@ import type {
|
|
|
74
73
|
PalletNftsPendingSwap,
|
|
75
74
|
PalletNftsCollectionConfig,
|
|
76
75
|
PalletNftsItemConfig,
|
|
77
|
-
|
|
76
|
+
StagingXcmV4Location,
|
|
78
77
|
PalletNftFractionalizationDetails,
|
|
79
78
|
PalletAssetConversionPoolInfo,
|
|
80
79
|
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
@@ -294,9 +293,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
294
293
|
* This value is expected to be set only once per block and it's never stored
|
|
295
294
|
* in the trie.
|
|
296
295
|
*
|
|
297
|
-
* @param {Callback<
|
|
296
|
+
* @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
|
|
298
297
|
**/
|
|
299
|
-
validationData: GenericStorageQuery<Rv, () =>
|
|
298
|
+
validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8PersistedValidationData | undefined>;
|
|
300
299
|
|
|
301
300
|
/**
|
|
302
301
|
* Were the validation data set to notify the relay chain?
|
|
@@ -323,9 +322,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
323
322
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
324
323
|
* set after the inherent.
|
|
325
324
|
*
|
|
326
|
-
* @param {Callback<
|
|
325
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
|
|
327
326
|
**/
|
|
328
|
-
upgradeRestrictionSignal: GenericStorageQuery<Rv, () =>
|
|
327
|
+
upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
|
|
329
328
|
|
|
330
329
|
/**
|
|
331
330
|
* Optional upgrade go-ahead signal from the relay-chain.
|
|
@@ -334,9 +333,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
334
333
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
335
334
|
* set after the inherent.
|
|
336
335
|
*
|
|
337
|
-
* @param {Callback<
|
|
336
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
|
|
338
337
|
**/
|
|
339
|
-
upgradeGoAhead: GenericStorageQuery<Rv, () =>
|
|
338
|
+
upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
|
|
340
339
|
|
|
341
340
|
/**
|
|
342
341
|
* The state proof for the last relay parent block.
|
|
@@ -374,9 +373,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
374
373
|
*
|
|
375
374
|
* This data is also absent from the genesis.
|
|
376
375
|
*
|
|
377
|
-
* @param {Callback<
|
|
376
|
+
* @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
|
|
378
377
|
**/
|
|
379
|
-
hostConfiguration: GenericStorageQuery<Rv, () =>
|
|
378
|
+
hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
|
|
380
379
|
|
|
381
380
|
/**
|
|
382
381
|
* The last downward message queue chain head we have observed.
|
|
@@ -1081,17 +1080,40 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1081
1080
|
**/
|
|
1082
1081
|
toRococoXcmRouter: {
|
|
1083
1082
|
/**
|
|
1084
|
-
*
|
|
1083
|
+
* The number to multiply the base delivery fee by.
|
|
1085
1084
|
*
|
|
1086
|
-
*
|
|
1087
|
-
*
|
|
1088
|
-
*
|
|
1089
|
-
*
|
|
1090
|
-
*
|
|
1085
|
+
* This factor is shared by all bridges, served by this pallet. For example, if this
|
|
1086
|
+
* chain (`Config::UniversalLocation`) opens two bridges (
|
|
1087
|
+
* `X2(GlobalConsensus(Config::BridgedNetworkId::get()), Parachain(1000))` and
|
|
1088
|
+
* `X2(GlobalConsensus(Config::BridgedNetworkId::get()), Parachain(2000))`), then they
|
|
1089
|
+
* both will be sharing the same fee factor. This is because both bridges are sharing
|
|
1090
|
+
* the same local XCM channel with the child/sibling bridge hub, which we are using
|
|
1091
|
+
* to detect congestion:
|
|
1091
1092
|
*
|
|
1092
|
-
*
|
|
1093
|
+
* ```nocompile
|
|
1094
|
+
* ThisChain --- Local XCM channel --> Sibling Bridge Hub ------
|
|
1095
|
+
* | |
|
|
1096
|
+
* | |
|
|
1097
|
+
* | |
|
|
1098
|
+
* Lane1 Lane2
|
|
1099
|
+
* | |
|
|
1100
|
+
* | |
|
|
1101
|
+
* | |
|
|
1102
|
+
* \ / |
|
|
1103
|
+
* Parachain1 <-- Local XCM channel --- Remote Bridge Hub <------
|
|
1104
|
+
* |
|
|
1105
|
+
* |
|
|
1106
|
+
* Parachain1 <-- Local XCM channel ---------
|
|
1107
|
+
* ```
|
|
1108
|
+
*
|
|
1109
|
+
* If at least one of other channels is congested, the local XCM channel with sibling
|
|
1110
|
+
* bridge hub eventually becomes congested too. And we have no means to detect - which
|
|
1111
|
+
* bridge exactly causes the congestion. So the best solution here is not to make
|
|
1112
|
+
* any differences between all bridges, started by this chain.
|
|
1113
|
+
*
|
|
1114
|
+
* @param {Callback<FixedU128> =} callback
|
|
1093
1115
|
**/
|
|
1094
|
-
|
|
1116
|
+
deliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
|
|
1095
1117
|
|
|
1096
1118
|
/**
|
|
1097
1119
|
* Generic pallet storage query
|
|
@@ -1539,25 +1561,25 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1539
1561
|
/**
|
|
1540
1562
|
* Details of an asset.
|
|
1541
1563
|
*
|
|
1542
|
-
* @param {
|
|
1564
|
+
* @param {StagingXcmV4Location} arg
|
|
1543
1565
|
* @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
|
|
1544
1566
|
**/
|
|
1545
1567
|
asset: GenericStorageQuery<
|
|
1546
1568
|
Rv,
|
|
1547
|
-
(arg:
|
|
1548
|
-
|
|
1569
|
+
(arg: StagingXcmV4Location) => PalletAssetsAssetDetails | undefined,
|
|
1570
|
+
StagingXcmV4Location
|
|
1549
1571
|
>;
|
|
1550
1572
|
|
|
1551
1573
|
/**
|
|
1552
1574
|
* The holdings of a specific account for a specific asset.
|
|
1553
1575
|
*
|
|
1554
|
-
* @param {[
|
|
1576
|
+
* @param {[StagingXcmV4Location, AccountId32Like]} arg
|
|
1555
1577
|
* @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
|
|
1556
1578
|
**/
|
|
1557
1579
|
account: GenericStorageQuery<
|
|
1558
1580
|
Rv,
|
|
1559
|
-
(arg: [
|
|
1560
|
-
[
|
|
1581
|
+
(arg: [StagingXcmV4Location, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
|
|
1582
|
+
[StagingXcmV4Location, AccountId32]
|
|
1561
1583
|
>;
|
|
1562
1584
|
|
|
1563
1585
|
/**
|
|
@@ -1565,28 +1587,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1565
1587
|
* is the amount of `T::Currency` reserved for storing this.
|
|
1566
1588
|
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
1567
1589
|
*
|
|
1568
|
-
* @param {[
|
|
1590
|
+
* @param {[StagingXcmV4Location, AccountId32Like, AccountId32Like]} arg
|
|
1569
1591
|
* @param {Callback<PalletAssetsApproval | undefined> =} callback
|
|
1570
1592
|
**/
|
|
1571
1593
|
approvals: GenericStorageQuery<
|
|
1572
1594
|
Rv,
|
|
1573
|
-
(
|
|
1574
|
-
|
|
1575
|
-
) => PalletAssetsApproval | undefined,
|
|
1576
|
-
[StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32]
|
|
1595
|
+
(arg: [StagingXcmV4Location, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
|
|
1596
|
+
[StagingXcmV4Location, AccountId32, AccountId32]
|
|
1577
1597
|
>;
|
|
1578
1598
|
|
|
1579
1599
|
/**
|
|
1580
1600
|
* Metadata of an asset.
|
|
1581
1601
|
*
|
|
1582
|
-
* @param {
|
|
1602
|
+
* @param {StagingXcmV4Location} arg
|
|
1583
1603
|
* @param {Callback<PalletAssetsAssetMetadata> =} callback
|
|
1584
1604
|
**/
|
|
1585
|
-
metadata: GenericStorageQuery<
|
|
1586
|
-
Rv,
|
|
1587
|
-
(arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata,
|
|
1588
|
-
StagingXcmV3MultilocationMultiLocation
|
|
1589
|
-
>;
|
|
1605
|
+
metadata: GenericStorageQuery<Rv, (arg: StagingXcmV4Location) => PalletAssetsAssetMetadata, StagingXcmV4Location>;
|
|
1590
1606
|
|
|
1591
1607
|
/**
|
|
1592
1608
|
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
@@ -1599,9 +1615,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1599
1615
|
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
1600
1616
|
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
1601
1617
|
*
|
|
1602
|
-
* @param {Callback<
|
|
1618
|
+
* @param {Callback<StagingXcmV4Location | undefined> =} callback
|
|
1603
1619
|
**/
|
|
1604
|
-
nextAssetId: GenericStorageQuery<Rv, () =>
|
|
1620
|
+
nextAssetId: GenericStorageQuery<Rv, () => StagingXcmV4Location | undefined>;
|
|
1605
1621
|
|
|
1606
1622
|
/**
|
|
1607
1623
|
* Generic pallet storage query
|
|
@@ -1703,15 +1719,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1703
1719
|
* Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
|
|
1704
1720
|
* created rather than people sending tokens directly to a pool's public account.
|
|
1705
1721
|
*
|
|
1706
|
-
* @param {[
|
|
1722
|
+
* @param {[StagingXcmV4Location, StagingXcmV4Location]} arg
|
|
1707
1723
|
* @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
|
|
1708
1724
|
**/
|
|
1709
1725
|
pools: GenericStorageQuery<
|
|
1710
1726
|
Rv,
|
|
1711
|
-
(
|
|
1712
|
-
|
|
1713
|
-
) => PalletAssetConversionPoolInfo | undefined,
|
|
1714
|
-
[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]
|
|
1727
|
+
(arg: [StagingXcmV4Location, StagingXcmV4Location]) => PalletAssetConversionPoolInfo | undefined,
|
|
1728
|
+
[StagingXcmV4Location, StagingXcmV4Location]
|
|
1715
1729
|
>;
|
|
1716
1730
|
|
|
1717
1731
|
/**
|
|
@@ -1767,27 +1781,25 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1767
1781
|
/**
|
|
1768
1782
|
* A map that stores freezes applied on an account for a given AssetId.
|
|
1769
1783
|
*
|
|
1770
|
-
* @param {[
|
|
1784
|
+
* @param {[StagingXcmV4Location, AccountId32Like]} arg
|
|
1771
1785
|
* @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
|
|
1772
1786
|
**/
|
|
1773
1787
|
freezes: GenericStorageQuery<
|
|
1774
1788
|
Rv,
|
|
1775
|
-
(
|
|
1776
|
-
|
|
1777
|
-
) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
|
|
1778
|
-
[StagingXcmV3MultilocationMultiLocation, AccountId32]
|
|
1789
|
+
(arg: [StagingXcmV4Location, AccountId32Like]) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
|
|
1790
|
+
[StagingXcmV4Location, AccountId32]
|
|
1779
1791
|
>;
|
|
1780
1792
|
|
|
1781
1793
|
/**
|
|
1782
1794
|
* A map that stores the current total frozen balance for every account on a given AssetId.
|
|
1783
1795
|
*
|
|
1784
|
-
* @param {[
|
|
1796
|
+
* @param {[StagingXcmV4Location, AccountId32Like]} arg
|
|
1785
1797
|
* @param {Callback<bigint | undefined> =} callback
|
|
1786
1798
|
**/
|
|
1787
1799
|
frozenBalances: GenericStorageQuery<
|
|
1788
1800
|
Rv,
|
|
1789
|
-
(arg: [
|
|
1790
|
-
[
|
|
1801
|
+
(arg: [StagingXcmV4Location, AccountId32Like]) => bigint | undefined,
|
|
1802
|
+
[StagingXcmV4Location, AccountId32]
|
|
1791
1803
|
>;
|
|
1792
1804
|
|
|
1793
1805
|
/**
|
|
@@ -27,7 +27,7 @@ import type {
|
|
|
27
27
|
SpRuntimeTransactionValidityValidTransaction,
|
|
28
28
|
SpRuntimeTransactionValidityTransactionSource,
|
|
29
29
|
SpCoreCryptoKeyTypeId,
|
|
30
|
-
|
|
30
|
+
StagingXcmV4Location,
|
|
31
31
|
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
32
32
|
PalletTransactionPaymentFeeDetails,
|
|
33
33
|
SpWeightsWeightV2Weight,
|
|
@@ -411,16 +411,16 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
411
411
|
* (Use `amount_in_max` to control slippage.)
|
|
412
412
|
*
|
|
413
413
|
* @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
|
|
414
|
-
* @param {
|
|
415
|
-
* @param {
|
|
414
|
+
* @param {StagingXcmV4Location} asset1
|
|
415
|
+
* @param {StagingXcmV4Location} asset2
|
|
416
416
|
* @param {bigint} amount
|
|
417
417
|
* @param {boolean} include_fee
|
|
418
418
|
**/
|
|
419
419
|
quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
|
|
420
420
|
Rv,
|
|
421
421
|
(
|
|
422
|
-
asset1:
|
|
423
|
-
asset2:
|
|
422
|
+
asset1: StagingXcmV4Location,
|
|
423
|
+
asset2: StagingXcmV4Location,
|
|
424
424
|
amount: bigint,
|
|
425
425
|
includeFee: boolean,
|
|
426
426
|
) => Promise<bigint | undefined>
|
|
@@ -433,16 +433,16 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
433
433
|
* (Use `amount_out_min` to control slippage.)
|
|
434
434
|
*
|
|
435
435
|
* @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
|
|
436
|
-
* @param {
|
|
437
|
-
* @param {
|
|
436
|
+
* @param {StagingXcmV4Location} asset1
|
|
437
|
+
* @param {StagingXcmV4Location} asset2
|
|
438
438
|
* @param {bigint} amount
|
|
439
439
|
* @param {boolean} include_fee
|
|
440
440
|
**/
|
|
441
441
|
quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
|
|
442
442
|
Rv,
|
|
443
443
|
(
|
|
444
|
-
asset1:
|
|
445
|
-
asset2:
|
|
444
|
+
asset1: StagingXcmV4Location,
|
|
445
|
+
asset2: StagingXcmV4Location,
|
|
446
446
|
amount: bigint,
|
|
447
447
|
includeFee: boolean,
|
|
448
448
|
) => Promise<bigint | undefined>
|
|
@@ -452,15 +452,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
452
452
|
* Returns the size of the liquidity pool for the given asset pair.
|
|
453
453
|
*
|
|
454
454
|
* @callname: AssetConversionApi_get_reserves
|
|
455
|
-
* @param {
|
|
456
|
-
* @param {
|
|
455
|
+
* @param {StagingXcmV4Location} asset1
|
|
456
|
+
* @param {StagingXcmV4Location} asset2
|
|
457
457
|
**/
|
|
458
458
|
getReserves: GenericRuntimeApiMethod<
|
|
459
459
|
Rv,
|
|
460
|
-
(
|
|
461
|
-
asset1: StagingXcmV3MultilocationMultiLocation,
|
|
462
|
-
asset2: StagingXcmV3MultilocationMultiLocation,
|
|
463
|
-
) => Promise<[bigint, bigint] | undefined>
|
|
460
|
+
(asset1: StagingXcmV4Location, asset2: StagingXcmV4Location) => Promise<[bigint, bigint] | undefined>
|
|
464
461
|
>;
|
|
465
462
|
|
|
466
463
|
/**
|