@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.
@@ -16,6 +16,7 @@ import type {
16
16
  AccountId32,
17
17
  } from 'dedot/codecs';
18
18
  import type {
19
+ RelayCommonApisInflationInfo,
19
20
  SpRuntimeBlock,
20
21
  SpRuntimeExtrinsicInclusionMode,
21
22
  SpCoreOpaqueMetadata,
@@ -24,37 +25,39 @@ import type {
24
25
  SpInherentsCheckInherentsResult,
25
26
  SpRuntimeTransactionValidityValidTransaction,
26
27
  SpRuntimeTransactionValidityTransactionSource,
27
- PolkadotPrimitivesV7ValidatorAppPublic,
28
- PolkadotPrimitivesV7ValidatorIndex,
29
- PolkadotPrimitivesV7GroupRotationInfo,
30
- PolkadotPrimitivesV7CoreState,
31
- PolkadotPrimitivesV7PersistedValidationData,
28
+ PolkadotPrimitivesV8ValidatorAppPublic,
29
+ PolkadotPrimitivesV8ValidatorIndex,
30
+ PolkadotPrimitivesV8GroupRotationInfo,
31
+ PolkadotPrimitivesV8CoreState,
32
+ PolkadotPrimitivesV8PersistedValidationData,
32
33
  PolkadotParachainPrimitivesPrimitivesId,
33
- PolkadotPrimitivesV7OccupiedCoreAssumption,
34
+ PolkadotPrimitivesV8OccupiedCoreAssumption,
34
35
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
35
- PolkadotPrimitivesV7CandidateCommitments,
36
+ PolkadotPrimitivesV8CandidateCommitments,
36
37
  PolkadotParachainPrimitivesPrimitivesValidationCode,
37
- PolkadotPrimitivesV7CommittedCandidateReceipt,
38
- PolkadotPrimitivesV7CandidateEvent,
38
+ PolkadotPrimitivesV8CommittedCandidateReceipt,
39
+ PolkadotPrimitivesV8CandidateEvent,
39
40
  PolkadotCorePrimitivesInboundDownwardMessage,
40
41
  PolkadotCorePrimitivesInboundHrmpMessage,
41
- PolkadotPrimitivesV7ScrapedOnChainVotes,
42
- PolkadotPrimitivesV7SessionInfo,
43
- PolkadotPrimitivesV7PvfCheckStatement,
44
- PolkadotPrimitivesV7ValidatorAppSignature,
42
+ PolkadotPrimitivesV8ScrapedOnChainVotes,
43
+ PolkadotPrimitivesV8SessionInfo,
44
+ PolkadotPrimitivesV8PvfCheckStatement,
45
+ PolkadotPrimitivesV8ValidatorAppSignature,
45
46
  PolkadotCorePrimitivesCandidateHash,
46
- PolkadotPrimitivesV7DisputeState,
47
- PolkadotPrimitivesV7ExecutorParams,
48
- PolkadotPrimitivesV7SlashingPendingSlashes,
49
- PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
50
- PolkadotPrimitivesV7SlashingDisputeProof,
51
- PolkadotPrimitivesV7AsyncBackingBackingState,
52
- PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
53
- PolkadotPrimitivesV7ApprovalVotingParams,
54
- PolkadotPrimitivesV7CoreIndex,
47
+ PolkadotPrimitivesV8DisputeState,
48
+ PolkadotPrimitivesV8ExecutorParams,
49
+ PolkadotPrimitivesV8SlashingPendingSlashes,
50
+ PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
51
+ PolkadotPrimitivesV8SlashingDisputeProof,
52
+ PolkadotPrimitivesV8AsyncBackingBackingState,
53
+ PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
54
+ PolkadotPrimitivesV8ApprovalVotingParams,
55
+ PolkadotPrimitivesV8CoreIndex,
55
56
  SpConsensusBeefyValidatorSet,
56
57
  SpConsensusBeefyDoubleVotingProof,
57
58
  SpRuntimeOpaqueValue,
59
+ SpConsensusBeefyForkVotingProofOpaqueValue,
60
+ SpConsensusBeefyFutureBlockVotingProof,
58
61
  SpConsensusBeefyEcdsaCryptoPublic,
59
62
  SpMmrPrimitivesError,
60
63
  SpMmrPrimitivesEncodableOpaqueLeaf,
@@ -87,6 +90,25 @@ import type {
87
90
  } from './types.js';
88
91
 
89
92
  export interface RuntimeApis extends GenericRuntimeApis {
93
+ /**
94
+ * @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
95
+ **/
96
+ inflation: {
97
+ /**
98
+ * Return the current estimates of the inflation amount.
99
+ *
100
+ * This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly
101
+ * recommended over trying to read-storage, or re-create the onchain logic.
102
+ *
103
+ * @callname: Inflation_experimental_inflation_prediction_info
104
+ **/
105
+ experimentalInflationPredictionInfo: GenericRuntimeApiMethod<() => Promise<RelayCommonApisInflationInfo>>;
106
+
107
+ /**
108
+ * Generic runtime api call
109
+ **/
110
+ [method: string]: GenericRuntimeApiMethod;
111
+ };
90
112
  /**
91
113
  * @runtimeapi: Core - 0xdf6acb689907609b
92
114
  **/
@@ -248,6 +270,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
248
270
  /**
249
271
  * Returns the pending slash for a given pool member.
250
272
  *
273
+ * If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on
274
+ * chain.
275
+ *
251
276
  * @callname: NominationPoolsApi_member_pending_slash
252
277
  * @param {AccountId32Like} member
253
278
  **/
@@ -282,6 +307,22 @@ export interface RuntimeApis extends GenericRuntimeApis {
282
307
  **/
283
308
  memberNeedsDelegateMigration: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<boolean>>;
284
309
 
310
+ /**
311
+ * Returns the total contribution of a pool member including any balance that is unbonding.
312
+ *
313
+ * @callname: NominationPoolsApi_member_total_balance
314
+ * @param {AccountId32Like} who
315
+ **/
316
+ memberTotalBalance: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
317
+
318
+ /**
319
+ * Total balance contributed to the pool.
320
+ *
321
+ * @callname: NominationPoolsApi_pool_balance
322
+ * @param {number} pool_id
323
+ **/
324
+ poolBalance: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
325
+
285
326
  /**
286
327
  * Generic runtime api call
287
328
  **/
@@ -383,7 +424,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
383
424
  *
384
425
  * @callname: ParachainHost_validators
385
426
  **/
386
- validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV7ValidatorAppPublic>>>;
427
+ validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorAppPublic>>>;
387
428
 
388
429
  /**
389
430
  * Returns the validator groups and rotation info localized based on the hypothetical child
@@ -393,7 +434,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
393
434
  * @callname: ParachainHost_validator_groups
394
435
  **/
395
436
  validatorGroups: GenericRuntimeApiMethod<
396
- () => Promise<[Array<Array<PolkadotPrimitivesV7ValidatorIndex>>, PolkadotPrimitivesV7GroupRotationInfo]>
437
+ () => Promise<[Array<Array<PolkadotPrimitivesV8ValidatorIndex>>, PolkadotPrimitivesV8GroupRotationInfo]>
397
438
  >;
398
439
 
399
440
  /**
@@ -402,7 +443,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
402
443
  *
403
444
  * @callname: ParachainHost_availability_cores
404
445
  **/
405
- availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV7CoreState>>>;
446
+ availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8CoreState>>>;
406
447
 
407
448
  /**
408
449
  * Yields the persisted validation data for the given `ParaId` along with an assumption that
@@ -413,13 +454,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
413
454
  *
414
455
  * @callname: ParachainHost_persisted_validation_data
415
456
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
416
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
457
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
417
458
  **/
418
459
  persistedValidationData: GenericRuntimeApiMethod<
419
460
  (
420
461
  paraId: PolkadotParachainPrimitivesPrimitivesId,
421
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
422
- ) => Promise<PolkadotPrimitivesV7PersistedValidationData | undefined>
462
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
463
+ ) => Promise<PolkadotPrimitivesV8PersistedValidationData | undefined>
423
464
  >;
424
465
 
425
466
  /**
@@ -436,7 +477,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
436
477
  paraId: PolkadotParachainPrimitivesPrimitivesId,
437
478
  expectedPersistedValidationDataHash: H256,
438
479
  ) => Promise<
439
- | [PolkadotPrimitivesV7PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
480
+ | [PolkadotPrimitivesV8PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
440
481
  | undefined
441
482
  >
442
483
  >;
@@ -446,12 +487,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
446
487
  *
447
488
  * @callname: ParachainHost_check_validation_outputs
448
489
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
449
- * @param {PolkadotPrimitivesV7CandidateCommitments} outputs
490
+ * @param {PolkadotPrimitivesV8CandidateCommitments} outputs
450
491
  **/
451
492
  checkValidationOutputs: GenericRuntimeApiMethod<
452
493
  (
453
494
  paraId: PolkadotParachainPrimitivesPrimitivesId,
454
- outputs: PolkadotPrimitivesV7CandidateCommitments,
495
+ outputs: PolkadotPrimitivesV8CandidateCommitments,
455
496
  ) => Promise<boolean>
456
497
  >;
457
498
 
@@ -472,12 +513,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
472
513
  *
473
514
  * @callname: ParachainHost_validation_code
474
515
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
475
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
516
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
476
517
  **/
477
518
  validationCode: GenericRuntimeApiMethod<
478
519
  (
479
520
  paraId: PolkadotParachainPrimitivesPrimitivesId,
480
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
521
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
481
522
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
482
523
  >;
483
524
 
@@ -491,7 +532,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
491
532
  candidatePendingAvailability: GenericRuntimeApiMethod<
492
533
  (
493
534
  paraId: PolkadotParachainPrimitivesPrimitivesId,
494
- ) => Promise<PolkadotPrimitivesV7CommittedCandidateReceipt | undefined>
535
+ ) => Promise<PolkadotPrimitivesV8CommittedCandidateReceipt | undefined>
495
536
  >;
496
537
 
497
538
  /**
@@ -499,7 +540,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
499
540
  *
500
541
  * @callname: ParachainHost_candidate_events
501
542
  **/
502
- candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV7CandidateEvent>>>;
543
+ candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8CandidateEvent>>>;
503
544
 
504
545
  /**
505
546
  * Get all the pending inbound messages in the downward message queue for a para.
@@ -543,7 +584,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
543
584
  *
544
585
  * @callname: ParachainHost_on_chain_votes
545
586
  **/
546
- onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>>;
587
+ onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>>;
547
588
 
548
589
  /**
549
590
  * Get the session info for the given session, if stored.
@@ -553,7 +594,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
553
594
  * @callname: ParachainHost_session_info
554
595
  * @param {number} index
555
596
  **/
556
- sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV7SessionInfo | undefined>>;
597
+ sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV8SessionInfo | undefined>>;
557
598
 
558
599
  /**
559
600
  * Submits a PVF pre-checking statement into the transaction pool.
@@ -561,11 +602,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
561
602
  * NOTE: This function is only available since parachain host version 2.
562
603
  *
563
604
  * @callname: ParachainHost_submit_pvf_check_statement
564
- * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
565
- * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
605
+ * @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
606
+ * @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
566
607
  **/
567
608
  submitPvfCheckStatement: GenericRuntimeApiMethod<
568
- (stmt: PolkadotPrimitivesV7PvfCheckStatement, signature: PolkadotPrimitivesV7ValidatorAppSignature) => Promise<[]>
609
+ (stmt: PolkadotPrimitivesV8PvfCheckStatement, signature: PolkadotPrimitivesV8ValidatorAppSignature) => Promise<[]>
569
610
  >;
570
611
 
571
612
  /**
@@ -586,12 +627,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
586
627
  *
587
628
  * @callname: ParachainHost_validation_code_hash
588
629
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
589
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
630
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
590
631
  **/
591
632
  validationCodeHash: GenericRuntimeApiMethod<
592
633
  (
593
634
  paraId: PolkadotParachainPrimitivesPrimitivesId,
594
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
635
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
595
636
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
596
637
  >;
597
638
 
@@ -601,7 +642,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
601
642
  * @callname: ParachainHost_disputes
602
643
  **/
603
644
  disputes: GenericRuntimeApiMethod<
604
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7DisputeState]>>
645
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8DisputeState]>>
605
646
  >;
606
647
 
607
648
  /**
@@ -611,7 +652,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
611
652
  * @param {number} session_index
612
653
  **/
613
654
  sessionExecutorParams: GenericRuntimeApiMethod<
614
- (sessionIndex: number) => Promise<PolkadotPrimitivesV7ExecutorParams | undefined>
655
+ (sessionIndex: number) => Promise<PolkadotPrimitivesV8ExecutorParams | undefined>
615
656
  >;
616
657
 
617
658
  /**
@@ -621,7 +662,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
621
662
  * @callname: ParachainHost_unapplied_slashes
622
663
  **/
623
664
  unappliedSlashes: GenericRuntimeApiMethod<
624
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7SlashingPendingSlashes]>>
665
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8SlashingPendingSlashes]>>
625
666
  >;
626
667
 
627
668
  /**
@@ -629,12 +670,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
629
670
  * NOTE: This function is only available since parachain host version 5.
630
671
  *
631
672
  * @callname: ParachainHost_key_ownership_proof
632
- * @param {PolkadotPrimitivesV7ValidatorAppPublic} validator_id
673
+ * @param {PolkadotPrimitivesV8ValidatorAppPublic} validator_id
633
674
  **/
634
675
  keyOwnershipProof: GenericRuntimeApiMethod<
635
676
  (
636
- validatorId: PolkadotPrimitivesV7ValidatorAppPublic,
637
- ) => Promise<PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof | undefined>
677
+ validatorId: PolkadotPrimitivesV8ValidatorAppPublic,
678
+ ) => Promise<PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof | undefined>
638
679
  >;
639
680
 
640
681
  /**
@@ -643,13 +684,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
643
684
  * NOTE: This function is only available since parachain host version 5.
644
685
  *
645
686
  * @callname: ParachainHost_submit_report_dispute_lost
646
- * @param {PolkadotPrimitivesV7SlashingDisputeProof} dispute_proof
647
- * @param {PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof} key_ownership_proof
687
+ * @param {PolkadotPrimitivesV8SlashingDisputeProof} dispute_proof
688
+ * @param {PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof} key_ownership_proof
648
689
  **/
649
690
  submitReportDisputeLost: GenericRuntimeApiMethod<
650
691
  (
651
- disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
652
- keyOwnershipProof: PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
692
+ disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
693
+ keyOwnershipProof: PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
653
694
  ) => Promise<[] | undefined>
654
695
  >;
655
696
 
@@ -670,7 +711,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
670
711
  paraBackingState: GenericRuntimeApiMethod<
671
712
  (
672
713
  undefined: PolkadotParachainPrimitivesPrimitivesId,
673
- ) => Promise<PolkadotPrimitivesV7AsyncBackingBackingState | undefined>
714
+ ) => Promise<PolkadotPrimitivesV8AsyncBackingBackingState | undefined>
674
715
  >;
675
716
 
676
717
  /**
@@ -678,14 +719,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
678
719
  *
679
720
  * @callname: ParachainHost_async_backing_params
680
721
  **/
681
- asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
722
+ asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8AsyncBackingAsyncBackingParams>>;
682
723
 
683
724
  /**
684
725
  * Returns a list of all disabled validators at the given block.
685
726
  *
686
727
  * @callname: ParachainHost_disabled_validators
687
728
  **/
688
- disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
729
+ disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
689
730
 
690
731
  /**
691
732
  * Get node features.
@@ -700,7 +741,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
700
741
  *
701
742
  * @callname: ParachainHost_approval_voting_params
702
743
  **/
703
- approvalVotingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV7ApprovalVotingParams>>;
744
+ approvalVotingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8ApprovalVotingParams>>;
704
745
 
705
746
  /**
706
747
  * Claim queue
@@ -708,7 +749,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
708
749
  * @callname: ParachainHost_claim_queue
709
750
  **/
710
751
  claimQueue: GenericRuntimeApiMethod<
711
- () => Promise<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
752
+ () => Promise<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
712
753
  >;
713
754
 
714
755
  /**
@@ -718,7 +759,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
718
759
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
719
760
  **/
720
761
  candidatesPendingAvailability: GenericRuntimeApiMethod<
721
- (paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV7CommittedCandidateReceipt>>
762
+ (paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV8CommittedCandidateReceipt>>
722
763
  >;
723
764
 
724
765
  /**
@@ -745,8 +786,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
745
786
  validatorSet: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyValidatorSet | undefined>>;
746
787
 
747
788
  /**
748
- * Submits an unsigned extrinsic to report an equivocation. The caller
749
- * must provide the equivocation proof and a key ownership proof
789
+ * Submits an unsigned extrinsic to report a double voting equivocation. The caller
790
+ * must provide the double voting proof and a key ownership proof
750
791
  * (should be obtained using `generate_key_ownership_proof`). The
751
792
  * extrinsic will be unsigned and should only be accepted for local
752
793
  * authorship (not to be broadcast to the network). This method returns
@@ -754,17 +795,59 @@ export interface RuntimeApis extends GenericRuntimeApis {
754
795
  * reporting is disabled for the given runtime (i.e. this method is
755
796
  * hardcoded to return `None`). Only useful in an offchain context.
756
797
  *
757
- * @callname: BeefyApi_submit_report_equivocation_unsigned_extrinsic
798
+ * @callname: BeefyApi_submit_report_double_voting_unsigned_extrinsic
758
799
  * @param {SpConsensusBeefyDoubleVotingProof} equivocation_proof
759
800
  * @param {SpRuntimeOpaqueValue} key_owner_proof
760
801
  **/
761
- submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
802
+ submitReportDoubleVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
762
803
  (
763
804
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
764
805
  keyOwnerProof: SpRuntimeOpaqueValue,
765
806
  ) => Promise<[] | undefined>
766
807
  >;
767
808
 
809
+ /**
810
+ * Submits an unsigned extrinsic to report a fork voting equivocation. The caller
811
+ * must provide the fork voting proof (the ancestry proof should be obtained using
812
+ * `generate_ancestry_proof`) and a key ownership proof (should be obtained using
813
+ * `generate_key_ownership_proof`). The extrinsic will be unsigned and should only
814
+ * be accepted for local authorship (not to be broadcast to the network). This method
815
+ * returns `None` when creation of the extrinsic fails, e.g. if equivocation
816
+ * reporting is disabled for the given runtime (i.e. this method is
817
+ * hardcoded to return `None`). Only useful in an offchain context.
818
+ *
819
+ * @callname: BeefyApi_submit_report_fork_voting_unsigned_extrinsic
820
+ * @param {SpConsensusBeefyForkVotingProofOpaqueValue} equivocation_proof
821
+ * @param {SpRuntimeOpaqueValue} key_owner_proof
822
+ **/
823
+ submitReportForkVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
824
+ (
825
+ equivocationProof: SpConsensusBeefyForkVotingProofOpaqueValue,
826
+ keyOwnerProof: SpRuntimeOpaqueValue,
827
+ ) => Promise<[] | undefined>
828
+ >;
829
+
830
+ /**
831
+ * Submits an unsigned extrinsic to report a future block voting equivocation. The caller
832
+ * must provide the future block voting proof and a key ownership proof
833
+ * (should be obtained using `generate_key_ownership_proof`).
834
+ * The extrinsic will be unsigned and should only be accepted for local
835
+ * authorship (not to be broadcast to the network). This method returns
836
+ * `None` when creation of the extrinsic fails, e.g. if equivocation
837
+ * reporting is disabled for the given runtime (i.e. this method is
838
+ * hardcoded to return `None`). Only useful in an offchain context.
839
+ *
840
+ * @callname: BeefyApi_submit_report_future_block_voting_unsigned_extrinsic
841
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocation_proof
842
+ * @param {SpRuntimeOpaqueValue} key_owner_proof
843
+ **/
844
+ submitReportFutureBlockVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
845
+ (
846
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
847
+ keyOwnerProof: SpRuntimeOpaqueValue,
848
+ ) => Promise<[] | undefined>
849
+ >;
850
+
768
851
  /**
769
852
  * Generates a proof of key ownership for the given authority in the
770
853
  * given set. An example usage of this module is coupled with the
@@ -786,6 +869,18 @@ export interface RuntimeApis extends GenericRuntimeApis {
786
869
  (setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
787
870
  >;
788
871
 
872
+ /**
873
+ * Generates a proof that the `prev_block_number` is part of the canonical chain at
874
+ * `best_known_block_number`.
875
+ *
876
+ * @callname: BeefyApi_generate_ancestry_proof
877
+ * @param {number} prev_block_number
878
+ * @param {number | undefined} best_known_block_number
879
+ **/
880
+ generateAncestryProof: GenericRuntimeApiMethod<
881
+ (prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>
882
+ >;
883
+
789
884
  /**
790
885
  * Generic runtime api call
791
886
  **/
@@ -1363,7 +1458,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
1363
1458
  *
1364
1459
  * Otherwise function returns a JSON representation of the built-in, named
1365
1460
  * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
1366
- * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
1461
+ * exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
1367
1462
  * (potentially nested) key-value pairs that are intended for customizing the default
1368
1463
  * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
1369
1464
  * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can