@dedot/chaintypes 0.205.0 → 0.206.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/basilisk/tx.d.ts CHANGED
@@ -48,7 +48,7 @@ import type {
48
48
  XcmVersionedLocation,
49
49
  XcmVersionedXcm,
50
50
  XcmVersionedAssets,
51
- StagingXcmV4Location,
51
+ StagingXcmV5Location,
52
52
  XcmV3WeightLimit,
53
53
  StagingXcmExecutorAssetTransferTransferType,
54
54
  XcmVersionedAssetId,
@@ -58,8 +58,8 @@ import type {
58
58
  BasiliskRuntimeXcmAssetLocation,
59
59
  PalletLbpWeightCurveType,
60
60
  PalletNftCollectionType,
61
- HydradxTraitsRouterTrade,
62
- HydradxTraitsRouterAssetPair,
61
+ BasiliskTraitsRouterTrade,
62
+ BasiliskTraitsRouterAssetPair,
63
63
  PalletXykAssetPair,
64
64
  PalletLiquidityMiningLoyaltyCurve,
65
65
  XcmVersionedAsset,
@@ -1201,6 +1201,76 @@ export interface ChainTx<
1201
1201
  >
1202
1202
  >;
1203
1203
 
1204
+ /**
1205
+ * Dispatch a fallback call in the event the main call fails to execute.
1206
+ * May be called from any origin except `None`.
1207
+ *
1208
+ * This function first attempts to dispatch the `main` call.
1209
+ * If the `main` call fails, the `fallback` is attemted.
1210
+ * if the fallback is successfully dispatched, the weights of both calls
1211
+ * are accumulated and an event containing the main call error is deposited.
1212
+ *
1213
+ * In the event of a fallback failure the whole call fails
1214
+ * with the weights returned.
1215
+ *
1216
+ * - `main`: The main call to be dispatched. This is the primary action to execute.
1217
+ * - `fallback`: The fallback call to be dispatched in case the `main` call fails.
1218
+ *
1219
+ * ## Dispatch Logic
1220
+ * - If the origin is `root`, both the main and fallback calls are executed without
1221
+ * applying any origin filters.
1222
+ * - If the origin is not `root`, the origin filter is applied to both the `main` and
1223
+ * `fallback` calls.
1224
+ *
1225
+ * ## Use Case
1226
+ * - Some use cases might involve submitting a `batch` type call in either main, fallback
1227
+ * or both.
1228
+ *
1229
+ * @param {BasiliskRuntimeRuntimeCallLike} main
1230
+ * @param {BasiliskRuntimeRuntimeCallLike} fallback
1231
+ **/
1232
+ ifElse: GenericTxCall<
1233
+ (
1234
+ main: BasiliskRuntimeRuntimeCallLike,
1235
+ fallback: BasiliskRuntimeRuntimeCallLike,
1236
+ ) => ChainSubmittableExtrinsic<
1237
+ {
1238
+ pallet: 'Utility';
1239
+ palletCall: {
1240
+ name: 'IfElse';
1241
+ params: { main: BasiliskRuntimeRuntimeCallLike; fallback: BasiliskRuntimeRuntimeCallLike };
1242
+ };
1243
+ },
1244
+ ChainKnownTypes
1245
+ >
1246
+ >;
1247
+
1248
+ /**
1249
+ * Dispatches a function call with a provided origin.
1250
+ *
1251
+ * Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
1252
+ *
1253
+ * The dispatch origin for this call must be _Root_.
1254
+ *
1255
+ * @param {BasiliskRuntimeOriginCaller} asOrigin
1256
+ * @param {BasiliskRuntimeRuntimeCallLike} call
1257
+ **/
1258
+ dispatchAsFallible: GenericTxCall<
1259
+ (
1260
+ asOrigin: BasiliskRuntimeOriginCaller,
1261
+ call: BasiliskRuntimeRuntimeCallLike,
1262
+ ) => ChainSubmittableExtrinsic<
1263
+ {
1264
+ pallet: 'Utility';
1265
+ palletCall: {
1266
+ name: 'DispatchAsFallible';
1267
+ params: { asOrigin: BasiliskRuntimeOriginCaller; call: BasiliskRuntimeRuntimeCallLike };
1268
+ };
1269
+ },
1270
+ ChainKnownTypes
1271
+ >
1272
+ >;
1273
+
1204
1274
  /**
1205
1275
  * Generic pallet tx call
1206
1276
  **/
@@ -2010,6 +2080,56 @@ export interface ChainTx<
2010
2080
  >
2011
2081
  >;
2012
2082
 
2083
+ /**
2084
+ * Disapprove the proposal and burn the cost held for storing this proposal.
2085
+ *
2086
+ * Parameters:
2087
+ * - `origin`: must be the `KillOrigin`.
2088
+ * - `proposal_hash`: The hash of the proposal that should be killed.
2089
+ *
2090
+ * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
2091
+ *
2092
+ * @param {H256} proposalHash
2093
+ **/
2094
+ kill: GenericTxCall<
2095
+ (proposalHash: H256) => ChainSubmittableExtrinsic<
2096
+ {
2097
+ pallet: 'TechnicalCommittee';
2098
+ palletCall: {
2099
+ name: 'Kill';
2100
+ params: { proposalHash: H256 };
2101
+ };
2102
+ },
2103
+ ChainKnownTypes
2104
+ >
2105
+ >;
2106
+
2107
+ /**
2108
+ * Release the cost held for storing a proposal once the given proposal is completed.
2109
+ *
2110
+ * If there is no associated cost for the given proposal, this call will have no effect.
2111
+ *
2112
+ * Parameters:
2113
+ * - `origin`: must be `Signed` or `Root`.
2114
+ * - `proposal_hash`: The hash of the proposal.
2115
+ *
2116
+ * Emits `ProposalCostReleased` if any cost held for a given proposal.
2117
+ *
2118
+ * @param {H256} proposalHash
2119
+ **/
2120
+ releaseProposalCost: GenericTxCall<
2121
+ (proposalHash: H256) => ChainSubmittableExtrinsic<
2122
+ {
2123
+ pallet: 'TechnicalCommittee';
2124
+ palletCall: {
2125
+ name: 'ReleaseProposalCost';
2126
+ params: { proposalHash: H256 };
2127
+ };
2128
+ },
2129
+ ChainKnownTypes
2130
+ >
2131
+ >;
2132
+
2013
2133
  /**
2014
2134
  * Generic pallet tx call
2015
2135
  **/
@@ -2450,6 +2570,29 @@ export interface ChainTx<
2450
2570
  >
2451
2571
  >;
2452
2572
 
2573
+ /**
2574
+ * Poke / Adjust deposits made for proxies and announcements based on current values.
2575
+ * This can be used by accounts to possibly lower their locked amount.
2576
+ *
2577
+ * The dispatch origin for this call must be _Signed_.
2578
+ *
2579
+ * The transaction fee is waived if the deposit amount has changed.
2580
+ *
2581
+ * Emits `DepositPoked` if successful.
2582
+ *
2583
+ **/
2584
+ pokeDeposit: GenericTxCall<
2585
+ () => ChainSubmittableExtrinsic<
2586
+ {
2587
+ pallet: 'Proxy';
2588
+ palletCall: {
2589
+ name: 'PokeDeposit';
2590
+ };
2591
+ },
2592
+ ChainKnownTypes
2593
+ >
2594
+ >;
2595
+
2453
2596
  /**
2454
2597
  * Generic pallet tx call
2455
2598
  **/
@@ -2829,7 +2972,7 @@ export interface ChainTx<
2829
2972
  >;
2830
2973
 
2831
2974
  /**
2832
- * Ensure that the a bulk of pre-images is upgraded.
2975
+ * Ensure that the bulk of pre-images is upgraded.
2833
2976
  *
2834
2977
  * The caller pays no fee if at least 90% of pre-images were successfully updated.
2835
2978
  *
@@ -4220,8 +4363,9 @@ export interface ChainTx<
4220
4363
  /**
4221
4364
  * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
4222
4365
  *
4223
- * The authority can grant up to `allocation` usernames. To top up their allocation, they
4224
- * should just issue (or request via governance) a new `add_username_authority` call.
4366
+ * The authority can grant up to `allocation` usernames. To top up the allocation or
4367
+ * change the account used to grant usernames, this call can be used with the updated
4368
+ * parameters to overwrite the existing configuration.
4225
4369
  *
4226
4370
  * @param {AccountId32Like} authority
4227
4371
  * @param {BytesLike} suffix
@@ -4247,15 +4391,19 @@ export interface ChainTx<
4247
4391
  /**
4248
4392
  * Remove `authority` from the username authorities.
4249
4393
  *
4394
+ * @param {BytesLike} suffix
4250
4395
  * @param {AccountId32Like} authority
4251
4396
  **/
4252
4397
  removeUsernameAuthority: GenericTxCall<
4253
- (authority: AccountId32Like) => ChainSubmittableExtrinsic<
4398
+ (
4399
+ suffix: BytesLike,
4400
+ authority: AccountId32Like,
4401
+ ) => ChainSubmittableExtrinsic<
4254
4402
  {
4255
4403
  pallet: 'Identity';
4256
4404
  palletCall: {
4257
4405
  name: 'RemoveUsernameAuthority';
4258
- params: { authority: AccountId32Like };
4406
+ params: { suffix: BytesLike; authority: AccountId32Like };
4259
4407
  };
4260
4408
  },
4261
4409
  ChainKnownTypes
@@ -4265,7 +4413,11 @@ export interface ChainTx<
4265
4413
  /**
4266
4414
  * Set the username for `who`. Must be called by a username authority.
4267
4415
  *
4268
- * The authority must have an `allocation`. Users can either pre-sign their usernames or
4416
+ * If `use_allocation` is set, the authority must have a username allocation available to
4417
+ * spend. Otherwise, the authority will need to put up a deposit for registering the
4418
+ * username.
4419
+ *
4420
+ * Users can either pre-sign their usernames or
4269
4421
  * accept them later.
4270
4422
  *
4271
4423
  * Usernames must:
@@ -4276,18 +4428,25 @@ export interface ChainTx<
4276
4428
  * @param {AccountId32Like} who
4277
4429
  * @param {BytesLike} username
4278
4430
  * @param {SpRuntimeMultiSignature | undefined} signature
4431
+ * @param {boolean} useAllocation
4279
4432
  **/
4280
4433
  setUsernameFor: GenericTxCall<
4281
4434
  (
4282
4435
  who: AccountId32Like,
4283
4436
  username: BytesLike,
4284
4437
  signature: SpRuntimeMultiSignature | undefined,
4438
+ useAllocation: boolean,
4285
4439
  ) => ChainSubmittableExtrinsic<
4286
4440
  {
4287
4441
  pallet: 'Identity';
4288
4442
  palletCall: {
4289
4443
  name: 'SetUsernameFor';
4290
- params: { who: AccountId32Like; username: BytesLike; signature: SpRuntimeMultiSignature | undefined };
4444
+ params: {
4445
+ who: AccountId32Like;
4446
+ username: BytesLike;
4447
+ signature: SpRuntimeMultiSignature | undefined;
4448
+ useAllocation: boolean;
4449
+ };
4291
4450
  };
4292
4451
  },
4293
4452
  ChainKnownTypes
@@ -4352,17 +4511,56 @@ export interface ChainTx<
4352
4511
  >;
4353
4512
 
4354
4513
  /**
4355
- * Remove a username that corresponds to an account with no identity. Exists when a user
4356
- * gets a username but then calls `clear_identity`.
4514
+ * Start the process of removing a username by placing it in the unbinding usernames map.
4515
+ * Once the grace period has passed, the username can be deleted by calling
4516
+ * [remove_username](crate::Call::remove_username).
4357
4517
  *
4358
4518
  * @param {BytesLike} username
4359
4519
  **/
4360
- removeDanglingUsername: GenericTxCall<
4520
+ unbindUsername: GenericTxCall<
4361
4521
  (username: BytesLike) => ChainSubmittableExtrinsic<
4362
4522
  {
4363
4523
  pallet: 'Identity';
4364
4524
  palletCall: {
4365
- name: 'RemoveDanglingUsername';
4525
+ name: 'UnbindUsername';
4526
+ params: { username: BytesLike };
4527
+ };
4528
+ },
4529
+ ChainKnownTypes
4530
+ >
4531
+ >;
4532
+
4533
+ /**
4534
+ * Permanently delete a username which has been unbinding for longer than the grace period.
4535
+ * Caller is refunded the fee if the username expired and the removal was successful.
4536
+ *
4537
+ * @param {BytesLike} username
4538
+ **/
4539
+ removeUsername: GenericTxCall<
4540
+ (username: BytesLike) => ChainSubmittableExtrinsic<
4541
+ {
4542
+ pallet: 'Identity';
4543
+ palletCall: {
4544
+ name: 'RemoveUsername';
4545
+ params: { username: BytesLike };
4546
+ };
4547
+ },
4548
+ ChainKnownTypes
4549
+ >
4550
+ >;
4551
+
4552
+ /**
4553
+ * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
4554
+ * and slashes any deposit associated with it.
4555
+ *
4556
+ * @param {BytesLike} username
4557
+ **/
4558
+ killUsername: GenericTxCall<
4559
+ (username: BytesLike) => ChainSubmittableExtrinsic<
4560
+ {
4561
+ pallet: 'Identity';
4562
+ palletCall: {
4563
+ name: 'KillUsername';
4366
4564
  params: { username: BytesLike };
4367
4565
  };
4368
4566
  },
@@ -4598,6 +4796,42 @@ export interface ChainTx<
4598
4796
  >
4599
4797
  >;
4600
4798
 
4799
+ /**
4800
+ * Poke the deposit reserved for an existing multisig operation.
4801
+ *
4802
+ * The dispatch origin for this call must be _Signed_ and must be the original depositor of
4803
+ * the multisig operation.
4804
+ *
4805
+ * The transaction fee is waived if the deposit amount has changed.
4806
+ *
4807
+ * - `threshold`: The total number of approvals needed for this multisig.
4808
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
4809
+ * multisig.
4810
+ * - `call_hash`: The hash of the call this deposit is reserved for.
4811
+ *
4812
+ * Emits `DepositPoked` if successful.
4813
+ *
4814
+ * @param {number} threshold
4815
+ * @param {Array<AccountId32Like>} otherSignatories
4816
+ * @param {FixedBytes<32>} callHash
4817
+ **/
4818
+ pokeDeposit: GenericTxCall<
4819
+ (
4820
+ threshold: number,
4821
+ otherSignatories: Array<AccountId32Like>,
4822
+ callHash: FixedBytes<32>,
4823
+ ) => ChainSubmittableExtrinsic<
4824
+ {
4825
+ pallet: 'Multisig';
4826
+ palletCall: {
4827
+ name: 'PokeDeposit';
4828
+ params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
4829
+ };
4830
+ },
4831
+ ChainKnownTypes
4832
+ >
4833
+ >;
4834
+
4601
4835
  /**
4602
4836
  * Generic pallet tx call
4603
4837
  **/
@@ -5019,6 +5253,43 @@ export interface ChainTx<
5019
5253
  >
5020
5254
  >;
5021
5255
 
5256
+ /**
5257
+ * Allow to force remove a vote for a referendum.
5258
+ *
5259
+ * The dispatch origin of this call must be `VoteRemovalOrigin`.
5260
+ *
5261
+ * Only allowed if the referendum is finished.
5262
+ *
5263
+ * The dispatch origin of this call must be _Signed_.
5264
+ *
5265
+ * - `target`: The account of the vote to be removed; this account must have voted for
5266
+ * referendum `index`.
5267
+ * - `index`: The index of referendum of the vote to be removed.
5268
+ *
5269
+ * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
5270
+ * Weight is calculated for the maximum number of vote.
5271
+ *
5272
+ * @param {AccountId32Like} target
5273
+ * @param {number} class_
5274
+ * @param {number} index
5275
+ **/
5276
+ forceRemoveVote: GenericTxCall<
5277
+ (
5278
+ target: AccountId32Like,
5279
+ class_: number,
5280
+ index: number,
5281
+ ) => ChainSubmittableExtrinsic<
5282
+ {
5283
+ pallet: 'ConvictionVoting';
5284
+ palletCall: {
5285
+ name: 'ForceRemoveVote';
5286
+ params: { target: AccountId32Like; class: number; index: number };
5287
+ };
5288
+ },
5289
+ ChainKnownTypes
5290
+ >
5291
+ >;
5292
+
5022
5293
  /**
5023
5294
  * Generic pallet tx call
5024
5295
  **/
@@ -5871,19 +6142,19 @@ export interface ChainTx<
5871
6142
  * - `location`: The destination that is being described.
5872
6143
  * - `xcm_version`: The latest version of XCM that `location` supports.
5873
6144
  *
5874
- * @param {StagingXcmV4Location} location
6145
+ * @param {StagingXcmV5Location} location
5875
6146
  * @param {number} version
5876
6147
  **/
5877
6148
  forceXcmVersion: GenericTxCall<
5878
6149
  (
5879
- location: StagingXcmV4Location,
6150
+ location: StagingXcmV5Location,
5880
6151
  version: number,
5881
6152
  ) => ChainSubmittableExtrinsic<
5882
6153
  {
5883
6154
  pallet: 'PolkadotXcm';
5884
6155
  palletCall: {
5885
6156
  name: 'ForceXcmVersion';
5886
- params: { location: StagingXcmV4Location; version: number };
6157
+ params: { location: StagingXcmV5Location; version: number };
5887
6158
  };
5888
6159
  },
5889
6160
  ChainKnownTypes
@@ -6271,6 +6542,74 @@ export interface ChainTx<
6271
6542
  >
6272
6543
  >;
6273
6544
 
6545
+ /**
6546
+ * Authorize another `aliaser` location to alias into the local `origin` making this call.
6547
+ * The `aliaser` is only authorized until the provided `expiry` block number.
6548
+ * The call can also be used for a previously authorized alias in order to update its
6549
+ * `expiry` block number.
6550
+ *
6551
+ * Usually useful to allow your local account to be aliased into from a remote location
6552
+ * also under your control (like your account on another chain).
6553
+ *
6554
+ * WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
6555
+ * their/your name. Once authorized using this call, the `aliaser` can freely impersonate
6556
+ * `origin` in XCM programs executed on the local chain.
6557
+ *
6558
+ * @param {XcmVersionedLocation} aliaser
6559
+ * @param {bigint | undefined} expires
6560
+ **/
6561
+ addAuthorizedAlias: GenericTxCall<
6562
+ (
6563
+ aliaser: XcmVersionedLocation,
6564
+ expires: bigint | undefined,
6565
+ ) => ChainSubmittableExtrinsic<
6566
+ {
6567
+ pallet: 'PolkadotXcm';
6568
+ palletCall: {
6569
+ name: 'AddAuthorizedAlias';
6570
+ params: { aliaser: XcmVersionedLocation; expires: bigint | undefined };
6571
+ };
6572
+ },
6573
+ ChainKnownTypes
6574
+ >
6575
+ >;
6576
+
6577
+ /**
6578
+ * Remove a previously authorized `aliaser` from the list of locations that can alias into
6579
+ * the local `origin` making this call.
6580
+ *
6581
+ * @param {XcmVersionedLocation} aliaser
6582
+ **/
6583
+ removeAuthorizedAlias: GenericTxCall<
6584
+ (aliaser: XcmVersionedLocation) => ChainSubmittableExtrinsic<
6585
+ {
6586
+ pallet: 'PolkadotXcm';
6587
+ palletCall: {
6588
+ name: 'RemoveAuthorizedAlias';
6589
+ params: { aliaser: XcmVersionedLocation };
6590
+ };
6591
+ },
6592
+ ChainKnownTypes
6593
+ >
6594
+ >;
6595
+
6596
+ /**
6597
+ * Remove all previously authorized `aliaser`s that can alias into the local `origin`
6598
+ * making this call.
6599
+ *
6600
+ **/
6601
+ removeAllAuthorizedAliases: GenericTxCall<
6602
+ () => ChainSubmittableExtrinsic<
6603
+ {
6604
+ pallet: 'PolkadotXcm';
6605
+ palletCall: {
6606
+ name: 'RemoveAllAuthorizedAliases';
6607
+ };
6608
+ },
6609
+ ChainKnownTypes
6610
+ >
6611
+ >;
6612
+
6274
6613
  /**
6275
6614
  * Generic pallet tx call
6276
6615
  **/
@@ -6690,9 +7029,15 @@ export interface ChainTx<
6690
7029
  /**
6691
7030
  * Dust specified account.
6692
7031
  * IF account balance is < min. existential deposit of given currency, and account is allowed to
6693
- * be dusted, the remaining balance is transferred to selected account (usually treasury).
7032
+ * be dusted, the remaining balance is transferred to treasury account.
7033
+ *
7034
+ * In case of AToken, we perform an erc20 dust, which does a wihtdraw all then supply atoken on behalf of the dust receiver
6694
7035
  *
6695
- * Caller is rewarded with chosen reward in native currency.
7036
+ * The transaction fee is returned back in case of successful dusting.
7037
+ *
7038
+ * Treasury account can never be dusted.
7039
+ *
7040
+ * Emits `Dusted` event when successful.
6696
7041
  *
6697
7042
  * @param {AccountId32Like} account
6698
7043
  * @param {number} currencyId
@@ -6714,18 +7059,21 @@ export interface ChainTx<
6714
7059
  >;
6715
7060
 
6716
7061
  /**
6717
- * Add account to list of non-dustable account. Account whihc are excluded from udsting.
6718
- * If such account should be dusted - `AccountBlacklisted` error is returned.
7062
+ * Add account to list of whitelist accounts. Account which are excluded from dusting.
7063
+ * If such account should be dusted - `AccountWhitelisted` error is returned.
6719
7064
  * Only root can perform this action.
6720
7065
  *
7066
+ * Emits `Added` event when successful.
7067
+ *
7068
+ *
6721
7069
  * @param {AccountId32Like} account
6722
7070
  **/
6723
- addNondustableAccount: GenericTxCall<
7071
+ whitelistAccount: GenericTxCall<
6724
7072
  (account: AccountId32Like) => ChainSubmittableExtrinsic<
6725
7073
  {
6726
7074
  pallet: 'Duster';
6727
7075
  palletCall: {
6728
- name: 'AddNondustableAccount';
7076
+ name: 'WhitelistAccount';
6729
7077
  params: { account: AccountId32Like };
6730
7078
  };
6731
7079
  },
@@ -6734,16 +7082,19 @@ export interface ChainTx<
6734
7082
  >;
6735
7083
 
6736
7084
  /**
6737
- * Remove account from list of non-dustable accounts. That means account can be dusted again.
7085
+ * Remove account from list of whitelist accounts. That means account can be dusted again.
7086
+ *
7087
+ * Emits `Removed` event when successful.
7088
+ *
6738
7089
  *
6739
7090
  * @param {AccountId32Like} account
6740
7091
  **/
6741
- removeNondustableAccount: GenericTxCall<
7092
+ removeFromWhitelist: GenericTxCall<
6742
7093
  (account: AccountId32Like) => ChainSubmittableExtrinsic<
6743
7094
  {
6744
7095
  pallet: 'Duster';
6745
7096
  palletCall: {
6746
- name: 'RemoveNondustableAccount';
7097
+ name: 'RemoveFromWhitelist';
6747
7098
  params: { account: AccountId32Like };
6748
7099
  };
6749
7100
  },
@@ -7481,7 +7832,7 @@ export interface ChainTx<
7481
7832
  * @param {number} assetOut
7482
7833
  * @param {bigint} amountIn
7483
7834
  * @param {bigint} minAmountOut
7484
- * @param {Array<HydradxTraitsRouterTrade>} route
7835
+ * @param {Array<BasiliskTraitsRouterTrade>} route
7485
7836
  **/
7486
7837
  sell: GenericTxCall<
7487
7838
  (
@@ -7489,7 +7840,7 @@ export interface ChainTx<
7489
7840
  assetOut: number,
7490
7841
  amountIn: bigint,
7491
7842
  minAmountOut: bigint,
7492
- route: Array<HydradxTraitsRouterTrade>,
7843
+ route: Array<BasiliskTraitsRouterTrade>,
7493
7844
  ) => ChainSubmittableExtrinsic<
7494
7845
  {
7495
7846
  pallet: 'Router';
@@ -7500,7 +7851,7 @@ export interface ChainTx<
7500
7851
  assetOut: number;
7501
7852
  amountIn: bigint;
7502
7853
  minAmountOut: bigint;
7503
- route: Array<HydradxTraitsRouterTrade>;
7854
+ route: Array<BasiliskTraitsRouterTrade>;
7504
7855
  };
7505
7856
  };
7506
7857
  },
@@ -7527,7 +7878,7 @@ export interface ChainTx<
7527
7878
  * @param {number} assetOut
7528
7879
  * @param {bigint} amountOut
7529
7880
  * @param {bigint} maxAmountIn
7530
- * @param {Array<HydradxTraitsRouterTrade>} route
7881
+ * @param {Array<BasiliskTraitsRouterTrade>} route
7531
7882
  **/
7532
7883
  buy: GenericTxCall<
7533
7884
  (
@@ -7535,7 +7886,7 @@ export interface ChainTx<
7535
7886
  assetOut: number,
7536
7887
  amountOut: bigint,
7537
7888
  maxAmountIn: bigint,
7538
- route: Array<HydradxTraitsRouterTrade>,
7889
+ route: Array<BasiliskTraitsRouterTrade>,
7539
7890
  ) => ChainSubmittableExtrinsic<
7540
7891
  {
7541
7892
  pallet: 'Router';
@@ -7546,7 +7897,7 @@ export interface ChainTx<
7546
7897
  assetOut: number;
7547
7898
  amountOut: bigint;
7548
7899
  maxAmountIn: bigint;
7549
- route: Array<HydradxTraitsRouterTrade>;
7900
+ route: Array<BasiliskTraitsRouterTrade>;
7550
7901
  };
7551
7902
  };
7552
7903
  },
@@ -7577,19 +7928,19 @@ export interface ChainTx<
7577
7928
  * Fails with `RouteUpdateIsNotSuccessful` error when failed to set the route
7578
7929
  *
7579
7930
  *
7580
- * @param {HydradxTraitsRouterAssetPair} assetPair
7581
- * @param {Array<HydradxTraitsRouterTrade>} newRoute
7931
+ * @param {BasiliskTraitsRouterAssetPair} assetPair
7932
+ * @param {Array<BasiliskTraitsRouterTrade>} newRoute
7582
7933
  **/
7583
7934
  setRoute: GenericTxCall<
7584
7935
  (
7585
- assetPair: HydradxTraitsRouterAssetPair,
7586
- newRoute: Array<HydradxTraitsRouterTrade>,
7936
+ assetPair: BasiliskTraitsRouterAssetPair,
7937
+ newRoute: Array<BasiliskTraitsRouterTrade>,
7587
7938
  ) => ChainSubmittableExtrinsic<
7588
7939
  {
7589
7940
  pallet: 'Router';
7590
7941
  palletCall: {
7591
7942
  name: 'SetRoute';
7592
- params: { assetPair: HydradxTraitsRouterAssetPair; newRoute: Array<HydradxTraitsRouterTrade> };
7943
+ params: { assetPair: BasiliskTraitsRouterAssetPair; newRoute: Array<BasiliskTraitsRouterTrade> };
7593
7944
  };
7594
7945
  },
7595
7946
  ChainKnownTypes
@@ -7612,19 +7963,19 @@ export interface ChainTx<
7612
7963
  * Emits `RouteUpdated` when successful.
7613
7964
  *
7614
7965
  *
7615
- * @param {HydradxTraitsRouterAssetPair} assetPair
7616
- * @param {Array<HydradxTraitsRouterTrade>} newRoute
7966
+ * @param {BasiliskTraitsRouterAssetPair} assetPair
7967
+ * @param {Array<BasiliskTraitsRouterTrade>} newRoute
7617
7968
  **/
7618
7969
  forceInsertRoute: GenericTxCall<
7619
7970
  (
7620
- assetPair: HydradxTraitsRouterAssetPair,
7621
- newRoute: Array<HydradxTraitsRouterTrade>,
7971
+ assetPair: BasiliskTraitsRouterAssetPair,
7972
+ newRoute: Array<BasiliskTraitsRouterTrade>,
7622
7973
  ) => ChainSubmittableExtrinsic<
7623
7974
  {
7624
7975
  pallet: 'Router';
7625
7976
  palletCall: {
7626
7977
  name: 'ForceInsertRoute';
7627
- params: { assetPair: HydradxTraitsRouterAssetPair; newRoute: Array<HydradxTraitsRouterTrade> };
7978
+ params: { assetPair: BasiliskTraitsRouterAssetPair; newRoute: Array<BasiliskTraitsRouterTrade> };
7628
7979
  };
7629
7980
  },
7630
7981
  ChainKnownTypes
@@ -7650,20 +8001,25 @@ export interface ChainTx<
7650
8001
  * @param {number} assetIn
7651
8002
  * @param {number} assetOut
7652
8003
  * @param {bigint} minAmountOut
7653
- * @param {Array<HydradxTraitsRouterTrade>} route
8004
+ * @param {Array<BasiliskTraitsRouterTrade>} route
7654
8005
  **/
7655
8006
  sellAll: GenericTxCall<
7656
8007
  (
7657
8008
  assetIn: number,
7658
8009
  assetOut: number,
7659
8010
  minAmountOut: bigint,
7660
- route: Array<HydradxTraitsRouterTrade>,
8011
+ route: Array<BasiliskTraitsRouterTrade>,
7661
8012
  ) => ChainSubmittableExtrinsic<
7662
8013
  {
7663
8014
  pallet: 'Router';
7664
8015
  palletCall: {
7665
8016
  name: 'SellAll';
7666
- params: { assetIn: number; assetOut: number; minAmountOut: bigint; route: Array<HydradxTraitsRouterTrade> };
8017
+ params: {
8018
+ assetIn: number;
8019
+ assetOut: number;
8020
+ minAmountOut: bigint;
8021
+ route: Array<BasiliskTraitsRouterTrade>;
8022
+ };
7667
8023
  };
7668
8024
  },
7669
8025
  ChainKnownTypes
@@ -8346,7 +8702,7 @@ export interface ChainTx<
8346
8702
  *
8347
8703
  * - `dest`: The recipient of the transfer.
8348
8704
  * - `currency_id`: currency type.
8349
- * - `amount`: free balance amount to tranfer.
8705
+ * - `amount`: free balance amount to transfer.
8350
8706
  *
8351
8707
  * @param {AccountId32Like} dest
8352
8708
  * @param {number} currencyId
@@ -8422,7 +8778,7 @@ export interface ChainTx<
8422
8778
  *
8423
8779
  * - `dest`: The recipient of the transfer.
8424
8780
  * - `currency_id`: currency type.
8425
- * - `amount`: free balance amount to tranfer.
8781
+ * - `amount`: free balance amount to transfer.
8426
8782
  *
8427
8783
  * @param {AccountId32Like} dest
8428
8784
  * @param {number} currencyId
@@ -8454,7 +8810,7 @@ export interface ChainTx<
8454
8810
  * - `source`: The sender of the transfer.
8455
8811
  * - `dest`: The recipient of the transfer.
8456
8812
  * - `currency_id`: currency type.
8457
- * - `amount`: free balance amount to tranfer.
8813
+ * - `amount`: free balance amount to transfer.
8458
8814
  *
8459
8815
  * @param {AccountId32Like} source
8460
8816
  * @param {AccountId32Like} dest