@dedot/chaintypes 0.89.0 → 0.91.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-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/runtime.d.ts +3 -1
- package/kusama-asset-hub/types.d.ts +1 -4
- package/package.json +2 -2
- package/paseo-asset-hub/consts.d.ts +36 -2
- package/paseo-asset-hub/errors.d.ts +45 -0
- package/paseo-asset-hub/events.d.ts +121 -77
- package/paseo-asset-hub/index.d.ts +1 -1
- package/paseo-asset-hub/query.d.ts +68 -37
- package/paseo-asset-hub/runtime.d.ts +13 -16
- package/paseo-asset-hub/tx.d.ts +433 -204
- package/paseo-asset-hub/types.d.ts +581 -373
- package/paseo-people/json-rpc.d.ts +11 -10
|
@@ -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,
|
|
@@ -76,8 +76,10 @@ import type {
|
|
|
76
76
|
PalletNftsPendingSwap,
|
|
77
77
|
PalletNftsCollectionConfig,
|
|
78
78
|
PalletNftsItemConfig,
|
|
79
|
-
|
|
79
|
+
StagingXcmV4Location,
|
|
80
80
|
PalletAssetConversionPoolInfo,
|
|
81
|
+
PalletStateTrieMigrationMigrationTask,
|
|
82
|
+
PalletStateTrieMigrationMigrationLimits,
|
|
81
83
|
} from './types.js';
|
|
82
84
|
|
|
83
85
|
export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
|
|
@@ -292,9 +294,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
292
294
|
* This value is expected to be set only once per block and it's never stored
|
|
293
295
|
* in the trie.
|
|
294
296
|
*
|
|
295
|
-
* @param {Callback<
|
|
297
|
+
* @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
|
|
296
298
|
**/
|
|
297
|
-
validationData: GenericStorageQuery<Rv, () =>
|
|
299
|
+
validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8PersistedValidationData | undefined>;
|
|
298
300
|
|
|
299
301
|
/**
|
|
300
302
|
* Were the validation data set to notify the relay chain?
|
|
@@ -321,9 +323,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
321
323
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
322
324
|
* set after the inherent.
|
|
323
325
|
*
|
|
324
|
-
* @param {Callback<
|
|
326
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
|
|
325
327
|
**/
|
|
326
|
-
upgradeRestrictionSignal: GenericStorageQuery<Rv, () =>
|
|
328
|
+
upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
|
|
327
329
|
|
|
328
330
|
/**
|
|
329
331
|
* Optional upgrade go-ahead signal from the relay-chain.
|
|
@@ -332,9 +334,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
332
334
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
333
335
|
* set after the inherent.
|
|
334
336
|
*
|
|
335
|
-
* @param {Callback<
|
|
337
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
|
|
336
338
|
**/
|
|
337
|
-
upgradeGoAhead: GenericStorageQuery<Rv, () =>
|
|
339
|
+
upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
|
|
338
340
|
|
|
339
341
|
/**
|
|
340
342
|
* The state proof for the last relay parent block.
|
|
@@ -372,9 +374,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
372
374
|
*
|
|
373
375
|
* This data is also absent from the genesis.
|
|
374
376
|
*
|
|
375
|
-
* @param {Callback<
|
|
377
|
+
* @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
|
|
376
378
|
**/
|
|
377
|
-
hostConfiguration: GenericStorageQuery<Rv, () =>
|
|
379
|
+
hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
|
|
378
380
|
|
|
379
381
|
/**
|
|
380
382
|
* The last downward message queue chain head we have observed.
|
|
@@ -1567,25 +1569,25 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1567
1569
|
/**
|
|
1568
1570
|
* Details of an asset.
|
|
1569
1571
|
*
|
|
1570
|
-
* @param {
|
|
1572
|
+
* @param {StagingXcmV4Location} arg
|
|
1571
1573
|
* @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
|
|
1572
1574
|
**/
|
|
1573
1575
|
asset: GenericStorageQuery<
|
|
1574
1576
|
Rv,
|
|
1575
|
-
(arg:
|
|
1576
|
-
|
|
1577
|
+
(arg: StagingXcmV4Location) => PalletAssetsAssetDetails | undefined,
|
|
1578
|
+
StagingXcmV4Location
|
|
1577
1579
|
>;
|
|
1578
1580
|
|
|
1579
1581
|
/**
|
|
1580
1582
|
* The holdings of a specific account for a specific asset.
|
|
1581
1583
|
*
|
|
1582
|
-
* @param {[
|
|
1584
|
+
* @param {[StagingXcmV4Location, AccountId32Like]} arg
|
|
1583
1585
|
* @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
|
|
1584
1586
|
**/
|
|
1585
1587
|
account: GenericStorageQuery<
|
|
1586
1588
|
Rv,
|
|
1587
|
-
(arg: [
|
|
1588
|
-
[
|
|
1589
|
+
(arg: [StagingXcmV4Location, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
|
|
1590
|
+
[StagingXcmV4Location, AccountId32]
|
|
1589
1591
|
>;
|
|
1590
1592
|
|
|
1591
1593
|
/**
|
|
@@ -1593,28 +1595,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1593
1595
|
* is the amount of `T::Currency` reserved for storing this.
|
|
1594
1596
|
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
1595
1597
|
*
|
|
1596
|
-
* @param {[
|
|
1598
|
+
* @param {[StagingXcmV4Location, AccountId32Like, AccountId32Like]} arg
|
|
1597
1599
|
* @param {Callback<PalletAssetsApproval | undefined> =} callback
|
|
1598
1600
|
**/
|
|
1599
1601
|
approvals: GenericStorageQuery<
|
|
1600
1602
|
Rv,
|
|
1601
|
-
(
|
|
1602
|
-
|
|
1603
|
-
) => PalletAssetsApproval | undefined,
|
|
1604
|
-
[StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32]
|
|
1603
|
+
(arg: [StagingXcmV4Location, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
|
|
1604
|
+
[StagingXcmV4Location, AccountId32, AccountId32]
|
|
1605
1605
|
>;
|
|
1606
1606
|
|
|
1607
1607
|
/**
|
|
1608
1608
|
* Metadata of an asset.
|
|
1609
1609
|
*
|
|
1610
|
-
* @param {
|
|
1610
|
+
* @param {StagingXcmV4Location} arg
|
|
1611
1611
|
* @param {Callback<PalletAssetsAssetMetadata> =} callback
|
|
1612
1612
|
**/
|
|
1613
|
-
metadata: GenericStorageQuery<
|
|
1614
|
-
Rv,
|
|
1615
|
-
(arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata,
|
|
1616
|
-
StagingXcmV3MultilocationMultiLocation
|
|
1617
|
-
>;
|
|
1613
|
+
metadata: GenericStorageQuery<Rv, (arg: StagingXcmV4Location) => PalletAssetsAssetMetadata, StagingXcmV4Location>;
|
|
1618
1614
|
|
|
1619
1615
|
/**
|
|
1620
1616
|
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
@@ -1627,9 +1623,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1627
1623
|
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
1628
1624
|
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
1629
1625
|
*
|
|
1630
|
-
* @param {Callback<
|
|
1626
|
+
* @param {Callback<StagingXcmV4Location | undefined> =} callback
|
|
1631
1627
|
**/
|
|
1632
|
-
nextAssetId: GenericStorageQuery<Rv, () =>
|
|
1628
|
+
nextAssetId: GenericStorageQuery<Rv, () => StagingXcmV4Location | undefined>;
|
|
1633
1629
|
|
|
1634
1630
|
/**
|
|
1635
1631
|
* Generic pallet storage query
|
|
@@ -1710,15 +1706,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1710
1706
|
* Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
|
|
1711
1707
|
* created rather than people sending tokens directly to a pool's public account.
|
|
1712
1708
|
*
|
|
1713
|
-
* @param {[
|
|
1709
|
+
* @param {[StagingXcmV4Location, StagingXcmV4Location]} arg
|
|
1714
1710
|
* @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
|
|
1715
1711
|
**/
|
|
1716
1712
|
pools: GenericStorageQuery<
|
|
1717
1713
|
Rv,
|
|
1718
|
-
(
|
|
1719
|
-
|
|
1720
|
-
) => PalletAssetConversionPoolInfo | undefined,
|
|
1721
|
-
[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]
|
|
1714
|
+
(arg: [StagingXcmV4Location, StagingXcmV4Location]) => PalletAssetConversionPoolInfo | undefined,
|
|
1715
|
+
[StagingXcmV4Location, StagingXcmV4Location]
|
|
1722
1716
|
>;
|
|
1723
1717
|
|
|
1724
1718
|
/**
|
|
@@ -1734,6 +1728,43 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1734
1728
|
**/
|
|
1735
1729
|
[storage: string]: GenericStorageQuery<Rv>;
|
|
1736
1730
|
};
|
|
1731
|
+
/**
|
|
1732
|
+
* Pallet `StateTrieMigration`'s storage queries
|
|
1733
|
+
**/
|
|
1734
|
+
stateTrieMigration: {
|
|
1735
|
+
/**
|
|
1736
|
+
* Migration progress.
|
|
1737
|
+
*
|
|
1738
|
+
* This stores the snapshot of the last migrated keys. It can be set into motion and move
|
|
1739
|
+
* forward by any of the means provided by this pallet.
|
|
1740
|
+
*
|
|
1741
|
+
* @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
|
|
1742
|
+
**/
|
|
1743
|
+
migrationProcess: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationTask>;
|
|
1744
|
+
|
|
1745
|
+
/**
|
|
1746
|
+
* The limits that are imposed on automatic migrations.
|
|
1747
|
+
*
|
|
1748
|
+
* If set to None, then no automatic migration happens.
|
|
1749
|
+
*
|
|
1750
|
+
* @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
|
|
1751
|
+
**/
|
|
1752
|
+
autoLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
* The maximum limits that the signed migration could use.
|
|
1756
|
+
*
|
|
1757
|
+
* If not set, no signed submission is allowed.
|
|
1758
|
+
*
|
|
1759
|
+
* @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
|
|
1760
|
+
**/
|
|
1761
|
+
signedMigrationMaxLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Generic pallet storage query
|
|
1765
|
+
**/
|
|
1766
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1767
|
+
};
|
|
1737
1768
|
/**
|
|
1738
1769
|
* Pallet `Sudo`'s storage queries
|
|
1739
1770
|
**/
|
|
@@ -43,7 +43,7 @@ import type {
|
|
|
43
43
|
XcmRuntimeApisConversionsError,
|
|
44
44
|
AssetsCommonRuntimeApiFungiblesAccessError,
|
|
45
45
|
CumulusPrimitivesCoreCollationInfo,
|
|
46
|
-
|
|
46
|
+
StagingXcmV4Location,
|
|
47
47
|
} from './types.js';
|
|
48
48
|
|
|
49
49
|
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
@@ -629,7 +629,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
629
629
|
*
|
|
630
630
|
* Otherwise function returns a JSON representation of the built-in, named
|
|
631
631
|
* `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
|
|
632
|
-
*
|
|
632
|
+
* exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
|
|
633
633
|
* (potentially nested) key-value pairs that are intended for customizing the default
|
|
634
634
|
* runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
|
|
635
635
|
* of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
|
|
@@ -666,16 +666,16 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
666
666
|
* (Use `amount_in_max` to control slippage.)
|
|
667
667
|
*
|
|
668
668
|
* @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
|
|
669
|
-
* @param {
|
|
670
|
-
* @param {
|
|
669
|
+
* @param {StagingXcmV4Location} asset1
|
|
670
|
+
* @param {StagingXcmV4Location} asset2
|
|
671
671
|
* @param {bigint} amount
|
|
672
672
|
* @param {boolean} include_fee
|
|
673
673
|
**/
|
|
674
674
|
quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
|
|
675
675
|
Rv,
|
|
676
676
|
(
|
|
677
|
-
asset1:
|
|
678
|
-
asset2:
|
|
677
|
+
asset1: StagingXcmV4Location,
|
|
678
|
+
asset2: StagingXcmV4Location,
|
|
679
679
|
amount: bigint,
|
|
680
680
|
includeFee: boolean,
|
|
681
681
|
) => Promise<bigint | undefined>
|
|
@@ -688,16 +688,16 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
688
688
|
* (Use `amount_out_min` to control slippage.)
|
|
689
689
|
*
|
|
690
690
|
* @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
|
|
691
|
-
* @param {
|
|
692
|
-
* @param {
|
|
691
|
+
* @param {StagingXcmV4Location} asset1
|
|
692
|
+
* @param {StagingXcmV4Location} asset2
|
|
693
693
|
* @param {bigint} amount
|
|
694
694
|
* @param {boolean} include_fee
|
|
695
695
|
**/
|
|
696
696
|
quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
|
|
697
697
|
Rv,
|
|
698
698
|
(
|
|
699
|
-
asset1:
|
|
700
|
-
asset2:
|
|
699
|
+
asset1: StagingXcmV4Location,
|
|
700
|
+
asset2: StagingXcmV4Location,
|
|
701
701
|
amount: bigint,
|
|
702
702
|
includeFee: boolean,
|
|
703
703
|
) => Promise<bigint | undefined>
|
|
@@ -707,15 +707,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
707
707
|
* Returns the size of the liquidity pool for the given asset pair.
|
|
708
708
|
*
|
|
709
709
|
* @callname: AssetConversionApi_get_reserves
|
|
710
|
-
* @param {
|
|
711
|
-
* @param {
|
|
710
|
+
* @param {StagingXcmV4Location} asset1
|
|
711
|
+
* @param {StagingXcmV4Location} asset2
|
|
712
712
|
**/
|
|
713
713
|
getReserves: GenericRuntimeApiMethod<
|
|
714
714
|
Rv,
|
|
715
|
-
(
|
|
716
|
-
asset1: StagingXcmV3MultilocationMultiLocation,
|
|
717
|
-
asset2: StagingXcmV3MultilocationMultiLocation,
|
|
718
|
-
) => Promise<[bigint, bigint] | undefined>
|
|
715
|
+
(asset1: StagingXcmV4Location, asset2: StagingXcmV4Location) => Promise<[bigint, bigint] | undefined>
|
|
719
716
|
>;
|
|
720
717
|
|
|
721
718
|
/**
|