@dedot/chaintypes 0.231.0 → 0.232.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/paseo/tx.d.ts CHANGED
@@ -64,19 +64,19 @@ import type {
64
64
  PalletNominationPoolsClaimPermission,
65
65
  PalletNominationPoolsCommissionChangeRate,
66
66
  PalletNominationPoolsCommissionClaimPermission,
67
- PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
68
- PolkadotPrimitivesV7ExecutorParams,
69
- PolkadotPrimitivesV7ApprovalVotingParams,
70
- PolkadotPrimitivesVstagingSchedulerParams,
71
- PolkadotPrimitivesV7InherentData,
67
+ PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
68
+ PolkadotPrimitivesV8ExecutorParams,
69
+ PolkadotPrimitivesV8ApprovalVotingParams,
70
+ PolkadotPrimitivesV8SchedulerParams,
71
+ PolkadotPrimitivesV8InherentData,
72
72
  PolkadotParachainPrimitivesPrimitivesId,
73
73
  PolkadotParachainPrimitivesPrimitivesValidationCode,
74
74
  PolkadotParachainPrimitivesPrimitivesHeadData,
75
75
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
76
- PolkadotPrimitivesV7PvfCheckStatement,
77
- PolkadotPrimitivesV7ValidatorAppSignature,
76
+ PolkadotPrimitivesV8PvfCheckStatement,
77
+ PolkadotPrimitivesV8ValidatorAppSignature,
78
78
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
79
- PolkadotPrimitivesV7SlashingDisputeProof,
79
+ PolkadotPrimitivesV8SlashingDisputeProof,
80
80
  SpRuntimeMultiSigner,
81
81
  PalletBrokerCoretimeInterfaceCoreAssignment,
82
82
  PolkadotRuntimeParachainsAssignerCoretimePartsOf57600,
@@ -91,6 +91,8 @@ import type {
91
91
  XcmVersionedAssetId,
92
92
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
93
93
  SpConsensusBeefyDoubleVotingProof,
94
+ SpConsensusBeefyForkVotingProof,
95
+ SpConsensusBeefyFutureBlockVotingProof,
94
96
  PolkadotRuntimeParachainsParasParaGenesisArgs,
95
97
  } from './types.js';
96
98
 
@@ -2189,6 +2191,29 @@ export interface ChainTx<
2189
2191
  >
2190
2192
  >;
2191
2193
 
2194
+ /**
2195
+ * Adjusts the staking ledger by withdrawing any excess staked amount.
2196
+ *
2197
+ * This function corrects cases where a user's recorded stake in the ledger
2198
+ * exceeds their actual staked funds. This situation can arise due to cases such as
2199
+ * external slashing by another pallet, leading to an inconsistency between the ledger
2200
+ * and the actual stake.
2201
+ *
2202
+ * @param {AccountId32Like} stash
2203
+ **/
2204
+ withdrawOverstake: GenericTxCall<
2205
+ (stash: AccountId32Like) => ChainSubmittableExtrinsic<
2206
+ {
2207
+ pallet: 'Staking';
2208
+ palletCall: {
2209
+ name: 'WithdrawOverstake';
2210
+ params: { stash: AccountId32Like };
2211
+ };
2212
+ },
2213
+ ChainKnownTypes
2214
+ >
2215
+ >;
2216
+
2192
2217
  /**
2193
2218
  * Generic pallet tx call
2194
2219
  **/
@@ -5195,8 +5220,14 @@ export interface ChainTx<
5195
5220
  **/
5196
5221
  nominationPools: {
5197
5222
  /**
5198
- * Stake funds with a pool. The amount to bond is transferred from the member to the
5199
- * pools account and immediately increases the pools bond.
5223
+ * Stake funds with a pool. The amount to bond is delegated (or transferred based on
5224
+ * [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
5225
+ * increases the pool's bond.
5226
+ *
5227
+ * The method of transferring the amount to the pool account is determined by
5228
+ * [`adapter::StakeStrategyType`]. If the pool is configured to use
5229
+ * [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
5230
+ * the `origin`, while the pool gains the right to use these funds for staking.
5200
5231
  *
5201
5232
  * # Note
5202
5233
  *
@@ -5910,8 +5941,10 @@ export interface ChainTx<
5910
5941
  * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
5911
5942
  * [`adapter::StakeStrategyType::Delegate`].
5912
5943
  *
5913
- * This call can be dispatched permissionlessly (i.e. by any account). If the member has
5914
- * slash to be applied, caller may be rewarded with the part of the slash.
5944
+ * The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
5945
+ * This call can be dispatched permissionlessly (i.e. by any account). If the execution
5946
+ * is successful, fee is refunded and caller may be rewarded with a part of the slash
5947
+ * based on the [`crate::pallet::Config::StakeAdapter`] configuration.
5915
5948
  *
5916
5949
  * @param {MultiAddressLike} memberAccount
5917
5950
  **/
@@ -6781,15 +6814,15 @@ export interface ChainTx<
6781
6814
  /**
6782
6815
  * Set the asynchronous backing parameters.
6783
6816
  *
6784
- * @param {PolkadotPrimitivesV7AsyncBackingAsyncBackingParams} new_
6817
+ * @param {PolkadotPrimitivesV8AsyncBackingAsyncBackingParams} new_
6785
6818
  **/
6786
6819
  setAsyncBackingParams: GenericTxCall<
6787
- (new_: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
6820
+ (new_: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
6788
6821
  {
6789
6822
  pallet: 'Configuration';
6790
6823
  palletCall: {
6791
6824
  name: 'SetAsyncBackingParams';
6792
- params: { new: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams };
6825
+ params: { new: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams };
6793
6826
  };
6794
6827
  },
6795
6828
  ChainKnownTypes
@@ -6799,15 +6832,15 @@ export interface ChainTx<
6799
6832
  /**
6800
6833
  * Set PVF executor parameters.
6801
6834
  *
6802
- * @param {PolkadotPrimitivesV7ExecutorParams} new_
6835
+ * @param {PolkadotPrimitivesV8ExecutorParams} new_
6803
6836
  **/
6804
6837
  setExecutorParams: GenericTxCall<
6805
- (new_: PolkadotPrimitivesV7ExecutorParams) => ChainSubmittableExtrinsic<
6838
+ (new_: PolkadotPrimitivesV8ExecutorParams) => ChainSubmittableExtrinsic<
6806
6839
  {
6807
6840
  pallet: 'Configuration';
6808
6841
  palletCall: {
6809
6842
  name: 'SetExecutorParams';
6810
- params: { new: PolkadotPrimitivesV7ExecutorParams };
6843
+ params: { new: PolkadotPrimitivesV8ExecutorParams };
6811
6844
  };
6812
6845
  },
6813
6846
  ChainKnownTypes
@@ -6947,15 +6980,15 @@ export interface ChainTx<
6947
6980
  /**
6948
6981
  * Set approval-voting-params.
6949
6982
  *
6950
- * @param {PolkadotPrimitivesV7ApprovalVotingParams} new_
6983
+ * @param {PolkadotPrimitivesV8ApprovalVotingParams} new_
6951
6984
  **/
6952
6985
  setApprovalVotingParams: GenericTxCall<
6953
- (new_: PolkadotPrimitivesV7ApprovalVotingParams) => ChainSubmittableExtrinsic<
6986
+ (new_: PolkadotPrimitivesV8ApprovalVotingParams) => ChainSubmittableExtrinsic<
6954
6987
  {
6955
6988
  pallet: 'Configuration';
6956
6989
  palletCall: {
6957
6990
  name: 'SetApprovalVotingParams';
6958
- params: { new: PolkadotPrimitivesV7ApprovalVotingParams };
6991
+ params: { new: PolkadotPrimitivesV8ApprovalVotingParams };
6959
6992
  };
6960
6993
  },
6961
6994
  ChainKnownTypes
@@ -6965,15 +6998,15 @@ export interface ChainTx<
6965
6998
  /**
6966
6999
  * Set scheduler-params.
6967
7000
  *
6968
- * @param {PolkadotPrimitivesVstagingSchedulerParams} new_
7001
+ * @param {PolkadotPrimitivesV8SchedulerParams} new_
6969
7002
  **/
6970
7003
  setSchedulerParams: GenericTxCall<
6971
- (new_: PolkadotPrimitivesVstagingSchedulerParams) => ChainSubmittableExtrinsic<
7004
+ (new_: PolkadotPrimitivesV8SchedulerParams) => ChainSubmittableExtrinsic<
6972
7005
  {
6973
7006
  pallet: 'Configuration';
6974
7007
  palletCall: {
6975
7008
  name: 'SetSchedulerParams';
6976
- params: { new: PolkadotPrimitivesVstagingSchedulerParams };
7009
+ params: { new: PolkadotPrimitivesV8SchedulerParams };
6977
7010
  };
6978
7011
  },
6979
7012
  ChainKnownTypes
@@ -7010,15 +7043,15 @@ export interface ChainTx<
7010
7043
  /**
7011
7044
  * Enter the paras inherent. This will process bitfields and backed candidates.
7012
7045
  *
7013
- * @param {PolkadotPrimitivesV7InherentData} data
7046
+ * @param {PolkadotPrimitivesV8InherentData} data
7014
7047
  **/
7015
7048
  enter: GenericTxCall<
7016
- (data: PolkadotPrimitivesV7InherentData) => ChainSubmittableExtrinsic<
7049
+ (data: PolkadotPrimitivesV8InherentData) => ChainSubmittableExtrinsic<
7017
7050
  {
7018
7051
  pallet: 'ParaInherent';
7019
7052
  palletCall: {
7020
7053
  name: 'Enter';
7021
- params: { data: PolkadotPrimitivesV7InherentData };
7054
+ params: { data: PolkadotPrimitivesV8InherentData };
7022
7055
  };
7023
7056
  },
7024
7057
  ChainKnownTypes
@@ -7214,21 +7247,21 @@ export interface ChainTx<
7214
7247
  * Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
7215
7248
  * enacts the results if that was the last vote before achieving the supermajority.
7216
7249
  *
7217
- * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
7218
- * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
7250
+ * @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
7251
+ * @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
7219
7252
  **/
7220
7253
  includePvfCheckStatement: GenericTxCall<
7221
7254
  (
7222
- stmt: PolkadotPrimitivesV7PvfCheckStatement,
7223
- signature: PolkadotPrimitivesV7ValidatorAppSignature,
7255
+ stmt: PolkadotPrimitivesV8PvfCheckStatement,
7256
+ signature: PolkadotPrimitivesV8ValidatorAppSignature,
7224
7257
  ) => ChainSubmittableExtrinsic<
7225
7258
  {
7226
7259
  pallet: 'Paras';
7227
7260
  palletCall: {
7228
7261
  name: 'IncludePvfCheckStatement';
7229
7262
  params: {
7230
- stmt: PolkadotPrimitivesV7PvfCheckStatement;
7231
- signature: PolkadotPrimitivesV7ValidatorAppSignature;
7263
+ stmt: PolkadotPrimitivesV8PvfCheckStatement;
7264
+ signature: PolkadotPrimitivesV8ValidatorAppSignature;
7232
7265
  };
7233
7266
  };
7234
7267
  },
@@ -7647,19 +7680,19 @@ export interface ChainTx<
7647
7680
  parasSlashing: {
7648
7681
  /**
7649
7682
  *
7650
- * @param {PolkadotPrimitivesV7SlashingDisputeProof} disputeProof
7683
+ * @param {PolkadotPrimitivesV8SlashingDisputeProof} disputeProof
7651
7684
  * @param {SpSessionMembershipProof} keyOwnerProof
7652
7685
  **/
7653
7686
  reportDisputeLostUnsigned: GenericTxCall<
7654
7687
  (
7655
- disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
7688
+ disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
7656
7689
  keyOwnerProof: SpSessionMembershipProof,
7657
7690
  ) => ChainSubmittableExtrinsic<
7658
7691
  {
7659
7692
  pallet: 'ParasSlashing';
7660
7693
  palletCall: {
7661
7694
  name: 'ReportDisputeLostUnsigned';
7662
- params: { disputeProof: PolkadotPrimitivesV7SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
7695
+ params: { disputeProof: PolkadotPrimitivesV8SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
7663
7696
  };
7664
7697
  },
7665
7698
  ChainKnownTypes
@@ -9512,7 +9545,7 @@ export interface ChainTx<
9512
9545
  * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
9513
9546
  * @param {SpSessionMembershipProof} keyOwnerProof
9514
9547
  **/
9515
- reportEquivocation: GenericTxCall<
9548
+ reportDoubleVoting: GenericTxCall<
9516
9549
  (
9517
9550
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
9518
9551
  keyOwnerProof: SpSessionMembershipProof,
@@ -9520,7 +9553,7 @@ export interface ChainTx<
9520
9553
  {
9521
9554
  pallet: 'Beefy';
9522
9555
  palletCall: {
9523
- name: 'ReportEquivocation';
9556
+ name: 'ReportDoubleVoting';
9524
9557
  params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
9525
9558
  };
9526
9559
  },
@@ -9542,7 +9575,7 @@ export interface ChainTx<
9542
9575
  * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
9543
9576
  * @param {SpSessionMembershipProof} keyOwnerProof
9544
9577
  **/
9545
- reportEquivocationUnsigned: GenericTxCall<
9578
+ reportDoubleVotingUnsigned: GenericTxCall<
9546
9579
  (
9547
9580
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
9548
9581
  keyOwnerProof: SpSessionMembershipProof,
@@ -9550,7 +9583,7 @@ export interface ChainTx<
9550
9583
  {
9551
9584
  pallet: 'Beefy';
9552
9585
  palletCall: {
9553
- name: 'ReportEquivocationUnsigned';
9586
+ name: 'ReportDoubleVotingUnsigned';
9554
9587
  params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
9555
9588
  };
9556
9589
  },
@@ -9579,6 +9612,118 @@ export interface ChainTx<
9579
9612
  >
9580
9613
  >;
9581
9614
 
9615
+ /**
9616
+ * Report fork voting equivocation. This method will verify the equivocation proof
9617
+ * and validate the given key ownership proof against the extracted offender.
9618
+ * If both are valid, the offence will be reported.
9619
+ *
9620
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
9621
+ * @param {SpSessionMembershipProof} keyOwnerProof
9622
+ **/
9623
+ reportForkVoting: GenericTxCall<
9624
+ (
9625
+ equivocationProof: SpConsensusBeefyForkVotingProof,
9626
+ keyOwnerProof: SpSessionMembershipProof,
9627
+ ) => ChainSubmittableExtrinsic<
9628
+ {
9629
+ pallet: 'Beefy';
9630
+ palletCall: {
9631
+ name: 'ReportForkVoting';
9632
+ params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
9633
+ };
9634
+ },
9635
+ ChainKnownTypes
9636
+ >
9637
+ >;
9638
+
9639
+ /**
9640
+ * Report fork voting equivocation. This method will verify the equivocation proof
9641
+ * and validate the given key ownership proof against the extracted offender.
9642
+ * If both are valid, the offence will be reported.
9643
+ *
9644
+ * This extrinsic must be called unsigned and it is expected that only
9645
+ * block authors will call it (validated in `ValidateUnsigned`), as such
9646
+ * if the block author is defined it will be defined as the equivocation
9647
+ * reporter.
9648
+ *
9649
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
9650
+ * @param {SpSessionMembershipProof} keyOwnerProof
9651
+ **/
9652
+ reportForkVotingUnsigned: GenericTxCall<
9653
+ (
9654
+ equivocationProof: SpConsensusBeefyForkVotingProof,
9655
+ keyOwnerProof: SpSessionMembershipProof,
9656
+ ) => ChainSubmittableExtrinsic<
9657
+ {
9658
+ pallet: 'Beefy';
9659
+ palletCall: {
9660
+ name: 'ReportForkVotingUnsigned';
9661
+ params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
9662
+ };
9663
+ },
9664
+ ChainKnownTypes
9665
+ >
9666
+ >;
9667
+
9668
+ /**
9669
+ * Report future block voting equivocation. This method will verify the equivocation proof
9670
+ * and validate the given key ownership proof against the extracted offender.
9671
+ * If both are valid, the offence will be reported.
9672
+ *
9673
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
9674
+ * @param {SpSessionMembershipProof} keyOwnerProof
9675
+ **/
9676
+ reportFutureBlockVoting: GenericTxCall<
9677
+ (
9678
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
9679
+ keyOwnerProof: SpSessionMembershipProof,
9680
+ ) => ChainSubmittableExtrinsic<
9681
+ {
9682
+ pallet: 'Beefy';
9683
+ palletCall: {
9684
+ name: 'ReportFutureBlockVoting';
9685
+ params: {
9686
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
9687
+ keyOwnerProof: SpSessionMembershipProof;
9688
+ };
9689
+ };
9690
+ },
9691
+ ChainKnownTypes
9692
+ >
9693
+ >;
9694
+
9695
+ /**
9696
+ * Report future block voting equivocation. This method will verify the equivocation proof
9697
+ * and validate the given key ownership proof against the extracted offender.
9698
+ * If both are valid, the offence will be reported.
9699
+ *
9700
+ * This extrinsic must be called unsigned and it is expected that only
9701
+ * block authors will call it (validated in `ValidateUnsigned`), as such
9702
+ * if the block author is defined it will be defined as the equivocation
9703
+ * reporter.
9704
+ *
9705
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
9706
+ * @param {SpSessionMembershipProof} keyOwnerProof
9707
+ **/
9708
+ reportFutureBlockVotingUnsigned: GenericTxCall<
9709
+ (
9710
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
9711
+ keyOwnerProof: SpSessionMembershipProof,
9712
+ ) => ChainSubmittableExtrinsic<
9713
+ {
9714
+ pallet: 'Beefy';
9715
+ palletCall: {
9716
+ name: 'ReportFutureBlockVotingUnsigned';
9717
+ params: {
9718
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
9719
+ keyOwnerProof: SpSessionMembershipProof;
9720
+ };
9721
+ };
9722
+ },
9723
+ ChainKnownTypes
9724
+ >
9725
+ >;
9726
+
9582
9727
  /**
9583
9728
  * Generic pallet tx call
9584
9729
  **/