@dedot/chaintypes 0.229.0 → 0.230.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.
@@ -9,11 +9,11 @@ import type {
9
9
  UncheckedExtrinsicLike,
10
10
  UncheckedExtrinsic,
11
11
  AccountId32Like,
12
- AccountId32,
13
12
  H256,
14
13
  BitSequence,
15
14
  Bytes,
16
15
  BytesLike,
16
+ AccountId32,
17
17
  } from 'dedot/codecs';
18
18
  import type {
19
19
  SpRuntimeBlock,
@@ -24,40 +24,37 @@ import type {
24
24
  SpInherentsCheckInherentsResult,
25
25
  SpRuntimeTransactionValidityValidTransaction,
26
26
  SpRuntimeTransactionValidityTransactionSource,
27
- PolkadotPrimitivesV8ValidatorAppPublic,
28
- PolkadotPrimitivesV8ValidatorIndex,
29
- PolkadotPrimitivesV8GroupRotationInfo,
30
- PolkadotPrimitivesVstagingCoreState,
31
- PolkadotPrimitivesV8PersistedValidationData,
27
+ PolkadotPrimitivesV7ValidatorAppPublic,
28
+ PolkadotPrimitivesV7ValidatorIndex,
29
+ PolkadotPrimitivesV7GroupRotationInfo,
30
+ PolkadotPrimitivesV7CoreState,
31
+ PolkadotPrimitivesV7PersistedValidationData,
32
32
  PolkadotParachainPrimitivesPrimitivesId,
33
- PolkadotPrimitivesV8OccupiedCoreAssumption,
33
+ PolkadotPrimitivesV7OccupiedCoreAssumption,
34
34
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
35
- PolkadotPrimitivesV8CandidateCommitments,
35
+ PolkadotPrimitivesV7CandidateCommitments,
36
36
  PolkadotParachainPrimitivesPrimitivesValidationCode,
37
- PolkadotPrimitivesVstagingCommittedCandidateReceiptV2,
38
- PolkadotPrimitivesVstagingCandidateEvent,
37
+ PolkadotPrimitivesV7CommittedCandidateReceipt,
38
+ PolkadotPrimitivesV7CandidateEvent,
39
39
  PolkadotCorePrimitivesInboundDownwardMessage,
40
40
  PolkadotCorePrimitivesInboundHrmpMessage,
41
- PolkadotPrimitivesVstagingScrapedOnChainVotes,
42
- PolkadotPrimitivesV8SessionInfo,
43
- PolkadotPrimitivesV8PvfCheckStatement,
44
- PolkadotPrimitivesV8ValidatorAppSignature,
41
+ PolkadotPrimitivesV7ScrapedOnChainVotes,
42
+ PolkadotPrimitivesV7SessionInfo,
43
+ PolkadotPrimitivesV7PvfCheckStatement,
44
+ PolkadotPrimitivesV7ValidatorAppSignature,
45
45
  PolkadotCorePrimitivesCandidateHash,
46
- PolkadotPrimitivesV8DisputeState,
47
- PolkadotPrimitivesV8ExecutorParams,
48
- PolkadotPrimitivesV8SlashingPendingSlashes,
49
- PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
50
- PolkadotPrimitivesV8SlashingDisputeProof,
51
- PolkadotPrimitivesVstagingAsyncBackingBackingState,
52
- PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
53
- PolkadotPrimitivesV8ApprovalVotingParams,
54
- PolkadotPrimitivesV8CoreIndex,
55
- PolkadotPrimitivesVstagingAsyncBackingConstraints,
46
+ PolkadotPrimitivesV7DisputeState,
47
+ PolkadotPrimitivesV7ExecutorParams,
48
+ PolkadotPrimitivesV7SlashingPendingSlashes,
49
+ PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
50
+ PolkadotPrimitivesV7SlashingDisputeProof,
51
+ PolkadotPrimitivesV7AsyncBackingBackingState,
52
+ PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
53
+ PolkadotPrimitivesV7ApprovalVotingParams,
54
+ PolkadotPrimitivesV7CoreIndex,
56
55
  SpConsensusBeefyValidatorSet,
57
56
  SpConsensusBeefyDoubleVotingProof,
58
57
  SpRuntimeOpaqueValue,
59
- SpConsensusBeefyForkVotingProofOpaqueValue,
60
- SpConsensusBeefyFutureBlockVotingProof,
61
58
  SpConsensusBeefyEcdsaCryptoPublic,
62
59
  SpMmrPrimitivesError,
63
60
  SpMmrPrimitivesEncodableOpaqueLeaf,
@@ -73,8 +70,6 @@ import type {
73
70
  SpConsensusSlotsEquivocationProof,
74
71
  SpAuthorityDiscoveryAppPublic,
75
72
  SpCoreCryptoKeyTypeId,
76
- FrameSupportViewFunctionsViewFunctionDispatchError,
77
- FrameSupportViewFunctionsViewFunctionId,
78
73
  PalletTransactionPaymentRuntimeDispatchInfo,
79
74
  PalletTransactionPaymentFeeDetails,
80
75
  SpWeightsWeightV2Weight,
@@ -253,9 +248,6 @@ export interface RuntimeApis extends GenericRuntimeApis {
253
248
  /**
254
249
  * Returns the pending slash for a given pool member.
255
250
  *
256
- * If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on
257
- * chain.
258
- *
259
251
  * @callname: NominationPoolsApi_member_pending_slash
260
252
  * @param {AccountId32Like} member
261
253
  **/
@@ -290,30 +282,6 @@ export interface RuntimeApis extends GenericRuntimeApis {
290
282
  **/
291
283
  memberNeedsDelegateMigration: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<boolean>>;
292
284
 
293
- /**
294
- * Returns the total contribution of a pool member including any balance that is unbonding.
295
- *
296
- * @callname: NominationPoolsApi_member_total_balance
297
- * @param {AccountId32Like} who
298
- **/
299
- memberTotalBalance: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
300
-
301
- /**
302
- * Total balance contributed to the pool.
303
- *
304
- * @callname: NominationPoolsApi_pool_balance
305
- * @param {number} pool_id
306
- **/
307
- poolBalance: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
308
-
309
- /**
310
- * Returns the bonded account and reward account associated with the pool_id.
311
- *
312
- * @callname: NominationPoolsApi_pool_accounts
313
- * @param {number} pool_id
314
- **/
315
- poolAccounts: GenericRuntimeApiMethod<(poolId: number) => Promise<[AccountId32, AccountId32]>>;
316
-
317
285
  /**
318
286
  * Generic runtime api call
319
287
  **/
@@ -415,7 +383,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
415
383
  *
416
384
  * @callname: ParachainHost_validators
417
385
  **/
418
- validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorAppPublic>>>;
386
+ validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV7ValidatorAppPublic>>>;
419
387
 
420
388
  /**
421
389
  * Returns the validator groups and rotation info localized based on the hypothetical child
@@ -425,7 +393,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
425
393
  * @callname: ParachainHost_validator_groups
426
394
  **/
427
395
  validatorGroups: GenericRuntimeApiMethod<
428
- () => Promise<[Array<Array<PolkadotPrimitivesV8ValidatorIndex>>, PolkadotPrimitivesV8GroupRotationInfo]>
396
+ () => Promise<[Array<Array<PolkadotPrimitivesV7ValidatorIndex>>, PolkadotPrimitivesV7GroupRotationInfo]>
429
397
  >;
430
398
 
431
399
  /**
@@ -434,7 +402,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
434
402
  *
435
403
  * @callname: ParachainHost_availability_cores
436
404
  **/
437
- availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCoreState>>>;
405
+ availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV7CoreState>>>;
438
406
 
439
407
  /**
440
408
  * Yields the persisted validation data for the given `ParaId` along with an assumption that
@@ -445,13 +413,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
445
413
  *
446
414
  * @callname: ParachainHost_persisted_validation_data
447
415
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
448
- * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
416
+ * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
449
417
  **/
450
418
  persistedValidationData: GenericRuntimeApiMethod<
451
419
  (
452
420
  paraId: PolkadotParachainPrimitivesPrimitivesId,
453
- assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
454
- ) => Promise<PolkadotPrimitivesV8PersistedValidationData | undefined>
421
+ assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
422
+ ) => Promise<PolkadotPrimitivesV7PersistedValidationData | undefined>
455
423
  >;
456
424
 
457
425
  /**
@@ -468,7 +436,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
468
436
  paraId: PolkadotParachainPrimitivesPrimitivesId,
469
437
  expectedPersistedValidationDataHash: H256,
470
438
  ) => Promise<
471
- | [PolkadotPrimitivesV8PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
439
+ | [PolkadotPrimitivesV7PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
472
440
  | undefined
473
441
  >
474
442
  >;
@@ -478,12 +446,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
478
446
  *
479
447
  * @callname: ParachainHost_check_validation_outputs
480
448
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
481
- * @param {PolkadotPrimitivesV8CandidateCommitments} outputs
449
+ * @param {PolkadotPrimitivesV7CandidateCommitments} outputs
482
450
  **/
483
451
  checkValidationOutputs: GenericRuntimeApiMethod<
484
452
  (
485
453
  paraId: PolkadotParachainPrimitivesPrimitivesId,
486
- outputs: PolkadotPrimitivesV8CandidateCommitments,
454
+ outputs: PolkadotPrimitivesV7CandidateCommitments,
487
455
  ) => Promise<boolean>
488
456
  >;
489
457
 
@@ -504,12 +472,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
504
472
  *
505
473
  * @callname: ParachainHost_validation_code
506
474
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
507
- * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
475
+ * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
508
476
  **/
509
477
  validationCode: GenericRuntimeApiMethod<
510
478
  (
511
479
  paraId: PolkadotParachainPrimitivesPrimitivesId,
512
- assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
480
+ assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
513
481
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
514
482
  >;
515
483
 
@@ -523,7 +491,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
523
491
  candidatePendingAvailability: GenericRuntimeApiMethod<
524
492
  (
525
493
  paraId: PolkadotParachainPrimitivesPrimitivesId,
526
- ) => Promise<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2 | undefined>
494
+ ) => Promise<PolkadotPrimitivesV7CommittedCandidateReceipt | undefined>
527
495
  >;
528
496
 
529
497
  /**
@@ -531,7 +499,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
531
499
  *
532
500
  * @callname: ParachainHost_candidate_events
533
501
  **/
534
- candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCandidateEvent>>>;
502
+ candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV7CandidateEvent>>>;
535
503
 
536
504
  /**
537
505
  * Get all the pending inbound messages in the downward message queue for a para.
@@ -575,7 +543,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
575
543
  *
576
544
  * @callname: ParachainHost_on_chain_votes
577
545
  **/
578
- onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined>>;
546
+ onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>>;
579
547
 
580
548
  /**
581
549
  * Get the session info for the given session, if stored.
@@ -585,7 +553,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
585
553
  * @callname: ParachainHost_session_info
586
554
  * @param {number} index
587
555
  **/
588
- sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV8SessionInfo | undefined>>;
556
+ sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV7SessionInfo | undefined>>;
589
557
 
590
558
  /**
591
559
  * Submits a PVF pre-checking statement into the transaction pool.
@@ -593,11 +561,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
593
561
  * NOTE: This function is only available since parachain host version 2.
594
562
  *
595
563
  * @callname: ParachainHost_submit_pvf_check_statement
596
- * @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
597
- * @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
564
+ * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
565
+ * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
598
566
  **/
599
567
  submitPvfCheckStatement: GenericRuntimeApiMethod<
600
- (stmt: PolkadotPrimitivesV8PvfCheckStatement, signature: PolkadotPrimitivesV8ValidatorAppSignature) => Promise<[]>
568
+ (stmt: PolkadotPrimitivesV7PvfCheckStatement, signature: PolkadotPrimitivesV7ValidatorAppSignature) => Promise<[]>
601
569
  >;
602
570
 
603
571
  /**
@@ -618,12 +586,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
618
586
  *
619
587
  * @callname: ParachainHost_validation_code_hash
620
588
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
621
- * @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
589
+ * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
622
590
  **/
623
591
  validationCodeHash: GenericRuntimeApiMethod<
624
592
  (
625
593
  paraId: PolkadotParachainPrimitivesPrimitivesId,
626
- assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
594
+ assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
627
595
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
628
596
  >;
629
597
 
@@ -633,7 +601,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
633
601
  * @callname: ParachainHost_disputes
634
602
  **/
635
603
  disputes: GenericRuntimeApiMethod<
636
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8DisputeState]>>
604
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7DisputeState]>>
637
605
  >;
638
606
 
639
607
  /**
@@ -643,7 +611,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
643
611
  * @param {number} session_index
644
612
  **/
645
613
  sessionExecutorParams: GenericRuntimeApiMethod<
646
- (sessionIndex: number) => Promise<PolkadotPrimitivesV8ExecutorParams | undefined>
614
+ (sessionIndex: number) => Promise<PolkadotPrimitivesV7ExecutorParams | undefined>
647
615
  >;
648
616
 
649
617
  /**
@@ -653,7 +621,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
653
621
  * @callname: ParachainHost_unapplied_slashes
654
622
  **/
655
623
  unappliedSlashes: GenericRuntimeApiMethod<
656
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8SlashingPendingSlashes]>>
624
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7SlashingPendingSlashes]>>
657
625
  >;
658
626
 
659
627
  /**
@@ -661,12 +629,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
661
629
  * NOTE: This function is only available since parachain host version 5.
662
630
  *
663
631
  * @callname: ParachainHost_key_ownership_proof
664
- * @param {PolkadotPrimitivesV8ValidatorAppPublic} validator_id
632
+ * @param {PolkadotPrimitivesV7ValidatorAppPublic} validator_id
665
633
  **/
666
634
  keyOwnershipProof: GenericRuntimeApiMethod<
667
635
  (
668
- validatorId: PolkadotPrimitivesV8ValidatorAppPublic,
669
- ) => Promise<PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof | undefined>
636
+ validatorId: PolkadotPrimitivesV7ValidatorAppPublic,
637
+ ) => Promise<PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof | undefined>
670
638
  >;
671
639
 
672
640
  /**
@@ -675,13 +643,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
675
643
  * NOTE: This function is only available since parachain host version 5.
676
644
  *
677
645
  * @callname: ParachainHost_submit_report_dispute_lost
678
- * @param {PolkadotPrimitivesV8SlashingDisputeProof} dispute_proof
679
- * @param {PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof} key_ownership_proof
646
+ * @param {PolkadotPrimitivesV7SlashingDisputeProof} dispute_proof
647
+ * @param {PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof} key_ownership_proof
680
648
  **/
681
649
  submitReportDisputeLost: GenericRuntimeApiMethod<
682
650
  (
683
- disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
684
- keyOwnershipProof: PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
651
+ disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
652
+ keyOwnershipProof: PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
685
653
  ) => Promise<[] | undefined>
686
654
  >;
687
655
 
@@ -697,12 +665,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
697
665
  * Returns the state of parachain backing for a given para.
698
666
  *
699
667
  * @callname: ParachainHost_para_backing_state
700
- * @param {PolkadotParachainPrimitivesPrimitivesId} __runtime_api_generated_name_0__
668
+ * @param {PolkadotParachainPrimitivesPrimitivesId} _
701
669
  **/
702
670
  paraBackingState: GenericRuntimeApiMethod<
703
671
  (
704
- runtimeApiGeneratedName0: PolkadotParachainPrimitivesPrimitivesId,
705
- ) => Promise<PolkadotPrimitivesVstagingAsyncBackingBackingState | undefined>
672
+ undefined: PolkadotParachainPrimitivesPrimitivesId,
673
+ ) => Promise<PolkadotPrimitivesV7AsyncBackingBackingState | undefined>
706
674
  >;
707
675
 
708
676
  /**
@@ -710,14 +678,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
710
678
  *
711
679
  * @callname: ParachainHost_async_backing_params
712
680
  **/
713
- asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8AsyncBackingAsyncBackingParams>>;
681
+ asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
714
682
 
715
683
  /**
716
684
  * Returns a list of all disabled validators at the given block.
717
685
  *
718
686
  * @callname: ParachainHost_disabled_validators
719
687
  **/
720
- disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
688
+ disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
721
689
 
722
690
  /**
723
691
  * Get node features.
@@ -732,7 +700,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
732
700
  *
733
701
  * @callname: ParachainHost_approval_voting_params
734
702
  **/
735
- approvalVotingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8ApprovalVotingParams>>;
703
+ approvalVotingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV7ApprovalVotingParams>>;
736
704
 
737
705
  /**
738
706
  * Claim queue
@@ -740,7 +708,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
740
708
  * @callname: ParachainHost_claim_queue
741
709
  **/
742
710
  claimQueue: GenericRuntimeApiMethod<
743
- () => Promise<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
711
+ () => Promise<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
744
712
  >;
745
713
 
746
714
  /**
@@ -750,38 +718,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
750
718
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
751
719
  **/
752
720
  candidatesPendingAvailability: GenericRuntimeApiMethod<
753
- (
754
- paraId: PolkadotParachainPrimitivesPrimitivesId,
755
- ) => Promise<Array<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2>>
721
+ (paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV7CommittedCandidateReceipt>>
756
722
  >;
757
723
 
758
- /**
759
- * Retrieve the maximum uncompressed code size.
760
- *
761
- * @callname: ParachainHost_validation_code_bomb_limit
762
- **/
763
- validationCodeBombLimit: GenericRuntimeApiMethod<() => Promise<number>>;
764
-
765
- /**
766
- * Returns the constraints on the actions that can be taken by a new parachain
767
- * block.
768
- *
769
- * @callname: ParachainHost_backing_constraints
770
- * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
771
- **/
772
- backingConstraints: GenericRuntimeApiMethod<
773
- (
774
- paraId: PolkadotParachainPrimitivesPrimitivesId,
775
- ) => Promise<PolkadotPrimitivesVstagingAsyncBackingConstraints | undefined>
776
- >;
777
-
778
- /**
779
- * Retrieve the scheduling lookahead
780
- *
781
- * @callname: ParachainHost_scheduling_lookahead
782
- **/
783
- schedulingLookahead: GenericRuntimeApiMethod<() => Promise<number>>;
784
-
785
724
  /**
786
725
  * Generic runtime api call
787
726
  **/
@@ -806,8 +745,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
806
745
  validatorSet: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyValidatorSet | undefined>>;
807
746
 
808
747
  /**
809
- * Submits an unsigned extrinsic to report a double voting equivocation. The caller
810
- * must provide the double voting proof and a key ownership proof
748
+ * Submits an unsigned extrinsic to report an equivocation. The caller
749
+ * must provide the equivocation proof and a key ownership proof
811
750
  * (should be obtained using `generate_key_ownership_proof`). The
812
751
  * extrinsic will be unsigned and should only be accepted for local
813
752
  * authorship (not to be broadcast to the network). This method returns
@@ -815,59 +754,17 @@ export interface RuntimeApis extends GenericRuntimeApis {
815
754
  * reporting is disabled for the given runtime (i.e. this method is
816
755
  * hardcoded to return `None`). Only useful in an offchain context.
817
756
  *
818
- * @callname: BeefyApi_submit_report_double_voting_unsigned_extrinsic
757
+ * @callname: BeefyApi_submit_report_equivocation_unsigned_extrinsic
819
758
  * @param {SpConsensusBeefyDoubleVotingProof} equivocation_proof
820
759
  * @param {SpRuntimeOpaqueValue} key_owner_proof
821
760
  **/
822
- submitReportDoubleVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
761
+ submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
823
762
  (
824
763
  equivocationProof: SpConsensusBeefyDoubleVotingProof,
825
764
  keyOwnerProof: SpRuntimeOpaqueValue,
826
765
  ) => Promise<[] | undefined>
827
766
  >;
828
767
 
829
- /**
830
- * Submits an unsigned extrinsic to report a fork voting equivocation. The caller
831
- * must provide the fork voting proof (the ancestry proof should be obtained using
832
- * `generate_ancestry_proof`) and a key ownership proof (should be obtained using
833
- * `generate_key_ownership_proof`). The extrinsic will be unsigned and should only
834
- * be accepted for local authorship (not to be broadcast to the network). This method
835
- * returns `None` when creation of the extrinsic fails, e.g. if equivocation
836
- * reporting is disabled for the given runtime (i.e. this method is
837
- * hardcoded to return `None`). Only useful in an offchain context.
838
- *
839
- * @callname: BeefyApi_submit_report_fork_voting_unsigned_extrinsic
840
- * @param {SpConsensusBeefyForkVotingProofOpaqueValue} equivocation_proof
841
- * @param {SpRuntimeOpaqueValue} key_owner_proof
842
- **/
843
- submitReportForkVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
844
- (
845
- equivocationProof: SpConsensusBeefyForkVotingProofOpaqueValue,
846
- keyOwnerProof: SpRuntimeOpaqueValue,
847
- ) => Promise<[] | undefined>
848
- >;
849
-
850
- /**
851
- * Submits an unsigned extrinsic to report a future block voting equivocation. The caller
852
- * must provide the future block voting proof and a key ownership proof
853
- * (should be obtained using `generate_key_ownership_proof`).
854
- * The extrinsic will be unsigned and should only be accepted for local
855
- * authorship (not to be broadcast to the network). This method returns
856
- * `None` when creation of the extrinsic fails, e.g. if equivocation
857
- * reporting is disabled for the given runtime (i.e. this method is
858
- * hardcoded to return `None`). Only useful in an offchain context.
859
- *
860
- * @callname: BeefyApi_submit_report_future_block_voting_unsigned_extrinsic
861
- * @param {SpConsensusBeefyFutureBlockVotingProof} equivocation_proof
862
- * @param {SpRuntimeOpaqueValue} key_owner_proof
863
- **/
864
- submitReportFutureBlockVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
865
- (
866
- equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
867
- keyOwnerProof: SpRuntimeOpaqueValue,
868
- ) => Promise<[] | undefined>
869
- >;
870
-
871
768
  /**
872
769
  * Generates a proof of key ownership for the given authority in the
873
770
  * given set. An example usage of this module is coupled with the
@@ -889,18 +786,6 @@ export interface RuntimeApis extends GenericRuntimeApis {
889
786
  (setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
890
787
  >;
891
788
 
892
- /**
893
- * Generates a proof that the `prev_block_number` is part of the canonical chain at
894
- * `best_known_block_number`.
895
- *
896
- * @callname: BeefyApi_generate_ancestry_proof
897
- * @param {number} prev_block_number
898
- * @param {number | undefined} best_known_block_number
899
- **/
900
- generateAncestryProof: GenericRuntimeApiMethod<
901
- (prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>
902
- >;
903
-
904
789
  /**
905
790
  * Generic runtime api call
906
791
  **/
@@ -1211,29 +1096,6 @@ export interface RuntimeApis extends GenericRuntimeApis {
1211
1096
  **/
1212
1097
  [method: string]: GenericRuntimeApiMethod;
1213
1098
  };
1214
- /**
1215
- * @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
1216
- **/
1217
- runtimeViewFunction: {
1218
- /**
1219
- * Execute a view function query.
1220
- *
1221
- * @callname: RuntimeViewFunction_execute_view_function
1222
- * @param {FrameSupportViewFunctionsViewFunctionId} query_id
1223
- * @param {BytesLike} input
1224
- **/
1225
- executeViewFunction: GenericRuntimeApiMethod<
1226
- (
1227
- queryId: FrameSupportViewFunctionsViewFunctionId,
1228
- input: BytesLike,
1229
- ) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
1230
- >;
1231
-
1232
- /**
1233
- * Generic runtime api call
1234
- **/
1235
- [method: string]: GenericRuntimeApiMethod;
1236
- };
1237
1099
  /**
1238
1100
  * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
1239
1101
  **/
@@ -1420,18 +1282,16 @@ export interface RuntimeApis extends GenericRuntimeApis {
1420
1282
  **/
1421
1283
  dryRunApi: {
1422
1284
  /**
1423
- * Dry run call V2.
1285
+ * Dry run call.
1424
1286
  *
1425
1287
  * @callname: DryRunApi_dry_run_call
1426
1288
  * @param {PaseoRuntimeOriginCaller} origin
1427
1289
  * @param {PaseoRuntimeRuntimeCallLike} call
1428
- * @param {number} result_xcms_version
1429
1290
  **/
1430
1291
  dryRunCall: GenericRuntimeApiMethod<
1431
1292
  (
1432
1293
  origin: PaseoRuntimeOriginCaller,
1433
1294
  call: PaseoRuntimeRuntimeCallLike,
1434
- resultXcmsVersion: number,
1435
1295
  ) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
1436
1296
  >;
1437
1297
 
@@ -1481,10 +1341,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
1481
1341
  * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
1482
1342
  * storage.
1483
1343
  *
1484
- * In the case of a FRAME-based runtime, this function deserializes the full
1485
- * `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the
1486
- * provided JSON blob is incorrect or incomplete or the deserialization fails, an error
1487
- * is returned.
1344
+ * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
1345
+ * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
1346
+ * deserialization fails, an error is returned.
1488
1347
  *
1489
1348
  * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
1490
1349
  * defaults will be used.
@@ -1498,13 +1357,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
1498
1357
  * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
1499
1358
  * `id`.
1500
1359
  *
1501
- * If `id` is `None` the function should return JSON blob representation of the default
1360
+ * If `id` is `None` the function returns JSON blob representation of the default
1502
1361
  * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
1503
1362
  * `RuntimeGenesisConfig`.
1504
1363
  *
1505
1364
  * Otherwise function returns a JSON representation of the built-in, named
1506
1365
  * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
1507
- * exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
1366
+ * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
1508
1367
  * (potentially nested) key-value pairs that are intended for customizing the default
1509
1368
  * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
1510
1369
  * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can