@dedot/chaintypes 0.56.0 → 0.58.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/kusama/tx.d.ts CHANGED
@@ -67,19 +67,19 @@ import type {
67
67
  PalletNominationPoolsClaimPermission,
68
68
  PalletNominationPoolsCommissionChangeRate,
69
69
  PalletNominationPoolsCommissionClaimPermission,
70
- PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
71
- PolkadotPrimitivesV7ExecutorParams,
72
- PolkadotPrimitivesV7ApprovalVotingParams,
73
- PolkadotPrimitivesVstagingSchedulerParams,
74
- PolkadotPrimitivesV7InherentData,
70
+ PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
71
+ PolkadotPrimitivesV8ExecutorParams,
72
+ PolkadotPrimitivesV8ApprovalVotingParams,
73
+ PolkadotPrimitivesV8SchedulerParams,
74
+ PolkadotPrimitivesV8InherentData,
75
75
  PolkadotParachainPrimitivesPrimitivesId,
76
76
  PolkadotParachainPrimitivesPrimitivesValidationCode,
77
77
  PolkadotParachainPrimitivesPrimitivesHeadData,
78
78
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
79
- PolkadotPrimitivesV7PvfCheckStatement,
80
- PolkadotPrimitivesV7ValidatorAppSignature,
79
+ PolkadotPrimitivesV8PvfCheckStatement,
80
+ PolkadotPrimitivesV8ValidatorAppSignature,
81
81
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
82
- PolkadotPrimitivesV7SlashingDisputeProof,
82
+ PolkadotPrimitivesV8SlashingDisputeProof,
83
83
  SpRuntimeMultiSigner,
84
84
  PalletBrokerCoretimeInterfaceCoreAssignment,
85
85
  PolkadotRuntimeParachainsAssignerCoretimePartsOf57600,
@@ -91,6 +91,8 @@ import type {
91
91
  XcmVersionedAssetId,
92
92
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
93
93
  SpConsensusBeefyDoubleVotingProof,
94
+ SpConsensusBeefyForkVotingProof,
95
+ SpConsensusBeefyFutureBlockVotingProof,
94
96
  } from './types';
95
97
 
96
98
  export type ChainSubmittableExtrinsic<
@@ -7071,8 +7073,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7071
7073
  **/
7072
7074
  nominationPools: {
7073
7075
  /**
7074
- * Stake funds with a pool. The amount to bond is transferred from the member to the
7075
- * pools account and immediately increases the pools bond.
7076
+ * Stake funds with a pool. The amount to bond is transferred from the member to the pool
7077
+ * account and immediately increases the pools bond.
7078
+ *
7079
+ * The method of transferring the amount to the pool account is determined by
7080
+ * [`adapter::StakeStrategyType`]. If the pool is configured to use
7081
+ * [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
7082
+ * the `origin`, while the pool gains the right to use these funds for staking.
7076
7083
  *
7077
7084
  * # Note
7078
7085
  *
@@ -7809,8 +7816,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7809
7816
  * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
7810
7817
  * [`adapter::StakeStrategyType::Delegate`].
7811
7818
  *
7812
- * This call can be dispatched permissionlessly (i.e. by any account). If the member has
7813
- * slash to be applied, caller may be rewarded with the part of the slash.
7819
+ * The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
7820
+ * This call can be dispatched permissionlessly (i.e. by any account). If the execution
7821
+ * is successful, fee is refunded and caller may be rewarded with a part of the slash
7822
+ * based on the [`crate::pallet::Config::StakeAdapter`] configuration.
7814
7823
  *
7815
7824
  * @param {MultiAddressLike} memberAccount
7816
7825
  **/
@@ -8723,17 +8732,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8723
8732
  /**
8724
8733
  * Set the asynchronous backing parameters.
8725
8734
  *
8726
- * @param {PolkadotPrimitivesV7AsyncBackingAsyncBackingParams} new_
8735
+ * @param {PolkadotPrimitivesV8AsyncBackingAsyncBackingParams} new_
8727
8736
  **/
8728
8737
  setAsyncBackingParams: GenericTxCall<
8729
8738
  Rv,
8730
- (new_: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
8739
+ (new_: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
8731
8740
  Rv,
8732
8741
  {
8733
8742
  pallet: 'Configuration';
8734
8743
  palletCall: {
8735
8744
  name: 'SetAsyncBackingParams';
8736
- params: { new: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams };
8745
+ params: { new: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams };
8737
8746
  };
8738
8747
  }
8739
8748
  >
@@ -8742,17 +8751,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8742
8751
  /**
8743
8752
  * Set PVF executor parameters.
8744
8753
  *
8745
- * @param {PolkadotPrimitivesV7ExecutorParams} new_
8754
+ * @param {PolkadotPrimitivesV8ExecutorParams} new_
8746
8755
  **/
8747
8756
  setExecutorParams: GenericTxCall<
8748
8757
  Rv,
8749
- (new_: PolkadotPrimitivesV7ExecutorParams) => ChainSubmittableExtrinsic<
8758
+ (new_: PolkadotPrimitivesV8ExecutorParams) => ChainSubmittableExtrinsic<
8750
8759
  Rv,
8751
8760
  {
8752
8761
  pallet: 'Configuration';
8753
8762
  palletCall: {
8754
8763
  name: 'SetExecutorParams';
8755
- params: { new: PolkadotPrimitivesV7ExecutorParams };
8764
+ params: { new: PolkadotPrimitivesV8ExecutorParams };
8756
8765
  };
8757
8766
  }
8758
8767
  >
@@ -8898,17 +8907,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8898
8907
  /**
8899
8908
  * Set approval-voting-params.
8900
8909
  *
8901
- * @param {PolkadotPrimitivesV7ApprovalVotingParams} new_
8910
+ * @param {PolkadotPrimitivesV8ApprovalVotingParams} new_
8902
8911
  **/
8903
8912
  setApprovalVotingParams: GenericTxCall<
8904
8913
  Rv,
8905
- (new_: PolkadotPrimitivesV7ApprovalVotingParams) => ChainSubmittableExtrinsic<
8914
+ (new_: PolkadotPrimitivesV8ApprovalVotingParams) => ChainSubmittableExtrinsic<
8906
8915
  Rv,
8907
8916
  {
8908
8917
  pallet: 'Configuration';
8909
8918
  palletCall: {
8910
8919
  name: 'SetApprovalVotingParams';
8911
- params: { new: PolkadotPrimitivesV7ApprovalVotingParams };
8920
+ params: { new: PolkadotPrimitivesV8ApprovalVotingParams };
8912
8921
  };
8913
8922
  }
8914
8923
  >
@@ -8917,17 +8926,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8917
8926
  /**
8918
8927
  * Set scheduler-params.
8919
8928
  *
8920
- * @param {PolkadotPrimitivesVstagingSchedulerParams} new_
8929
+ * @param {PolkadotPrimitivesV8SchedulerParams} new_
8921
8930
  **/
8922
8931
  setSchedulerParams: GenericTxCall<
8923
8932
  Rv,
8924
- (new_: PolkadotPrimitivesVstagingSchedulerParams) => ChainSubmittableExtrinsic<
8933
+ (new_: PolkadotPrimitivesV8SchedulerParams) => ChainSubmittableExtrinsic<
8925
8934
  Rv,
8926
8935
  {
8927
8936
  pallet: 'Configuration';
8928
8937
  palletCall: {
8929
8938
  name: 'SetSchedulerParams';
8930
- params: { new: PolkadotPrimitivesVstagingSchedulerParams };
8939
+ params: { new: PolkadotPrimitivesV8SchedulerParams };
8931
8940
  };
8932
8941
  }
8933
8942
  >
@@ -8963,17 +8972,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8963
8972
  /**
8964
8973
  * Enter the paras inherent. This will process bitfields and backed candidates.
8965
8974
  *
8966
- * @param {PolkadotPrimitivesV7InherentData} data
8975
+ * @param {PolkadotPrimitivesV8InherentData} data
8967
8976
  **/
8968
8977
  enter: GenericTxCall<
8969
8978
  Rv,
8970
- (data: PolkadotPrimitivesV7InherentData) => ChainSubmittableExtrinsic<
8979
+ (data: PolkadotPrimitivesV8InherentData) => ChainSubmittableExtrinsic<
8971
8980
  Rv,
8972
8981
  {
8973
8982
  pallet: 'ParaInherent';
8974
8983
  palletCall: {
8975
8984
  name: 'Enter';
8976
- params: { data: PolkadotPrimitivesV7InherentData };
8985
+ params: { data: PolkadotPrimitivesV8InherentData };
8977
8986
  };
8978
8987
  }
8979
8988
  >
@@ -9175,14 +9184,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9175
9184
  * Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
9176
9185
  * enacts the results if that was the last vote before achieving the supermajority.
9177
9186
  *
9178
- * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
9179
- * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
9187
+ * @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
9188
+ * @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
9180
9189
  **/
9181
9190
  includePvfCheckStatement: GenericTxCall<
9182
9191
  Rv,
9183
9192
  (
9184
- stmt: PolkadotPrimitivesV7PvfCheckStatement,
9185
- signature: PolkadotPrimitivesV7ValidatorAppSignature,
9193
+ stmt: PolkadotPrimitivesV8PvfCheckStatement,
9194
+ signature: PolkadotPrimitivesV8ValidatorAppSignature,
9186
9195
  ) => ChainSubmittableExtrinsic<
9187
9196
  Rv,
9188
9197
  {
@@ -9190,8 +9199,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9190
9199
  palletCall: {
9191
9200
  name: 'IncludePvfCheckStatement';
9192
9201
  params: {
9193
- stmt: PolkadotPrimitivesV7PvfCheckStatement;
9194
- signature: PolkadotPrimitivesV7ValidatorAppSignature;
9202
+ stmt: PolkadotPrimitivesV8PvfCheckStatement;
9203
+ signature: PolkadotPrimitivesV8ValidatorAppSignature;
9195
9204
  };
9196
9205
  };
9197
9206
  }
@@ -9623,13 +9632,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9623
9632
  parasSlashing: {
9624
9633
  /**
9625
9634
  *
9626
- * @param {PolkadotPrimitivesV7SlashingDisputeProof} disputeProof
9635
+ * @param {PolkadotPrimitivesV8SlashingDisputeProof} disputeProof
9627
9636
  * @param {SpSessionMembershipProof} keyOwnerProof
9628
9637
  **/
9629
9638
  reportDisputeLostUnsigned: GenericTxCall<
9630
9639
  Rv,
9631
9640
  (
9632
- disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
9641
+ disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
9633
9642
  keyOwnerProof: SpSessionMembershipProof,
9634
9643
  ) => ChainSubmittableExtrinsic<
9635
9644
  Rv,
@@ -9637,7 +9646,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9637
9646
  pallet: 'ParasSlashing';
9638
9647
  palletCall: {
9639
9648
  name: 'ReportDisputeLostUnsigned';
9640
- params: { disputeProof: PolkadotPrimitivesV7SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
9649
+ params: { disputeProof: PolkadotPrimitivesV8SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
9641
9650
  };
9642
9651
  }
9643
9652
  >
@@ -11358,7 +11367,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
11358
11367
  * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
11359
11368
  * @param {SpSessionMembershipProof} keyOwnerProof
11360
11369
  **/
11361
- reportEquivocation: GenericTxCall<
11370
+ reportDoubleVoting: GenericTxCall<
11362
11371
  Rv,
11363
11372
  (
11364
11373
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
@@ -11368,7 +11377,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
11368
11377
  {
11369
11378
  pallet: 'Beefy';
11370
11379
  palletCall: {
11371
- name: 'ReportEquivocation';
11380
+ name: 'ReportDoubleVoting';
11372
11381
  params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
11373
11382
  };
11374
11383
  }
@@ -11389,7 +11398,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
11389
11398
  * @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
11390
11399
  * @param {SpSessionMembershipProof} keyOwnerProof
11391
11400
  **/
11392
- reportEquivocationUnsigned: GenericTxCall<
11401
+ reportDoubleVotingUnsigned: GenericTxCall<
11393
11402
  Rv,
11394
11403
  (
11395
11404
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
@@ -11399,7 +11408,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
11399
11408
  {
11400
11409
  pallet: 'Beefy';
11401
11410
  palletCall: {
11402
- name: 'ReportEquivocationUnsigned';
11411
+ name: 'ReportDoubleVotingUnsigned';
11403
11412
  params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
11404
11413
  };
11405
11414
  }
@@ -11428,6 +11437,122 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
11428
11437
  >
11429
11438
  >;
11430
11439
 
11440
+ /**
11441
+ * Report fork voting equivocation. This method will verify the equivocation proof
11442
+ * and validate the given key ownership proof against the extracted offender.
11443
+ * If both are valid, the offence will be reported.
11444
+ *
11445
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
11446
+ * @param {SpSessionMembershipProof} keyOwnerProof
11447
+ **/
11448
+ reportForkVoting: GenericTxCall<
11449
+ Rv,
11450
+ (
11451
+ equivocationProof: SpConsensusBeefyForkVotingProof,
11452
+ keyOwnerProof: SpSessionMembershipProof,
11453
+ ) => ChainSubmittableExtrinsic<
11454
+ Rv,
11455
+ {
11456
+ pallet: 'Beefy';
11457
+ palletCall: {
11458
+ name: 'ReportForkVoting';
11459
+ params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
11460
+ };
11461
+ }
11462
+ >
11463
+ >;
11464
+
11465
+ /**
11466
+ * Report fork voting equivocation. This method will verify the equivocation proof
11467
+ * and validate the given key ownership proof against the extracted offender.
11468
+ * If both are valid, the offence will be reported.
11469
+ *
11470
+ * This extrinsic must be called unsigned and it is expected that only
11471
+ * block authors will call it (validated in `ValidateUnsigned`), as such
11472
+ * if the block author is defined it will be defined as the equivocation
11473
+ * reporter.
11474
+ *
11475
+ * @param {SpConsensusBeefyForkVotingProof} equivocationProof
11476
+ * @param {SpSessionMembershipProof} keyOwnerProof
11477
+ **/
11478
+ reportForkVotingUnsigned: GenericTxCall<
11479
+ Rv,
11480
+ (
11481
+ equivocationProof: SpConsensusBeefyForkVotingProof,
11482
+ keyOwnerProof: SpSessionMembershipProof,
11483
+ ) => ChainSubmittableExtrinsic<
11484
+ Rv,
11485
+ {
11486
+ pallet: 'Beefy';
11487
+ palletCall: {
11488
+ name: 'ReportForkVotingUnsigned';
11489
+ params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
11490
+ };
11491
+ }
11492
+ >
11493
+ >;
11494
+
11495
+ /**
11496
+ * Report future block voting equivocation. This method will verify the equivocation proof
11497
+ * and validate the given key ownership proof against the extracted offender.
11498
+ * If both are valid, the offence will be reported.
11499
+ *
11500
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
11501
+ * @param {SpSessionMembershipProof} keyOwnerProof
11502
+ **/
11503
+ reportFutureBlockVoting: GenericTxCall<
11504
+ Rv,
11505
+ (
11506
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
11507
+ keyOwnerProof: SpSessionMembershipProof,
11508
+ ) => ChainSubmittableExtrinsic<
11509
+ Rv,
11510
+ {
11511
+ pallet: 'Beefy';
11512
+ palletCall: {
11513
+ name: 'ReportFutureBlockVoting';
11514
+ params: {
11515
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
11516
+ keyOwnerProof: SpSessionMembershipProof;
11517
+ };
11518
+ };
11519
+ }
11520
+ >
11521
+ >;
11522
+
11523
+ /**
11524
+ * Report future block voting equivocation. This method will verify the equivocation proof
11525
+ * and validate the given key ownership proof against the extracted offender.
11526
+ * If both are valid, the offence will be reported.
11527
+ *
11528
+ * This extrinsic must be called unsigned and it is expected that only
11529
+ * block authors will call it (validated in `ValidateUnsigned`), as such
11530
+ * if the block author is defined it will be defined as the equivocation
11531
+ * reporter.
11532
+ *
11533
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
11534
+ * @param {SpSessionMembershipProof} keyOwnerProof
11535
+ **/
11536
+ reportFutureBlockVotingUnsigned: GenericTxCall<
11537
+ Rv,
11538
+ (
11539
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
11540
+ keyOwnerProof: SpSessionMembershipProof,
11541
+ ) => ChainSubmittableExtrinsic<
11542
+ Rv,
11543
+ {
11544
+ pallet: 'Beefy';
11545
+ palletCall: {
11546
+ name: 'ReportFutureBlockVotingUnsigned';
11547
+ params: {
11548
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
11549
+ keyOwnerProof: SpSessionMembershipProof;
11550
+ };
11551
+ };
11552
+ }
11553
+ >
11554
+ >;
11555
+
11431
11556
  /**
11432
11557
  * Generic pallet tx call
11433
11558
  **/