@dedot/chaintypes 0.67.0 → 0.68.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
@@ -66,19 +66,19 @@ import type {
66
66
  PalletNominationPoolsClaimPermission,
67
67
  PalletNominationPoolsCommissionChangeRate,
68
68
  PalletNominationPoolsCommissionClaimPermission,
69
- PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
70
- PolkadotPrimitivesV7ExecutorParams,
71
- PolkadotPrimitivesV7ApprovalVotingParams,
72
- PolkadotPrimitivesVstagingSchedulerParams,
73
- PolkadotPrimitivesV7InherentData,
69
+ PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
70
+ PolkadotPrimitivesV8ExecutorParams,
71
+ PolkadotPrimitivesV8ApprovalVotingParams,
72
+ PolkadotPrimitivesV8SchedulerParams,
73
+ PolkadotPrimitivesV8InherentData,
74
74
  PolkadotParachainPrimitivesPrimitivesId,
75
75
  PolkadotParachainPrimitivesPrimitivesValidationCode,
76
76
  PolkadotParachainPrimitivesPrimitivesHeadData,
77
77
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
78
- PolkadotPrimitivesV7PvfCheckStatement,
79
- PolkadotPrimitivesV7ValidatorAppSignature,
78
+ PolkadotPrimitivesV8PvfCheckStatement,
79
+ PolkadotPrimitivesV8ValidatorAppSignature,
80
80
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
81
- PolkadotPrimitivesV7SlashingDisputeProof,
81
+ PolkadotPrimitivesV8SlashingDisputeProof,
82
82
  SpRuntimeMultiSigner,
83
83
  PalletBrokerCoretimeInterfaceCoreAssignment,
84
84
  PolkadotRuntimeParachainsAssignerCoretimePartsOf57600,
@@ -93,6 +93,8 @@ import type {
93
93
  XcmVersionedAssetId,
94
94
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
95
95
  SpConsensusBeefyDoubleVotingProof,
96
+ SpConsensusBeefyForkVotingProof,
97
+ SpConsensusBeefyFutureBlockVotingProof,
96
98
  PolkadotRuntimeParachainsParasParaGenesisArgs,
97
99
  } from './types';
98
100
 
@@ -2263,6 +2265,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2263
2265
  >
2264
2266
  >;
2265
2267
 
2268
+ /**
2269
+ * Adjusts the staking ledger by withdrawing any excess staked amount.
2270
+ *
2271
+ * This function corrects cases where a user's recorded stake in the ledger
2272
+ * exceeds their actual staked funds. This situation can arise due to cases such as
2273
+ * external slashing by another pallet, leading to an inconsistency between the ledger
2274
+ * and the actual stake.
2275
+ *
2276
+ * @param {AccountId32Like} stash
2277
+ **/
2278
+ withdrawOverstake: GenericTxCall<
2279
+ Rv,
2280
+ (stash: AccountId32Like) => ChainSubmittableExtrinsic<
2281
+ Rv,
2282
+ {
2283
+ pallet: 'Staking';
2284
+ palletCall: {
2285
+ name: 'WithdrawOverstake';
2286
+ params: { stash: AccountId32Like };
2287
+ };
2288
+ }
2289
+ >
2290
+ >;
2291
+
2266
2292
  /**
2267
2293
  * Generic pallet tx call
2268
2294
  **/
@@ -5355,8 +5381,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5355
5381
  **/
5356
5382
  nominationPools: {
5357
5383
  /**
5358
- * Stake funds with a pool. The amount to bond is transferred from the member to the
5359
- * pools account and immediately increases the pools bond.
5384
+ * Stake funds with a pool. The amount to bond is delegated (or transferred based on
5385
+ * [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
5386
+ * increases the pool's bond.
5387
+ *
5388
+ * The method of transferring the amount to the pool account is determined by
5389
+ * [`adapter::StakeStrategyType`]. If the pool is configured to use
5390
+ * [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
5391
+ * the `origin`, while the pool gains the right to use these funds for staking.
5360
5392
  *
5361
5393
  * # Note
5362
5394
  *
@@ -6093,8 +6125,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6093
6125
  * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
6094
6126
  * [`adapter::StakeStrategyType::Delegate`].
6095
6127
  *
6096
- * This call can be dispatched permissionlessly (i.e. by any account). If the member has
6097
- * slash to be applied, caller may be rewarded with the part of the slash.
6128
+ * The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
6129
+ * This call can be dispatched permissionlessly (i.e. by any account). If the execution
6130
+ * is successful, fee is refunded and caller may be rewarded with a part of the slash
6131
+ * based on the [`crate::pallet::Config::StakeAdapter`] configuration.
6098
6132
  *
6099
6133
  * @param {MultiAddressLike} memberAccount
6100
6134
  **/
@@ -7007,17 +7041,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7007
7041
  /**
7008
7042
  * Set the asynchronous backing parameters.
7009
7043
  *
7010
- * @param {PolkadotPrimitivesV7AsyncBackingAsyncBackingParams} new_
7044
+ * @param {PolkadotPrimitivesV8AsyncBackingAsyncBackingParams} new_
7011
7045
  **/
7012
7046
  setAsyncBackingParams: GenericTxCall<
7013
7047
  Rv,
7014
- (new_: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
7048
+ (new_: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
7015
7049
  Rv,
7016
7050
  {
7017
7051
  pallet: 'Configuration';
7018
7052
  palletCall: {
7019
7053
  name: 'SetAsyncBackingParams';
7020
- params: { new: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams };
7054
+ params: { new: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams };
7021
7055
  };
7022
7056
  }
7023
7057
  >
@@ -7026,17 +7060,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7026
7060
  /**
7027
7061
  * Set PVF executor parameters.
7028
7062
  *
7029
- * @param {PolkadotPrimitivesV7ExecutorParams} new_
7063
+ * @param {PolkadotPrimitivesV8ExecutorParams} new_
7030
7064
  **/
7031
7065
  setExecutorParams: GenericTxCall<
7032
7066
  Rv,
7033
- (new_: PolkadotPrimitivesV7ExecutorParams) => ChainSubmittableExtrinsic<
7067
+ (new_: PolkadotPrimitivesV8ExecutorParams) => ChainSubmittableExtrinsic<
7034
7068
  Rv,
7035
7069
  {
7036
7070
  pallet: 'Configuration';
7037
7071
  palletCall: {
7038
7072
  name: 'SetExecutorParams';
7039
- params: { new: PolkadotPrimitivesV7ExecutorParams };
7073
+ params: { new: PolkadotPrimitivesV8ExecutorParams };
7040
7074
  };
7041
7075
  }
7042
7076
  >
@@ -7182,17 +7216,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7182
7216
  /**
7183
7217
  * Set approval-voting-params.
7184
7218
  *
7185
- * @param {PolkadotPrimitivesV7ApprovalVotingParams} new_
7219
+ * @param {PolkadotPrimitivesV8ApprovalVotingParams} new_
7186
7220
  **/
7187
7221
  setApprovalVotingParams: GenericTxCall<
7188
7222
  Rv,
7189
- (new_: PolkadotPrimitivesV7ApprovalVotingParams) => ChainSubmittableExtrinsic<
7223
+ (new_: PolkadotPrimitivesV8ApprovalVotingParams) => ChainSubmittableExtrinsic<
7190
7224
  Rv,
7191
7225
  {
7192
7226
  pallet: 'Configuration';
7193
7227
  palletCall: {
7194
7228
  name: 'SetApprovalVotingParams';
7195
- params: { new: PolkadotPrimitivesV7ApprovalVotingParams };
7229
+ params: { new: PolkadotPrimitivesV8ApprovalVotingParams };
7196
7230
  };
7197
7231
  }
7198
7232
  >
@@ -7201,17 +7235,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7201
7235
  /**
7202
7236
  * Set scheduler-params.
7203
7237
  *
7204
- * @param {PolkadotPrimitivesVstagingSchedulerParams} new_
7238
+ * @param {PolkadotPrimitivesV8SchedulerParams} new_
7205
7239
  **/
7206
7240
  setSchedulerParams: GenericTxCall<
7207
7241
  Rv,
7208
- (new_: PolkadotPrimitivesVstagingSchedulerParams) => ChainSubmittableExtrinsic<
7242
+ (new_: PolkadotPrimitivesV8SchedulerParams) => ChainSubmittableExtrinsic<
7209
7243
  Rv,
7210
7244
  {
7211
7245
  pallet: 'Configuration';
7212
7246
  palletCall: {
7213
7247
  name: 'SetSchedulerParams';
7214
- params: { new: PolkadotPrimitivesVstagingSchedulerParams };
7248
+ params: { new: PolkadotPrimitivesV8SchedulerParams };
7215
7249
  };
7216
7250
  }
7217
7251
  >
@@ -7247,17 +7281,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7247
7281
  /**
7248
7282
  * Enter the paras inherent. This will process bitfields and backed candidates.
7249
7283
  *
7250
- * @param {PolkadotPrimitivesV7InherentData} data
7284
+ * @param {PolkadotPrimitivesV8InherentData} data
7251
7285
  **/
7252
7286
  enter: GenericTxCall<
7253
7287
  Rv,
7254
- (data: PolkadotPrimitivesV7InherentData) => ChainSubmittableExtrinsic<
7288
+ (data: PolkadotPrimitivesV8InherentData) => ChainSubmittableExtrinsic<
7255
7289
  Rv,
7256
7290
  {
7257
7291
  pallet: 'ParaInherent';
7258
7292
  palletCall: {
7259
7293
  name: 'Enter';
7260
- params: { data: PolkadotPrimitivesV7InherentData };
7294
+ params: { data: PolkadotPrimitivesV8InherentData };
7261
7295
  };
7262
7296
  }
7263
7297
  >
@@ -7459,14 +7493,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7459
7493
  * Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
7460
7494
  * enacts the results if that was the last vote before achieving the supermajority.
7461
7495
  *
7462
- * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
7463
- * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
7496
+ * @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
7497
+ * @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
7464
7498
  **/
7465
7499
  includePvfCheckStatement: GenericTxCall<
7466
7500
  Rv,
7467
7501
  (
7468
- stmt: PolkadotPrimitivesV7PvfCheckStatement,
7469
- signature: PolkadotPrimitivesV7ValidatorAppSignature,
7502
+ stmt: PolkadotPrimitivesV8PvfCheckStatement,
7503
+ signature: PolkadotPrimitivesV8ValidatorAppSignature,
7470
7504
  ) => ChainSubmittableExtrinsic<
7471
7505
  Rv,
7472
7506
  {
@@ -7474,8 +7508,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7474
7508
  palletCall: {
7475
7509
  name: 'IncludePvfCheckStatement';
7476
7510
  params: {
7477
- stmt: PolkadotPrimitivesV7PvfCheckStatement;
7478
- signature: PolkadotPrimitivesV7ValidatorAppSignature;
7511
+ stmt: PolkadotPrimitivesV8PvfCheckStatement;
7512
+ signature: PolkadotPrimitivesV8ValidatorAppSignature;
7479
7513
  };
7480
7514
  };
7481
7515
  }
@@ -7907,13 +7941,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7907
7941
  parasSlashing: {
7908
7942
  /**
7909
7943
  *
7910
- * @param {PolkadotPrimitivesV7SlashingDisputeProof} disputeProof
7944
+ * @param {PolkadotPrimitivesV8SlashingDisputeProof} disputeProof
7911
7945
  * @param {SpSessionMembershipProof} keyOwnerProof
7912
7946
  **/
7913
7947
  reportDisputeLostUnsigned: GenericTxCall<
7914
7948
  Rv,
7915
7949
  (
7916
- disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
7950
+ disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
7917
7951
  keyOwnerProof: SpSessionMembershipProof,
7918
7952
  ) => ChainSubmittableExtrinsic<
7919
7953
  Rv,
@@ -7921,7 +7955,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7921
7955
  pallet: 'ParasSlashing';
7922
7956
  palletCall: {
7923
7957
  name: 'ReportDisputeLostUnsigned';
7924
- params: { disputeProof: PolkadotPrimitivesV7SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
7958
+ params: { disputeProof: PolkadotPrimitivesV8SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
7925
7959
  };
7926
7960
  }
7927
7961
  >
@@ -9827,7 +9861,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9827
9861
  * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
9828
9862
  * @param {SpSessionMembershipProof} keyOwnerProof
9829
9863
  **/
9830
- reportEquivocation: GenericTxCall<
9864
+ reportDoubleVoting: GenericTxCall<
9831
9865
  Rv,
9832
9866
  (
9833
9867
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
@@ -9837,7 +9871,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9837
9871
  {
9838
9872
  pallet: 'Beefy';
9839
9873
  palletCall: {
9840
- name: 'ReportEquivocation';
9874
+ name: 'ReportDoubleVoting';
9841
9875
  params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
9842
9876
  };
9843
9877
  }
@@ -9858,7 +9892,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9858
9892
  * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
9859
9893
  * @param {SpSessionMembershipProof} keyOwnerProof
9860
9894
  **/
9861
- reportEquivocationUnsigned: GenericTxCall<
9895
+ reportDoubleVotingUnsigned: GenericTxCall<
9862
9896
  Rv,
9863
9897
  (
9864
9898
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
@@ -9868,7 +9902,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9868
9902
  {
9869
9903
  pallet: 'Beefy';
9870
9904
  palletCall: {
9871
- name: 'ReportEquivocationUnsigned';
9905
+ name: 'ReportDoubleVotingUnsigned';
9872
9906
  params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
9873
9907
  };
9874
9908
  }
@@ -9897,6 +9931,122 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9897
9931
  >
9898
9932
  >;
9899
9933
 
9934
+ /**
9935
+ * Report fork voting equivocation. This method will verify the equivocation proof
9936
+ * and validate the given key ownership proof against the extracted offender.
9937
+ * If both are valid, the offence will be reported.
9938
+ *
9939
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
9940
+ * @param {SpSessionMembershipProof} keyOwnerProof
9941
+ **/
9942
+ reportForkVoting: GenericTxCall<
9943
+ Rv,
9944
+ (
9945
+ equivocationProof: SpConsensusBeefyForkVotingProof,
9946
+ keyOwnerProof: SpSessionMembershipProof,
9947
+ ) => ChainSubmittableExtrinsic<
9948
+ Rv,
9949
+ {
9950
+ pallet: 'Beefy';
9951
+ palletCall: {
9952
+ name: 'ReportForkVoting';
9953
+ params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
9954
+ };
9955
+ }
9956
+ >
9957
+ >;
9958
+
9959
+ /**
9960
+ * Report fork voting equivocation. This method will verify the equivocation proof
9961
+ * and validate the given key ownership proof against the extracted offender.
9962
+ * If both are valid, the offence will be reported.
9963
+ *
9964
+ * This extrinsic must be called unsigned and it is expected that only
9965
+ * block authors will call it (validated in `ValidateUnsigned`), as such
9966
+ * if the block author is defined it will be defined as the equivocation
9967
+ * reporter.
9968
+ *
9969
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
9970
+ * @param {SpSessionMembershipProof} keyOwnerProof
9971
+ **/
9972
+ reportForkVotingUnsigned: GenericTxCall<
9973
+ Rv,
9974
+ (
9975
+ equivocationProof: SpConsensusBeefyForkVotingProof,
9976
+ keyOwnerProof: SpSessionMembershipProof,
9977
+ ) => ChainSubmittableExtrinsic<
9978
+ Rv,
9979
+ {
9980
+ pallet: 'Beefy';
9981
+ palletCall: {
9982
+ name: 'ReportForkVotingUnsigned';
9983
+ params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
9984
+ };
9985
+ }
9986
+ >
9987
+ >;
9988
+
9989
+ /**
9990
+ * Report future block voting equivocation. This method will verify the equivocation proof
9991
+ * and validate the given key ownership proof against the extracted offender.
9992
+ * If both are valid, the offence will be reported.
9993
+ *
9994
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
9995
+ * @param {SpSessionMembershipProof} keyOwnerProof
9996
+ **/
9997
+ reportFutureBlockVoting: GenericTxCall<
9998
+ Rv,
9999
+ (
10000
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
10001
+ keyOwnerProof: SpSessionMembershipProof,
10002
+ ) => ChainSubmittableExtrinsic<
10003
+ Rv,
10004
+ {
10005
+ pallet: 'Beefy';
10006
+ palletCall: {
10007
+ name: 'ReportFutureBlockVoting';
10008
+ params: {
10009
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
10010
+ keyOwnerProof: SpSessionMembershipProof;
10011
+ };
10012
+ };
10013
+ }
10014
+ >
10015
+ >;
10016
+
10017
+ /**
10018
+ * Report future block voting equivocation. This method will verify the equivocation proof
10019
+ * and validate the given key ownership proof against the extracted offender.
10020
+ * If both are valid, the offence will be reported.
10021
+ *
10022
+ * This extrinsic must be called unsigned and it is expected that only
10023
+ * block authors will call it (validated in `ValidateUnsigned`), as such
10024
+ * if the block author is defined it will be defined as the equivocation
10025
+ * reporter.
10026
+ *
10027
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
10028
+ * @param {SpSessionMembershipProof} keyOwnerProof
10029
+ **/
10030
+ reportFutureBlockVotingUnsigned: GenericTxCall<
10031
+ Rv,
10032
+ (
10033
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
10034
+ keyOwnerProof: SpSessionMembershipProof,
10035
+ ) => ChainSubmittableExtrinsic<
10036
+ Rv,
10037
+ {
10038
+ pallet: 'Beefy';
10039
+ palletCall: {
10040
+ name: 'ReportFutureBlockVotingUnsigned';
10041
+ params: {
10042
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
10043
+ keyOwnerProof: SpSessionMembershipProof;
10044
+ };
10045
+ };
10046
+ }
10047
+ >
10048
+ >;
10049
+
9900
10050
  /**
9901
10051
  * Generic pallet tx call
9902
10052
  **/