@dedot/chaintypes 0.156.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/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,