@dedot/chaintypes 0.222.0 → 0.226.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.
@@ -63,31 +63,23 @@ import type {
63
63
  PalletSignetErrorResponse,
64
64
  PalletDispenserEvmTransactionParams,
65
65
  OrmlVestingVestingSchedule,
66
- EthereumTransactionTransactionV2,
66
+ EthereumTransactionEip7702AuthorizationListItem,
67
+ EthereumTransactionTransactionV3,
67
68
  PalletXykAssetPair,
68
69
  PalletDcaSchedule,
69
70
  CumulusPrimitivesParachainInherentParachainInherentData,
70
71
  XcmVersionedLocation,
71
72
  XcmVersionedXcm,
72
73
  XcmVersionedAssets,
73
- StagingXcmV4Location,
74
+ StagingXcmV5Location,
74
75
  XcmV3WeightLimit,
75
76
  StagingXcmExecutorAssetTransferTransferType,
76
77
  XcmVersionedAssetId,
77
78
  CumulusPrimitivesCoreAggregateMessageOrigin,
79
+ PalletMigrationsMigrationCursor,
80
+ PalletMigrationsHistoricCleanupSelector,
78
81
  XcmVersionedAsset,
79
82
  HydradxRuntimeOpaqueSessionKeys,
80
- IsmpMessagingMessage,
81
- IsmpMessagingCreateConsensusState,
82
- PalletIsmpUtilsUpdateConsensusState,
83
- PalletIsmpUtilsFundMessageParams,
84
- IsmpMessagingConsensusMessage,
85
- IsmpParachainParachainData,
86
- PalletTokenGatewayTeleportParams,
87
- IsmpHostStateMachine,
88
- PalletTokenGatewayAssetRegistration,
89
- TokenGatewayPrimitivesGatewayAssetUpdate,
90
- PalletTokenGatewayPrecisionUpdate,
91
83
  } from './types.js';
92
84
 
93
85
  export type ChainSubmittableExtrinsic<
@@ -1226,6 +1218,76 @@ export interface ChainTx<
1226
1218
  >
1227
1219
  >;
1228
1220
 
1221
+ /**
1222
+ * Dispatch a fallback call in the event the main call fails to execute.
1223
+ * May be called from any origin except `None`.
1224
+ *
1225
+ * This function first attempts to dispatch the `main` call.
1226
+ * If the `main` call fails, the `fallback` is attemted.
1227
+ * if the fallback is successfully dispatched, the weights of both calls
1228
+ * are accumulated and an event containing the main call error is deposited.
1229
+ *
1230
+ * In the event of a fallback failure the whole call fails
1231
+ * with the weights returned.
1232
+ *
1233
+ * - `main`: The main call to be dispatched. This is the primary action to execute.
1234
+ * - `fallback`: The fallback call to be dispatched in case the `main` call fails.
1235
+ *
1236
+ * ## Dispatch Logic
1237
+ * - If the origin is `root`, both the main and fallback calls are executed without
1238
+ * applying any origin filters.
1239
+ * - If the origin is not `root`, the origin filter is applied to both the `main` and
1240
+ * `fallback` calls.
1241
+ *
1242
+ * ## Use Case
1243
+ * - Some use cases might involve submitting a `batch` type call in either main, fallback
1244
+ * or both.
1245
+ *
1246
+ * @param {HydradxRuntimeRuntimeCallLike} main
1247
+ * @param {HydradxRuntimeRuntimeCallLike} fallback
1248
+ **/
1249
+ ifElse: GenericTxCall<
1250
+ (
1251
+ main: HydradxRuntimeRuntimeCallLike,
1252
+ fallback: HydradxRuntimeRuntimeCallLike,
1253
+ ) => ChainSubmittableExtrinsic<
1254
+ {
1255
+ pallet: 'Utility';
1256
+ palletCall: {
1257
+ name: 'IfElse';
1258
+ params: { main: HydradxRuntimeRuntimeCallLike; fallback: HydradxRuntimeRuntimeCallLike };
1259
+ };
1260
+ },
1261
+ ChainKnownTypes
1262
+ >
1263
+ >;
1264
+
1265
+ /**
1266
+ * Dispatches a function call with a provided origin.
1267
+ *
1268
+ * Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
1269
+ *
1270
+ * The dispatch origin for this call must be _Root_.
1271
+ *
1272
+ * @param {HydradxRuntimeOriginCaller} asOrigin
1273
+ * @param {HydradxRuntimeRuntimeCallLike} call
1274
+ **/
1275
+ dispatchAsFallible: GenericTxCall<
1276
+ (
1277
+ asOrigin: HydradxRuntimeOriginCaller,
1278
+ call: HydradxRuntimeRuntimeCallLike,
1279
+ ) => ChainSubmittableExtrinsic<
1280
+ {
1281
+ pallet: 'Utility';
1282
+ palletCall: {
1283
+ name: 'DispatchAsFallible';
1284
+ params: { asOrigin: HydradxRuntimeOriginCaller; call: HydradxRuntimeRuntimeCallLike };
1285
+ };
1286
+ },
1287
+ ChainKnownTypes
1288
+ >
1289
+ >;
1290
+
1229
1291
  /**
1230
1292
  * Generic pallet tx call
1231
1293
  **/
@@ -1321,7 +1383,7 @@ export interface ChainTx<
1321
1383
  >;
1322
1384
 
1323
1385
  /**
1324
- * Ensure that the a bulk of pre-images is upgraded.
1386
+ * Ensure that the bulk of pre-images is upgraded.
1325
1387
  *
1326
1388
  * The caller pays no fee if at least 90% of pre-images were successfully updated.
1327
1389
  *
@@ -1771,8 +1833,9 @@ export interface ChainTx<
1771
1833
  /**
1772
1834
  * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
1773
1835
  *
1774
- * The authority can grant up to `allocation` usernames. To top up their allocation, they
1775
- * should just issue (or request via governance) a new `add_username_authority` call.
1836
+ * The authority can grant up to `allocation` usernames. To top up the allocation or
1837
+ * change the account used to grant usernames, this call can be used with the updated
1838
+ * parameters to overwrite the existing configuration.
1776
1839
  *
1777
1840
  * @param {AccountId32Like} authority
1778
1841
  * @param {BytesLike} suffix
@@ -1798,15 +1861,19 @@ export interface ChainTx<
1798
1861
  /**
1799
1862
  * Remove `authority` from the username authorities.
1800
1863
  *
1864
+ * @param {BytesLike} suffix
1801
1865
  * @param {AccountId32Like} authority
1802
1866
  **/
1803
1867
  removeUsernameAuthority: GenericTxCall<
1804
- (authority: AccountId32Like) => ChainSubmittableExtrinsic<
1868
+ (
1869
+ suffix: BytesLike,
1870
+ authority: AccountId32Like,
1871
+ ) => ChainSubmittableExtrinsic<
1805
1872
  {
1806
1873
  pallet: 'Identity';
1807
1874
  palletCall: {
1808
1875
  name: 'RemoveUsernameAuthority';
1809
- params: { authority: AccountId32Like };
1876
+ params: { suffix: BytesLike; authority: AccountId32Like };
1810
1877
  };
1811
1878
  },
1812
1879
  ChainKnownTypes
@@ -1816,7 +1883,11 @@ export interface ChainTx<
1816
1883
  /**
1817
1884
  * Set the username for `who`. Must be called by a username authority.
1818
1885
  *
1819
- * The authority must have an `allocation`. Users can either pre-sign their usernames or
1886
+ * If `use_allocation` is set, the authority must have a username allocation available to
1887
+ * spend. Otherwise, the authority will need to put up a deposit for registering the
1888
+ * username.
1889
+ *
1890
+ * Users can either pre-sign their usernames or
1820
1891
  * accept them later.
1821
1892
  *
1822
1893
  * Usernames must:
@@ -1827,18 +1898,25 @@ export interface ChainTx<
1827
1898
  * @param {AccountId32Like} who
1828
1899
  * @param {BytesLike} username
1829
1900
  * @param {SpRuntimeMultiSignature | undefined} signature
1901
+ * @param {boolean} useAllocation
1830
1902
  **/
1831
1903
  setUsernameFor: GenericTxCall<
1832
1904
  (
1833
1905
  who: AccountId32Like,
1834
1906
  username: BytesLike,
1835
1907
  signature: SpRuntimeMultiSignature | undefined,
1908
+ useAllocation: boolean,
1836
1909
  ) => ChainSubmittableExtrinsic<
1837
1910
  {
1838
1911
  pallet: 'Identity';
1839
1912
  palletCall: {
1840
1913
  name: 'SetUsernameFor';
1841
- params: { who: AccountId32Like; username: BytesLike; signature: SpRuntimeMultiSignature | undefined };
1914
+ params: {
1915
+ who: AccountId32Like;
1916
+ username: BytesLike;
1917
+ signature: SpRuntimeMultiSignature | undefined;
1918
+ useAllocation: boolean;
1919
+ };
1842
1920
  };
1843
1921
  },
1844
1922
  ChainKnownTypes
@@ -1903,17 +1981,56 @@ export interface ChainTx<
1903
1981
  >;
1904
1982
 
1905
1983
  /**
1906
- * Remove a username that corresponds to an account with no identity. Exists when a user
1907
- * gets a username but then calls `clear_identity`.
1984
+ * Start the process of removing a username by placing it in the unbinding usernames map.
1985
+ * Once the grace period has passed, the username can be deleted by calling
1986
+ * [remove_username](crate::Call::remove_username).
1908
1987
  *
1909
1988
  * @param {BytesLike} username
1910
1989
  **/
1911
- removeDanglingUsername: GenericTxCall<
1990
+ unbindUsername: GenericTxCall<
1912
1991
  (username: BytesLike) => ChainSubmittableExtrinsic<
1913
1992
  {
1914
1993
  pallet: 'Identity';
1915
1994
  palletCall: {
1916
- name: 'RemoveDanglingUsername';
1995
+ name: 'UnbindUsername';
1996
+ params: { username: BytesLike };
1997
+ };
1998
+ },
1999
+ ChainKnownTypes
2000
+ >
2001
+ >;
2002
+
2003
+ /**
2004
+ * Permanently delete a username which has been unbinding for longer than the grace period.
2005
+ * Caller is refunded the fee if the username expired and the removal was successful.
2006
+ *
2007
+ * @param {BytesLike} username
2008
+ **/
2009
+ removeUsername: GenericTxCall<
2010
+ (username: BytesLike) => ChainSubmittableExtrinsic<
2011
+ {
2012
+ pallet: 'Identity';
2013
+ palletCall: {
2014
+ name: 'RemoveUsername';
2015
+ params: { username: BytesLike };
2016
+ };
2017
+ },
2018
+ ChainKnownTypes
2019
+ >
2020
+ >;
2021
+
2022
+ /**
2023
+ * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
2024
+ * and slashes any deposit associated with it.
2025
+ *
2026
+ * @param {BytesLike} username
2027
+ **/
2028
+ killUsername: GenericTxCall<
2029
+ (username: BytesLike) => ChainSubmittableExtrinsic<
2030
+ {
2031
+ pallet: 'Identity';
2032
+ palletCall: {
2033
+ name: 'KillUsername';
1917
2034
  params: { username: BytesLike };
1918
2035
  };
1919
2036
  },
@@ -2766,6 +2883,56 @@ export interface ChainTx<
2766
2883
  >
2767
2884
  >;
2768
2885
 
2886
+ /**
2887
+ * Disapprove the proposal and burn the cost held for storing this proposal.
2888
+ *
2889
+ * Parameters:
2890
+ * - `origin`: must be the `KillOrigin`.
2891
+ * - `proposal_hash`: The hash of the proposal that should be killed.
2892
+ *
2893
+ * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
2894
+ *
2895
+ * @param {H256} proposalHash
2896
+ **/
2897
+ kill: GenericTxCall<
2898
+ (proposalHash: H256) => ChainSubmittableExtrinsic<
2899
+ {
2900
+ pallet: 'TechnicalCommittee';
2901
+ palletCall: {
2902
+ name: 'Kill';
2903
+ params: { proposalHash: H256 };
2904
+ };
2905
+ },
2906
+ ChainKnownTypes
2907
+ >
2908
+ >;
2909
+
2910
+ /**
2911
+ * Release the cost held for storing a proposal once the given proposal is completed.
2912
+ *
2913
+ * If there is no associated cost for the given proposal, this call will have no effect.
2914
+ *
2915
+ * Parameters:
2916
+ * - `origin`: must be `Signed` or `Root`.
2917
+ * - `proposal_hash`: The hash of the proposal.
2918
+ *
2919
+ * Emits `ProposalCostReleased` if any cost held for a given proposal.
2920
+ *
2921
+ * @param {H256} proposalHash
2922
+ **/
2923
+ releaseProposalCost: GenericTxCall<
2924
+ (proposalHash: H256) => ChainSubmittableExtrinsic<
2925
+ {
2926
+ pallet: 'TechnicalCommittee';
2927
+ palletCall: {
2928
+ name: 'ReleaseProposalCost';
2929
+ params: { proposalHash: H256 };
2930
+ };
2931
+ },
2932
+ ChainKnownTypes
2933
+ >
2934
+ >;
2935
+
2769
2936
  /**
2770
2937
  * Generic pallet tx call
2771
2938
  **/
@@ -3123,6 +3290,29 @@ export interface ChainTx<
3123
3290
  >
3124
3291
  >;
3125
3292
 
3293
+ /**
3294
+ * Poke / Adjust deposits made for proxies and announcements based on current values.
3295
+ * This can be used by accounts to possibly lower their locked amount.
3296
+ *
3297
+ * The dispatch origin for this call must be _Signed_.
3298
+ *
3299
+ * The transaction fee is waived if the deposit amount has changed.
3300
+ *
3301
+ * Emits `DepositPoked` if successful.
3302
+ *
3303
+ **/
3304
+ pokeDeposit: GenericTxCall<
3305
+ () => ChainSubmittableExtrinsic<
3306
+ {
3307
+ pallet: 'Proxy';
3308
+ palletCall: {
3309
+ name: 'PokeDeposit';
3310
+ };
3311
+ },
3312
+ ChainKnownTypes
3313
+ >
3314
+ >;
3315
+
3126
3316
  /**
3127
3317
  * Generic pallet tx call
3128
3318
  **/
@@ -3351,6 +3541,42 @@ export interface ChainTx<
3351
3541
  >
3352
3542
  >;
3353
3543
 
3544
+ /**
3545
+ * Poke the deposit reserved for an existing multisig operation.
3546
+ *
3547
+ * The dispatch origin for this call must be _Signed_ and must be the original depositor of
3548
+ * the multisig operation.
3549
+ *
3550
+ * The transaction fee is waived if the deposit amount has changed.
3551
+ *
3552
+ * - `threshold`: The total number of approvals needed for this multisig.
3553
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
3554
+ * multisig.
3555
+ * - `call_hash`: The hash of the call this deposit is reserved for.
3556
+ *
3557
+ * Emits `DepositPoked` if successful.
3558
+ *
3559
+ * @param {number} threshold
3560
+ * @param {Array<AccountId32Like>} otherSignatories
3561
+ * @param {FixedBytes<32>} callHash
3562
+ **/
3563
+ pokeDeposit: GenericTxCall<
3564
+ (
3565
+ threshold: number,
3566
+ otherSignatories: Array<AccountId32Like>,
3567
+ callHash: FixedBytes<32>,
3568
+ ) => ChainSubmittableExtrinsic<
3569
+ {
3570
+ pallet: 'Multisig';
3571
+ palletCall: {
3572
+ name: 'PokeDeposit';
3573
+ params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
3574
+ };
3575
+ },
3576
+ ChainKnownTypes
3577
+ >
3578
+ >;
3579
+
3354
3580
  /**
3355
3581
  * Generic pallet tx call
3356
3582
  **/
@@ -6699,6 +6925,8 @@ export interface ChainTx<
6699
6925
  * - `stable_pool_id`: id of the stableswap pool to add liquidity to.
6700
6926
  * - `stable_asset_amounts`: amount of each asset to be deposited into the stableswap pool.
6701
6927
  * - `farm_entries`: list of farms to join.
6928
+ * - `min_shares_limit`: optional minimum Omnipool shares to receive (slippage protection).
6929
+ * Applies to Omnipool step only. None defaults to no protection.
6702
6930
  *
6703
6931
  * Emits `LiquidityAdded` events from both pool
6704
6932
  * Emits `SharesDeposited` event for the first farm entry
@@ -6708,12 +6936,14 @@ export interface ChainTx<
6708
6936
  * @param {number} stablePoolId
6709
6937
  * @param {Array<HydradxTraitsStableswapAssetAmount>} stableAssetAmounts
6710
6938
  * @param {Array<[number, number]> | undefined} farmEntries
6939
+ * @param {bigint | undefined} minSharesLimit
6711
6940
  **/
6712
6941
  addLiquidityStableswapOmnipoolAndJoinFarms: GenericTxCall<
6713
6942
  (
6714
6943
  stablePoolId: number,
6715
6944
  stableAssetAmounts: Array<HydradxTraitsStableswapAssetAmount>,
6716
6945
  farmEntries: Array<[number, number]> | undefined,
6946
+ minSharesLimit: bigint | undefined,
6717
6947
  ) => ChainSubmittableExtrinsic<
6718
6948
  {
6719
6949
  pallet: 'OmnipoolLiquidityMining';
@@ -6723,6 +6953,62 @@ export interface ChainTx<
6723
6953
  stablePoolId: number;
6724
6954
  stableAssetAmounts: Array<HydradxTraitsStableswapAssetAmount>;
6725
6955
  farmEntries: Array<[number, number]> | undefined;
6956
+ minSharesLimit: bigint | undefined;
6957
+ };
6958
+ };
6959
+ },
6960
+ ChainKnownTypes
6961
+ >
6962
+ >;
6963
+
6964
+ /**
6965
+ * Remove liquidity from stableswap and omnipool, optionally exiting associated yield farms.
6966
+ *
6967
+ * This extrinsic reverses the operation performed by `add_liquidity_stableswap_omnipool_and_join_farms`,
6968
+ * with optional farm exit to match the optional farm join in the add function.
6969
+ *
6970
+ * It performs the following steps in order:
6971
+ * 1. [OPTIONAL] If deposit_id is provided: Exits from ALL yield farms associated with the deposit (claiming rewards)
6972
+ * 2. Removes liquidity from the omnipool to retrieve stableswap shares (protected by omnipool_min_limit)
6973
+ * 3. Removes liquidity from the stableswap pool to retrieve underlying assets (protected by stableswap_min_amounts_out)
6974
+ *
6975
+ * The stabelswap liquidity asset removal strategy is determined by the `min_amounts_out` parameter length:
6976
+ * - If 1 asset is specified: Uses `remove_liquidity_one_asset` (trading fee applies)
6977
+ * - If multiple assets: Uses `remove_liquidity` (proportional, no trading fee)
6978
+ *
6979
+ * Parameters:
6980
+ * - `origin`: Owner of the omnipool position
6981
+ * - `position_id`: The omnipool position NFT ID to remove liquidity from
6982
+ * - `omnipool_min_limit`: The min amount of asset to be removed from omnipool (slippage protection)
6983
+ * - `stableswap_min_amounts_out`: Asset IDs and minimum amounts minimum amounts of each asset to receive from omnipool.
6984
+ * - `deposit_id`: Optional liquidity mining deposit NFT ID. If provided, exits all farms first.
6985
+ *
6986
+ * Emits events:
6987
+ * - If deposit_id provided: `RewardClaimed`, `SharesWithdrawn`, `DepositDestroyed`
6988
+ * - Always: Omnipool's `LiquidityRemoved`, Stableswap's `LiquidityRemoved`
6989
+ *
6990
+ *
6991
+ * @param {bigint} positionId
6992
+ * @param {bigint} omnipoolMinLimit
6993
+ * @param {Array<HydradxTraitsStableswapAssetAmount>} stableswapMinAmountsOut
6994
+ * @param {bigint | undefined} depositId
6995
+ **/
6996
+ removeLiquidityStableswapOmnipoolAndExitFarms: GenericTxCall<
6997
+ (
6998
+ positionId: bigint,
6999
+ omnipoolMinLimit: bigint,
7000
+ stableswapMinAmountsOut: Array<HydradxTraitsStableswapAssetAmount>,
7001
+ depositId: bigint | undefined,
7002
+ ) => ChainSubmittableExtrinsic<
7003
+ {
7004
+ pallet: 'OmnipoolLiquidityMining';
7005
+ palletCall: {
7006
+ name: 'RemoveLiquidityStableswapOmnipoolAndExitFarms';
7007
+ params: {
7008
+ positionId: bigint;
7009
+ omnipoolMinLimit: bigint;
7010
+ stableswapMinAmountsOut: Array<HydradxTraitsStableswapAssetAmount>;
7011
+ depositId: bigint | undefined;
6726
7012
  };
6727
7013
  };
6728
7014
  },
@@ -9575,14 +9861,14 @@ export interface ChainTx<
9575
9861
  * - `request_id`: Client-supplied request ID; must match derived ID.
9576
9862
  * - `tx`: Parameters for the EVM transaction submitted to the faucet.
9577
9863
  *
9578
- * @param {FixedBytes<20>} to
9864
+ * @param {H160} to
9579
9865
  * @param {bigint} amount
9580
9866
  * @param {FixedBytes<32>} requestId
9581
9867
  * @param {PalletDispenserEvmTransactionParams} tx
9582
9868
  **/
9583
9869
  requestFund: GenericTxCall<
9584
9870
  (
9585
- to: FixedBytes<20>,
9871
+ to: H160,
9586
9872
  amount: bigint,
9587
9873
  requestId: FixedBytes<32>,
9588
9874
  tx: PalletDispenserEvmTransactionParams,
@@ -9591,12 +9877,7 @@ export interface ChainTx<
9591
9877
  pallet: 'EthDispenser';
9592
9878
  palletCall: {
9593
9879
  name: 'RequestFund';
9594
- params: {
9595
- to: FixedBytes<20>;
9596
- amount: bigint;
9597
- requestId: FixedBytes<32>;
9598
- tx: PalletDispenserEvmTransactionParams;
9599
- };
9880
+ params: { to: H160; amount: bigint; requestId: FixedBytes<32>; tx: PalletDispenserEvmTransactionParams };
9600
9881
  };
9601
9882
  },
9602
9883
  ChainKnownTypes
@@ -9688,7 +9969,7 @@ export interface ChainTx<
9688
9969
  *
9689
9970
  * - `dest`: The recipient of the transfer.
9690
9971
  * - `currency_id`: currency type.
9691
- * - `amount`: free balance amount to tranfer.
9972
+ * - `amount`: free balance amount to transfer.
9692
9973
  *
9693
9974
  * @param {AccountId32Like} dest
9694
9975
  * @param {number} currencyId
@@ -9764,7 +10045,7 @@ export interface ChainTx<
9764
10045
  *
9765
10046
  * - `dest`: The recipient of the transfer.
9766
10047
  * - `currency_id`: currency type.
9767
- * - `amount`: free balance amount to tranfer.
10048
+ * - `amount`: free balance amount to transfer.
9768
10049
  *
9769
10050
  * @param {AccountId32Like} dest
9770
10051
  * @param {number} currencyId
@@ -9796,7 +10077,7 @@ export interface ChainTx<
9796
10077
  * - `source`: The sender of the transfer.
9797
10078
  * - `dest`: The recipient of the transfer.
9798
10079
  * - `currency_id`: currency type.
9799
- * - `amount`: free balance amount to tranfer.
10080
+ * - `amount`: free balance amount to transfer.
9800
10081
  *
9801
10082
  * @param {AccountId32Like} source
9802
10083
  * @param {AccountId32Like} dest
@@ -10067,6 +10348,7 @@ export interface ChainTx<
10067
10348
  * @param {U256 | undefined} maxPriorityFeePerGas
10068
10349
  * @param {U256 | undefined} nonce
10069
10350
  * @param {Array<[H160, Array<H256>]>} accessList
10351
+ * @param {Array<EthereumTransactionEip7702AuthorizationListItem>} authorizationList
10070
10352
  **/
10071
10353
  call: GenericTxCall<
10072
10354
  (
@@ -10079,6 +10361,7 @@ export interface ChainTx<
10079
10361
  maxPriorityFeePerGas: U256 | undefined,
10080
10362
  nonce: U256 | undefined,
10081
10363
  accessList: Array<[H160, Array<H256>]>,
10364
+ authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>,
10082
10365
  ) => ChainSubmittableExtrinsic<
10083
10366
  {
10084
10367
  pallet: 'Evm';
@@ -10094,6 +10377,7 @@ export interface ChainTx<
10094
10377
  maxPriorityFeePerGas: U256 | undefined;
10095
10378
  nonce: U256 | undefined;
10096
10379
  accessList: Array<[H160, Array<H256>]>;
10380
+ authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>;
10097
10381
  };
10098
10382
  };
10099
10383
  },
@@ -10113,6 +10397,7 @@ export interface ChainTx<
10113
10397
  * @param {U256 | undefined} maxPriorityFeePerGas
10114
10398
  * @param {U256 | undefined} nonce
10115
10399
  * @param {Array<[H160, Array<H256>]>} accessList
10400
+ * @param {Array<EthereumTransactionEip7702AuthorizationListItem>} authorizationList
10116
10401
  **/
10117
10402
  create: GenericTxCall<
10118
10403
  (
@@ -10124,6 +10409,7 @@ export interface ChainTx<
10124
10409
  maxPriorityFeePerGas: U256 | undefined,
10125
10410
  nonce: U256 | undefined,
10126
10411
  accessList: Array<[H160, Array<H256>]>,
10412
+ authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>,
10127
10413
  ) => ChainSubmittableExtrinsic<
10128
10414
  {
10129
10415
  pallet: 'Evm';
@@ -10138,6 +10424,7 @@ export interface ChainTx<
10138
10424
  maxPriorityFeePerGas: U256 | undefined;
10139
10425
  nonce: U256 | undefined;
10140
10426
  accessList: Array<[H160, Array<H256>]>;
10427
+ authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>;
10141
10428
  };
10142
10429
  };
10143
10430
  },
@@ -10157,6 +10444,7 @@ export interface ChainTx<
10157
10444
  * @param {U256 | undefined} maxPriorityFeePerGas
10158
10445
  * @param {U256 | undefined} nonce
10159
10446
  * @param {Array<[H160, Array<H256>]>} accessList
10447
+ * @param {Array<EthereumTransactionEip7702AuthorizationListItem>} authorizationList
10160
10448
  **/
10161
10449
  create2: GenericTxCall<
10162
10450
  (
@@ -10169,6 +10457,7 @@ export interface ChainTx<
10169
10457
  maxPriorityFeePerGas: U256 | undefined,
10170
10458
  nonce: U256 | undefined,
10171
10459
  accessList: Array<[H160, Array<H256>]>,
10460
+ authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>,
10172
10461
  ) => ChainSubmittableExtrinsic<
10173
10462
  {
10174
10463
  pallet: 'Evm';
@@ -10184,6 +10473,7 @@ export interface ChainTx<
10184
10473
  maxPriorityFeePerGas: U256 | undefined;
10185
10474
  nonce: U256 | undefined;
10186
10475
  accessList: Array<[H160, Array<H256>]>;
10476
+ authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>;
10187
10477
  };
10188
10478
  };
10189
10479
  },
@@ -10203,15 +10493,15 @@ export interface ChainTx<
10203
10493
  /**
10204
10494
  * Transact an Ethereum transaction.
10205
10495
  *
10206
- * @param {EthereumTransactionTransactionV2} transaction
10496
+ * @param {EthereumTransactionTransactionV3} transaction
10207
10497
  **/
10208
10498
  transact: GenericTxCall<
10209
- (transaction: EthereumTransactionTransactionV2) => ChainSubmittableExtrinsic<
10499
+ (transaction: EthereumTransactionTransactionV3) => ChainSubmittableExtrinsic<
10210
10500
  {
10211
10501
  pallet: 'Ethereum';
10212
10502
  palletCall: {
10213
10503
  name: 'Transact';
10214
- params: { transaction: EthereumTransactionTransactionV2 };
10504
+ params: { transaction: EthereumTransactionTransactionV3 };
10215
10505
  };
10216
10506
  },
10217
10507
  ChainKnownTypes
@@ -11691,19 +11981,19 @@ export interface ChainTx<
11691
11981
  * - `location`: The destination that is being described.
11692
11982
  * - `xcm_version`: The latest version of XCM that `location` supports.
11693
11983
  *
11694
- * @param {StagingXcmV4Location} location
11984
+ * @param {StagingXcmV5Location} location
11695
11985
  * @param {number} version
11696
11986
  **/
11697
11987
  forceXcmVersion: GenericTxCall<
11698
11988
  (
11699
- location: StagingXcmV4Location,
11989
+ location: StagingXcmV5Location,
11700
11990
  version: number,
11701
11991
  ) => ChainSubmittableExtrinsic<
11702
11992
  {
11703
11993
  pallet: 'PolkadotXcm';
11704
11994
  palletCall: {
11705
11995
  name: 'ForceXcmVersion';
11706
- params: { location: StagingXcmV4Location; version: number };
11996
+ params: { location: StagingXcmV5Location; version: number };
11707
11997
  };
11708
11998
  },
11709
11999
  ChainKnownTypes
@@ -12091,6 +12381,74 @@ export interface ChainTx<
12091
12381
  >
12092
12382
  >;
12093
12383
 
12384
+ /**
12385
+ * Authorize another `aliaser` location to alias into the local `origin` making this call.
12386
+ * The `aliaser` is only authorized until the provided `expiry` block number.
12387
+ * The call can also be used for a previously authorized alias in order to update its
12388
+ * `expiry` block number.
12389
+ *
12390
+ * Usually useful to allow your local account to be aliased into from a remote location
12391
+ * also under your control (like your account on another chain).
12392
+ *
12393
+ * WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
12394
+ * their/your name. Once authorized using this call, the `aliaser` can freely impersonate
12395
+ * `origin` in XCM programs executed on the local chain.
12396
+ *
12397
+ * @param {XcmVersionedLocation} aliaser
12398
+ * @param {bigint | undefined} expires
12399
+ **/
12400
+ addAuthorizedAlias: GenericTxCall<
12401
+ (
12402
+ aliaser: XcmVersionedLocation,
12403
+ expires: bigint | undefined,
12404
+ ) => ChainSubmittableExtrinsic<
12405
+ {
12406
+ pallet: 'PolkadotXcm';
12407
+ palletCall: {
12408
+ name: 'AddAuthorizedAlias';
12409
+ params: { aliaser: XcmVersionedLocation; expires: bigint | undefined };
12410
+ };
12411
+ },
12412
+ ChainKnownTypes
12413
+ >
12414
+ >;
12415
+
12416
+ /**
12417
+ * Remove a previously authorized `aliaser` from the list of locations that can alias into
12418
+ * the local `origin` making this call.
12419
+ *
12420
+ * @param {XcmVersionedLocation} aliaser
12421
+ **/
12422
+ removeAuthorizedAlias: GenericTxCall<
12423
+ (aliaser: XcmVersionedLocation) => ChainSubmittableExtrinsic<
12424
+ {
12425
+ pallet: 'PolkadotXcm';
12426
+ palletCall: {
12427
+ name: 'RemoveAuthorizedAlias';
12428
+ params: { aliaser: XcmVersionedLocation };
12429
+ };
12430
+ },
12431
+ ChainKnownTypes
12432
+ >
12433
+ >;
12434
+
12435
+ /**
12436
+ * Remove all previously authorized `aliaser`s that can alias into the local `origin`
12437
+ * making this call.
12438
+ *
12439
+ **/
12440
+ removeAllAuthorizedAliases: GenericTxCall<
12441
+ () => ChainSubmittableExtrinsic<
12442
+ {
12443
+ pallet: 'PolkadotXcm';
12444
+ palletCall: {
12445
+ name: 'RemoveAllAuthorizedAliases';
12446
+ };
12447
+ },
12448
+ ChainKnownTypes
12449
+ >
12450
+ >;
12451
+
12094
12452
  /**
12095
12453
  * Generic pallet tx call
12096
12454
  **/
@@ -12179,6 +12537,107 @@ export interface ChainTx<
12179
12537
  **/
12180
12538
  [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
12181
12539
  };
12540
+ /**
12541
+ * Pallet `MultiBlockMigrations`'s transaction calls
12542
+ **/
12543
+ multiBlockMigrations: {
12544
+ /**
12545
+ * Allows root to set a cursor to forcefully start, stop or forward the migration process.
12546
+ *
12547
+ * Should normally not be needed and is only in place as emergency measure. Note that
12548
+ * restarting the migration process in this manner will not call the
12549
+ * [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
12550
+ *
12551
+ * @param {PalletMigrationsMigrationCursor | undefined} cursor
12552
+ **/
12553
+ forceSetCursor: GenericTxCall<
12554
+ (cursor: PalletMigrationsMigrationCursor | undefined) => ChainSubmittableExtrinsic<
12555
+ {
12556
+ pallet: 'MultiBlockMigrations';
12557
+ palletCall: {
12558
+ name: 'ForceSetCursor';
12559
+ params: { cursor: PalletMigrationsMigrationCursor | undefined };
12560
+ };
12561
+ },
12562
+ ChainKnownTypes
12563
+ >
12564
+ >;
12565
+
12566
+ /**
12567
+ * Allows root to set an active cursor to forcefully start/forward the migration process.
12568
+ *
12569
+ * This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
12570
+ * `started_at` value to the next block number. Otherwise this would not be possible, since
12571
+ * `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
12572
+ * indicates that the current block number plus one should be used.
12573
+ *
12574
+ * @param {number} index
12575
+ * @param {BytesLike | undefined} innerCursor
12576
+ * @param {number | undefined} startedAt
12577
+ **/
12578
+ forceSetActiveCursor: GenericTxCall<
12579
+ (
12580
+ index: number,
12581
+ innerCursor: BytesLike | undefined,
12582
+ startedAt: number | undefined,
12583
+ ) => ChainSubmittableExtrinsic<
12584
+ {
12585
+ pallet: 'MultiBlockMigrations';
12586
+ palletCall: {
12587
+ name: 'ForceSetActiveCursor';
12588
+ params: { index: number; innerCursor: BytesLike | undefined; startedAt: number | undefined };
12589
+ };
12590
+ },
12591
+ ChainKnownTypes
12592
+ >
12593
+ >;
12594
+
12595
+ /**
12596
+ * Forces the onboarding of the migrations.
12597
+ *
12598
+ * This process happens automatically on a runtime upgrade. It is in place as an emergency
12599
+ * measurement. The cursor needs to be `None` for this to succeed.
12600
+ *
12601
+ **/
12602
+ forceOnboardMbms: GenericTxCall<
12603
+ () => ChainSubmittableExtrinsic<
12604
+ {
12605
+ pallet: 'MultiBlockMigrations';
12606
+ palletCall: {
12607
+ name: 'ForceOnboardMbms';
12608
+ };
12609
+ },
12610
+ ChainKnownTypes
12611
+ >
12612
+ >;
12613
+
12614
+ /**
12615
+ * Clears the `Historic` set.
12616
+ *
12617
+ * `map_cursor` must be set to the last value that was returned by the
12618
+ * `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
12619
+ * way that will result in a sensible weight.
12620
+ *
12621
+ * @param {PalletMigrationsHistoricCleanupSelector} selector
12622
+ **/
12623
+ clearHistoric: GenericTxCall<
12624
+ (selector: PalletMigrationsHistoricCleanupSelector) => ChainSubmittableExtrinsic<
12625
+ {
12626
+ pallet: 'MultiBlockMigrations';
12627
+ palletCall: {
12628
+ name: 'ClearHistoric';
12629
+ params: { selector: PalletMigrationsHistoricCleanupSelector };
12630
+ };
12631
+ },
12632
+ ChainKnownTypes
12633
+ >
12634
+ >;
12635
+
12636
+ /**
12637
+ * Generic pallet tx call
12638
+ **/
12639
+ [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
12640
+ };
12182
12641
  /**
12183
12642
  * Pallet `OrmlXcm`'s transaction calls
12184
12643
  **/
@@ -12775,279 +13234,6 @@ export interface ChainTx<
12775
13234
  **/
12776
13235
  [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
12777
13236
  };
12778
- /**
12779
- * Pallet `Ismp`'s transaction calls
12780
- **/
12781
- ismp: {
12782
- /**
12783
- * Execute the provided batch of ISMP messages, this will short-circuit and revert if any
12784
- * of the provided messages are invalid. This is an unsigned extrinsic that permits anyone
12785
- * execute ISMP messages for free, provided they have valid proofs and the messages have
12786
- * not been previously processed.
12787
- *
12788
- * The dispatch origin for this call must be an unsigned one.
12789
- *
12790
- * - `messages`: the messages to handle or process.
12791
- *
12792
- * Emits different message events based on the Message received if successful.
12793
- *
12794
- * @param {Array<IsmpMessagingMessage>} messages
12795
- **/
12796
- handleUnsigned: GenericTxCall<
12797
- (messages: Array<IsmpMessagingMessage>) => ChainSubmittableExtrinsic<
12798
- {
12799
- pallet: 'Ismp';
12800
- palletCall: {
12801
- name: 'HandleUnsigned';
12802
- params: { messages: Array<IsmpMessagingMessage> };
12803
- };
12804
- },
12805
- ChainKnownTypes
12806
- >
12807
- >;
12808
-
12809
- /**
12810
- * Create a consensus client, using a subjectively chosen consensus state. This can also
12811
- * be used to overwrite an existing consensus state. The dispatch origin for this
12812
- * call must be `T::AdminOrigin`.
12813
- *
12814
- * - `message`: [`CreateConsensusState`] struct.
12815
- *
12816
- * Emits [`Event::ConsensusClientCreated`] if successful.
12817
- *
12818
- * @param {IsmpMessagingCreateConsensusState} message
12819
- **/
12820
- createConsensusClient: GenericTxCall<
12821
- (message: IsmpMessagingCreateConsensusState) => ChainSubmittableExtrinsic<
12822
- {
12823
- pallet: 'Ismp';
12824
- palletCall: {
12825
- name: 'CreateConsensusClient';
12826
- params: { message: IsmpMessagingCreateConsensusState };
12827
- };
12828
- },
12829
- ChainKnownTypes
12830
- >
12831
- >;
12832
-
12833
- /**
12834
- * Modify the unbonding period and challenge period for a consensus state.
12835
- * The dispatch origin for this call must be `T::AdminOrigin`.
12836
- *
12837
- * - `message`: `UpdateConsensusState` struct.
12838
- *
12839
- * @param {PalletIsmpUtilsUpdateConsensusState} message
12840
- **/
12841
- updateConsensusState: GenericTxCall<
12842
- (message: PalletIsmpUtilsUpdateConsensusState) => ChainSubmittableExtrinsic<
12843
- {
12844
- pallet: 'Ismp';
12845
- palletCall: {
12846
- name: 'UpdateConsensusState';
12847
- params: { message: PalletIsmpUtilsUpdateConsensusState };
12848
- };
12849
- },
12850
- ChainKnownTypes
12851
- >
12852
- >;
12853
-
12854
- /**
12855
- * Add more funds to a message (request or response) to be used for delivery and execution.
12856
- *
12857
- * Should not be called on a message that has been completed (delivered or timed-out) as
12858
- * those funds will be lost forever.
12859
- *
12860
- * @param {PalletIsmpUtilsFundMessageParams} message
12861
- **/
12862
- fundMessage: GenericTxCall<
12863
- (message: PalletIsmpUtilsFundMessageParams) => ChainSubmittableExtrinsic<
12864
- {
12865
- pallet: 'Ismp';
12866
- palletCall: {
12867
- name: 'FundMessage';
12868
- params: { message: PalletIsmpUtilsFundMessageParams };
12869
- };
12870
- },
12871
- ChainKnownTypes
12872
- >
12873
- >;
12874
-
12875
- /**
12876
- * Generic pallet tx call
12877
- **/
12878
- [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
12879
- };
12880
- /**
12881
- * Pallet `IsmpParachain`'s transaction calls
12882
- **/
12883
- ismpParachain: {
12884
- /**
12885
- * This allows block builders submit parachain consensus proofs as inherents. If the
12886
- * provided [`ConsensusMessage`] is not for a parachain, this call will fail.
12887
- *
12888
- * @param {IsmpMessagingConsensusMessage} data
12889
- **/
12890
- updateParachainConsensus: GenericTxCall<
12891
- (data: IsmpMessagingConsensusMessage) => ChainSubmittableExtrinsic<
12892
- {
12893
- pallet: 'IsmpParachain';
12894
- palletCall: {
12895
- name: 'UpdateParachainConsensus';
12896
- params: { data: IsmpMessagingConsensusMessage };
12897
- };
12898
- },
12899
- ChainKnownTypes
12900
- >
12901
- >;
12902
-
12903
- /**
12904
- * Add some new parachains to the parachains whitelist
12905
- *
12906
- * @param {Array<IsmpParachainParachainData>} paraIds
12907
- **/
12908
- addParachain: GenericTxCall<
12909
- (paraIds: Array<IsmpParachainParachainData>) => ChainSubmittableExtrinsic<
12910
- {
12911
- pallet: 'IsmpParachain';
12912
- palletCall: {
12913
- name: 'AddParachain';
12914
- params: { paraIds: Array<IsmpParachainParachainData> };
12915
- };
12916
- },
12917
- ChainKnownTypes
12918
- >
12919
- >;
12920
-
12921
- /**
12922
- * Removes some parachains from the parachains whitelist
12923
- *
12924
- * @param {Array<number>} paraIds
12925
- **/
12926
- removeParachain: GenericTxCall<
12927
- (paraIds: Array<number>) => ChainSubmittableExtrinsic<
12928
- {
12929
- pallet: 'IsmpParachain';
12930
- palletCall: {
12931
- name: 'RemoveParachain';
12932
- params: { paraIds: Array<number> };
12933
- };
12934
- },
12935
- ChainKnownTypes
12936
- >
12937
- >;
12938
-
12939
- /**
12940
- * Generic pallet tx call
12941
- **/
12942
- [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
12943
- };
12944
- /**
12945
- * Pallet `TokenGateway`'s transaction calls
12946
- **/
12947
- tokenGateway: {
12948
- /**
12949
- * Teleports a registered asset
12950
- * locks the asset and dispatches a request to token gateway on the destination
12951
- *
12952
- * @param {PalletTokenGatewayTeleportParams} params
12953
- **/
12954
- teleport: GenericTxCall<
12955
- (params: PalletTokenGatewayTeleportParams) => ChainSubmittableExtrinsic<
12956
- {
12957
- pallet: 'TokenGateway';
12958
- palletCall: {
12959
- name: 'Teleport';
12960
- params: { params: PalletTokenGatewayTeleportParams };
12961
- };
12962
- },
12963
- ChainKnownTypes
12964
- >
12965
- >;
12966
-
12967
- /**
12968
- * Set the token gateway address for specified chains
12969
- *
12970
- * @param {Array<[IsmpHostStateMachine, BytesLike]>} addresses
12971
- **/
12972
- setTokenGatewayAddresses: GenericTxCall<
12973
- (addresses: Array<[IsmpHostStateMachine, BytesLike]>) => ChainSubmittableExtrinsic<
12974
- {
12975
- pallet: 'TokenGateway';
12976
- palletCall: {
12977
- name: 'SetTokenGatewayAddresses';
12978
- params: { addresses: Array<[IsmpHostStateMachine, BytesLike]> };
12979
- };
12980
- },
12981
- ChainKnownTypes
12982
- >
12983
- >;
12984
-
12985
- /**
12986
- * Registers a multi-chain ERC6160 asset. The asset should not already exist.
12987
- *
12988
- * This works by dispatching a request to the TokenGateway module on each requested chain
12989
- * to create the asset.
12990
- * `native` should be true if this asset originates from this chain
12991
- *
12992
- * @param {PalletTokenGatewayAssetRegistration} asset
12993
- **/
12994
- createErc6160Asset: GenericTxCall<
12995
- (asset: PalletTokenGatewayAssetRegistration) => ChainSubmittableExtrinsic<
12996
- {
12997
- pallet: 'TokenGateway';
12998
- palletCall: {
12999
- name: 'CreateErc6160Asset';
13000
- params: { asset: PalletTokenGatewayAssetRegistration };
13001
- };
13002
- },
13003
- ChainKnownTypes
13004
- >
13005
- >;
13006
-
13007
- /**
13008
- * Registers a multi-chain ERC6160 asset. The asset should not already exist.
13009
- *
13010
- * This works by dispatching a request to the TokenGateway module on each requested chain
13011
- * to create the asset.
13012
- *
13013
- * @param {TokenGatewayPrimitivesGatewayAssetUpdate} asset
13014
- **/
13015
- updateErc6160Asset: GenericTxCall<
13016
- (asset: TokenGatewayPrimitivesGatewayAssetUpdate) => ChainSubmittableExtrinsic<
13017
- {
13018
- pallet: 'TokenGateway';
13019
- palletCall: {
13020
- name: 'UpdateErc6160Asset';
13021
- params: { asset: TokenGatewayPrimitivesGatewayAssetUpdate };
13022
- };
13023
- },
13024
- ChainKnownTypes
13025
- >
13026
- >;
13027
-
13028
- /**
13029
- * Update the precision for an existing asset
13030
- *
13031
- * @param {PalletTokenGatewayPrecisionUpdate} update
13032
- **/
13033
- updateAssetPrecision: GenericTxCall<
13034
- (update: PalletTokenGatewayPrecisionUpdate) => ChainSubmittableExtrinsic<
13035
- {
13036
- pallet: 'TokenGateway';
13037
- palletCall: {
13038
- name: 'UpdateAssetPrecision';
13039
- params: { update: PalletTokenGatewayPrecisionUpdate };
13040
- };
13041
- },
13042
- ChainKnownTypes
13043
- >
13044
- >;
13045
-
13046
- /**
13047
- * Generic pallet tx call
13048
- **/
13049
- [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
13050
- };
13051
13237
  /**
13052
13238
  * Pallet `EmaOracle`'s transaction calls
13053
13239
  **/