@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.
@@ -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,
@@ -292,7 +294,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
292
294
  *
293
295
  * @callname: ParachainHost_validators
294
296
  **/
295
- validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7ValidatorAppPublic>>>;
297
+ validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8ValidatorAppPublic>>>;
296
298
 
297
299
  /**
298
300
  * Returns the validator groups and rotation info localized based on the hypothetical child
@@ -303,7 +305,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
303
305
  **/
304
306
  validatorGroups: GenericRuntimeApiMethod<
305
307
  Rv,
306
- () => Promise<[Array<Array<PolkadotPrimitivesV7ValidatorIndex>>, PolkadotPrimitivesV7GroupRotationInfo]>
308
+ () => Promise<[Array<Array<PolkadotPrimitivesV8ValidatorIndex>>, PolkadotPrimitivesV8GroupRotationInfo]>
307
309
  >;
308
310
 
309
311
  /**
@@ -312,7 +314,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
312
314
  *
313
315
  * @callname: ParachainHost_availability_cores
314
316
  **/
315
- availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7CoreState>>>;
317
+ availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8CoreState>>>;
316
318
 
317
319
  /**
318
320
  * Yields the persisted validation data for the given `ParaId` along with an assumption that
@@ -323,14 +325,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
323
325
  *
324
326
  * @callname: ParachainHost_persisted_validation_data
325
327
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
326
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
328
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
327
329
  **/
328
330
  persistedValidationData: GenericRuntimeApiMethod<
329
331
  Rv,
330
332
  (
331
333
  paraId: PolkadotParachainPrimitivesPrimitivesId,
332
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
333
- ) => Promise<PolkadotPrimitivesV7PersistedValidationData | undefined>
334
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
335
+ ) => Promise<PolkadotPrimitivesV8PersistedValidationData | undefined>
334
336
  >;
335
337
 
336
338
  /**
@@ -348,7 +350,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
348
350
  paraId: PolkadotParachainPrimitivesPrimitivesId,
349
351
  expectedPersistedValidationDataHash: H256,
350
352
  ) => Promise<
351
- | [PolkadotPrimitivesV7PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
353
+ | [PolkadotPrimitivesV8PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
352
354
  | undefined
353
355
  >
354
356
  >;
@@ -358,13 +360,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
358
360
  *
359
361
  * @callname: ParachainHost_check_validation_outputs
360
362
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
361
- * @param {PolkadotPrimitivesV7CandidateCommitments} outputs
363
+ * @param {PolkadotPrimitivesV8CandidateCommitments} outputs
362
364
  **/
363
365
  checkValidationOutputs: GenericRuntimeApiMethod<
364
366
  Rv,
365
367
  (
366
368
  paraId: PolkadotParachainPrimitivesPrimitivesId,
367
- outputs: PolkadotPrimitivesV7CandidateCommitments,
369
+ outputs: PolkadotPrimitivesV8CandidateCommitments,
368
370
  ) => Promise<boolean>
369
371
  >;
370
372
 
@@ -385,13 +387,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
385
387
  *
386
388
  * @callname: ParachainHost_validation_code
387
389
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
388
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
390
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
389
391
  **/
390
392
  validationCode: GenericRuntimeApiMethod<
391
393
  Rv,
392
394
  (
393
395
  paraId: PolkadotParachainPrimitivesPrimitivesId,
394
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
396
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
395
397
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
396
398
  >;
397
399
 
@@ -406,7 +408,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
406
408
  Rv,
407
409
  (
408
410
  paraId: PolkadotParachainPrimitivesPrimitivesId,
409
- ) => Promise<PolkadotPrimitivesV7CommittedCandidateReceipt | undefined>
411
+ ) => Promise<PolkadotPrimitivesV8CommittedCandidateReceipt | undefined>
410
412
  >;
411
413
 
412
414
  /**
@@ -414,7 +416,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
414
416
  *
415
417
  * @callname: ParachainHost_candidate_events
416
418
  **/
417
- candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7CandidateEvent>>>;
419
+ candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8CandidateEvent>>>;
418
420
 
419
421
  /**
420
422
  * Get all the pending inbound messages in the downward message queue for a para.
@@ -461,7 +463,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
461
463
  *
462
464
  * @callname: ParachainHost_on_chain_votes
463
465
  **/
464
- onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>>;
466
+ onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>>;
465
467
 
466
468
  /**
467
469
  * Get the session info for the given session, if stored.
@@ -471,7 +473,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
471
473
  * @callname: ParachainHost_session_info
472
474
  * @param {number} index
473
475
  **/
474
- sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<PolkadotPrimitivesV7SessionInfo | undefined>>;
476
+ sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<PolkadotPrimitivesV8SessionInfo | undefined>>;
475
477
 
476
478
  /**
477
479
  * Submits a PVF pre-checking statement into the transaction pool.
@@ -479,12 +481,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
479
481
  * NOTE: This function is only available since parachain host version 2.
480
482
  *
481
483
  * @callname: ParachainHost_submit_pvf_check_statement
482
- * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
483
- * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
484
+ * @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
485
+ * @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
484
486
  **/
485
487
  submitPvfCheckStatement: GenericRuntimeApiMethod<
486
488
  Rv,
487
- (stmt: PolkadotPrimitivesV7PvfCheckStatement, signature: PolkadotPrimitivesV7ValidatorAppSignature) => Promise<[]>
489
+ (stmt: PolkadotPrimitivesV8PvfCheckStatement, signature: PolkadotPrimitivesV8ValidatorAppSignature) => Promise<[]>
488
490
  >;
489
491
 
490
492
  /**
@@ -506,13 +508,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
506
508
  *
507
509
  * @callname: ParachainHost_validation_code_hash
508
510
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
509
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
511
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
510
512
  **/
511
513
  validationCodeHash: GenericRuntimeApiMethod<
512
514
  Rv,
513
515
  (
514
516
  paraId: PolkadotParachainPrimitivesPrimitivesId,
515
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
517
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
516
518
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
517
519
  >;
518
520
 
@@ -523,7 +525,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
523
525
  **/
524
526
  disputes: GenericRuntimeApiMethod<
525
527
  Rv,
526
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7DisputeState]>>
528
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8DisputeState]>>
527
529
  >;
528
530
 
529
531
  /**
@@ -534,7 +536,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
534
536
  **/
535
537
  sessionExecutorParams: GenericRuntimeApiMethod<
536
538
  Rv,
537
- (sessionIndex: number) => Promise<PolkadotPrimitivesV7ExecutorParams | undefined>
539
+ (sessionIndex: number) => Promise<PolkadotPrimitivesV8ExecutorParams | undefined>
538
540
  >;
539
541
 
540
542
  /**
@@ -545,7 +547,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
545
547
  **/
546
548
  unappliedSlashes: GenericRuntimeApiMethod<
547
549
  Rv,
548
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7SlashingPendingSlashes]>>
550
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8SlashingPendingSlashes]>>
549
551
  >;
550
552
 
551
553
  /**
@@ -553,13 +555,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
553
555
  * NOTE: This function is only available since parachain host version 5.
554
556
  *
555
557
  * @callname: ParachainHost_key_ownership_proof
556
- * @param {PolkadotPrimitivesV7ValidatorAppPublic} validator_id
558
+ * @param {PolkadotPrimitivesV8ValidatorAppPublic} validator_id
557
559
  **/
558
560
  keyOwnershipProof: GenericRuntimeApiMethod<
559
561
  Rv,
560
562
  (
561
- validatorId: PolkadotPrimitivesV7ValidatorAppPublic,
562
- ) => Promise<PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof | undefined>
563
+ validatorId: PolkadotPrimitivesV8ValidatorAppPublic,
564
+ ) => Promise<PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof | undefined>
563
565
  >;
564
566
 
565
567
  /**
@@ -568,14 +570,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
568
570
  * NOTE: This function is only available since parachain host version 5.
569
571
  *
570
572
  * @callname: ParachainHost_submit_report_dispute_lost
571
- * @param {PolkadotPrimitivesV7SlashingDisputeProof} dispute_proof
572
- * @param {PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof} key_ownership_proof
573
+ * @param {PolkadotPrimitivesV8SlashingDisputeProof} dispute_proof
574
+ * @param {PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof} key_ownership_proof
573
575
  **/
574
576
  submitReportDisputeLost: GenericRuntimeApiMethod<
575
577
  Rv,
576
578
  (
577
- disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
578
- keyOwnershipProof: PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
579
+ disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
580
+ keyOwnershipProof: PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
579
581
  ) => Promise<[] | undefined>
580
582
  >;
581
583
 
@@ -597,7 +599,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
597
599
  Rv,
598
600
  (
599
601
  undefined: PolkadotParachainPrimitivesPrimitivesId,
600
- ) => Promise<PolkadotPrimitivesV7AsyncBackingBackingState | undefined>
602
+ ) => Promise<PolkadotPrimitivesV8AsyncBackingBackingState | undefined>
601
603
  >;
602
604
 
603
605
  /**
@@ -605,14 +607,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
605
607
  *
606
608
  * @callname: ParachainHost_async_backing_params
607
609
  **/
608
- asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
610
+ asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8AsyncBackingAsyncBackingParams>>;
609
611
 
610
612
  /**
611
613
  * Returns a list of all disabled validators at the given block.
612
614
  *
613
615
  * @callname: ParachainHost_disabled_validators
614
616
  **/
615
- disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
617
+ disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
616
618
 
617
619
  /**
618
620
  * Get node features.
@@ -627,7 +629,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
627
629
  *
628
630
  * @callname: ParachainHost_approval_voting_params
629
631
  **/
630
- approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7ApprovalVotingParams>>;
632
+ approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8ApprovalVotingParams>>;
631
633
 
632
634
  /**
633
635
  * Claim queue
@@ -636,7 +638,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
636
638
  **/
637
639
  claimQueue: GenericRuntimeApiMethod<
638
640
  Rv,
639
- () => Promise<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
641
+ () => Promise<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
640
642
  >;
641
643
 
642
644
  /**
@@ -647,7 +649,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
647
649
  **/
648
650
  candidatesPendingAvailability: GenericRuntimeApiMethod<
649
651
  Rv,
650
- (paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV7CommittedCandidateReceipt>>
652
+ (paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV8CommittedCandidateReceipt>>
651
653
  >;
652
654
 
653
655
  /**
@@ -674,8 +676,8 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
674
676
  validatorSet: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusBeefyValidatorSet | undefined>>;
675
677
 
676
678
  /**
677
- * Submits an unsigned extrinsic to report an equivocation. The caller
678
- * must provide the equivocation proof and a key ownership proof
679
+ * Submits an unsigned extrinsic to report a double voting equivocation. The caller
680
+ * must provide the double voting proof and a key ownership proof
679
681
  * (should be obtained using `generate_key_ownership_proof`). The
680
682
  * extrinsic will be unsigned and should only be accepted for local
681
683
  * authorship (not to be broadcast to the network). This method returns
@@ -683,11 +685,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
683
685
  * reporting is disabled for the given runtime (i.e. this method is
684
686
  * hardcoded to return `None`). Only useful in an offchain context.
685
687
  *
686
- * @callname: BeefyApi_submit_report_equivocation_unsigned_extrinsic
688
+ * @callname: BeefyApi_submit_report_double_voting_unsigned_extrinsic
687
689
  * @param {SpConsensusBeefyDoubleVotingProof} equivocation_proof
688
690
  * @param {SpRuntimeOpaqueValue} key_owner_proof
689
691
  **/
690
- submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
692
+ submitReportDoubleVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
691
693
  Rv,
692
694
  (
693
695
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
@@ -695,6 +697,50 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
695
697
  ) => Promise<[] | undefined>
696
698
  >;
697
699
 
700
+ /**
701
+ * Submits an unsigned extrinsic to report a fork voting equivocation. The caller
702
+ * must provide the fork voting proof (the ancestry proof should be obtained using
703
+ * `generate_ancestry_proof`) and a key ownership proof (should be obtained using
704
+ * `generate_key_ownership_proof`). The extrinsic will be unsigned and should only
705
+ * be accepted for local authorship (not to be broadcast to the network). This method
706
+ * returns `None` when creation of the extrinsic fails, e.g. if equivocation
707
+ * reporting is disabled for the given runtime (i.e. this method is
708
+ * hardcoded to return `None`). Only useful in an offchain context.
709
+ *
710
+ * @callname: BeefyApi_submit_report_fork_voting_unsigned_extrinsic
711
+ * @param {SpConsensusBeefyForkVotingProofOpaqueValue} equivocation_proof
712
+ * @param {SpRuntimeOpaqueValue} key_owner_proof
713
+ **/
714
+ submitReportForkVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
715
+ Rv,
716
+ (
717
+ equivocationProof: SpConsensusBeefyForkVotingProofOpaqueValue,
718
+ keyOwnerProof: SpRuntimeOpaqueValue,
719
+ ) => Promise<[] | undefined>
720
+ >;
721
+
722
+ /**
723
+ * Submits an unsigned extrinsic to report a future block voting equivocation. The caller
724
+ * must provide the future block voting proof and a key ownership proof
725
+ * (should be obtained using `generate_key_ownership_proof`).
726
+ * The extrinsic will be unsigned and should only be accepted for local
727
+ * authorship (not to be broadcast to the network). This method returns
728
+ * `None` when creation of the extrinsic fails, e.g. if equivocation
729
+ * reporting is disabled for the given runtime (i.e. this method is
730
+ * hardcoded to return `None`). Only useful in an offchain context.
731
+ *
732
+ * @callname: BeefyApi_submit_report_future_block_voting_unsigned_extrinsic
733
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocation_proof
734
+ * @param {SpRuntimeOpaqueValue} key_owner_proof
735
+ **/
736
+ submitReportFutureBlockVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
737
+ Rv,
738
+ (
739
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
740
+ keyOwnerProof: SpRuntimeOpaqueValue,
741
+ ) => Promise<[] | undefined>
742
+ >;
743
+
698
744
  /**
699
745
  * Generates a proof of key ownership for the given authority in the
700
746
  * given set. An example usage of this module is coupled with the
@@ -717,6 +763,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
717
763
  (setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
718
764
  >;
719
765
 
766
+ /**
767
+ * Generates a proof that the `prev_block_number` is part of the canonical chain at
768
+ * `best_known_block_number`.
769
+ *
770
+ * @callname: BeefyApi_generate_ancestry_proof
771
+ * @param {number} prev_block_number
772
+ * @param {number | undefined} best_known_block_number
773
+ **/
774
+ generateAncestryProof: GenericRuntimeApiMethod<
775
+ Rv,
776
+ (prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>
777
+ >;
778
+
720
779
  /**
721
780
  * Generic runtime api call
722
781
  **/
@@ -1324,6 +1383,9 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1324
1383
  /**
1325
1384
  * Returns the pending slash for a given pool member.
1326
1385
  *
1386
+ * If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on
1387
+ * chain.
1388
+ *
1327
1389
  * @callname: NominationPoolsApi_member_pending_slash
1328
1390
  * @param {AccountId32Like} member
1329
1391
  **/
@@ -1358,6 +1420,22 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1358
1420
  **/
1359
1421
  memberNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<boolean>>;
1360
1422
 
1423
+ /**
1424
+ * Returns the total contribution of a pool member including any balance that is unbonding.
1425
+ *
1426
+ * @callname: NominationPoolsApi_member_total_balance
1427
+ * @param {AccountId32Like} who
1428
+ **/
1429
+ memberTotalBalance: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
1430
+
1431
+ /**
1432
+ * Total balance contributed to the pool.
1433
+ *
1434
+ * @callname: NominationPoolsApi_pool_balance
1435
+ * @param {number} pool_id
1436
+ **/
1437
+ poolBalance: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
1438
+
1361
1439
  /**
1362
1440
  * Generic runtime api call
1363
1441
  **/
@@ -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