@dedot/chaintypes 0.58.0 → 0.60.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
@@ -47,7 +47,6 @@ import type {
47
47
  FrameSupportPreimagesBounded,
48
48
  FrameSupportScheduleDispatchTime,
49
49
  SpWeightsWeightV2Weight,
50
- PolkadotRuntimeRuntimeParameters,
51
50
  PolkadotRuntimeCommonClaimsEcdsaSignature,
52
51
  PolkadotRuntimeCommonClaimsStatementKind,
53
52
  PalletVestingVestingInfo,
@@ -66,19 +65,19 @@ import type {
66
65
  PalletNominationPoolsClaimPermission,
67
66
  PalletNominationPoolsCommissionChangeRate,
68
67
  PalletNominationPoolsCommissionClaimPermission,
69
- PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
70
- PolkadotPrimitivesV7ExecutorParams,
71
- PolkadotPrimitivesV7ApprovalVotingParams,
72
- PolkadotPrimitivesVstagingSchedulerParams,
73
- PolkadotPrimitivesV7InherentData,
68
+ PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
69
+ PolkadotPrimitivesV8ExecutorParams,
70
+ PolkadotPrimitivesV8ApprovalVotingParams,
71
+ PolkadotPrimitivesV8SchedulerParams,
72
+ PolkadotPrimitivesV8InherentData,
74
73
  PolkadotParachainPrimitivesPrimitivesId,
75
74
  PolkadotParachainPrimitivesPrimitivesValidationCode,
76
75
  PolkadotParachainPrimitivesPrimitivesHeadData,
77
76
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
78
- PolkadotPrimitivesV7PvfCheckStatement,
79
- PolkadotPrimitivesV7ValidatorAppSignature,
77
+ PolkadotPrimitivesV8PvfCheckStatement,
78
+ PolkadotPrimitivesV8ValidatorAppSignature,
80
79
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
81
- PolkadotPrimitivesV7SlashingDisputeProof,
80
+ PolkadotPrimitivesV8SlashingDisputeProof,
82
81
  SpRuntimeMultiSigner,
83
82
  PalletBrokerCoretimeInterfaceCoreAssignment,
84
83
  PolkadotRuntimeParachainsAssignerCoretimePartsOf57600,
@@ -93,6 +92,8 @@ import type {
93
92
  XcmVersionedAssetId,
94
93
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
95
94
  SpConsensusBeefyDoubleVotingProof,
95
+ SpConsensusBeefyForkVotingProof,
96
+ SpConsensusBeefyFutureBlockVotingProof,
96
97
  } from './types';
97
98
 
98
99
  export type ChainSubmittableExtrinsic<
@@ -3270,37 +3271,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3270
3271
  **/
3271
3272
  [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
3272
3273
  };
3273
- /**
3274
- * Pallet `Parameters`'s transaction calls
3275
- **/
3276
- parameters: {
3277
- /**
3278
- * Set the value of a parameter.
3279
- *
3280
- * The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
3281
- * deleted by setting them to `None`.
3282
- *
3283
- * @param {PolkadotRuntimeRuntimeParameters} keyValue
3284
- **/
3285
- setParameter: GenericTxCall<
3286
- Rv,
3287
- (keyValue: PolkadotRuntimeRuntimeParameters) => ChainSubmittableExtrinsic<
3288
- Rv,
3289
- {
3290
- pallet: 'Parameters';
3291
- palletCall: {
3292
- name: 'SetParameter';
3293
- params: { keyValue: PolkadotRuntimeRuntimeParameters };
3294
- };
3295
- }
3296
- >
3297
- >;
3298
-
3299
- /**
3300
- * Generic pallet tx call
3301
- **/
3302
- [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
3303
- };
3304
3274
  /**
3305
3275
  * Pallet `Claims`'s transaction calls
3306
3276
  **/
@@ -5354,8 +5324,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
5354
5324
  **/
5355
5325
  nominationPools: {
5356
5326
  /**
5357
- * Stake funds with a pool. The amount to bond is transferred from the member to the
5358
- * pools account and immediately increases the pools bond.
5327
+ * Stake funds with a pool. The amount to bond is transferred from the member to the pool
5328
+ * account and immediately increases the pools bond.
5329
+ *
5330
+ * The method of transferring the amount to the pool account is determined by
5331
+ * [`adapter::StakeStrategyType`]. If the pool is configured to use
5332
+ * [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
5333
+ * the `origin`, while the pool gains the right to use these funds for staking.
5359
5334
  *
5360
5335
  * # Note
5361
5336
  *
@@ -6092,8 +6067,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6092
6067
  * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
6093
6068
  * [`adapter::StakeStrategyType::Delegate`].
6094
6069
  *
6095
- * This call can be dispatched permissionlessly (i.e. by any account). If the member has
6096
- * slash to be applied, caller may be rewarded with the part of the slash.
6070
+ * The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
6071
+ * This call can be dispatched permissionlessly (i.e. by any account). If the execution
6072
+ * is successful, fee is refunded and caller may be rewarded with a part of the slash
6073
+ * based on the [`crate::pallet::Config::StakeAdapter`] configuration.
6097
6074
  *
6098
6075
  * @param {MultiAddressLike} memberAccount
6099
6076
  **/
@@ -7006,17 +6983,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7006
6983
  /**
7007
6984
  * Set the asynchronous backing parameters.
7008
6985
  *
7009
- * @param {PolkadotPrimitivesV7AsyncBackingAsyncBackingParams} new_
6986
+ * @param {PolkadotPrimitivesV8AsyncBackingAsyncBackingParams} new_
7010
6987
  **/
7011
6988
  setAsyncBackingParams: GenericTxCall<
7012
6989
  Rv,
7013
- (new_: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
6990
+ (new_: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
7014
6991
  Rv,
7015
6992
  {
7016
6993
  pallet: 'Configuration';
7017
6994
  palletCall: {
7018
6995
  name: 'SetAsyncBackingParams';
7019
- params: { new: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams };
6996
+ params: { new: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams };
7020
6997
  };
7021
6998
  }
7022
6999
  >
@@ -7025,17 +7002,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7025
7002
  /**
7026
7003
  * Set PVF executor parameters.
7027
7004
  *
7028
- * @param {PolkadotPrimitivesV7ExecutorParams} new_
7005
+ * @param {PolkadotPrimitivesV8ExecutorParams} new_
7029
7006
  **/
7030
7007
  setExecutorParams: GenericTxCall<
7031
7008
  Rv,
7032
- (new_: PolkadotPrimitivesV7ExecutorParams) => ChainSubmittableExtrinsic<
7009
+ (new_: PolkadotPrimitivesV8ExecutorParams) => ChainSubmittableExtrinsic<
7033
7010
  Rv,
7034
7011
  {
7035
7012
  pallet: 'Configuration';
7036
7013
  palletCall: {
7037
7014
  name: 'SetExecutorParams';
7038
- params: { new: PolkadotPrimitivesV7ExecutorParams };
7015
+ params: { new: PolkadotPrimitivesV8ExecutorParams };
7039
7016
  };
7040
7017
  }
7041
7018
  >
@@ -7181,17 +7158,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7181
7158
  /**
7182
7159
  * Set approval-voting-params.
7183
7160
  *
7184
- * @param {PolkadotPrimitivesV7ApprovalVotingParams} new_
7161
+ * @param {PolkadotPrimitivesV8ApprovalVotingParams} new_
7185
7162
  **/
7186
7163
  setApprovalVotingParams: GenericTxCall<
7187
7164
  Rv,
7188
- (new_: PolkadotPrimitivesV7ApprovalVotingParams) => ChainSubmittableExtrinsic<
7165
+ (new_: PolkadotPrimitivesV8ApprovalVotingParams) => ChainSubmittableExtrinsic<
7189
7166
  Rv,
7190
7167
  {
7191
7168
  pallet: 'Configuration';
7192
7169
  palletCall: {
7193
7170
  name: 'SetApprovalVotingParams';
7194
- params: { new: PolkadotPrimitivesV7ApprovalVotingParams };
7171
+ params: { new: PolkadotPrimitivesV8ApprovalVotingParams };
7195
7172
  };
7196
7173
  }
7197
7174
  >
@@ -7200,17 +7177,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7200
7177
  /**
7201
7178
  * Set scheduler-params.
7202
7179
  *
7203
- * @param {PolkadotPrimitivesVstagingSchedulerParams} new_
7180
+ * @param {PolkadotPrimitivesV8SchedulerParams} new_
7204
7181
  **/
7205
7182
  setSchedulerParams: GenericTxCall<
7206
7183
  Rv,
7207
- (new_: PolkadotPrimitivesVstagingSchedulerParams) => ChainSubmittableExtrinsic<
7184
+ (new_: PolkadotPrimitivesV8SchedulerParams) => ChainSubmittableExtrinsic<
7208
7185
  Rv,
7209
7186
  {
7210
7187
  pallet: 'Configuration';
7211
7188
  palletCall: {
7212
7189
  name: 'SetSchedulerParams';
7213
- params: { new: PolkadotPrimitivesVstagingSchedulerParams };
7190
+ params: { new: PolkadotPrimitivesV8SchedulerParams };
7214
7191
  };
7215
7192
  }
7216
7193
  >
@@ -7246,17 +7223,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7246
7223
  /**
7247
7224
  * Enter the paras inherent. This will process bitfields and backed candidates.
7248
7225
  *
7249
- * @param {PolkadotPrimitivesV7InherentData} data
7226
+ * @param {PolkadotPrimitivesV8InherentData} data
7250
7227
  **/
7251
7228
  enter: GenericTxCall<
7252
7229
  Rv,
7253
- (data: PolkadotPrimitivesV7InherentData) => ChainSubmittableExtrinsic<
7230
+ (data: PolkadotPrimitivesV8InherentData) => ChainSubmittableExtrinsic<
7254
7231
  Rv,
7255
7232
  {
7256
7233
  pallet: 'ParaInherent';
7257
7234
  palletCall: {
7258
7235
  name: 'Enter';
7259
- params: { data: PolkadotPrimitivesV7InherentData };
7236
+ params: { data: PolkadotPrimitivesV8InherentData };
7260
7237
  };
7261
7238
  }
7262
7239
  >
@@ -7458,14 +7435,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7458
7435
  * Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
7459
7436
  * enacts the results if that was the last vote before achieving the supermajority.
7460
7437
  *
7461
- * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
7462
- * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
7438
+ * @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
7439
+ * @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
7463
7440
  **/
7464
7441
  includePvfCheckStatement: GenericTxCall<
7465
7442
  Rv,
7466
7443
  (
7467
- stmt: PolkadotPrimitivesV7PvfCheckStatement,
7468
- signature: PolkadotPrimitivesV7ValidatorAppSignature,
7444
+ stmt: PolkadotPrimitivesV8PvfCheckStatement,
7445
+ signature: PolkadotPrimitivesV8ValidatorAppSignature,
7469
7446
  ) => ChainSubmittableExtrinsic<
7470
7447
  Rv,
7471
7448
  {
@@ -7473,8 +7450,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7473
7450
  palletCall: {
7474
7451
  name: 'IncludePvfCheckStatement';
7475
7452
  params: {
7476
- stmt: PolkadotPrimitivesV7PvfCheckStatement;
7477
- signature: PolkadotPrimitivesV7ValidatorAppSignature;
7453
+ stmt: PolkadotPrimitivesV8PvfCheckStatement;
7454
+ signature: PolkadotPrimitivesV8ValidatorAppSignature;
7478
7455
  };
7479
7456
  };
7480
7457
  }
@@ -7906,13 +7883,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7906
7883
  parasSlashing: {
7907
7884
  /**
7908
7885
  *
7909
- * @param {PolkadotPrimitivesV7SlashingDisputeProof} disputeProof
7886
+ * @param {PolkadotPrimitivesV8SlashingDisputeProof} disputeProof
7910
7887
  * @param {SpSessionMembershipProof} keyOwnerProof
7911
7888
  **/
7912
7889
  reportDisputeLostUnsigned: GenericTxCall<
7913
7890
  Rv,
7914
7891
  (
7915
- disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
7892
+ disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
7916
7893
  keyOwnerProof: SpSessionMembershipProof,
7917
7894
  ) => ChainSubmittableExtrinsic<
7918
7895
  Rv,
@@ -7920,7 +7897,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7920
7897
  pallet: 'ParasSlashing';
7921
7898
  palletCall: {
7922
7899
  name: 'ReportDisputeLostUnsigned';
7923
- params: { disputeProof: PolkadotPrimitivesV7SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
7900
+ params: { disputeProof: PolkadotPrimitivesV8SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
7924
7901
  };
7925
7902
  }
7926
7903
  >
@@ -9826,7 +9803,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9826
9803
  * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
9827
9804
  * @param {SpSessionMembershipProof} keyOwnerProof
9828
9805
  **/
9829
- reportEquivocation: GenericTxCall<
9806
+ reportDoubleVoting: GenericTxCall<
9830
9807
  Rv,
9831
9808
  (
9832
9809
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
@@ -9836,7 +9813,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9836
9813
  {
9837
9814
  pallet: 'Beefy';
9838
9815
  palletCall: {
9839
- name: 'ReportEquivocation';
9816
+ name: 'ReportDoubleVoting';
9840
9817
  params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
9841
9818
  };
9842
9819
  }
@@ -9857,7 +9834,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9857
9834
  * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
9858
9835
  * @param {SpSessionMembershipProof} keyOwnerProof
9859
9836
  **/
9860
- reportEquivocationUnsigned: GenericTxCall<
9837
+ reportDoubleVotingUnsigned: GenericTxCall<
9861
9838
  Rv,
9862
9839
  (
9863
9840
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
@@ -9867,7 +9844,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9867
9844
  {
9868
9845
  pallet: 'Beefy';
9869
9846
  palletCall: {
9870
- name: 'ReportEquivocationUnsigned';
9847
+ name: 'ReportDoubleVotingUnsigned';
9871
9848
  params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
9872
9849
  };
9873
9850
  }
@@ -9896,6 +9873,122 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9896
9873
  >
9897
9874
  >;
9898
9875
 
9876
+ /**
9877
+ * Report fork voting equivocation. This method will verify the equivocation proof
9878
+ * and validate the given key ownership proof against the extracted offender.
9879
+ * If both are valid, the offence will be reported.
9880
+ *
9881
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
9882
+ * @param {SpSessionMembershipProof} keyOwnerProof
9883
+ **/
9884
+ reportForkVoting: GenericTxCall<
9885
+ Rv,
9886
+ (
9887
+ equivocationProof: SpConsensusBeefyForkVotingProof,
9888
+ keyOwnerProof: SpSessionMembershipProof,
9889
+ ) => ChainSubmittableExtrinsic<
9890
+ Rv,
9891
+ {
9892
+ pallet: 'Beefy';
9893
+ palletCall: {
9894
+ name: 'ReportForkVoting';
9895
+ params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
9896
+ };
9897
+ }
9898
+ >
9899
+ >;
9900
+
9901
+ /**
9902
+ * Report fork voting equivocation. This method will verify the equivocation proof
9903
+ * and validate the given key ownership proof against the extracted offender.
9904
+ * If both are valid, the offence will be reported.
9905
+ *
9906
+ * This extrinsic must be called unsigned and it is expected that only
9907
+ * block authors will call it (validated in `ValidateUnsigned`), as such
9908
+ * if the block author is defined it will be defined as the equivocation
9909
+ * reporter.
9910
+ *
9911
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
9912
+ * @param {SpSessionMembershipProof} keyOwnerProof
9913
+ **/
9914
+ reportForkVotingUnsigned: GenericTxCall<
9915
+ Rv,
9916
+ (
9917
+ equivocationProof: SpConsensusBeefyForkVotingProof,
9918
+ keyOwnerProof: SpSessionMembershipProof,
9919
+ ) => ChainSubmittableExtrinsic<
9920
+ Rv,
9921
+ {
9922
+ pallet: 'Beefy';
9923
+ palletCall: {
9924
+ name: 'ReportForkVotingUnsigned';
9925
+ params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
9926
+ };
9927
+ }
9928
+ >
9929
+ >;
9930
+
9931
+ /**
9932
+ * Report future block voting equivocation. This method will verify the equivocation proof
9933
+ * and validate the given key ownership proof against the extracted offender.
9934
+ * If both are valid, the offence will be reported.
9935
+ *
9936
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
9937
+ * @param {SpSessionMembershipProof} keyOwnerProof
9938
+ **/
9939
+ reportFutureBlockVoting: GenericTxCall<
9940
+ Rv,
9941
+ (
9942
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
9943
+ keyOwnerProof: SpSessionMembershipProof,
9944
+ ) => ChainSubmittableExtrinsic<
9945
+ Rv,
9946
+ {
9947
+ pallet: 'Beefy';
9948
+ palletCall: {
9949
+ name: 'ReportFutureBlockVoting';
9950
+ params: {
9951
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
9952
+ keyOwnerProof: SpSessionMembershipProof;
9953
+ };
9954
+ };
9955
+ }
9956
+ >
9957
+ >;
9958
+
9959
+ /**
9960
+ * Report future block 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 {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
9970
+ * @param {SpSessionMembershipProof} keyOwnerProof
9971
+ **/
9972
+ reportFutureBlockVotingUnsigned: GenericTxCall<
9973
+ Rv,
9974
+ (
9975
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
9976
+ keyOwnerProof: SpSessionMembershipProof,
9977
+ ) => ChainSubmittableExtrinsic<
9978
+ Rv,
9979
+ {
9980
+ pallet: 'Beefy';
9981
+ palletCall: {
9982
+ name: 'ReportFutureBlockVotingUnsigned';
9983
+ params: {
9984
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
9985
+ keyOwnerProof: SpSessionMembershipProof;
9986
+ };
9987
+ };
9988
+ }
9989
+ >
9990
+ >;
9991
+
9899
9992
  /**
9900
9993
  * Generic pallet tx call
9901
9994
  **/