@dedot/chaintypes 0.92.0 → 0.94.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.
@@ -29,6 +29,8 @@ import type {
29
29
  StagingXcmExecutorAssetTransferTransferType,
30
30
  XcmVersionedAssetId,
31
31
  CumulusPrimitivesCoreAggregateMessageOrigin,
32
+ SnowbridgeCoreOperatingModeBasicOperatingMode,
33
+ SnowbridgeCoreAssetMetadata,
32
34
  AssetHubWestendRuntimeOriginCaller,
33
35
  PalletMultisigTimepoint,
34
36
  AssetHubWestendRuntimeProxyType,
@@ -1782,6 +1784,77 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1782
1784
  >
1783
1785
  >;
1784
1786
 
1787
+ /**
1788
+ * Authorize another `aliaser` location to alias into the local `origin` making this call.
1789
+ * The `aliaser` is only authorized until the provided `expiry` block number.
1790
+ * The call can also be used for a previously authorized alias in order to update its
1791
+ * `expiry` block number.
1792
+ *
1793
+ * Usually useful to allow your local account to be aliased into from a remote location
1794
+ * also under your control (like your account on another chain).
1795
+ *
1796
+ * WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
1797
+ * their/your name. Once authorized using this call, the `aliaser` can freely impersonate
1798
+ * `origin` in XCM programs executed on the local chain.
1799
+ *
1800
+ * @param {XcmVersionedLocation} aliaser
1801
+ * @param {bigint | undefined} expires
1802
+ **/
1803
+ addAuthorizedAlias: GenericTxCall<
1804
+ Rv,
1805
+ (
1806
+ aliaser: XcmVersionedLocation,
1807
+ expires: bigint | undefined,
1808
+ ) => ChainSubmittableExtrinsic<
1809
+ Rv,
1810
+ {
1811
+ pallet: 'PolkadotXcm';
1812
+ palletCall: {
1813
+ name: 'AddAuthorizedAlias';
1814
+ params: { aliaser: XcmVersionedLocation; expires: bigint | undefined };
1815
+ };
1816
+ }
1817
+ >
1818
+ >;
1819
+
1820
+ /**
1821
+ * Remove a previously authorized `aliaser` from the list of locations that can alias into
1822
+ * the local `origin` making this call.
1823
+ *
1824
+ * @param {XcmVersionedLocation} aliaser
1825
+ **/
1826
+ removeAuthorizedAlias: GenericTxCall<
1827
+ Rv,
1828
+ (aliaser: XcmVersionedLocation) => ChainSubmittableExtrinsic<
1829
+ Rv,
1830
+ {
1831
+ pallet: 'PolkadotXcm';
1832
+ palletCall: {
1833
+ name: 'RemoveAuthorizedAlias';
1834
+ params: { aliaser: XcmVersionedLocation };
1835
+ };
1836
+ }
1837
+ >
1838
+ >;
1839
+
1840
+ /**
1841
+ * Remove all previously authorized `aliaser`s that can alias into the local `origin`
1842
+ * making this call.
1843
+ *
1844
+ **/
1845
+ removeAllAuthorizedAliases: GenericTxCall<
1846
+ Rv,
1847
+ () => ChainSubmittableExtrinsic<
1848
+ Rv,
1849
+ {
1850
+ pallet: 'PolkadotXcm';
1851
+ palletCall: {
1852
+ name: 'RemoveAllAuthorizedAliases';
1853
+ };
1854
+ }
1855
+ >
1856
+ >;
1857
+
1785
1858
  /**
1786
1859
  * Generic pallet tx call
1787
1860
  **/
@@ -1904,6 +1977,63 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1904
1977
  **/
1905
1978
  [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
1906
1979
  };
1980
+ /**
1981
+ * Pallet `SnowbridgeSystemFrontend`'s transaction calls
1982
+ **/
1983
+ snowbridgeSystemFrontend: {
1984
+ /**
1985
+ * Set the operating mode for exporting messages to Ethereum.
1986
+ *
1987
+ * @param {SnowbridgeCoreOperatingModeBasicOperatingMode} mode
1988
+ **/
1989
+ setOperatingMode: GenericTxCall<
1990
+ Rv,
1991
+ (mode: SnowbridgeCoreOperatingModeBasicOperatingMode) => ChainSubmittableExtrinsic<
1992
+ Rv,
1993
+ {
1994
+ pallet: 'SnowbridgeSystemFrontend';
1995
+ palletCall: {
1996
+ name: 'SetOperatingMode';
1997
+ params: { mode: SnowbridgeCoreOperatingModeBasicOperatingMode };
1998
+ };
1999
+ }
2000
+ >
2001
+ >;
2002
+
2003
+ /**
2004
+ * Initiates the registration for a Polkadot-native token as a wrapped ERC20 token on
2005
+ * Ethereum.
2006
+ * - `asset_id`: Location of the asset
2007
+ * - `metadata`: Metadata to include in the instantiated ERC20 contract on Ethereum
2008
+ *
2009
+ * All origins are allowed, however `asset_id` must be a location nested within the origin
2010
+ * consensus system.
2011
+ *
2012
+ * @param {XcmVersionedLocation} assetId
2013
+ * @param {SnowbridgeCoreAssetMetadata} metadata
2014
+ **/
2015
+ registerToken: GenericTxCall<
2016
+ Rv,
2017
+ (
2018
+ assetId: XcmVersionedLocation,
2019
+ metadata: SnowbridgeCoreAssetMetadata,
2020
+ ) => ChainSubmittableExtrinsic<
2021
+ Rv,
2022
+ {
2023
+ pallet: 'SnowbridgeSystemFrontend';
2024
+ palletCall: {
2025
+ name: 'RegisterToken';
2026
+ params: { assetId: XcmVersionedLocation; metadata: SnowbridgeCoreAssetMetadata };
2027
+ };
2028
+ }
2029
+ >
2030
+ >;
2031
+
2032
+ /**
2033
+ * Generic pallet tx call
2034
+ **/
2035
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
2036
+ };
1907
2037
  /**
1908
2038
  * Pallet `Utility`'s transaction calls
1909
2039
  **/
@@ -2401,6 +2531,43 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2401
2531
  >
2402
2532
  >;
2403
2533
 
2534
+ /**
2535
+ * Poke the deposit reserved for an existing multisig operation.
2536
+ *
2537
+ * The dispatch origin for this call must be _Signed_ and must be the original depositor of
2538
+ * the multisig operation.
2539
+ *
2540
+ * The transaction fee is waived if the deposit amount has changed.
2541
+ *
2542
+ * - `threshold`: The total number of approvals needed for this multisig.
2543
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
2544
+ * multisig.
2545
+ * - `call_hash`: The hash of the call this deposit is reserved for.
2546
+ *
2547
+ * Emits `DepositPoked` if successful.
2548
+ *
2549
+ * @param {number} threshold
2550
+ * @param {Array<AccountId32Like>} otherSignatories
2551
+ * @param {FixedBytes<32>} callHash
2552
+ **/
2553
+ pokeDeposit: GenericTxCall<
2554
+ Rv,
2555
+ (
2556
+ threshold: number,
2557
+ otherSignatories: Array<AccountId32Like>,
2558
+ callHash: FixedBytes<32>,
2559
+ ) => ChainSubmittableExtrinsic<
2560
+ Rv,
2561
+ {
2562
+ pallet: 'Multisig';
2563
+ palletCall: {
2564
+ name: 'PokeDeposit';
2565
+ params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
2566
+ };
2567
+ }
2568
+ >
2569
+ >;
2570
+
2404
2571
  /**
2405
2572
  * Generic pallet tx call
2406
2573
  **/
@@ -2585,7 +2752,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2585
2752
  * `pure` with corresponding parameters.
2586
2753
  *
2587
2754
  * - `spawner`: The account that originally called `pure` to create this account.
2588
- * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
2755
+ * - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
2589
2756
  * - `proxy_type`: The proxy type originally passed to `pure`.
2590
2757
  * - `height`: The height of the chain when the call to `pure` was processed.
2591
2758
  * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
@@ -2768,6 +2935,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2768
2935
  >
2769
2936
  >;
2770
2937
 
2938
+ /**
2939
+ * Poke / Adjust deposits made for proxies and announcements based on current values.
2940
+ * This can be used by accounts to possibly lower their locked amount.
2941
+ *
2942
+ * The dispatch origin for this call must be _Signed_.
2943
+ *
2944
+ * The transaction fee is waived if the deposit amount has changed.
2945
+ *
2946
+ * Emits `DepositPoked` if successful.
2947
+ *
2948
+ **/
2949
+ pokeDeposit: GenericTxCall<
2950
+ Rv,
2951
+ () => ChainSubmittableExtrinsic<
2952
+ Rv,
2953
+ {
2954
+ pallet: 'Proxy';
2955
+ palletCall: {
2956
+ name: 'PokeDeposit';
2957
+ };
2958
+ }
2959
+ >
2960
+ >;
2961
+
2771
2962
  /**
2772
2963
  * Generic pallet tx call
2773
2964
  **/
@@ -2876,6 +3067,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2876
3067
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
2877
3068
  * asset.
2878
3069
  *
3070
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
3071
+ * an account contains holds or freezes in place.
3072
+ *
2879
3073
  * @param {number} id
2880
3074
  **/
2881
3075
  startDestroy: GenericTxCall<
@@ -3778,6 +3972,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3778
3972
  * refunded.
3779
3973
  * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
3780
3974
  *
3975
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
3976
+ * the asset account contains holds or freezes in place.
3977
+ *
3781
3978
  * Emits `Refunded` event when successful.
3782
3979
  *
3783
3980
  * @param {number} id
@@ -3876,6 +4073,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3876
4073
  * - `id`: The identifier of the asset for the account holding a deposit.
3877
4074
  * - `who`: The account to refund.
3878
4075
  *
4076
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
4077
+ * the asset account contains holds or freezes in place.
4078
+ *
3879
4079
  * Emits `Refunded` event when successful.
3880
4080
  *
3881
4081
  * @param {number} id
@@ -6536,6 +6736,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6536
6736
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
6537
6737
  * asset.
6538
6738
  *
6739
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
6740
+ * an account contains holds or freezes in place.
6741
+ *
6539
6742
  * @param {StagingXcmV5Location} id
6540
6743
  **/
6541
6744
  startDestroy: GenericTxCall<
@@ -7454,6 +7657,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7454
7657
  * refunded.
7455
7658
  * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
7456
7659
  *
7660
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
7661
+ * the asset account contains holds or freezes in place.
7662
+ *
7457
7663
  * Emits `Refunded` event when successful.
7458
7664
  *
7459
7665
  * @param {StagingXcmV5Location} id
@@ -7552,6 +7758,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7552
7758
  * - `id`: The identifier of the asset for the account holding a deposit.
7553
7759
  * - `who`: The account to refund.
7554
7760
  *
7761
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
7762
+ * the asset account contains holds or freezes in place.
7763
+ *
7555
7764
  * Emits `Refunded` event when successful.
7556
7765
  *
7557
7766
  * @param {StagingXcmV5Location} id
@@ -7856,6 +8065,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7856
8065
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
7857
8066
  * asset.
7858
8067
  *
8068
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
8069
+ * an account contains holds or freezes in place.
8070
+ *
7859
8071
  * @param {number} id
7860
8072
  **/
7861
8073
  startDestroy: GenericTxCall<
@@ -8758,6 +8970,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8758
8970
  * refunded.
8759
8971
  * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
8760
8972
  *
8973
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
8974
+ * the asset account contains holds or freezes in place.
8975
+ *
8761
8976
  * Emits `Refunded` event when successful.
8762
8977
  *
8763
8978
  * @param {number} id
@@ -8856,6 +9071,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8856
9071
  * - `id`: The identifier of the asset for the account holding a deposit.
8857
9072
  * - `who`: The account to refund.
8858
9073
  *
9074
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
9075
+ * the asset account contains holds or freezes in place.
9076
+ *
8859
9077
  * Emits `Refunded` event when successful.
8860
9078
  *
8861
9079
  * @param {number} id