@dedot/chaintypes 0.230.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
@@ -45,6 +45,7 @@ import type {
45
45
  FrameSupportPreimagesBounded,
46
46
  FrameSupportScheduleDispatchTime,
47
47
  SpWeightsWeightV2Weight,
48
+ PaseoRuntimeRuntimeParameters,
48
49
  PolkadotRuntimeCommonClaimsEcdsaSignature,
49
50
  PolkadotRuntimeCommonClaimsStatementKind,
50
51
  PalletVestingVestingInfo,
@@ -63,19 +64,19 @@ import type {
63
64
  PalletNominationPoolsClaimPermission,
64
65
  PalletNominationPoolsCommissionChangeRate,
65
66
  PalletNominationPoolsCommissionClaimPermission,
66
- PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
67
- PolkadotPrimitivesV7ExecutorParams,
68
- PolkadotPrimitivesV7ApprovalVotingParams,
69
- PolkadotPrimitivesVstagingSchedulerParams,
70
- PolkadotPrimitivesV7InherentData,
67
+ PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
68
+ PolkadotPrimitivesV8ExecutorParams,
69
+ PolkadotPrimitivesV8ApprovalVotingParams,
70
+ PolkadotPrimitivesV8SchedulerParams,
71
+ PolkadotPrimitivesV8InherentData,
71
72
  PolkadotParachainPrimitivesPrimitivesId,
72
73
  PolkadotParachainPrimitivesPrimitivesValidationCode,
73
74
  PolkadotParachainPrimitivesPrimitivesHeadData,
74
75
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
75
- PolkadotPrimitivesV7PvfCheckStatement,
76
- PolkadotPrimitivesV7ValidatorAppSignature,
76
+ PolkadotPrimitivesV8PvfCheckStatement,
77
+ PolkadotPrimitivesV8ValidatorAppSignature,
77
78
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
78
- PolkadotPrimitivesV7SlashingDisputeProof,
79
+ PolkadotPrimitivesV8SlashingDisputeProof,
79
80
  SpRuntimeMultiSigner,
80
81
  PalletBrokerCoretimeInterfaceCoreAssignment,
81
82
  PolkadotRuntimeParachainsAssignerCoretimePartsOf57600,
@@ -90,6 +91,8 @@ import type {
90
91
  XcmVersionedAssetId,
91
92
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
92
93
  SpConsensusBeefyDoubleVotingProof,
94
+ SpConsensusBeefyForkVotingProof,
95
+ SpConsensusBeefyFutureBlockVotingProof,
93
96
  PolkadotRuntimeParachainsParasParaGenesisArgs,
94
97
  } from './types.js';
95
98
 
@@ -2188,6 +2191,29 @@ export interface ChainTx<
2188
2191
  >
2189
2192
  >;
2190
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
+
2191
2217
  /**
2192
2218
  * Generic pallet tx call
2193
2219
  **/
@@ -3166,6 +3192,36 @@ export interface ChainTx<
3166
3192
  **/
3167
3193
  [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
3168
3194
  };
3195
+ /**
3196
+ * Pallet `Parameters`'s transaction calls
3197
+ **/
3198
+ parameters: {
3199
+ /**
3200
+ * Set the value of a parameter.
3201
+ *
3202
+ * The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
3203
+ * deleted by setting them to `None`.
3204
+ *
3205
+ * @param {PaseoRuntimeRuntimeParameters} keyValue
3206
+ **/
3207
+ setParameter: GenericTxCall<
3208
+ (keyValue: PaseoRuntimeRuntimeParameters) => ChainSubmittableExtrinsic<
3209
+ {
3210
+ pallet: 'Parameters';
3211
+ palletCall: {
3212
+ name: 'SetParameter';
3213
+ params: { keyValue: PaseoRuntimeRuntimeParameters };
3214
+ };
3215
+ },
3216
+ ChainKnownTypes
3217
+ >
3218
+ >;
3219
+
3220
+ /**
3221
+ * Generic pallet tx call
3222
+ **/
3223
+ [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
3224
+ };
3169
3225
  /**
3170
3226
  * Pallet `Claims`'s transaction calls
3171
3227
  **/
@@ -5164,8 +5220,14 @@ export interface ChainTx<
5164
5220
  **/
5165
5221
  nominationPools: {
5166
5222
  /**
5167
- * Stake funds with a pool. The amount to bond is transferred from the member to the
5168
- * 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.
5169
5231
  *
5170
5232
  * # Note
5171
5233
  *
@@ -5879,8 +5941,10 @@ export interface ChainTx<
5879
5941
  * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
5880
5942
  * [`adapter::StakeStrategyType::Delegate`].
5881
5943
  *
5882
- * This call can be dispatched permissionlessly (i.e. by any account). If the member has
5883
- * 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.
5884
5948
  *
5885
5949
  * @param {MultiAddressLike} memberAccount
5886
5950
  **/
@@ -6750,15 +6814,15 @@ export interface ChainTx<
6750
6814
  /**
6751
6815
  * Set the asynchronous backing parameters.
6752
6816
  *
6753
- * @param {PolkadotPrimitivesV7AsyncBackingAsyncBackingParams} new_
6817
+ * @param {PolkadotPrimitivesV8AsyncBackingAsyncBackingParams} new_
6754
6818
  **/
6755
6819
  setAsyncBackingParams: GenericTxCall<
6756
- (new_: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
6820
+ (new_: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
6757
6821
  {
6758
6822
  pallet: 'Configuration';
6759
6823
  palletCall: {
6760
6824
  name: 'SetAsyncBackingParams';
6761
- params: { new: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams };
6825
+ params: { new: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams };
6762
6826
  };
6763
6827
  },
6764
6828
  ChainKnownTypes
@@ -6768,15 +6832,15 @@ export interface ChainTx<
6768
6832
  /**
6769
6833
  * Set PVF executor parameters.
6770
6834
  *
6771
- * @param {PolkadotPrimitivesV7ExecutorParams} new_
6835
+ * @param {PolkadotPrimitivesV8ExecutorParams} new_
6772
6836
  **/
6773
6837
  setExecutorParams: GenericTxCall<
6774
- (new_: PolkadotPrimitivesV7ExecutorParams) => ChainSubmittableExtrinsic<
6838
+ (new_: PolkadotPrimitivesV8ExecutorParams) => ChainSubmittableExtrinsic<
6775
6839
  {
6776
6840
  pallet: 'Configuration';
6777
6841
  palletCall: {
6778
6842
  name: 'SetExecutorParams';
6779
- params: { new: PolkadotPrimitivesV7ExecutorParams };
6843
+ params: { new: PolkadotPrimitivesV8ExecutorParams };
6780
6844
  };
6781
6845
  },
6782
6846
  ChainKnownTypes
@@ -6916,15 +6980,15 @@ export interface ChainTx<
6916
6980
  /**
6917
6981
  * Set approval-voting-params.
6918
6982
  *
6919
- * @param {PolkadotPrimitivesV7ApprovalVotingParams} new_
6983
+ * @param {PolkadotPrimitivesV8ApprovalVotingParams} new_
6920
6984
  **/
6921
6985
  setApprovalVotingParams: GenericTxCall<
6922
- (new_: PolkadotPrimitivesV7ApprovalVotingParams) => ChainSubmittableExtrinsic<
6986
+ (new_: PolkadotPrimitivesV8ApprovalVotingParams) => ChainSubmittableExtrinsic<
6923
6987
  {
6924
6988
  pallet: 'Configuration';
6925
6989
  palletCall: {
6926
6990
  name: 'SetApprovalVotingParams';
6927
- params: { new: PolkadotPrimitivesV7ApprovalVotingParams };
6991
+ params: { new: PolkadotPrimitivesV8ApprovalVotingParams };
6928
6992
  };
6929
6993
  },
6930
6994
  ChainKnownTypes
@@ -6934,15 +6998,15 @@ export interface ChainTx<
6934
6998
  /**
6935
6999
  * Set scheduler-params.
6936
7000
  *
6937
- * @param {PolkadotPrimitivesVstagingSchedulerParams} new_
7001
+ * @param {PolkadotPrimitivesV8SchedulerParams} new_
6938
7002
  **/
6939
7003
  setSchedulerParams: GenericTxCall<
6940
- (new_: PolkadotPrimitivesVstagingSchedulerParams) => ChainSubmittableExtrinsic<
7004
+ (new_: PolkadotPrimitivesV8SchedulerParams) => ChainSubmittableExtrinsic<
6941
7005
  {
6942
7006
  pallet: 'Configuration';
6943
7007
  palletCall: {
6944
7008
  name: 'SetSchedulerParams';
6945
- params: { new: PolkadotPrimitivesVstagingSchedulerParams };
7009
+ params: { new: PolkadotPrimitivesV8SchedulerParams };
6946
7010
  };
6947
7011
  },
6948
7012
  ChainKnownTypes
@@ -6979,15 +7043,15 @@ export interface ChainTx<
6979
7043
  /**
6980
7044
  * Enter the paras inherent. This will process bitfields and backed candidates.
6981
7045
  *
6982
- * @param {PolkadotPrimitivesV7InherentData} data
7046
+ * @param {PolkadotPrimitivesV8InherentData} data
6983
7047
  **/
6984
7048
  enter: GenericTxCall<
6985
- (data: PolkadotPrimitivesV7InherentData) => ChainSubmittableExtrinsic<
7049
+ (data: PolkadotPrimitivesV8InherentData) => ChainSubmittableExtrinsic<
6986
7050
  {
6987
7051
  pallet: 'ParaInherent';
6988
7052
  palletCall: {
6989
7053
  name: 'Enter';
6990
- params: { data: PolkadotPrimitivesV7InherentData };
7054
+ params: { data: PolkadotPrimitivesV8InherentData };
6991
7055
  };
6992
7056
  },
6993
7057
  ChainKnownTypes
@@ -7183,21 +7247,21 @@ export interface ChainTx<
7183
7247
  * Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
7184
7248
  * enacts the results if that was the last vote before achieving the supermajority.
7185
7249
  *
7186
- * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
7187
- * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
7250
+ * @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
7251
+ * @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
7188
7252
  **/
7189
7253
  includePvfCheckStatement: GenericTxCall<
7190
7254
  (
7191
- stmt: PolkadotPrimitivesV7PvfCheckStatement,
7192
- signature: PolkadotPrimitivesV7ValidatorAppSignature,
7255
+ stmt: PolkadotPrimitivesV8PvfCheckStatement,
7256
+ signature: PolkadotPrimitivesV8ValidatorAppSignature,
7193
7257
  ) => ChainSubmittableExtrinsic<
7194
7258
  {
7195
7259
  pallet: 'Paras';
7196
7260
  palletCall: {
7197
7261
  name: 'IncludePvfCheckStatement';
7198
7262
  params: {
7199
- stmt: PolkadotPrimitivesV7PvfCheckStatement;
7200
- signature: PolkadotPrimitivesV7ValidatorAppSignature;
7263
+ stmt: PolkadotPrimitivesV8PvfCheckStatement;
7264
+ signature: PolkadotPrimitivesV8ValidatorAppSignature;
7201
7265
  };
7202
7266
  };
7203
7267
  },
@@ -7616,19 +7680,19 @@ export interface ChainTx<
7616
7680
  parasSlashing: {
7617
7681
  /**
7618
7682
  *
7619
- * @param {PolkadotPrimitivesV7SlashingDisputeProof} disputeProof
7683
+ * @param {PolkadotPrimitivesV8SlashingDisputeProof} disputeProof
7620
7684
  * @param {SpSessionMembershipProof} keyOwnerProof
7621
7685
  **/
7622
7686
  reportDisputeLostUnsigned: GenericTxCall<
7623
7687
  (
7624
- disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
7688
+ disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
7625
7689
  keyOwnerProof: SpSessionMembershipProof,
7626
7690
  ) => ChainSubmittableExtrinsic<
7627
7691
  {
7628
7692
  pallet: 'ParasSlashing';
7629
7693
  palletCall: {
7630
7694
  name: 'ReportDisputeLostUnsigned';
7631
- params: { disputeProof: PolkadotPrimitivesV7SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
7695
+ params: { disputeProof: PolkadotPrimitivesV8SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
7632
7696
  };
7633
7697
  },
7634
7698
  ChainKnownTypes
@@ -9481,7 +9545,7 @@ export interface ChainTx<
9481
9545
  * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
9482
9546
  * @param {SpSessionMembershipProof} keyOwnerProof
9483
9547
  **/
9484
- reportEquivocation: GenericTxCall<
9548
+ reportDoubleVoting: GenericTxCall<
9485
9549
  (
9486
9550
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
9487
9551
  keyOwnerProof: SpSessionMembershipProof,
@@ -9489,7 +9553,7 @@ export interface ChainTx<
9489
9553
  {
9490
9554
  pallet: 'Beefy';
9491
9555
  palletCall: {
9492
- name: 'ReportEquivocation';
9556
+ name: 'ReportDoubleVoting';
9493
9557
  params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
9494
9558
  };
9495
9559
  },
@@ -9511,7 +9575,7 @@ export interface ChainTx<
9511
9575
  * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
9512
9576
  * @param {SpSessionMembershipProof} keyOwnerProof
9513
9577
  **/
9514
- reportEquivocationUnsigned: GenericTxCall<
9578
+ reportDoubleVotingUnsigned: GenericTxCall<
9515
9579
  (
9516
9580
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
9517
9581
  keyOwnerProof: SpSessionMembershipProof,
@@ -9519,7 +9583,7 @@ export interface ChainTx<
9519
9583
  {
9520
9584
  pallet: 'Beefy';
9521
9585
  palletCall: {
9522
- name: 'ReportEquivocationUnsigned';
9586
+ name: 'ReportDoubleVotingUnsigned';
9523
9587
  params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
9524
9588
  };
9525
9589
  },
@@ -9548,6 +9612,118 @@ export interface ChainTx<
9548
9612
  >
9549
9613
  >;
9550
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
+
9551
9727
  /**
9552
9728
  * Generic pallet tx call
9553
9729
  **/