@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,
|
|
@@ -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
|
-
|
|
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<
|
|
294
|
+
* @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
|
|
296
295
|
**/
|
|
297
|
-
validationData: GenericStorageQuery<Rv, () =>
|
|
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<
|
|
323
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
|
|
325
324
|
**/
|
|
326
|
-
upgradeRestrictionSignal: GenericStorageQuery<Rv, () =>
|
|
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<
|
|
334
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
|
|
336
335
|
**/
|
|
337
|
-
upgradeGoAhead: GenericStorageQuery<Rv, () =>
|
|
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<
|
|
374
|
+
* @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
|
|
376
375
|
**/
|
|
377
|
-
hostConfiguration: GenericStorageQuery<Rv, () =>
|
|
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
|
-
*
|
|
1176
|
+
* The number to multiply the base delivery fee by.
|
|
1178
1177
|
*
|
|
1179
|
-
*
|
|
1180
|
-
*
|
|
1181
|
-
*
|
|
1182
|
-
*
|
|
1183
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
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 {
|
|
1562
|
+
* @param {StagingXcmV4Location} arg
|
|
1541
1563
|
* @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
|
|
1542
1564
|
**/
|
|
1543
1565
|
asset: GenericStorageQuery<
|
|
1544
1566
|
Rv,
|
|
1545
|
-
(arg:
|
|
1546
|
-
|
|
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 {[
|
|
1574
|
+
* @param {[StagingXcmV4Location, AccountId32Like]} arg
|
|
1553
1575
|
* @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
|
|
1554
1576
|
**/
|
|
1555
1577
|
account: GenericStorageQuery<
|
|
1556
1578
|
Rv,
|
|
1557
|
-
(arg: [
|
|
1558
|
-
[
|
|
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 {[
|
|
1588
|
+
* @param {[StagingXcmV4Location, AccountId32Like, AccountId32Like]} arg
|
|
1567
1589
|
* @param {Callback<PalletAssetsApproval | undefined> =} callback
|
|
1568
1590
|
**/
|
|
1569
1591
|
approvals: GenericStorageQuery<
|
|
1570
1592
|
Rv,
|
|
1571
|
-
(
|
|
1572
|
-
|
|
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 {
|
|
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<
|
|
1616
|
+
* @param {Callback<StagingXcmV4Location | undefined> =} callback
|
|
1601
1617
|
**/
|
|
1602
|
-
nextAssetId: GenericStorageQuery<Rv, () =>
|
|
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 {[
|
|
1720
|
+
* @param {[StagingXcmV4Location, StagingXcmV4Location]} arg
|
|
1705
1721
|
* @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
|
|
1706
1722
|
**/
|
|
1707
1723
|
pools: GenericStorageQuery<
|
|
1708
1724
|
Rv,
|
|
1709
|
-
(
|
|
1710
|
-
|
|
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 {[
|
|
1782
|
+
* @param {[StagingXcmV4Location, AccountId32Like]} arg
|
|
1769
1783
|
* @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
|
|
1770
1784
|
**/
|
|
1771
1785
|
freezes: GenericStorageQuery<
|
|
1772
1786
|
Rv,
|
|
1773
|
-
(
|
|
1774
|
-
|
|
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 {[
|
|
1794
|
+
* @param {[StagingXcmV4Location, AccountId32Like]} arg
|
|
1783
1795
|
* @param {Callback<bigint | undefined> =} callback
|
|
1784
1796
|
**/
|
|
1785
1797
|
frozenBalances: GenericStorageQuery<
|
|
1786
1798
|
Rv,
|
|
1787
|
-
(arg: [
|
|
1788
|
-
[
|
|
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
|
-
|
|
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 {
|
|
343
|
-
* @param {
|
|
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:
|
|
351
|
-
asset2:
|
|
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 {
|
|
365
|
-
* @param {
|
|
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:
|
|
373
|
-
asset2:
|
|
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 {
|
|
384
|
-
* @param {
|
|
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
|
/**
|