@dedot/chaintypes 0.14.0 → 0.16.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.
Files changed (51) hide show
  1. package/kusama/consts.d.ts +48 -30
  2. package/kusama/errors.d.ts +89 -100
  3. package/kusama/events.d.ts +87 -28
  4. package/kusama/index.d.ts +1 -1
  5. package/kusama/query.d.ts +241 -130
  6. package/kusama/runtime.d.ts +347 -95
  7. package/kusama/tx.d.ts +3309 -456
  8. package/kusama/types.d.ts +6341 -1092
  9. package/kusama-asset-hub/consts.d.ts +52 -3
  10. package/kusama-asset-hub/errors.d.ts +30 -5
  11. package/kusama-asset-hub/events.d.ts +61 -1
  12. package/kusama-asset-hub/index.d.ts +1 -1
  13. package/kusama-asset-hub/query.d.ts +100 -18
  14. package/kusama-asset-hub/runtime.d.ts +186 -15
  15. package/kusama-asset-hub/tx.d.ts +3074 -254
  16. package/kusama-asset-hub/types.d.ts +6190 -551
  17. package/package.json +2 -2
  18. package/paseo/index.d.ts +1 -1
  19. package/rococo/errors.d.ts +0 -10
  20. package/rococo/events.d.ts +33 -12
  21. package/rococo/index.d.ts +1 -1
  22. package/rococo/query.d.ts +52 -52
  23. package/rococo/runtime.d.ts +117 -58
  24. package/rococo/tx.d.ts +33 -33
  25. package/rococo/types.d.ts +191 -185
  26. package/rococo-asset-hub/consts.d.ts +2 -2
  27. package/rococo-asset-hub/events.d.ts +87 -80
  28. package/rococo-asset-hub/index.d.ts +1 -1
  29. package/rococo-asset-hub/query.d.ts +66 -54
  30. package/rococo-asset-hub/runtime.d.ts +12 -15
  31. package/rococo-asset-hub/tx.d.ts +250 -241
  32. package/rococo-asset-hub/types.d.ts +353 -404
  33. package/westend/consts.d.ts +9 -0
  34. package/westend/errors.d.ts +0 -10
  35. package/westend/events.d.ts +79 -13
  36. package/westend/index.d.ts +1 -1
  37. package/westend/query.d.ts +75 -52
  38. package/westend/runtime.d.ts +133 -58
  39. package/westend/tx.d.ts +72 -35
  40. package/westend/types.d.ts +308 -190
  41. package/westend-asset-hub/consts.d.ts +2 -2
  42. package/westend-asset-hub/events.d.ts +87 -80
  43. package/westend-asset-hub/index.d.ts +1 -1
  44. package/westend-asset-hub/query.d.ts +66 -54
  45. package/westend-asset-hub/runtime.d.ts +12 -15
  46. package/westend-asset-hub/tx.d.ts +250 -241
  47. package/westend-asset-hub/types.d.ts +353 -404
  48. package/westend-people/index.d.ts +1 -1
  49. package/westend-people/query.d.ts +12 -12
  50. package/westend-people/tx.d.ts +1 -58
  51. package/westend-people/types.d.ts +16 -62
@@ -36,37 +36,39 @@ import type {
36
36
  SpInherentsCheckInherentsResult,
37
37
  SpRuntimeTransactionValidityValidTransaction,
38
38
  SpRuntimeTransactionValidityTransactionSource,
39
- PolkadotPrimitivesV7ValidatorAppPublic,
40
- PolkadotPrimitivesV7ValidatorIndex,
41
- PolkadotPrimitivesV7GroupRotationInfo,
42
- PolkadotPrimitivesV7CoreState,
43
- PolkadotPrimitivesV7PersistedValidationData,
39
+ PolkadotPrimitivesV8ValidatorAppPublic,
40
+ PolkadotPrimitivesV8ValidatorIndex,
41
+ PolkadotPrimitivesV8GroupRotationInfo,
42
+ PolkadotPrimitivesV8CoreState,
43
+ PolkadotPrimitivesV8PersistedValidationData,
44
44
  PolkadotParachainPrimitivesPrimitivesId,
45
- PolkadotPrimitivesV7OccupiedCoreAssumption,
45
+ PolkadotPrimitivesV8OccupiedCoreAssumption,
46
46
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
47
- PolkadotPrimitivesV7CandidateCommitments,
47
+ PolkadotPrimitivesV8CandidateCommitments,
48
48
  PolkadotParachainPrimitivesPrimitivesValidationCode,
49
- PolkadotPrimitivesV7CommittedCandidateReceipt,
50
- PolkadotPrimitivesV7CandidateEvent,
49
+ PolkadotPrimitivesV8CommittedCandidateReceipt,
50
+ PolkadotPrimitivesV8CandidateEvent,
51
51
  PolkadotCorePrimitivesInboundDownwardMessage,
52
52
  PolkadotCorePrimitivesInboundHrmpMessage,
53
- PolkadotPrimitivesV7ScrapedOnChainVotes,
54
- PolkadotPrimitivesV7SessionInfo,
55
- PolkadotPrimitivesV7PvfCheckStatement,
56
- PolkadotPrimitivesV7ValidatorAppSignature,
53
+ PolkadotPrimitivesV8ScrapedOnChainVotes,
54
+ PolkadotPrimitivesV8SessionInfo,
55
+ PolkadotPrimitivesV8PvfCheckStatement,
56
+ PolkadotPrimitivesV8ValidatorAppSignature,
57
57
  PolkadotCorePrimitivesCandidateHash,
58
- PolkadotPrimitivesV7DisputeState,
59
- PolkadotPrimitivesV7ExecutorParams,
60
- PolkadotPrimitivesV7SlashingPendingSlashes,
61
- PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
62
- PolkadotPrimitivesV7SlashingDisputeProof,
63
- PolkadotPrimitivesV7AsyncBackingBackingState,
64
- PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
65
- PolkadotPrimitivesV7ApprovalVotingParams,
66
- PolkadotPrimitivesV7CoreIndex,
58
+ PolkadotPrimitivesV8DisputeState,
59
+ PolkadotPrimitivesV8ExecutorParams,
60
+ PolkadotPrimitivesV8SlashingPendingSlashes,
61
+ PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
62
+ PolkadotPrimitivesV8SlashingDisputeProof,
63
+ PolkadotPrimitivesV8AsyncBackingBackingState,
64
+ PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
65
+ PolkadotPrimitivesV8ApprovalVotingParams,
66
+ PolkadotPrimitivesV8CoreIndex,
67
67
  SpConsensusBeefyValidatorSet,
68
68
  SpConsensusBeefyDoubleVotingProof,
69
69
  SpRuntimeOpaqueValue,
70
+ SpConsensusBeefyForkVotingProofOpaqueValue,
71
+ SpConsensusBeefyFutureBlockVotingProof,
70
72
  SpConsensusBeefyEcdsaCryptoPublic,
71
73
  SpMmrPrimitivesError,
72
74
  SpMmrPrimitivesEncodableOpaqueLeaf,
@@ -409,7 +411,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
409
411
  *
410
412
  * @callname: ParachainHost_validators
411
413
  **/
412
- validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7ValidatorAppPublic>>>;
414
+ validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8ValidatorAppPublic>>>;
413
415
 
414
416
  /**
415
417
  * Returns the validator groups and rotation info localized based on the hypothetical child
@@ -420,7 +422,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
420
422
  **/
421
423
  validatorGroups: GenericRuntimeApiMethod<
422
424
  Rv,
423
- () => Promise<[Array<Array<PolkadotPrimitivesV7ValidatorIndex>>, PolkadotPrimitivesV7GroupRotationInfo]>
425
+ () => Promise<[Array<Array<PolkadotPrimitivesV8ValidatorIndex>>, PolkadotPrimitivesV8GroupRotationInfo]>
424
426
  >;
425
427
 
426
428
  /**
@@ -429,7 +431,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
429
431
  *
430
432
  * @callname: ParachainHost_availability_cores
431
433
  **/
432
- availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7CoreState>>>;
434
+ availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8CoreState>>>;
433
435
 
434
436
  /**
435
437
  * Yields the persisted validation data for the given `ParaId` along with an assumption that
@@ -440,14 +442,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
440
442
  *
441
443
  * @callname: ParachainHost_persisted_validation_data
442
444
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
443
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
445
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
444
446
  **/
445
447
  persistedValidationData: GenericRuntimeApiMethod<
446
448
  Rv,
447
449
  (
448
450
  paraId: PolkadotParachainPrimitivesPrimitivesId,
449
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
450
- ) => Promise<PolkadotPrimitivesV7PersistedValidationData | undefined>
451
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
452
+ ) => Promise<PolkadotPrimitivesV8PersistedValidationData | undefined>
451
453
  >;
452
454
 
453
455
  /**
@@ -465,7 +467,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
465
467
  paraId: PolkadotParachainPrimitivesPrimitivesId,
466
468
  expectedPersistedValidationDataHash: H256,
467
469
  ) => Promise<
468
- | [PolkadotPrimitivesV7PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
470
+ | [PolkadotPrimitivesV8PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
469
471
  | undefined
470
472
  >
471
473
  >;
@@ -475,13 +477,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
475
477
  *
476
478
  * @callname: ParachainHost_check_validation_outputs
477
479
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
478
- * @param {PolkadotPrimitivesV7CandidateCommitments} outputs
480
+ * @param {PolkadotPrimitivesV8CandidateCommitments} outputs
479
481
  **/
480
482
  checkValidationOutputs: GenericRuntimeApiMethod<
481
483
  Rv,
482
484
  (
483
485
  paraId: PolkadotParachainPrimitivesPrimitivesId,
484
- outputs: PolkadotPrimitivesV7CandidateCommitments,
486
+ outputs: PolkadotPrimitivesV8CandidateCommitments,
485
487
  ) => Promise<boolean>
486
488
  >;
487
489
 
@@ -502,13 +504,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
502
504
  *
503
505
  * @callname: ParachainHost_validation_code
504
506
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
505
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
507
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
506
508
  **/
507
509
  validationCode: GenericRuntimeApiMethod<
508
510
  Rv,
509
511
  (
510
512
  paraId: PolkadotParachainPrimitivesPrimitivesId,
511
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
513
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
512
514
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
513
515
  >;
514
516
 
@@ -523,7 +525,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
523
525
  Rv,
524
526
  (
525
527
  paraId: PolkadotParachainPrimitivesPrimitivesId,
526
- ) => Promise<PolkadotPrimitivesV7CommittedCandidateReceipt | undefined>
528
+ ) => Promise<PolkadotPrimitivesV8CommittedCandidateReceipt | undefined>
527
529
  >;
528
530
 
529
531
  /**
@@ -531,7 +533,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
531
533
  *
532
534
  * @callname: ParachainHost_candidate_events
533
535
  **/
534
- candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7CandidateEvent>>>;
536
+ candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8CandidateEvent>>>;
535
537
 
536
538
  /**
537
539
  * Get all the pending inbound messages in the downward message queue for a para.
@@ -578,7 +580,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
578
580
  *
579
581
  * @callname: ParachainHost_on_chain_votes
580
582
  **/
581
- onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>>;
583
+ onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>>;
582
584
 
583
585
  /**
584
586
  * Get the session info for the given session, if stored.
@@ -588,7 +590,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
588
590
  * @callname: ParachainHost_session_info
589
591
  * @param {number} index
590
592
  **/
591
- sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<PolkadotPrimitivesV7SessionInfo | undefined>>;
593
+ sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<PolkadotPrimitivesV8SessionInfo | undefined>>;
592
594
 
593
595
  /**
594
596
  * Submits a PVF pre-checking statement into the transaction pool.
@@ -596,12 +598,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
596
598
  * NOTE: This function is only available since parachain host version 2.
597
599
  *
598
600
  * @callname: ParachainHost_submit_pvf_check_statement
599
- * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
600
- * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
601
+ * @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
602
+ * @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
601
603
  **/
602
604
  submitPvfCheckStatement: GenericRuntimeApiMethod<
603
605
  Rv,
604
- (stmt: PolkadotPrimitivesV7PvfCheckStatement, signature: PolkadotPrimitivesV7ValidatorAppSignature) => Promise<[]>
606
+ (stmt: PolkadotPrimitivesV8PvfCheckStatement, signature: PolkadotPrimitivesV8ValidatorAppSignature) => Promise<[]>
605
607
  >;
606
608
 
607
609
  /**
@@ -623,13 +625,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
623
625
  *
624
626
  * @callname: ParachainHost_validation_code_hash
625
627
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
626
- * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
628
+ * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
627
629
  **/
628
630
  validationCodeHash: GenericRuntimeApiMethod<
629
631
  Rv,
630
632
  (
631
633
  paraId: PolkadotParachainPrimitivesPrimitivesId,
632
- assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
634
+ assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
633
635
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
634
636
  >;
635
637
 
@@ -640,7 +642,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
640
642
  **/
641
643
  disputes: GenericRuntimeApiMethod<
642
644
  Rv,
643
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7DisputeState]>>
645
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8DisputeState]>>
644
646
  >;
645
647
 
646
648
  /**
@@ -651,7 +653,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
651
653
  **/
652
654
  sessionExecutorParams: GenericRuntimeApiMethod<
653
655
  Rv,
654
- (sessionIndex: number) => Promise<PolkadotPrimitivesV7ExecutorParams | undefined>
656
+ (sessionIndex: number) => Promise<PolkadotPrimitivesV8ExecutorParams | undefined>
655
657
  >;
656
658
 
657
659
  /**
@@ -662,7 +664,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
662
664
  **/
663
665
  unappliedSlashes: GenericRuntimeApiMethod<
664
666
  Rv,
665
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7SlashingPendingSlashes]>>
667
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8SlashingPendingSlashes]>>
666
668
  >;
667
669
 
668
670
  /**
@@ -670,13 +672,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
670
672
  * NOTE: This function is only available since parachain host version 5.
671
673
  *
672
674
  * @callname: ParachainHost_key_ownership_proof
673
- * @param {PolkadotPrimitivesV7ValidatorAppPublic} validator_id
675
+ * @param {PolkadotPrimitivesV8ValidatorAppPublic} validator_id
674
676
  **/
675
677
  keyOwnershipProof: GenericRuntimeApiMethod<
676
678
  Rv,
677
679
  (
678
- validatorId: PolkadotPrimitivesV7ValidatorAppPublic,
679
- ) => Promise<PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof | undefined>
680
+ validatorId: PolkadotPrimitivesV8ValidatorAppPublic,
681
+ ) => Promise<PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof | undefined>
680
682
  >;
681
683
 
682
684
  /**
@@ -685,14 +687,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
685
687
  * NOTE: This function is only available since parachain host version 5.
686
688
  *
687
689
  * @callname: ParachainHost_submit_report_dispute_lost
688
- * @param {PolkadotPrimitivesV7SlashingDisputeProof} dispute_proof
689
- * @param {PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof} key_ownership_proof
690
+ * @param {PolkadotPrimitivesV8SlashingDisputeProof} dispute_proof
691
+ * @param {PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof} key_ownership_proof
690
692
  **/
691
693
  submitReportDisputeLost: GenericRuntimeApiMethod<
692
694
  Rv,
693
695
  (
694
- disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
695
- keyOwnershipProof: PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
696
+ disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
697
+ keyOwnershipProof: PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
696
698
  ) => Promise<[] | undefined>
697
699
  >;
698
700
 
@@ -714,7 +716,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
714
716
  Rv,
715
717
  (
716
718
  undefined: PolkadotParachainPrimitivesPrimitivesId,
717
- ) => Promise<PolkadotPrimitivesV7AsyncBackingBackingState | undefined>
719
+ ) => Promise<PolkadotPrimitivesV8AsyncBackingBackingState | undefined>
718
720
  >;
719
721
 
720
722
  /**
@@ -722,14 +724,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
722
724
  *
723
725
  * @callname: ParachainHost_async_backing_params
724
726
  **/
725
- asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
727
+ asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8AsyncBackingAsyncBackingParams>>;
726
728
 
727
729
  /**
728
730
  * Returns a list of all disabled validators at the given block.
729
731
  *
730
732
  * @callname: ParachainHost_disabled_validators
731
733
  **/
732
- disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
734
+ disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
733
735
 
734
736
  /**
735
737
  * Get node features.
@@ -744,7 +746,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
744
746
  *
745
747
  * @callname: ParachainHost_approval_voting_params
746
748
  **/
747
- approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7ApprovalVotingParams>>;
749
+ approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8ApprovalVotingParams>>;
748
750
 
749
751
  /**
750
752
  * Claim queue
@@ -753,7 +755,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
753
755
  **/
754
756
  claimQueue: GenericRuntimeApiMethod<
755
757
  Rv,
756
- () => Promise<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
758
+ () => Promise<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
757
759
  >;
758
760
 
759
761
  /**
@@ -764,7 +766,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
764
766
  **/
765
767
  candidatesPendingAvailability: GenericRuntimeApiMethod<
766
768
  Rv,
767
- (paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV7CommittedCandidateReceipt>>
769
+ (paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV8CommittedCandidateReceipt>>
768
770
  >;
769
771
 
770
772
  /**
@@ -812,6 +814,50 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
812
814
  ) => Promise<[] | undefined>
813
815
  >;
814
816
 
817
+ /**
818
+ * Submits an unsigned extrinsic to report a fork voting equivocation. The caller
819
+ * must provide the fork voting proof (the ancestry proof should be obtained using
820
+ * `generate_ancestry_proof`) and a key ownership proof (should be obtained using
821
+ * `generate_key_ownership_proof`). The extrinsic will be unsigned and should only
822
+ * be accepted for local authorship (not to be broadcast to the network). This method
823
+ * returns `None` when creation of the extrinsic fails, e.g. if equivocation
824
+ * reporting is disabled for the given runtime (i.e. this method is
825
+ * hardcoded to return `None`). Only useful in an offchain context.
826
+ *
827
+ * @callname: BeefyApi_submit_report_fork_voting_unsigned_extrinsic
828
+ * @param {SpConsensusBeefyForkVotingProofOpaqueValue} equivocation_proof
829
+ * @param {SpRuntimeOpaqueValue} key_owner_proof
830
+ **/
831
+ submitReportForkVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
832
+ Rv,
833
+ (
834
+ equivocationProof: SpConsensusBeefyForkVotingProofOpaqueValue,
835
+ keyOwnerProof: SpRuntimeOpaqueValue,
836
+ ) => Promise<[] | undefined>
837
+ >;
838
+
839
+ /**
840
+ * Submits an unsigned extrinsic to report a future block voting equivocation. The caller
841
+ * must provide the future block voting proof and a key ownership proof
842
+ * (should be obtained using `generate_key_ownership_proof`).
843
+ * The extrinsic will be unsigned and should only be accepted for local
844
+ * authorship (not to be broadcast to the network). This method returns
845
+ * `None` when creation of the extrinsic fails, e.g. if equivocation
846
+ * reporting is disabled for the given runtime (i.e. this method is
847
+ * hardcoded to return `None`). Only useful in an offchain context.
848
+ *
849
+ * @callname: BeefyApi_submit_report_future_block_voting_unsigned_extrinsic
850
+ * @param {SpConsensusBeefyFutureBlockVotingProof} equivocation_proof
851
+ * @param {SpRuntimeOpaqueValue} key_owner_proof
852
+ **/
853
+ submitReportFutureBlockVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
854
+ Rv,
855
+ (
856
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
857
+ keyOwnerProof: SpRuntimeOpaqueValue,
858
+ ) => Promise<[] | undefined>
859
+ >;
860
+
815
861
  /**
816
862
  * Generates a proof of key ownership for the given authority in the
817
863
  * given set. An example usage of this module is coupled with the
@@ -834,6 +880,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
834
880
  (setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
835
881
  >;
836
882
 
883
+ /**
884
+ * Generates a proof that the `prev_block_number` is part of the canonical chain at
885
+ * `best_known_block_number`.
886
+ *
887
+ * @callname: BeefyApi_generate_ancestry_proof
888
+ * @param {number} prev_block_number
889
+ * @param {number | undefined} best_known_block_number
890
+ **/
891
+ generateAncestryProof: GenericRuntimeApiMethod<
892
+ Rv,
893
+ (prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>
894
+ >;
895
+
837
896
  /**
838
897
  * Generic runtime api call
839
898
  **/
package/rococo/tx.d.ts CHANGED
@@ -49,19 +49,19 @@ import type {
49
49
  PalletVestingVestingInfo,
50
50
  RococoRuntimeProxyType,
51
51
  PalletMultisigTimepoint,
52
- PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
53
- PolkadotPrimitivesV7ExecutorParams,
54
- PolkadotPrimitivesV7ApprovalVotingParams,
55
- PolkadotPrimitivesVstagingSchedulerParams,
56
- PolkadotPrimitivesV7InherentData,
52
+ PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
53
+ PolkadotPrimitivesV8ExecutorParams,
54
+ PolkadotPrimitivesV8ApprovalVotingParams,
55
+ PolkadotPrimitivesV8SchedulerParams,
56
+ PolkadotPrimitivesV8InherentData,
57
57
  PolkadotParachainPrimitivesPrimitivesId,
58
58
  PolkadotParachainPrimitivesPrimitivesValidationCode,
59
59
  PolkadotParachainPrimitivesPrimitivesHeadData,
60
60
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
61
- PolkadotPrimitivesV7PvfCheckStatement,
62
- PolkadotPrimitivesV7ValidatorAppSignature,
61
+ PolkadotPrimitivesV8PvfCheckStatement,
62
+ PolkadotPrimitivesV8ValidatorAppSignature,
63
63
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
64
- PolkadotPrimitivesV7SlashingDisputeProof,
64
+ PolkadotPrimitivesV8SlashingDisputeProof,
65
65
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
66
66
  SpRuntimeMultiSigner,
67
67
  PalletBrokerCoretimeInterfaceCoreAssignment,
@@ -2926,7 +2926,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2926
2926
  * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
2927
2927
  *
2928
2928
  * ```nocompile
2929
- * Self::registrars().get(reg_index).unwrap().fee
2929
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
2930
2930
  * ```
2931
2931
  *
2932
2932
  * Emits `JudgementRequested` if successful.
@@ -7286,17 +7286,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7286
7286
  /**
7287
7287
  * Set the asynchronous backing parameters.
7288
7288
  *
7289
- * @param {PolkadotPrimitivesV7AsyncBackingAsyncBackingParams} new_
7289
+ * @param {PolkadotPrimitivesV8AsyncBackingAsyncBackingParams} new_
7290
7290
  **/
7291
7291
  setAsyncBackingParams: GenericTxCall<
7292
7292
  Rv,
7293
- (new_: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
7293
+ (new_: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
7294
7294
  Rv,
7295
7295
  {
7296
7296
  pallet: 'Configuration';
7297
7297
  palletCall: {
7298
7298
  name: 'SetAsyncBackingParams';
7299
- params: { new: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams };
7299
+ params: { new: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams };
7300
7300
  };
7301
7301
  }
7302
7302
  >
@@ -7305,17 +7305,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7305
7305
  /**
7306
7306
  * Set PVF executor parameters.
7307
7307
  *
7308
- * @param {PolkadotPrimitivesV7ExecutorParams} new_
7308
+ * @param {PolkadotPrimitivesV8ExecutorParams} new_
7309
7309
  **/
7310
7310
  setExecutorParams: GenericTxCall<
7311
7311
  Rv,
7312
- (new_: PolkadotPrimitivesV7ExecutorParams) => ChainSubmittableExtrinsic<
7312
+ (new_: PolkadotPrimitivesV8ExecutorParams) => ChainSubmittableExtrinsic<
7313
7313
  Rv,
7314
7314
  {
7315
7315
  pallet: 'Configuration';
7316
7316
  palletCall: {
7317
7317
  name: 'SetExecutorParams';
7318
- params: { new: PolkadotPrimitivesV7ExecutorParams };
7318
+ params: { new: PolkadotPrimitivesV8ExecutorParams };
7319
7319
  };
7320
7320
  }
7321
7321
  >
@@ -7461,17 +7461,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7461
7461
  /**
7462
7462
  * Set approval-voting-params.
7463
7463
  *
7464
- * @param {PolkadotPrimitivesV7ApprovalVotingParams} new_
7464
+ * @param {PolkadotPrimitivesV8ApprovalVotingParams} new_
7465
7465
  **/
7466
7466
  setApprovalVotingParams: GenericTxCall<
7467
7467
  Rv,
7468
- (new_: PolkadotPrimitivesV7ApprovalVotingParams) => ChainSubmittableExtrinsic<
7468
+ (new_: PolkadotPrimitivesV8ApprovalVotingParams) => ChainSubmittableExtrinsic<
7469
7469
  Rv,
7470
7470
  {
7471
7471
  pallet: 'Configuration';
7472
7472
  palletCall: {
7473
7473
  name: 'SetApprovalVotingParams';
7474
- params: { new: PolkadotPrimitivesV7ApprovalVotingParams };
7474
+ params: { new: PolkadotPrimitivesV8ApprovalVotingParams };
7475
7475
  };
7476
7476
  }
7477
7477
  >
@@ -7480,17 +7480,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7480
7480
  /**
7481
7481
  * Set scheduler-params.
7482
7482
  *
7483
- * @param {PolkadotPrimitivesVstagingSchedulerParams} new_
7483
+ * @param {PolkadotPrimitivesV8SchedulerParams} new_
7484
7484
  **/
7485
7485
  setSchedulerParams: GenericTxCall<
7486
7486
  Rv,
7487
- (new_: PolkadotPrimitivesVstagingSchedulerParams) => ChainSubmittableExtrinsic<
7487
+ (new_: PolkadotPrimitivesV8SchedulerParams) => ChainSubmittableExtrinsic<
7488
7488
  Rv,
7489
7489
  {
7490
7490
  pallet: 'Configuration';
7491
7491
  palletCall: {
7492
7492
  name: 'SetSchedulerParams';
7493
- params: { new: PolkadotPrimitivesVstagingSchedulerParams };
7493
+ params: { new: PolkadotPrimitivesV8SchedulerParams };
7494
7494
  };
7495
7495
  }
7496
7496
  >
@@ -7526,17 +7526,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7526
7526
  /**
7527
7527
  * Enter the paras inherent. This will process bitfields and backed candidates.
7528
7528
  *
7529
- * @param {PolkadotPrimitivesV7InherentData} data
7529
+ * @param {PolkadotPrimitivesV8InherentData} data
7530
7530
  **/
7531
7531
  enter: GenericTxCall<
7532
7532
  Rv,
7533
- (data: PolkadotPrimitivesV7InherentData) => ChainSubmittableExtrinsic<
7533
+ (data: PolkadotPrimitivesV8InherentData) => ChainSubmittableExtrinsic<
7534
7534
  Rv,
7535
7535
  {
7536
7536
  pallet: 'ParaInherent';
7537
7537
  palletCall: {
7538
7538
  name: 'Enter';
7539
- params: { data: PolkadotPrimitivesV7InherentData };
7539
+ params: { data: PolkadotPrimitivesV8InherentData };
7540
7540
  };
7541
7541
  }
7542
7542
  >
@@ -7738,14 +7738,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7738
7738
  * Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
7739
7739
  * enacts the results if that was the last vote before achieving the supermajority.
7740
7740
  *
7741
- * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
7742
- * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
7741
+ * @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
7742
+ * @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
7743
7743
  **/
7744
7744
  includePvfCheckStatement: GenericTxCall<
7745
7745
  Rv,
7746
7746
  (
7747
- stmt: PolkadotPrimitivesV7PvfCheckStatement,
7748
- signature: PolkadotPrimitivesV7ValidatorAppSignature,
7747
+ stmt: PolkadotPrimitivesV8PvfCheckStatement,
7748
+ signature: PolkadotPrimitivesV8ValidatorAppSignature,
7749
7749
  ) => ChainSubmittableExtrinsic<
7750
7750
  Rv,
7751
7751
  {
@@ -7753,8 +7753,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7753
7753
  palletCall: {
7754
7754
  name: 'IncludePvfCheckStatement';
7755
7755
  params: {
7756
- stmt: PolkadotPrimitivesV7PvfCheckStatement;
7757
- signature: PolkadotPrimitivesV7ValidatorAppSignature;
7756
+ stmt: PolkadotPrimitivesV8PvfCheckStatement;
7757
+ signature: PolkadotPrimitivesV8ValidatorAppSignature;
7758
7758
  };
7759
7759
  };
7760
7760
  }
@@ -8186,13 +8186,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8186
8186
  parasSlashing: {
8187
8187
  /**
8188
8188
  *
8189
- * @param {PolkadotPrimitivesV7SlashingDisputeProof} disputeProof
8189
+ * @param {PolkadotPrimitivesV8SlashingDisputeProof} disputeProof
8190
8190
  * @param {SpSessionMembershipProof} keyOwnerProof
8191
8191
  **/
8192
8192
  reportDisputeLostUnsigned: GenericTxCall<
8193
8193
  Rv,
8194
8194
  (
8195
- disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
8195
+ disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
8196
8196
  keyOwnerProof: SpSessionMembershipProof,
8197
8197
  ) => ChainSubmittableExtrinsic<
8198
8198
  Rv,
@@ -8200,7 +8200,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8200
8200
  pallet: 'ParasSlashing';
8201
8201
  palletCall: {
8202
8202
  name: 'ReportDisputeLostUnsigned';
8203
- params: { disputeProof: PolkadotPrimitivesV7SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
8203
+ params: { disputeProof: PolkadotPrimitivesV8SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
8204
8204
  };
8205
8205
  }
8206
8206
  >