@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.
@@ -25,37 +25,39 @@ import type {
25
25
  SpInherentsCheckInherentsResult,
26
26
  SpRuntimeTransactionValidityValidTransaction,
27
27
  SpRuntimeTransactionValidityTransactionSource,
28
- PolkadotPrimitivesV7ValidatorAppPublic,
29
- PolkadotPrimitivesV7ValidatorIndex,
30
- PolkadotPrimitivesV7GroupRotationInfo,
31
- PolkadotPrimitivesV7CoreState,
32
- PolkadotPrimitivesV7PersistedValidationData,
28
+ PolkadotPrimitivesV8ValidatorAppPublic,
29
+ PolkadotPrimitivesV8ValidatorIndex,
30
+ PolkadotPrimitivesV8GroupRotationInfo,
31
+ PolkadotPrimitivesV8CoreState,
32
+ PolkadotPrimitivesV8PersistedValidationData,
33
33
  PolkadotParachainPrimitivesPrimitivesId,
34
- PolkadotPrimitivesV7OccupiedCoreAssumption,
34
+ PolkadotPrimitivesV8OccupiedCoreAssumption,
35
35
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
36
- PolkadotPrimitivesV7CandidateCommitments,
36
+ PolkadotPrimitivesV8CandidateCommitments,
37
37
  PolkadotParachainPrimitivesPrimitivesValidationCode,
38
- PolkadotPrimitivesV7CommittedCandidateReceipt,
39
- PolkadotPrimitivesV7CandidateEvent,
38
+ PolkadotPrimitivesV8CommittedCandidateReceipt,
39
+ PolkadotPrimitivesV8CandidateEvent,
40
40
  PolkadotCorePrimitivesInboundDownwardMessage,
41
41
  PolkadotCorePrimitivesInboundHrmpMessage,
42
- PolkadotPrimitivesV7ScrapedOnChainVotes,
43
- PolkadotPrimitivesV7SessionInfo,
44
- PolkadotPrimitivesV7PvfCheckStatement,
45
- PolkadotPrimitivesV7ValidatorAppSignature,
42
+ PolkadotPrimitivesV8ScrapedOnChainVotes,
43
+ PolkadotPrimitivesV8SessionInfo,
44
+ PolkadotPrimitivesV8PvfCheckStatement,
45
+ PolkadotPrimitivesV8ValidatorAppSignature,
46
46
  PolkadotCorePrimitivesCandidateHash,
47
- PolkadotPrimitivesV7DisputeState,
48
- PolkadotPrimitivesV7ExecutorParams,
49
- PolkadotPrimitivesV7SlashingPendingSlashes,
50
- PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
51
- PolkadotPrimitivesV7SlashingDisputeProof,
52
- PolkadotPrimitivesV7AsyncBackingBackingState,
53
- PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
54
- PolkadotPrimitivesV7ApprovalVotingParams,
55
- PolkadotPrimitivesV7CoreIndex,
47
+ PolkadotPrimitivesV8DisputeState,
48
+ PolkadotPrimitivesV8ExecutorParams,
49
+ PolkadotPrimitivesV8SlashingPendingSlashes,
50
+ PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
51
+ PolkadotPrimitivesV8SlashingDisputeProof,
52
+ PolkadotPrimitivesV8AsyncBackingBackingState,
53
+ PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
54
+ PolkadotPrimitivesV8ApprovalVotingParams,
55
+ PolkadotPrimitivesV8CoreIndex,
56
56
  SpConsensusBeefyValidatorSet,
57
57
  SpConsensusBeefyDoubleVotingProof,
58
58
  SpRuntimeOpaqueValue,
59
+ SpConsensusBeefyForkVotingProofOpaqueValue,
60
+ SpConsensusBeefyFutureBlockVotingProof,
59
61
  SpConsensusBeefyEcdsaCryptoPublic,
60
62
  SpMmrPrimitivesError,
61
63
  SpMmrPrimitivesEncodableOpaqueLeaf,
@@ -271,6 +273,9 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
271
273
  /**
272
274
  * Returns the pending slash for a given pool member.
273
275
  *
276
+ * If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on
277
+ * chain.
278
+ *
274
279
  * @callname: NominationPoolsApi_member_pending_slash
275
280
  * @param {AccountId32Like} member
276
281
  **/
@@ -305,6 +310,22 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
305
310
  **/
306
311
  memberNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<boolean>>;
307
312
 
313
+ /**
314
+ * Returns the total contribution of a pool member including any balance that is unbonding.
315
+ *
316
+ * @callname: NominationPoolsApi_member_total_balance
317
+ * @param {AccountId32Like} who
318
+ **/
319
+ memberTotalBalance: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
320
+
321
+ /**
322
+ * Total balance contributed to the pool.
323
+ *
324
+ * @callname: NominationPoolsApi_pool_balance
325
+ * @param {number} pool_id
326
+ **/
327
+ poolBalance: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
328
+
308
329
  /**
309
330
  * Generic runtime api call
310
331
  **/
@@ -407,7 +428,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
407
428
  *
408
429
  * @callname: ParachainHost_validators
409
430
  **/
410
- validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7ValidatorAppPublic>>>;
431
+ validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8ValidatorAppPublic>>>;
411
432
 
412
433
  /**
413
434
  * Returns the validator groups and rotation info localized based on the hypothetical child
@@ -418,7 +439,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
418
439
  **/
419
440
  validatorGroups: GenericRuntimeApiMethod<
420
441
  Rv,
421
- () => Promise<[Array<Array<PolkadotPrimitivesV7ValidatorIndex>>, PolkadotPrimitivesV7GroupRotationInfo]>
442
+ () => Promise<[Array<Array<PolkadotPrimitivesV8ValidatorIndex>>, PolkadotPrimitivesV8GroupRotationInfo]>
422
443
  >;
423
444
 
424
445
  /**
@@ -427,7 +448,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
427
448
  *
428
449
  * @callname: ParachainHost_availability_cores
429
450
  **/
430
- availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7CoreState>>>;
451
+ availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8CoreState>>>;
431
452
 
432
453
  /**
433
454
  * Yields the persisted validation data for the given `ParaId` along with an assumption that
@@ -438,14 +459,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
438
459
  *
439
460
  * @callname: ParachainHost_persisted_validation_data
440
461
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
441
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
462
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
442
463
  **/
443
464
  persistedValidationData: GenericRuntimeApiMethod<
444
465
  Rv,
445
466
  (
446
467
  paraId: PolkadotParachainPrimitivesPrimitivesId,
447
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
448
- ) => Promise<PolkadotPrimitivesV7PersistedValidationData | undefined>
468
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
469
+ ) => Promise<PolkadotPrimitivesV8PersistedValidationData | undefined>
449
470
  >;
450
471
 
451
472
  /**
@@ -463,7 +484,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
463
484
  paraId: PolkadotParachainPrimitivesPrimitivesId,
464
485
  expectedPersistedValidationDataHash: H256,
465
486
  ) => Promise<
466
- | [PolkadotPrimitivesV7PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
487
+ | [PolkadotPrimitivesV8PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
467
488
  | undefined
468
489
  >
469
490
  >;
@@ -473,13 +494,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
473
494
  *
474
495
  * @callname: ParachainHost_check_validation_outputs
475
496
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
476
- * @param {PolkadotPrimitivesV7CandidateCommitments} outputs
497
+ * @param {PolkadotPrimitivesV8CandidateCommitments} outputs
477
498
  **/
478
499
  checkValidationOutputs: GenericRuntimeApiMethod<
479
500
  Rv,
480
501
  (
481
502
  paraId: PolkadotParachainPrimitivesPrimitivesId,
482
- outputs: PolkadotPrimitivesV7CandidateCommitments,
503
+ outputs: PolkadotPrimitivesV8CandidateCommitments,
483
504
  ) => Promise<boolean>
484
505
  >;
485
506
 
@@ -500,13 +521,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
500
521
  *
501
522
  * @callname: ParachainHost_validation_code
502
523
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
503
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
524
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
504
525
  **/
505
526
  validationCode: GenericRuntimeApiMethod<
506
527
  Rv,
507
528
  (
508
529
  paraId: PolkadotParachainPrimitivesPrimitivesId,
509
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
530
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
510
531
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
511
532
  >;
512
533
 
@@ -521,7 +542,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
521
542
  Rv,
522
543
  (
523
544
  paraId: PolkadotParachainPrimitivesPrimitivesId,
524
- ) => Promise<PolkadotPrimitivesV7CommittedCandidateReceipt | undefined>
545
+ ) => Promise<PolkadotPrimitivesV8CommittedCandidateReceipt | undefined>
525
546
  >;
526
547
 
527
548
  /**
@@ -529,7 +550,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
529
550
  *
530
551
  * @callname: ParachainHost_candidate_events
531
552
  **/
532
- candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7CandidateEvent>>>;
553
+ candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8CandidateEvent>>>;
533
554
 
534
555
  /**
535
556
  * Get all the pending inbound messages in the downward message queue for a para.
@@ -576,7 +597,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
576
597
  *
577
598
  * @callname: ParachainHost_on_chain_votes
578
599
  **/
579
- onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>>;
600
+ onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>>;
580
601
 
581
602
  /**
582
603
  * Get the session info for the given session, if stored.
@@ -586,7 +607,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
586
607
  * @callname: ParachainHost_session_info
587
608
  * @param {number} index
588
609
  **/
589
- sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<PolkadotPrimitivesV7SessionInfo | undefined>>;
610
+ sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<PolkadotPrimitivesV8SessionInfo | undefined>>;
590
611
 
591
612
  /**
592
613
  * Submits a PVF pre-checking statement into the transaction pool.
@@ -594,12 +615,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
594
615
  * NOTE: This function is only available since parachain host version 2.
595
616
  *
596
617
  * @callname: ParachainHost_submit_pvf_check_statement
597
- * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
598
- * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
618
+ * @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
619
+ * @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
599
620
  **/
600
621
  submitPvfCheckStatement: GenericRuntimeApiMethod<
601
622
  Rv,
602
- (stmt: PolkadotPrimitivesV7PvfCheckStatement, signature: PolkadotPrimitivesV7ValidatorAppSignature) => Promise<[]>
623
+ (stmt: PolkadotPrimitivesV8PvfCheckStatement, signature: PolkadotPrimitivesV8ValidatorAppSignature) => Promise<[]>
603
624
  >;
604
625
 
605
626
  /**
@@ -621,13 +642,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
621
642
  *
622
643
  * @callname: ParachainHost_validation_code_hash
623
644
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
624
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
645
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
625
646
  **/
626
647
  validationCodeHash: GenericRuntimeApiMethod<
627
648
  Rv,
628
649
  (
629
650
  paraId: PolkadotParachainPrimitivesPrimitivesId,
630
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
651
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
631
652
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
632
653
  >;
633
654
 
@@ -638,7 +659,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
638
659
  **/
639
660
  disputes: GenericRuntimeApiMethod<
640
661
  Rv,
641
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7DisputeState]>>
662
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8DisputeState]>>
642
663
  >;
643
664
 
644
665
  /**
@@ -649,7 +670,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
649
670
  **/
650
671
  sessionExecutorParams: GenericRuntimeApiMethod<
651
672
  Rv,
652
- (sessionIndex: number) => Promise<PolkadotPrimitivesV7ExecutorParams | undefined>
673
+ (sessionIndex: number) => Promise<PolkadotPrimitivesV8ExecutorParams | undefined>
653
674
  >;
654
675
 
655
676
  /**
@@ -660,7 +681,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
660
681
  **/
661
682
  unappliedSlashes: GenericRuntimeApiMethod<
662
683
  Rv,
663
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7SlashingPendingSlashes]>>
684
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8SlashingPendingSlashes]>>
664
685
  >;
665
686
 
666
687
  /**
@@ -668,13 +689,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
668
689
  * NOTE: This function is only available since parachain host version 5.
669
690
  *
670
691
  * @callname: ParachainHost_key_ownership_proof
671
- * @param {PolkadotPrimitivesV7ValidatorAppPublic} validator_id
692
+ * @param {PolkadotPrimitivesV8ValidatorAppPublic} validator_id
672
693
  **/
673
694
  keyOwnershipProof: GenericRuntimeApiMethod<
674
695
  Rv,
675
696
  (
676
- validatorId: PolkadotPrimitivesV7ValidatorAppPublic,
677
- ) => Promise<PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof | undefined>
697
+ validatorId: PolkadotPrimitivesV8ValidatorAppPublic,
698
+ ) => Promise<PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof | undefined>
678
699
  >;
679
700
 
680
701
  /**
@@ -683,14 +704,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
683
704
  * NOTE: This function is only available since parachain host version 5.
684
705
  *
685
706
  * @callname: ParachainHost_submit_report_dispute_lost
686
- * @param {PolkadotPrimitivesV7SlashingDisputeProof} dispute_proof
687
- * @param {PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof} key_ownership_proof
707
+ * @param {PolkadotPrimitivesV8SlashingDisputeProof} dispute_proof
708
+ * @param {PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof} key_ownership_proof
688
709
  **/
689
710
  submitReportDisputeLost: GenericRuntimeApiMethod<
690
711
  Rv,
691
712
  (
692
- disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
693
- keyOwnershipProof: PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
713
+ disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
714
+ keyOwnershipProof: PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
694
715
  ) => Promise<[] | undefined>
695
716
  >;
696
717
 
@@ -712,7 +733,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
712
733
  Rv,
713
734
  (
714
735
  undefined: PolkadotParachainPrimitivesPrimitivesId,
715
- ) => Promise<PolkadotPrimitivesV7AsyncBackingBackingState | undefined>
736
+ ) => Promise<PolkadotPrimitivesV8AsyncBackingBackingState | undefined>
716
737
  >;
717
738
 
718
739
  /**
@@ -720,14 +741,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
720
741
  *
721
742
  * @callname: ParachainHost_async_backing_params
722
743
  **/
723
- asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
744
+ asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8AsyncBackingAsyncBackingParams>>;
724
745
 
725
746
  /**
726
747
  * Returns a list of all disabled validators at the given block.
727
748
  *
728
749
  * @callname: ParachainHost_disabled_validators
729
750
  **/
730
- disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
751
+ disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
731
752
 
732
753
  /**
733
754
  * Get node features.
@@ -742,7 +763,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
742
763
  *
743
764
  * @callname: ParachainHost_approval_voting_params
744
765
  **/
745
- approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7ApprovalVotingParams>>;
766
+ approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8ApprovalVotingParams>>;
746
767
 
747
768
  /**
748
769
  * Claim queue
@@ -751,7 +772,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
751
772
  **/
752
773
  claimQueue: GenericRuntimeApiMethod<
753
774
  Rv,
754
- () => Promise<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
775
+ () => Promise<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
755
776
  >;
756
777
 
757
778
  /**
@@ -762,7 +783,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
762
783
  **/
763
784
  candidatesPendingAvailability: GenericRuntimeApiMethod<
764
785
  Rv,
765
- (paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV7CommittedCandidateReceipt>>
786
+ (paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV8CommittedCandidateReceipt>>
766
787
  >;
767
788
 
768
789
  /**
@@ -789,8 +810,8 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
789
810
  validatorSet: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusBeefyValidatorSet | undefined>>;
790
811
 
791
812
  /**
792
- * Submits an unsigned extrinsic to report an equivocation. The caller
793
- * must provide the equivocation proof and a key ownership proof
813
+ * Submits an unsigned extrinsic to report a double voting equivocation. The caller
814
+ * must provide the double voting proof and a key ownership proof
794
815
  * (should be obtained using `generate_key_ownership_proof`). The
795
816
  * extrinsic will be unsigned and should only be accepted for local
796
817
  * authorship (not to be broadcast to the network). This method returns
@@ -798,11 +819,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
798
819
  * reporting is disabled for the given runtime (i.e. this method is
799
820
  * hardcoded to return `None`). Only useful in an offchain context.
800
821
  *
801
- * @callname: BeefyApi_submit_report_equivocation_unsigned_extrinsic
822
+ * @callname: BeefyApi_submit_report_double_voting_unsigned_extrinsic
802
823
  * @param {SpConsensusBeefyDoubleVotingProof} equivocation_proof
803
824
  * @param {SpRuntimeOpaqueValue} key_owner_proof
804
825
  **/
805
- submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
826
+ submitReportDoubleVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
806
827
  Rv,
807
828
  (
808
829
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
@@ -810,6 +831,50 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
810
831
  ) => Promise<[] | undefined>
811
832
  >;
812
833
 
834
+ /**
835
+ * Submits an unsigned extrinsic to report a fork voting equivocation. The caller
836
+ * must provide the fork voting proof (the ancestry proof should be obtained using
837
+ * `generate_ancestry_proof`) and a key ownership proof (should be obtained using
838
+ * `generate_key_ownership_proof`). The extrinsic will be unsigned and should only
839
+ * be accepted for local authorship (not to be broadcast to the network). This method
840
+ * returns `None` when creation of the extrinsic fails, e.g. if equivocation
841
+ * reporting is disabled for the given runtime (i.e. this method is
842
+ * hardcoded to return `None`). Only useful in an offchain context.
843
+ *
844
+ * @callname: BeefyApi_submit_report_fork_voting_unsigned_extrinsic
845
+ * @param {SpConsensusBeefyForkVotingProofOpaqueValue} equivocation_proof
846
+ * @param {SpRuntimeOpaqueValue} key_owner_proof
847
+ **/
848
+ submitReportForkVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
849
+ Rv,
850
+ (
851
+ equivocationProof: SpConsensusBeefyForkVotingProofOpaqueValue,
852
+ keyOwnerProof: SpRuntimeOpaqueValue,
853
+ ) => Promise<[] | undefined>
854
+ >;
855
+
856
+ /**
857
+ * Submits an unsigned extrinsic to report a future block voting equivocation. The caller
858
+ * must provide the future block voting proof and a key ownership proof
859
+ * (should be obtained using `generate_key_ownership_proof`).
860
+ * The extrinsic will be unsigned and should only be accepted for local
861
+ * authorship (not to be broadcast to the network). This method returns
862
+ * `None` when creation of the extrinsic fails, e.g. if equivocation
863
+ * reporting is disabled for the given runtime (i.e. this method is
864
+ * hardcoded to return `None`). Only useful in an offchain context.
865
+ *
866
+ * @callname: BeefyApi_submit_report_future_block_voting_unsigned_extrinsic
867
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocation_proof
868
+ * @param {SpRuntimeOpaqueValue} key_owner_proof
869
+ **/
870
+ submitReportFutureBlockVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
871
+ Rv,
872
+ (
873
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
874
+ keyOwnerProof: SpRuntimeOpaqueValue,
875
+ ) => Promise<[] | undefined>
876
+ >;
877
+
813
878
  /**
814
879
  * Generates a proof of key ownership for the given authority in the
815
880
  * given set. An example usage of this module is coupled with the
@@ -832,6 +897,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
832
897
  (setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
833
898
  >;
834
899
 
900
+ /**
901
+ * Generates a proof that the `prev_block_number` is part of the canonical chain at
902
+ * `best_known_block_number`.
903
+ *
904
+ * @callname: BeefyApi_generate_ancestry_proof
905
+ * @param {number} prev_block_number
906
+ * @param {number | undefined} best_known_block_number
907
+ **/
908
+ generateAncestryProof: GenericRuntimeApiMethod<
909
+ Rv,
910
+ (prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>
911
+ >;
912
+
835
913
  /**
836
914
  * Generic runtime api call
837
915
  **/
@@ -1428,7 +1506,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1428
1506
  *
1429
1507
  * Otherwise function returns a JSON representation of the built-in, named
1430
1508
  * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
1431
- * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
1509
+ * exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
1432
1510
  * (potentially nested) key-value pairs that are intended for customizing the default
1433
1511
  * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
1434
1512
  * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can