@dedot/chaintypes 0.90.0 → 0.92.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.
@@ -23,7 +23,7 @@ export interface VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends Gener
23
23
 
24
24
  /**
25
25
  * @name: KusamaAssetHubApi
26
- * @specVersion: 1004002
26
+ * @specVersion: 1004003
27
27
  **/
28
28
  export interface KusamaAssetHubApi {
29
29
  legacy: VersionedKusamaAssetHubApi<RpcLegacy>;
@@ -570,17 +570,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
570
570
  **/
571
571
  dryRunApi: {
572
572
  /**
573
- * Dry run call.
573
+ * Dry run call V2.
574
574
  *
575
575
  * @callname: DryRunApi_dry_run_call
576
576
  * @param {AssetHubKusamaRuntimeOriginCaller} origin
577
577
  * @param {AssetHubKusamaRuntimeRuntimeCallLike} call
578
+ * @param {number} result_xcms_version
578
579
  **/
579
580
  dryRunCall: GenericRuntimeApiMethod<
580
581
  Rv,
581
582
  (
582
583
  origin: AssetHubKusamaRuntimeOriginCaller,
583
584
  call: AssetHubKusamaRuntimeRuntimeCallLike,
585
+ resultXcmsVersion: number,
584
586
  ) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
585
587
  >;
586
588
 
@@ -12038,8 +12038,7 @@ export type PalletStateTrieMigrationProgress =
12038
12038
  export type AssetHubKusamaRuntimeOriginCaller =
12039
12039
  | { type: 'System'; value: FrameSupportDispatchRawOrigin }
12040
12040
  | { type: 'PolkadotXcm'; value: PalletXcmOrigin }
12041
- | { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin }
12042
- | { type: 'Void'; value: SpCoreVoid };
12041
+ | { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin };
12043
12042
 
12044
12043
  export type FrameSupportDispatchRawOrigin =
12045
12044
  | { type: 'Root' }
@@ -12054,8 +12053,6 @@ export type CumulusPalletXcmOrigin =
12054
12053
  | { type: 'Relay' }
12055
12054
  | { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId };
12056
12055
 
12057
- export type SpCoreVoid = null;
12058
-
12059
12056
  /**
12060
12057
  * The `Error` enum of this pallet.
12061
12058
  **/
@@ -79,6 +79,7 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
79
79
  | 'eth_newBlockFilter'
80
80
  | 'eth_newFilter'
81
81
  | 'eth_newPendingTransactionFilter'
82
+ | 'eth_pendingTransactions'
82
83
  | 'eth_protocolVersion'
83
84
  | 'eth_sendRawTransaction'
84
85
  | 'eth_sendTransaction'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.90.0",
3
+ "version": "0.92.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "ba4e09cc6b5b3d5e2270ead657f6b97334680fe0",
22
+ "gitHead": "2f3e7d972845458562010d8d34cb9300cf504a2e",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
25
25
  "exports": {
@@ -9,7 +9,7 @@ import type {
9
9
  PolkadotParachainPrimitivesPrimitivesId,
10
10
  SpWeightsWeightV2Weight,
11
11
  PalletNftsBitFlagsPalletFeature,
12
- StagingXcmV3MultilocationMultiLocation,
12
+ StagingXcmV4Location,
13
13
  FrameSupportPalletId,
14
14
  } from './types.js';
15
15
 
@@ -749,7 +749,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
749
749
  /**
750
750
  * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
751
751
  **/
752
- poolSetupFeeAsset: StagingXcmV3MultilocationMultiLocation;
752
+ poolSetupFeeAsset: StagingXcmV4Location;
753
753
 
754
754
  /**
755
755
  * A fee to withdraw the liquidity.
@@ -776,6 +776,40 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
776
776
  **/
777
777
  [name: string]: any;
778
778
  };
779
+ /**
780
+ * Pallet `StateTrieMigration`'s constants
781
+ **/
782
+ stateTrieMigration: {
783
+ /**
784
+ * Maximal number of bytes that a key can have.
785
+ *
786
+ * FRAME itself does not limit the key length.
787
+ * The concrete value must therefore depend on your storage usage.
788
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
789
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
790
+ *
791
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
792
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
793
+ *
794
+ * The migration will halt with a `Halted` event if this value is too small.
795
+ * Since there is no real penalty from over-estimating, it is advised to use a large
796
+ * value. The default is 512 byte.
797
+ *
798
+ * Some key lengths for reference:
799
+ * - [`frame_support::storage::StorageValue`]: 32 byte
800
+ * - [`frame_support::storage::StorageMap`]: 64 byte
801
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
802
+ *
803
+ * For more info see
804
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
805
+ **/
806
+ maxKeyLen: number;
807
+
808
+ /**
809
+ * Generic pallet constant
810
+ **/
811
+ [name: string]: any;
812
+ };
779
813
  /**
780
814
  * Pallet `Sudo`'s constants
781
815
  **/
@@ -1522,6 +1522,51 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1522
1522
  **/
1523
1523
  [error: string]: GenericPalletError<Rv>;
1524
1524
  };
1525
+ /**
1526
+ * Pallet `StateTrieMigration`'s errors
1527
+ **/
1528
+ stateTrieMigration: {
1529
+ /**
1530
+ * Max signed limits not respected.
1531
+ **/
1532
+ MaxSignedLimits: GenericPalletError<Rv>;
1533
+
1534
+ /**
1535
+ * A key was longer than the configured maximum.
1536
+ *
1537
+ * This means that the migration halted at the current [`Progress`] and
1538
+ * can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
1539
+ * Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
1540
+ * The value should only be increased to avoid a storage migration for the currently
1541
+ * stored [`crate::Progress::LastKey`].
1542
+ **/
1543
+ KeyTooLong: GenericPalletError<Rv>;
1544
+
1545
+ /**
1546
+ * submitter does not have enough funds.
1547
+ **/
1548
+ NotEnoughFunds: GenericPalletError<Rv>;
1549
+
1550
+ /**
1551
+ * Bad witness data provided.
1552
+ **/
1553
+ BadWitness: GenericPalletError<Rv>;
1554
+
1555
+ /**
1556
+ * Signed migration is not allowed because the maximum limit is not set yet.
1557
+ **/
1558
+ SignedMigrationNotAllowed: GenericPalletError<Rv>;
1559
+
1560
+ /**
1561
+ * Bad child root provided.
1562
+ **/
1563
+ BadChildRoot: GenericPalletError<Rv>;
1564
+
1565
+ /**
1566
+ * Generic pallet error
1567
+ **/
1568
+ [error: string]: GenericPalletError<Rv>;
1569
+ };
1525
1570
  /**
1526
1571
  * Pallet `Sudo`'s errors
1527
1572
  **/
@@ -1,13 +1,22 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
4
- import type { DispatchInfo, DispatchError, AccountId32, H256, FixedBytes, Result, Bytes, Permill } from 'dedot/codecs';
4
+ import type {
5
+ DispatchInfo,
6
+ DispatchError,
7
+ AccountId32,
8
+ H256,
9
+ FixedBytes,
10
+ FixedU128,
11
+ Result,
12
+ Bytes,
13
+ Permill,
14
+ } from 'dedot/codecs';
5
15
  import type {
6
16
  SpWeightsWeightV2Weight,
7
17
  FrameSupportTokensMiscBalanceStatus,
8
- StagingXcmV3MultilocationMultiLocation,
9
- StagingXcmV4TraitsOutcome,
10
18
  StagingXcmV4Location,
19
+ StagingXcmV4TraitsOutcome,
11
20
  StagingXcmV4Xcm,
12
21
  StagingXcmV4Response,
13
22
  XcmVersionedAssets,
@@ -21,6 +30,8 @@ import type {
21
30
  PalletNftsAttributeNamespace,
22
31
  PalletNftsPriceWithDirection,
23
32
  PalletNftsPalletAttributes,
33
+ PalletStateTrieMigrationMigrationCompute,
34
+ PalletStateTrieMigrationError,
24
35
  } from './types.js';
25
36
 
26
37
  export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
@@ -285,7 +296,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
285
296
  Rv,
286
297
  'AssetTxPayment',
287
298
  'AssetTxFeePaid',
288
- { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV3MultilocationMultiLocation }
299
+ { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV4Location }
289
300
  >;
290
301
 
291
302
  /**
@@ -751,6 +762,45 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
751
762
  **/
752
763
  [prop: string]: GenericPalletEvent<Rv>;
753
764
  };
765
+ /**
766
+ * Pallet `ToKusamaXcmRouter`'s events
767
+ **/
768
+ toKusamaXcmRouter: {
769
+ /**
770
+ * Delivery fee factor has been decreased.
771
+ **/
772
+ DeliveryFeeFactorDecreased: GenericPalletEvent<
773
+ Rv,
774
+ 'ToKusamaXcmRouter',
775
+ 'DeliveryFeeFactorDecreased',
776
+ {
777
+ /**
778
+ * New value of the `DeliveryFeeFactor`.
779
+ **/
780
+ newValue: FixedU128;
781
+ }
782
+ >;
783
+
784
+ /**
785
+ * Delivery fee factor has been increased.
786
+ **/
787
+ DeliveryFeeFactorIncreased: GenericPalletEvent<
788
+ Rv,
789
+ 'ToKusamaXcmRouter',
790
+ 'DeliveryFeeFactorIncreased',
791
+ {
792
+ /**
793
+ * New value of the `DeliveryFeeFactor`.
794
+ **/
795
+ newValue: FixedU128;
796
+ }
797
+ >;
798
+
799
+ /**
800
+ * Generic pallet event
801
+ **/
802
+ [prop: string]: GenericPalletEvent<Rv>;
803
+ };
754
804
  /**
755
805
  * Pallet `MessageQueue`'s events
756
806
  **/
@@ -1786,7 +1836,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1786
1836
  Rv,
1787
1837
  'ForeignAssets',
1788
1838
  'Created',
1789
- { assetId: StagingXcmV3MultilocationMultiLocation; creator: AccountId32; owner: AccountId32 }
1839
+ { assetId: StagingXcmV4Location; creator: AccountId32; owner: AccountId32 }
1790
1840
  >;
1791
1841
 
1792
1842
  /**
@@ -1796,7 +1846,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1796
1846
  Rv,
1797
1847
  'ForeignAssets',
1798
1848
  'Issued',
1799
- { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; amount: bigint }
1849
+ { assetId: StagingXcmV4Location; owner: AccountId32; amount: bigint }
1800
1850
  >;
1801
1851
 
1802
1852
  /**
@@ -1806,7 +1856,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1806
1856
  Rv,
1807
1857
  'ForeignAssets',
1808
1858
  'Transferred',
1809
- { assetId: StagingXcmV3MultilocationMultiLocation; from: AccountId32; to: AccountId32; amount: bigint }
1859
+ { assetId: StagingXcmV4Location; from: AccountId32; to: AccountId32; amount: bigint }
1810
1860
  >;
1811
1861
 
1812
1862
  /**
@@ -1816,7 +1866,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1816
1866
  Rv,
1817
1867
  'ForeignAssets',
1818
1868
  'Burned',
1819
- { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; balance: bigint }
1869
+ { assetId: StagingXcmV4Location; owner: AccountId32; balance: bigint }
1820
1870
  >;
1821
1871
 
1822
1872
  /**
@@ -1826,7 +1876,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1826
1876
  Rv,
1827
1877
  'ForeignAssets',
1828
1878
  'TeamChanged',
1829
- { assetId: StagingXcmV3MultilocationMultiLocation; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 }
1879
+ { assetId: StagingXcmV4Location; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 }
1830
1880
  >;
1831
1881
 
1832
1882
  /**
@@ -1836,48 +1886,28 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1836
1886
  Rv,
1837
1887
  'ForeignAssets',
1838
1888
  'OwnerChanged',
1839
- { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 }
1889
+ { assetId: StagingXcmV4Location; owner: AccountId32 }
1840
1890
  >;
1841
1891
 
1842
1892
  /**
1843
1893
  * Some account `who` was frozen.
1844
1894
  **/
1845
- Frozen: GenericPalletEvent<
1846
- Rv,
1847
- 'ForeignAssets',
1848
- 'Frozen',
1849
- { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 }
1850
- >;
1895
+ Frozen: GenericPalletEvent<Rv, 'ForeignAssets', 'Frozen', { assetId: StagingXcmV4Location; who: AccountId32 }>;
1851
1896
 
1852
1897
  /**
1853
1898
  * Some account `who` was thawed.
1854
1899
  **/
1855
- Thawed: GenericPalletEvent<
1856
- Rv,
1857
- 'ForeignAssets',
1858
- 'Thawed',
1859
- { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 }
1860
- >;
1900
+ Thawed: GenericPalletEvent<Rv, 'ForeignAssets', 'Thawed', { assetId: StagingXcmV4Location; who: AccountId32 }>;
1861
1901
 
1862
1902
  /**
1863
1903
  * Some asset `asset_id` was frozen.
1864
1904
  **/
1865
- AssetFrozen: GenericPalletEvent<
1866
- Rv,
1867
- 'ForeignAssets',
1868
- 'AssetFrozen',
1869
- { assetId: StagingXcmV3MultilocationMultiLocation }
1870
- >;
1905
+ AssetFrozen: GenericPalletEvent<Rv, 'ForeignAssets', 'AssetFrozen', { assetId: StagingXcmV4Location }>;
1871
1906
 
1872
1907
  /**
1873
1908
  * Some asset `asset_id` was thawed.
1874
1909
  **/
1875
- AssetThawed: GenericPalletEvent<
1876
- Rv,
1877
- 'ForeignAssets',
1878
- 'AssetThawed',
1879
- { assetId: StagingXcmV3MultilocationMultiLocation }
1880
- >;
1910
+ AssetThawed: GenericPalletEvent<Rv, 'ForeignAssets', 'AssetThawed', { assetId: StagingXcmV4Location }>;
1881
1911
 
1882
1912
  /**
1883
1913
  * Accounts were destroyed for given asset.
@@ -1886,7 +1916,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1886
1916
  Rv,
1887
1917
  'ForeignAssets',
1888
1918
  'AccountsDestroyed',
1889
- { assetId: StagingXcmV3MultilocationMultiLocation; accountsDestroyed: number; accountsRemaining: number }
1919
+ { assetId: StagingXcmV4Location; accountsDestroyed: number; accountsRemaining: number }
1890
1920
  >;
1891
1921
 
1892
1922
  /**
@@ -1896,7 +1926,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1896
1926
  Rv,
1897
1927
  'ForeignAssets',
1898
1928
  'ApprovalsDestroyed',
1899
- { assetId: StagingXcmV3MultilocationMultiLocation; approvalsDestroyed: number; approvalsRemaining: number }
1929
+ { assetId: StagingXcmV4Location; approvalsDestroyed: number; approvalsRemaining: number }
1900
1930
  >;
1901
1931
 
1902
1932
  /**
@@ -1906,18 +1936,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1906
1936
  Rv,
1907
1937
  'ForeignAssets',
1908
1938
  'DestructionStarted',
1909
- { assetId: StagingXcmV3MultilocationMultiLocation }
1939
+ { assetId: StagingXcmV4Location }
1910
1940
  >;
1911
1941
 
1912
1942
  /**
1913
1943
  * An asset class was destroyed.
1914
1944
  **/
1915
- Destroyed: GenericPalletEvent<
1916
- Rv,
1917
- 'ForeignAssets',
1918
- 'Destroyed',
1919
- { assetId: StagingXcmV3MultilocationMultiLocation }
1920
- >;
1945
+ Destroyed: GenericPalletEvent<Rv, 'ForeignAssets', 'Destroyed', { assetId: StagingXcmV4Location }>;
1921
1946
 
1922
1947
  /**
1923
1948
  * Some asset class was force-created.
@@ -1926,7 +1951,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1926
1951
  Rv,
1927
1952
  'ForeignAssets',
1928
1953
  'ForceCreated',
1929
- { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32 }
1954
+ { assetId: StagingXcmV4Location; owner: AccountId32 }
1930
1955
  >;
1931
1956
 
1932
1957
  /**
@@ -1936,24 +1961,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1936
1961
  Rv,
1937
1962
  'ForeignAssets',
1938
1963
  'MetadataSet',
1939
- {
1940
- assetId: StagingXcmV3MultilocationMultiLocation;
1941
- name: Bytes;
1942
- symbol: Bytes;
1943
- decimals: number;
1944
- isFrozen: boolean;
1945
- }
1964
+ { assetId: StagingXcmV4Location; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }
1946
1965
  >;
1947
1966
 
1948
1967
  /**
1949
1968
  * Metadata has been cleared for an asset.
1950
1969
  **/
1951
- MetadataCleared: GenericPalletEvent<
1952
- Rv,
1953
- 'ForeignAssets',
1954
- 'MetadataCleared',
1955
- { assetId: StagingXcmV3MultilocationMultiLocation }
1956
- >;
1970
+ MetadataCleared: GenericPalletEvent<Rv, 'ForeignAssets', 'MetadataCleared', { assetId: StagingXcmV4Location }>;
1957
1971
 
1958
1972
  /**
1959
1973
  * (Additional) funds have been approved for transfer to a destination account.
@@ -1962,7 +1976,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1962
1976
  Rv,
1963
1977
  'ForeignAssets',
1964
1978
  'ApprovedTransfer',
1965
- { assetId: StagingXcmV3MultilocationMultiLocation; source: AccountId32; delegate: AccountId32; amount: bigint }
1979
+ { assetId: StagingXcmV4Location; source: AccountId32; delegate: AccountId32; amount: bigint }
1966
1980
  >;
1967
1981
 
1968
1982
  /**
@@ -1972,7 +1986,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1972
1986
  Rv,
1973
1987
  'ForeignAssets',
1974
1988
  'ApprovalCancelled',
1975
- { assetId: StagingXcmV3MultilocationMultiLocation; owner: AccountId32; delegate: AccountId32 }
1989
+ { assetId: StagingXcmV4Location; owner: AccountId32; delegate: AccountId32 }
1976
1990
  >;
1977
1991
 
1978
1992
  /**
@@ -1984,7 +1998,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1984
1998
  'ForeignAssets',
1985
1999
  'TransferredApproved',
1986
2000
  {
1987
- assetId: StagingXcmV3MultilocationMultiLocation;
2001
+ assetId: StagingXcmV4Location;
1988
2002
  owner: AccountId32;
1989
2003
  delegate: AccountId32;
1990
2004
  destination: AccountId32;
@@ -1999,7 +2013,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1999
2013
  Rv,
2000
2014
  'ForeignAssets',
2001
2015
  'AssetStatusChanged',
2002
- { assetId: StagingXcmV3MultilocationMultiLocation }
2016
+ { assetId: StagingXcmV4Location }
2003
2017
  >;
2004
2018
 
2005
2019
  /**
@@ -2009,7 +2023,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2009
2023
  Rv,
2010
2024
  'ForeignAssets',
2011
2025
  'AssetMinBalanceChanged',
2012
- { assetId: StagingXcmV3MultilocationMultiLocation; newMinBalance: bigint }
2026
+ { assetId: StagingXcmV4Location; newMinBalance: bigint }
2013
2027
  >;
2014
2028
 
2015
2029
  /**
@@ -2019,18 +2033,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2019
2033
  Rv,
2020
2034
  'ForeignAssets',
2021
2035
  'Touched',
2022
- { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; depositor: AccountId32 }
2036
+ { assetId: StagingXcmV4Location; who: AccountId32; depositor: AccountId32 }
2023
2037
  >;
2024
2038
 
2025
2039
  /**
2026
2040
  * Some account `who` was blocked.
2027
2041
  **/
2028
- Blocked: GenericPalletEvent<
2029
- Rv,
2030
- 'ForeignAssets',
2031
- 'Blocked',
2032
- { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 }
2033
- >;
2042
+ Blocked: GenericPalletEvent<Rv, 'ForeignAssets', 'Blocked', { assetId: StagingXcmV4Location; who: AccountId32 }>;
2034
2043
 
2035
2044
  /**
2036
2045
  * Some assets were deposited (e.g. for transaction fees).
@@ -2039,7 +2048,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2039
2048
  Rv,
2040
2049
  'ForeignAssets',
2041
2050
  'Deposited',
2042
- { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint }
2051
+ { assetId: StagingXcmV4Location; who: AccountId32; amount: bigint }
2043
2052
  >;
2044
2053
 
2045
2054
  /**
@@ -2049,7 +2058,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2049
2058
  Rv,
2050
2059
  'ForeignAssets',
2051
2060
  'Withdrawn',
2052
- { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint }
2061
+ { assetId: StagingXcmV4Location; who: AccountId32; amount: bigint }
2053
2062
  >;
2054
2063
 
2055
2064
  /**
@@ -2273,7 +2282,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2273
2282
  * The pool id associated with the pool. Note that the order of the assets may not be
2274
2283
  * the same as the order specified in the create pool extrinsic.
2275
2284
  **/
2276
- poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation];
2285
+ poolId: [StagingXcmV4Location, StagingXcmV4Location];
2277
2286
 
2278
2287
  /**
2279
2288
  * The account ID of the pool.
@@ -2309,7 +2318,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2309
2318
  /**
2310
2319
  * The pool id of the pool that the liquidity was added to.
2311
2320
  **/
2312
- poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation];
2321
+ poolId: [StagingXcmV4Location, StagingXcmV4Location];
2313
2322
 
2314
2323
  /**
2315
2324
  * The amount of the first asset that was added to the pool.
@@ -2354,7 +2363,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2354
2363
  /**
2355
2364
  * The pool id that the liquidity was removed from.
2356
2365
  **/
2357
- poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation];
2366
+ poolId: [StagingXcmV4Location, StagingXcmV4Location];
2358
2367
 
2359
2368
  /**
2360
2369
  * The amount of the first asset that was removed from the pool.
@@ -2416,7 +2425,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2416
2425
  * The route of asset IDs with amounts that the swap went through.
2417
2426
  * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out)
2418
2427
  **/
2419
- path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>;
2428
+ path: Array<[StagingXcmV4Location, bigint]>;
2420
2429
  }
2421
2430
  >;
2422
2431
 
@@ -2442,7 +2451,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2442
2451
  * The route of asset IDs with amounts that the swap went through.
2443
2452
  * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out)
2444
2453
  **/
2445
- path: Array<[StagingXcmV3MultilocationMultiLocation, bigint]>;
2454
+ path: Array<[StagingXcmV4Location, bigint]>;
2446
2455
  }
2447
2456
  >;
2448
2457
 
@@ -2457,7 +2466,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2457
2466
  /**
2458
2467
  * The ID of the pool.
2459
2468
  **/
2460
- poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation];
2469
+ poolId: [StagingXcmV4Location, StagingXcmV4Location];
2461
2470
 
2462
2471
  /**
2463
2472
  * The account initiating the touch.
@@ -2471,6 +2480,41 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2471
2480
  **/
2472
2481
  [prop: string]: GenericPalletEvent<Rv>;
2473
2482
  };
2483
+ /**
2484
+ * Pallet `StateTrieMigration`'s events
2485
+ **/
2486
+ stateTrieMigration: {
2487
+ /**
2488
+ * Given number of `(top, child)` keys were migrated respectively, with the given
2489
+ * `compute`.
2490
+ **/
2491
+ Migrated: GenericPalletEvent<
2492
+ Rv,
2493
+ 'StateTrieMigration',
2494
+ 'Migrated',
2495
+ { top: number; child: number; compute: PalletStateTrieMigrationMigrationCompute }
2496
+ >;
2497
+
2498
+ /**
2499
+ * Some account got slashed by the given amount.
2500
+ **/
2501
+ Slashed: GenericPalletEvent<Rv, 'StateTrieMigration', 'Slashed', { who: AccountId32; amount: bigint }>;
2502
+
2503
+ /**
2504
+ * The auto migration task finished.
2505
+ **/
2506
+ AutoMigrationFinished: GenericPalletEvent<Rv, 'StateTrieMigration', 'AutoMigrationFinished', null>;
2507
+
2508
+ /**
2509
+ * Migration got halted due to an error or miss-configuration.
2510
+ **/
2511
+ Halted: GenericPalletEvent<Rv, 'StateTrieMigration', 'Halted', { error: PalletStateTrieMigrationError }>;
2512
+
2513
+ /**
2514
+ * Generic pallet event
2515
+ **/
2516
+ [prop: string]: GenericPalletEvent<Rv>;
2517
+ };
2474
2518
  /**
2475
2519
  * Pallet `Sudo`'s events
2476
2520
  **/
@@ -23,7 +23,7 @@ export interface VersionedPaseoAssetHubApi<Rv extends RpcVersion> extends Generi
23
23
 
24
24
  /**
25
25
  * @name: PaseoAssetHubApi
26
- * @specVersion: 1003003
26
+ * @specVersion: 1004002
27
27
  **/
28
28
  export interface PaseoAssetHubApi {
29
29
  legacy: VersionedPaseoAssetHubApi<RpcLegacy>;