@dedot/chaintypes 0.157.0 → 0.158.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.157.0",
3
+ "version": "0.158.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -25,7 +25,7 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "3d38b8409ae6732b39a370e0966f8e75dea5f5c3",
28
+ "gitHead": "a7b33a3101f7bf42e597ac0678afe7e012e70c4b",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -301,6 +301,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
301
301
  **/
302
302
  maxExposurePageSize: number;
303
303
 
304
+ /**
305
+ * The absolute maximum of winner validators this pallet should return.
306
+ **/
307
+ maxValidatorSet: number;
308
+
304
309
  /**
305
310
  * The maximum number of `unlocking` chunks a [`StakingLedger`] can
306
311
  * have. Effectively determines how many unique eras a staker may be
@@ -342,6 +347,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
342
347
  * Pallet `Session`'s constants
343
348
  **/
344
349
  session: {
350
+ /**
351
+ * The amount to be held when setting keys.
352
+ **/
353
+ keyDeposit: bigint;
354
+
345
355
  /**
346
356
  * Generic pallet constant
347
357
  **/
@@ -781,12 +791,18 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
781
791
  signedDepositWeight: bigint;
782
792
 
783
793
  /**
784
- * The maximum number of winners that can be elected by this `ElectionProvider`
785
- * implementation.
794
+ * Maximum number of winners that an election supports.
786
795
  *
787
796
  * Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
788
797
  **/
789
798
  maxWinners: number;
799
+
800
+ /**
801
+ * Maximum number of voters that can support a winner in an election solution.
802
+ *
803
+ * This is needed to ensure election computation is bounded.
804
+ **/
805
+ maxBackersPerWinner: number;
790
806
  minerMaxLength: number;
791
807
  minerMaxWeight: SpWeightsWeightV2Weight;
792
808
  minerMaxVotesPerVoter: number;
@@ -848,6 +864,14 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
848
864
  **/
849
865
  bagThresholds: Array<bigint>;
850
866
 
867
+ /**
868
+ * Maximum number of accounts that may be re-bagged automatically in `on_idle`.
869
+ *
870
+ * A value of `0` (obtained by configuring `type MaxAutoRebagPerBlock = ();`) disables
871
+ * the feature.
872
+ **/
873
+ maxAutoRebagPerBlock: number;
874
+
851
875
  /**
852
876
  * Generic pallet constant
853
877
  **/
@@ -1220,12 +1244,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1220
1244
  * Pallet `XcmPallet`'s constants
1221
1245
  **/
1222
1246
  xcmPallet: {
1247
+ /**
1248
+ * This chain's Universal Location.
1249
+ **/
1250
+ universalLocation: StagingXcmV5Junctions;
1251
+
1223
1252
  /**
1224
1253
  * The latest supported version that we advertise. Generally just set it to
1225
1254
  * `pallet_xcm::CurrentXcmVersion`.
1226
1255
  **/
1227
1256
  advertisedXcmVersion: number;
1228
1257
 
1258
+ /**
1259
+ * The maximum number of local XCM locks that a single account may have.
1260
+ **/
1261
+ maxLockers: number;
1262
+
1263
+ /**
1264
+ * The maximum number of consumers a single remote lock may have.
1265
+ **/
1266
+ maxRemoteLockConsumers: number;
1267
+
1229
1268
  /**
1230
1269
  * Generic pallet constant
1231
1270
  **/
@@ -1066,6 +1066,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1066
1066
  **/
1067
1067
  TooManyQueued: GenericPalletError<Rv>;
1068
1068
 
1069
+ /**
1070
+ * User is not the proposer of the bounty.
1071
+ **/
1072
+ NotProposer: GenericPalletError<Rv>;
1073
+
1069
1074
  /**
1070
1075
  * Generic pallet error
1071
1076
  **/
@@ -1188,6 +1193,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1188
1193
  **/
1189
1194
  List: GenericPalletError<Rv>;
1190
1195
 
1196
+ /**
1197
+ * Could not update a node, because the pallet is locked.
1198
+ **/
1199
+ Locked: GenericPalletError<Rv>;
1200
+
1191
1201
  /**
1192
1202
  * Generic pallet error
1193
1203
  **/
@@ -1726,6 +1736,21 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1726
1736
  **/
1727
1737
  InvalidCode: GenericPalletError<Rv>;
1728
1738
 
1739
+ /**
1740
+ * No upgrade authorized.
1741
+ **/
1742
+ NothingAuthorized: GenericPalletError<Rv>;
1743
+
1744
+ /**
1745
+ * The submitted code is not authorized.
1746
+ **/
1747
+ Unauthorized: GenericPalletError<Rv>;
1748
+
1749
+ /**
1750
+ * Invalid block number.
1751
+ **/
1752
+ InvalidBlockNumber: GenericPalletError<Rv>;
1753
+
1729
1754
  /**
1730
1755
  * Generic pallet error
1731
1756
  **/
@@ -2444,6 +2469,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2444
2469
 
2445
2470
  /**
2446
2471
  * Too many locations authorized to alias origin.
2472
+ *
2473
+ * @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
2447
2474
  **/
2448
2475
  TooManyAuthorizedAliases: GenericPalletError<Rv>;
2449
2476
 
@@ -2457,6 +2484,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2457
2484
  **/
2458
2485
  AliasNotFound: GenericPalletError<Rv>;
2459
2486
 
2487
+ /**
2488
+ * Local XCM execution incomplete with the actual XCM error and the index of the
2489
+ * instruction that caused the error.
2490
+ **/
2491
+ LocalExecutionIncompleteWithError: GenericPalletError<Rv>;
2492
+
2460
2493
  /**
2461
2494
  * Generic pallet error
2462
2495
  **/
@@ -15,6 +15,7 @@ import type {
15
15
  import type {
16
16
  FrameSystemDispatchEventInfo,
17
17
  FrameSupportTokensMiscBalanceStatus,
18
+ PalletBalancesUnexpectedKind,
18
19
  PalletStakingRewardDestination,
19
20
  PalletStakingValidatorPrefs,
20
21
  PalletStakingForcing,
@@ -400,6 +401,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
400
401
  **/
401
402
  TotalIssuanceForced: GenericPalletEvent<Rv, 'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
402
403
 
404
+ /**
405
+ * An unexpected/defensive event was triggered.
406
+ **/
407
+ Unexpected: GenericPalletEvent<Rv, 'Balances', 'Unexpected', PalletBalancesUnexpectedKind>;
408
+
403
409
  /**
404
410
  * Generic pallet event
405
411
  **/
@@ -588,6 +594,25 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
588
594
  **/
589
595
  [prop: string]: GenericPalletEvent<Rv>;
590
596
  };
597
+ /**
598
+ * Pallet `Historical`'s events
599
+ **/
600
+ historical: {
601
+ /**
602
+ * The merkle root of the validators of the said session were stored
603
+ **/
604
+ RootStored: GenericPalletEvent<Rv, 'Historical', 'RootStored', { index: number }>;
605
+
606
+ /**
607
+ * The merkle roots of up to this session index were pruned
608
+ **/
609
+ RootsPruned: GenericPalletEvent<Rv, 'Historical', 'RootsPruned', { upTo: number }>;
610
+
611
+ /**
612
+ * Generic pallet event
613
+ **/
614
+ [prop: string]: GenericPalletEvent<Rv>;
615
+ };
591
616
  /**
592
617
  * Pallet `Session`'s events
593
618
  **/
@@ -598,6 +623,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
598
623
  **/
599
624
  NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
600
625
 
626
+ /**
627
+ * The `NewSession` event in the current block also implies a new validator set to be
628
+ * queued.
629
+ **/
630
+ NewQueued: GenericPalletEvent<Rv, 'Session', 'NewQueued', null>;
631
+
601
632
  /**
602
633
  * Validator has been disabled.
603
634
  **/
@@ -1160,6 +1191,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1160
1191
  * Pallet `Vesting`'s events
1161
1192
  **/
1162
1193
  vesting: {
1194
+ /**
1195
+ * A vesting schedule has been created.
1196
+ **/
1197
+ VestingCreated: GenericPalletEvent<
1198
+ Rv,
1199
+ 'Vesting',
1200
+ 'VestingCreated',
1201
+ { account: AccountId32; scheduleIndex: number }
1202
+ >;
1203
+
1163
1204
  /**
1164
1205
  * The amount vested has been updated. This could indicate a change in funds available.
1165
1206
  * The balance given is the amount which is left unvested (and thus locked).
@@ -1251,6 +1292,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1251
1292
  }
1252
1293
  >;
1253
1294
 
1295
+ /**
1296
+ * A pure proxy was killed by its spawner.
1297
+ **/
1298
+ PureKilled: GenericPalletEvent<
1299
+ Rv,
1300
+ 'Proxy',
1301
+ 'PureKilled',
1302
+ {
1303
+ pure: AccountId32;
1304
+ spawner: AccountId32;
1305
+ proxyType: PolkadotRuntimeConstantsProxyProxyType;
1306
+ disambiguationIndex: number;
1307
+ }
1308
+ >;
1309
+
1254
1310
  /**
1255
1311
  * An announcement was placed to make a call in the future.
1256
1312
  **/
@@ -1430,6 +1486,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1430
1486
  **/
1431
1487
  CuratorAccepted: GenericPalletEvent<Rv, 'Bounties', 'CuratorAccepted', { bountyId: number; curator: AccountId32 }>;
1432
1488
 
1489
+ /**
1490
+ * A bounty deposit has been poked.
1491
+ **/
1492
+ DepositPoked: GenericPalletEvent<
1493
+ Rv,
1494
+ 'Bounties',
1495
+ 'DepositPoked',
1496
+ { bountyId: number; proposer: AccountId32; oldDeposit: bigint; newDeposit: bigint }
1497
+ >;
1498
+
1433
1499
  /**
1434
1500
  * Generic pallet event
1435
1501
  **/
@@ -2032,6 +2098,46 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2032
2098
  [PolkadotParachainPrimitivesPrimitivesValidationCodeHash, PolkadotParachainPrimitivesPrimitivesId]
2033
2099
  >;
2034
2100
 
2101
+ /**
2102
+ * The upgrade cooldown was removed.
2103
+ **/
2104
+ UpgradeCooldownRemoved: GenericPalletEvent<
2105
+ Rv,
2106
+ 'Paras',
2107
+ 'UpgradeCooldownRemoved',
2108
+ {
2109
+ /**
2110
+ * The parachain for which the cooldown got removed.
2111
+ **/
2112
+ paraId: PolkadotParachainPrimitivesPrimitivesId;
2113
+ }
2114
+ >;
2115
+
2116
+ /**
2117
+ * A new code hash has been authorized for a Para.
2118
+ **/
2119
+ CodeAuthorized: GenericPalletEvent<
2120
+ Rv,
2121
+ 'Paras',
2122
+ 'CodeAuthorized',
2123
+ {
2124
+ /**
2125
+ * Para
2126
+ **/
2127
+ paraId: PolkadotParachainPrimitivesPrimitivesId;
2128
+
2129
+ /**
2130
+ * Authorized code hash.
2131
+ **/
2132
+ codeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash;
2133
+
2134
+ /**
2135
+ * Block at which authorization expires and will be removed.
2136
+ **/
2137
+ expireAt: number;
2138
+ }
2139
+ >;
2140
+
2035
2141
  /**
2036
2142
  * Generic pallet event
2037
2143
  **/
@@ -60,7 +60,7 @@ export interface VersionedPolkadotApi<Rv extends RpcVersion> extends GenericSubs
60
60
 
61
61
  /**
62
62
  * @name: PolkadotApi
63
- * @specVersion: 1006002
63
+ * @specVersion: 1007001
64
64
  **/
65
65
  export interface PolkadotApi {
66
66
  legacy: VersionedPolkadotApi<RpcLegacy>;
@@ -102,6 +102,7 @@ import type {
102
102
  PolkadotRuntimeParachainsParasParaLifecycle,
103
103
  PolkadotParachainPrimitivesPrimitivesHeadData,
104
104
  PolkadotRuntimeParachainsParasParaPastCodeMeta,
105
+ PolkadotRuntimeParachainsParasAuthorizedCodeHashAndExpiry,
105
106
  PolkadotPrimitivesV8UpgradeGoAhead,
106
107
  PolkadotPrimitivesV8UpgradeRestriction,
107
108
  PolkadotRuntimeParachainsParasParaGenesisArgs,
@@ -367,6 +368,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
367
368
  *
368
369
  * @param {H256} arg
369
370
  * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
371
+ *
372
+ * @deprecated RequestStatusFor
370
373
  **/
371
374
  statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
372
375
 
@@ -2001,6 +2004,24 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2001
2004
  **/
2002
2005
  listBags: GenericStorageQuery<Rv, (arg: bigint) => PalletBagsListListBag | undefined, bigint>;
2003
2006
 
2007
+ /**
2008
+ * Pointer that remembers the next node that will be auto-rebagged.
2009
+ * When `None`, the next scan will start from the list head again.
2010
+ *
2011
+ * @param {Callback<AccountId32 | undefined> =} callback
2012
+ **/
2013
+ nextNodeAutoRebagged: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
2014
+
2015
+ /**
2016
+ * Lock all updates to this pallet.
2017
+ *
2018
+ * If any nodes needs updating, removal or addition due to a temporary lock, the
2019
+ * [`Call::rebag`] can be used.
2020
+ *
2021
+ * @param {Callback<[] | undefined> =} callback
2022
+ **/
2023
+ lock: GenericStorageQuery<Rv, () => [] | undefined>;
2024
+
2004
2025
  /**
2005
2026
  * Generic pallet storage query
2006
2027
  **/
@@ -2656,6 +2677,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2656
2677
  PolkadotParachainPrimitivesPrimitivesId
2657
2678
  >;
2658
2679
 
2680
+ /**
2681
+ * The code hash authorizations for a para which will expire `expire_at` `BlockNumberFor<T>`.
2682
+ *
2683
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2684
+ * @param {Callback<PolkadotRuntimeParachainsParasAuthorizedCodeHashAndExpiry | undefined> =} callback
2685
+ **/
2686
+ authorizedCodeHash: GenericStorageQuery<
2687
+ Rv,
2688
+ (
2689
+ arg: PolkadotParachainPrimitivesPrimitivesId,
2690
+ ) => PolkadotRuntimeParachainsParasAuthorizedCodeHashAndExpiry | undefined,
2691
+ PolkadotParachainPrimitivesPrimitivesId
2692
+ >;
2693
+
2659
2694
  /**
2660
2695
  * This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade
2661
2696
  * procedure.
package/polkadot/tx.d.ts CHANGED
@@ -1440,6 +1440,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1440
1440
  * period ends. If this leaves an amount actively bonded less than
1441
1441
  * [`asset::existential_deposit`], then it is increased to the full amount.
1442
1442
  *
1443
+ * The stash may be chilled if the ledger total amount falls to 0 after unbonding.
1444
+ *
1443
1445
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
1444
1446
  *
1445
1447
  * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
@@ -1865,6 +1867,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1865
1867
  * Can be called by the `T::AdminOrigin`.
1866
1868
  *
1867
1869
  * Parameters: era and indices of the slashes for that era to kill.
1870
+ * They **must** be sorted in ascending order, *and* unique.
1868
1871
  *
1869
1872
  * @param {number} era
1870
1873
  * @param {Array<number>} slashIndices
@@ -2695,6 +2698,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2695
2698
  * Emits [`Event::Paid`] if successful.
2696
2699
  *
2697
2700
  * @param {number} index
2701
+ *
2702
+ * @deprecated The `spend_local` call will be removed by May 2025. Migrate to the new flow and use the `spend` call.
2698
2703
  **/
2699
2704
  payout: GenericTxCall<
2700
2705
  Rv,
@@ -2732,6 +2737,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2732
2737
  * Emits [`Event::SpendProcessed`] if the spend payout has succeed.
2733
2738
  *
2734
2739
  * @param {number} index
2740
+ *
2741
+ * @deprecated The `remove_approval` call will be removed by May 2025. It associated with the deprecated `spend_local` call.
2735
2742
  **/
2736
2743
  checkStatus: GenericTxCall<
2737
2744
  Rv,
@@ -4173,7 +4180,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4173
4180
  *
4174
4181
  * The dispatch origin for this call must be _Signed_.
4175
4182
  *
4176
- * WARNING: This may be called on accounts created by `pure`, however if done, then
4183
+ * WARNING: This may be called on accounts created by `create_pure`, however if done, then
4177
4184
  * the unreserved fees will be inaccessible. **All access to this account will be lost.**
4178
4185
  *
4179
4186
  **/
@@ -4239,16 +4246,16 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4239
4246
  * inaccessible.
4240
4247
  *
4241
4248
  * Requires a `Signed` origin, and the sender account must have been created by a call to
4242
- * `pure` with corresponding parameters.
4249
+ * `create_pure` with corresponding parameters.
4243
4250
  *
4244
- * - `spawner`: The account that originally called `pure` to create this account.
4245
- * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
4246
- * - `proxy_type`: The proxy type originally passed to `pure`.
4247
- * - `height`: The height of the chain when the call to `pure` was processed.
4248
- * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
4251
+ * - `spawner`: The account that originally called `create_pure` to create this account.
4252
+ * - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
4253
+ * - `proxy_type`: The proxy type originally passed to `create_pure`.
4254
+ * - `height`: The height of the chain when the call to `create_pure` was processed.
4255
+ * - `ext_index`: The extrinsic index in which the call to `create_pure` was processed.
4249
4256
  *
4250
4257
  * Fails with `NoPermission` in case the caller is not a previously created pure
4251
- * account whose `pure` call has corresponding parameters.
4258
+ * account whose `create_pure` call has corresponding parameters.
4252
4259
  *
4253
4260
  * @param {MultiAddressLike} spawner
4254
4261
  * @param {PolkadotRuntimeConstantsProxyProxyType} proxyType
@@ -5027,6 +5034,39 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5027
5034
  >
5028
5035
  >;
5029
5036
 
5037
+ /**
5038
+ * Poke the deposit reserved for creating a bounty proposal.
5039
+ *
5040
+ * This can be used by accounts to update their reserved amount.
5041
+ *
5042
+ * The dispatch origin for this call must be _Signed_.
5043
+ *
5044
+ * Parameters:
5045
+ * - `bounty_id`: The bounty id for which to adjust the deposit.
5046
+ *
5047
+ * If the deposit is updated, the difference will be reserved/unreserved from the
5048
+ * proposer's account.
5049
+ *
5050
+ * The transaction is made free if the deposit is updated and paid otherwise.
5051
+ *
5052
+ * Emits `DepositPoked` if the deposit is updated.
5053
+ *
5054
+ * @param {number} bountyId
5055
+ **/
5056
+ pokeDeposit: GenericTxCall<
5057
+ Rv,
5058
+ (bountyId: number) => ChainSubmittableExtrinsic<
5059
+ Rv,
5060
+ {
5061
+ pallet: 'Bounties';
5062
+ palletCall: {
5063
+ name: 'PokeDeposit';
5064
+ params: { bountyId: number };
5065
+ };
5066
+ }
5067
+ >
5068
+ >;
5069
+
5030
5070
  /**
5031
5071
  * Generic pallet tx call
5032
5072
  **/
@@ -5470,21 +5510,15 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5470
5510
  * This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
5471
5511
  * calling [`Call::set_emergency_election_result`].
5472
5512
  *
5473
- * @param {number | undefined} maybeMaxVoters
5474
- * @param {number | undefined} maybeMaxTargets
5475
5513
  **/
5476
5514
  governanceFallback: GenericTxCall<
5477
5515
  Rv,
5478
- (
5479
- maybeMaxVoters: number | undefined,
5480
- maybeMaxTargets: number | undefined,
5481
- ) => ChainSubmittableExtrinsic<
5516
+ () => ChainSubmittableExtrinsic<
5482
5517
  Rv,
5483
5518
  {
5484
5519
  pallet: 'ElectionProviderMultiPhase';
5485
5520
  palletCall: {
5486
5521
  name: 'GovernanceFallback';
5487
- params: { maybeMaxVoters: number | undefined; maybeMaxTargets: number | undefined };
5488
5522
  };
5489
5523
  }
5490
5524
  >
@@ -7722,6 +7756,94 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7722
7756
  >
7723
7757
  >;
7724
7758
 
7759
+ /**
7760
+ * Remove an upgrade cooldown for a parachain.
7761
+ *
7762
+ * The cost for removing the cooldown earlier depends on the time left for the cooldown
7763
+ * multiplied by [`Config::CooldownRemovalMultiplier`]. The paid tokens are burned.
7764
+ *
7765
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para
7766
+ **/
7767
+ removeUpgradeCooldown: GenericTxCall<
7768
+ Rv,
7769
+ (para: PolkadotParachainPrimitivesPrimitivesId) => ChainSubmittableExtrinsic<
7770
+ Rv,
7771
+ {
7772
+ pallet: 'Paras';
7773
+ palletCall: {
7774
+ name: 'RemoveUpgradeCooldown';
7775
+ params: { para: PolkadotParachainPrimitivesPrimitivesId };
7776
+ };
7777
+ }
7778
+ >
7779
+ >;
7780
+
7781
+ /**
7782
+ * Sets the storage for the authorized current code hash of the parachain.
7783
+ * If not applied, it will be removed at the `System::block_number() + valid_period` block.
7784
+ *
7785
+ * This can be useful, when triggering `Paras::force_set_current_code(para, code)`
7786
+ * from a different chain than the one where the `Paras` pallet is deployed.
7787
+ *
7788
+ * The main purpose is to avoid transferring the entire `code` Wasm blob between chains.
7789
+ * Instead, we authorize `code_hash` with `root`, which can later be applied by
7790
+ * `Paras::apply_authorized_force_set_current_code(para, code)` by anyone.
7791
+ *
7792
+ * Authorizations are stored in an **overwriting manner**.
7793
+ *
7794
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para
7795
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} newCodeHash
7796
+ * @param {number} validPeriod
7797
+ **/
7798
+ authorizeForceSetCurrentCodeHash: GenericTxCall<
7799
+ Rv,
7800
+ (
7801
+ para: PolkadotParachainPrimitivesPrimitivesId,
7802
+ newCodeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
7803
+ validPeriod: number,
7804
+ ) => ChainSubmittableExtrinsic<
7805
+ Rv,
7806
+ {
7807
+ pallet: 'Paras';
7808
+ palletCall: {
7809
+ name: 'AuthorizeForceSetCurrentCodeHash';
7810
+ params: {
7811
+ para: PolkadotParachainPrimitivesPrimitivesId;
7812
+ newCodeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash;
7813
+ validPeriod: number;
7814
+ };
7815
+ };
7816
+ }
7817
+ >
7818
+ >;
7819
+
7820
+ /**
7821
+ * Applies the already authorized current code for the parachain,
7822
+ * triggering the same functionality as `force_set_current_code`.
7823
+ *
7824
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para
7825
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCode} newCode
7826
+ **/
7827
+ applyAuthorizedForceSetCurrentCode: GenericTxCall<
7828
+ Rv,
7829
+ (
7830
+ para: PolkadotParachainPrimitivesPrimitivesId,
7831
+ newCode: PolkadotParachainPrimitivesPrimitivesValidationCode,
7832
+ ) => ChainSubmittableExtrinsic<
7833
+ Rv,
7834
+ {
7835
+ pallet: 'Paras';
7836
+ palletCall: {
7837
+ name: 'ApplyAuthorizedForceSetCurrentCode';
7838
+ params: {
7839
+ para: PolkadotParachainPrimitivesPrimitivesId;
7840
+ newCode: PolkadotParachainPrimitivesPrimitivesValidationCode;
7841
+ };
7842
+ };
7843
+ }
7844
+ >
7845
+ >;
7846
+
7725
7847
  /**
7726
7848
  * Generic pallet tx call
7727
7849
  **/
@@ -8172,6 +8294,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8172
8294
  *
8173
8295
  * @param {bigint} maxAmount
8174
8296
  * @param {PolkadotParachainPrimitivesPrimitivesId} paraId
8297
+ *
8298
+ * @deprecated This will be removed in favor of using `place_order_with_credits`
8175
8299
  **/
8176
8300
  placeOrderAllowDeath: GenericTxCall<
8177
8301
  Rv,
@@ -8209,6 +8333,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8209
8333
  *
8210
8334
  * @param {bigint} maxAmount
8211
8335
  * @param {PolkadotParachainPrimitivesPrimitivesId} paraId
8336
+ *
8337
+ * @deprecated This will be removed in favor of using `place_order_with_credits`
8212
8338
  **/
8213
8339
  placeOrderKeepAlive: GenericTxCall<
8214
8340
  Rv,
@@ -9394,6 +9520,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9394
9520
  * @param {XcmVersionedLocation} beneficiary
9395
9521
  * @param {XcmVersionedAssets} assets
9396
9522
  * @param {number} feeAssetItem
9523
+ *
9524
+ * @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
9397
9525
  **/
9398
9526
  teleportAssets: GenericTxCall<
9399
9527
  Rv,
@@ -9455,6 +9583,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9455
9583
  * @param {XcmVersionedLocation} beneficiary
9456
9584
  * @param {XcmVersionedAssets} assets
9457
9585
  * @param {number} feeAssetItem
9586
+ *
9587
+ * @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
9458
9588
  **/
9459
9589
  reserveTransferAssets: GenericTxCall<
9460
9590
  Rv,