@dedot/chaintypes 0.247.0 → 0.248.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.
- package/package.json +2 -2
- package/polkadot/errors.d.ts +5 -0
- package/polkadot/events.d.ts +94 -16
- package/polkadot/index.d.ts +1 -1
- package/polkadot/query.d.ts +85 -46
- package/polkadot/runtime.d.ts +90 -79
- package/polkadot/tx.d.ts +81 -32
- package/polkadot/types.d.ts +278 -209
package/polkadot/runtime.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import type {
|
|
|
16
16
|
BytesLike,
|
|
17
17
|
} from 'dedot/codecs';
|
|
18
18
|
import type {
|
|
19
|
-
|
|
19
|
+
SpRuntimeBlockLazyBlock,
|
|
20
20
|
SpRuntimeExtrinsicInclusionMode,
|
|
21
21
|
SpCoreOpaqueMetadata,
|
|
22
22
|
SpRuntimeTransactionValidityTransactionValidityError,
|
|
@@ -24,35 +24,35 @@ import type {
|
|
|
24
24
|
SpInherentsCheckInherentsResult,
|
|
25
25
|
SpRuntimeTransactionValidityValidTransaction,
|
|
26
26
|
SpRuntimeTransactionValidityTransactionSource,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
PolkadotPrimitivesV9ValidatorAppPublic,
|
|
28
|
+
PolkadotPrimitivesV9ValidatorIndex,
|
|
29
|
+
PolkadotPrimitivesV9GroupRotationInfo,
|
|
30
|
+
PolkadotPrimitivesV9CoreState,
|
|
31
|
+
PolkadotPrimitivesV9PersistedValidationData,
|
|
32
32
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
33
|
-
|
|
33
|
+
PolkadotPrimitivesV9OccupiedCoreAssumption,
|
|
34
34
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
35
|
-
|
|
35
|
+
PolkadotPrimitivesV9CandidateCommitments,
|
|
36
36
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
PolkadotPrimitivesV9CommittedCandidateReceiptV2,
|
|
38
|
+
PolkadotPrimitivesV9CandidateEvent,
|
|
39
39
|
PolkadotCorePrimitivesInboundDownwardMessage,
|
|
40
40
|
PolkadotCorePrimitivesInboundHrmpMessage,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
PolkadotPrimitivesV9ScrapedOnChainVotes,
|
|
42
|
+
PolkadotPrimitivesV9SessionInfo,
|
|
43
|
+
PolkadotPrimitivesV9PvfCheckStatement,
|
|
44
|
+
PolkadotPrimitivesV9ValidatorAppSignature,
|
|
45
45
|
PolkadotCorePrimitivesCandidateHash,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
PolkadotPrimitivesV9DisputeState,
|
|
47
|
+
PolkadotPrimitivesV9ExecutorParams,
|
|
48
|
+
PolkadotPrimitivesV9SlashingLegacyPendingSlashes,
|
|
49
|
+
PolkadotPrimitivesV9SlashingOpaqueKeyOwnershipProof,
|
|
50
|
+
PolkadotPrimitivesV9SlashingDisputeProof,
|
|
51
|
+
PolkadotPrimitivesV9AsyncBackingBackingState,
|
|
52
|
+
PolkadotPrimitivesV9AsyncBackingAsyncBackingParams,
|
|
53
|
+
PolkadotPrimitivesV9ApprovalVotingParams,
|
|
54
|
+
PolkadotPrimitivesV9CoreIndex,
|
|
55
|
+
PolkadotPrimitivesV9AsyncBackingConstraints,
|
|
56
56
|
SpConsensusBeefyValidatorSet,
|
|
57
57
|
SpConsensusBeefyDoubleVotingProof,
|
|
58
58
|
SpRuntimeOpaqueValue,
|
|
@@ -62,6 +62,7 @@ import type {
|
|
|
62
62
|
SpMmrPrimitivesError,
|
|
63
63
|
SpMmrPrimitivesEncodableOpaqueLeaf,
|
|
64
64
|
SpMmrPrimitivesLeafProof,
|
|
65
|
+
SpMmrPrimitivesAncestryProof,
|
|
65
66
|
SpConsensusBeefyMmrBeefyAuthoritySet,
|
|
66
67
|
SpConsensusGrandpaAppPublic,
|
|
67
68
|
SpConsensusGrandpaEquivocationProof,
|
|
@@ -107,9 +108,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
107
108
|
* Execute the given block.
|
|
108
109
|
*
|
|
109
110
|
* @callname: Core_execute_block
|
|
110
|
-
* @param {
|
|
111
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
111
112
|
**/
|
|
112
|
-
executeBlock: GenericRuntimeApiMethod<(block:
|
|
113
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlockLazyBlock) => Promise<[]>>;
|
|
113
114
|
|
|
114
115
|
/**
|
|
115
116
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -200,11 +201,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
200
201
|
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
201
202
|
*
|
|
202
203
|
* @callname: BlockBuilder_check_inherents
|
|
203
|
-
* @param {
|
|
204
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
204
205
|
* @param {SpInherentsInherentData} data
|
|
205
206
|
**/
|
|
206
207
|
checkInherents: GenericRuntimeApiMethod<
|
|
207
|
-
(block:
|
|
208
|
+
(block: SpRuntimeBlockLazyBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
208
209
|
>;
|
|
209
210
|
|
|
210
211
|
/**
|
|
@@ -341,7 +342,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
341
342
|
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
342
343
|
|
|
343
344
|
/**
|
|
344
|
-
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
345
|
+
* Returns true if a validator `account` has pages to be claimed for the given era.
|
|
345
346
|
*
|
|
346
347
|
* @callname: StakingApi_pending_rewards
|
|
347
348
|
* @param {number} era
|
|
@@ -415,7 +416,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
415
416
|
*
|
|
416
417
|
* @callname: ParachainHost_validators
|
|
417
418
|
**/
|
|
418
|
-
validators: GenericRuntimeApiMethod<() => Promise<Array<
|
|
419
|
+
validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9ValidatorAppPublic>>>;
|
|
419
420
|
|
|
420
421
|
/**
|
|
421
422
|
* Returns the validator groups and rotation info localized based on the hypothetical child
|
|
@@ -425,7 +426,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
425
426
|
* @callname: ParachainHost_validator_groups
|
|
426
427
|
**/
|
|
427
428
|
validatorGroups: GenericRuntimeApiMethod<
|
|
428
|
-
() => Promise<[Array<Array<
|
|
429
|
+
() => Promise<[Array<Array<PolkadotPrimitivesV9ValidatorIndex>>, PolkadotPrimitivesV9GroupRotationInfo]>
|
|
429
430
|
>;
|
|
430
431
|
|
|
431
432
|
/**
|
|
@@ -434,7 +435,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
434
435
|
*
|
|
435
436
|
* @callname: ParachainHost_availability_cores
|
|
436
437
|
**/
|
|
437
|
-
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<
|
|
438
|
+
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9CoreState>>>;
|
|
438
439
|
|
|
439
440
|
/**
|
|
440
441
|
* Yields the persisted validation data for the given `ParaId` along with an assumption that
|
|
@@ -445,13 +446,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
445
446
|
*
|
|
446
447
|
* @callname: ParachainHost_persisted_validation_data
|
|
447
448
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
448
|
-
* @param {
|
|
449
|
+
* @param {PolkadotPrimitivesV9OccupiedCoreAssumption} assumption
|
|
449
450
|
**/
|
|
450
451
|
persistedValidationData: GenericRuntimeApiMethod<
|
|
451
452
|
(
|
|
452
453
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
453
|
-
assumption:
|
|
454
|
-
) => Promise<
|
|
454
|
+
assumption: PolkadotPrimitivesV9OccupiedCoreAssumption,
|
|
455
|
+
) => Promise<PolkadotPrimitivesV9PersistedValidationData | undefined>
|
|
455
456
|
>;
|
|
456
457
|
|
|
457
458
|
/**
|
|
@@ -468,7 +469,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
468
469
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
469
470
|
expectedPersistedValidationDataHash: H256,
|
|
470
471
|
) => Promise<
|
|
471
|
-
| [
|
|
472
|
+
| [PolkadotPrimitivesV9PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
|
|
472
473
|
| undefined
|
|
473
474
|
>
|
|
474
475
|
>;
|
|
@@ -478,12 +479,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
478
479
|
*
|
|
479
480
|
* @callname: ParachainHost_check_validation_outputs
|
|
480
481
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
481
|
-
* @param {
|
|
482
|
+
* @param {PolkadotPrimitivesV9CandidateCommitments} outputs
|
|
482
483
|
**/
|
|
483
484
|
checkValidationOutputs: GenericRuntimeApiMethod<
|
|
484
485
|
(
|
|
485
486
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
486
|
-
outputs:
|
|
487
|
+
outputs: PolkadotPrimitivesV9CandidateCommitments,
|
|
487
488
|
) => Promise<boolean>
|
|
488
489
|
>;
|
|
489
490
|
|
|
@@ -504,12 +505,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
504
505
|
*
|
|
505
506
|
* @callname: ParachainHost_validation_code
|
|
506
507
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
507
|
-
* @param {
|
|
508
|
+
* @param {PolkadotPrimitivesV9OccupiedCoreAssumption} assumption
|
|
508
509
|
**/
|
|
509
510
|
validationCode: GenericRuntimeApiMethod<
|
|
510
511
|
(
|
|
511
512
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
512
|
-
assumption:
|
|
513
|
+
assumption: PolkadotPrimitivesV9OccupiedCoreAssumption,
|
|
513
514
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
|
|
514
515
|
>;
|
|
515
516
|
|
|
@@ -523,7 +524,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
523
524
|
candidatePendingAvailability: GenericRuntimeApiMethod<
|
|
524
525
|
(
|
|
525
526
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
526
|
-
) => Promise<
|
|
527
|
+
) => Promise<PolkadotPrimitivesV9CommittedCandidateReceiptV2 | undefined>
|
|
527
528
|
>;
|
|
528
529
|
|
|
529
530
|
/**
|
|
@@ -531,7 +532,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
531
532
|
*
|
|
532
533
|
* @callname: ParachainHost_candidate_events
|
|
533
534
|
**/
|
|
534
|
-
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<
|
|
535
|
+
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9CandidateEvent>>>;
|
|
535
536
|
|
|
536
537
|
/**
|
|
537
538
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
@@ -575,7 +576,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
575
576
|
*
|
|
576
577
|
* @callname: ParachainHost_on_chain_votes
|
|
577
578
|
**/
|
|
578
|
-
onChainVotes: GenericRuntimeApiMethod<() => Promise<
|
|
579
|
+
onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV9ScrapedOnChainVotes | undefined>>;
|
|
579
580
|
|
|
580
581
|
/**
|
|
581
582
|
* Get the session info for the given session, if stored.
|
|
@@ -585,7 +586,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
585
586
|
* @callname: ParachainHost_session_info
|
|
586
587
|
* @param {number} index
|
|
587
588
|
**/
|
|
588
|
-
sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<
|
|
589
|
+
sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV9SessionInfo | undefined>>;
|
|
589
590
|
|
|
590
591
|
/**
|
|
591
592
|
* Submits a PVF pre-checking statement into the transaction pool.
|
|
@@ -593,11 +594,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
593
594
|
* NOTE: This function is only available since parachain host version 2.
|
|
594
595
|
*
|
|
595
596
|
* @callname: ParachainHost_submit_pvf_check_statement
|
|
596
|
-
* @param {
|
|
597
|
-
* @param {
|
|
597
|
+
* @param {PolkadotPrimitivesV9PvfCheckStatement} stmt
|
|
598
|
+
* @param {PolkadotPrimitivesV9ValidatorAppSignature} signature
|
|
598
599
|
**/
|
|
599
600
|
submitPvfCheckStatement: GenericRuntimeApiMethod<
|
|
600
|
-
(stmt:
|
|
601
|
+
(stmt: PolkadotPrimitivesV9PvfCheckStatement, signature: PolkadotPrimitivesV9ValidatorAppSignature) => Promise<[]>
|
|
601
602
|
>;
|
|
602
603
|
|
|
603
604
|
/**
|
|
@@ -618,12 +619,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
618
619
|
*
|
|
619
620
|
* @callname: ParachainHost_validation_code_hash
|
|
620
621
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
621
|
-
* @param {
|
|
622
|
+
* @param {PolkadotPrimitivesV9OccupiedCoreAssumption} assumption
|
|
622
623
|
**/
|
|
623
624
|
validationCodeHash: GenericRuntimeApiMethod<
|
|
624
625
|
(
|
|
625
626
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
626
|
-
assumption:
|
|
627
|
+
assumption: PolkadotPrimitivesV9OccupiedCoreAssumption,
|
|
627
628
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
|
|
628
629
|
>;
|
|
629
630
|
|
|
@@ -633,7 +634,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
633
634
|
* @callname: ParachainHost_disputes
|
|
634
635
|
**/
|
|
635
636
|
disputes: GenericRuntimeApiMethod<
|
|
636
|
-
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash,
|
|
637
|
+
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV9DisputeState]>>
|
|
637
638
|
>;
|
|
638
639
|
|
|
639
640
|
/**
|
|
@@ -643,17 +644,20 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
643
644
|
* @param {number} session_index
|
|
644
645
|
**/
|
|
645
646
|
sessionExecutorParams: GenericRuntimeApiMethod<
|
|
646
|
-
(sessionIndex: number) => Promise<
|
|
647
|
+
(sessionIndex: number) => Promise<PolkadotPrimitivesV9ExecutorParams | undefined>
|
|
647
648
|
>;
|
|
648
649
|
|
|
649
650
|
/**
|
|
650
651
|
* Returns a list of validators that lost a past session dispute and need to be slashed.
|
|
651
|
-
*
|
|
652
|
+
*
|
|
653
|
+
* Deprecated. Use `unapplied_slashes_v2` instead.
|
|
652
654
|
*
|
|
653
655
|
* @callname: ParachainHost_unapplied_slashes
|
|
654
656
|
**/
|
|
655
657
|
unappliedSlashes: GenericRuntimeApiMethod<
|
|
656
|
-
() => Promise<
|
|
658
|
+
() => Promise<
|
|
659
|
+
Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV9SlashingLegacyPendingSlashes]>
|
|
660
|
+
>
|
|
657
661
|
>;
|
|
658
662
|
|
|
659
663
|
/**
|
|
@@ -661,12 +665,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
661
665
|
* NOTE: This function is only available since parachain host version 5.
|
|
662
666
|
*
|
|
663
667
|
* @callname: ParachainHost_key_ownership_proof
|
|
664
|
-
* @param {
|
|
668
|
+
* @param {PolkadotPrimitivesV9ValidatorAppPublic} validator_id
|
|
665
669
|
**/
|
|
666
670
|
keyOwnershipProof: GenericRuntimeApiMethod<
|
|
667
671
|
(
|
|
668
|
-
validatorId:
|
|
669
|
-
) => Promise<
|
|
672
|
+
validatorId: PolkadotPrimitivesV9ValidatorAppPublic,
|
|
673
|
+
) => Promise<PolkadotPrimitivesV9SlashingOpaqueKeyOwnershipProof | undefined>
|
|
670
674
|
>;
|
|
671
675
|
|
|
672
676
|
/**
|
|
@@ -675,13 +679,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
675
679
|
* NOTE: This function is only available since parachain host version 5.
|
|
676
680
|
*
|
|
677
681
|
* @callname: ParachainHost_submit_report_dispute_lost
|
|
678
|
-
* @param {
|
|
679
|
-
* @param {
|
|
682
|
+
* @param {PolkadotPrimitivesV9SlashingDisputeProof} dispute_proof
|
|
683
|
+
* @param {PolkadotPrimitivesV9SlashingOpaqueKeyOwnershipProof} key_ownership_proof
|
|
680
684
|
**/
|
|
681
685
|
submitReportDisputeLost: GenericRuntimeApiMethod<
|
|
682
686
|
(
|
|
683
|
-
disputeProof:
|
|
684
|
-
keyOwnershipProof:
|
|
687
|
+
disputeProof: PolkadotPrimitivesV9SlashingDisputeProof,
|
|
688
|
+
keyOwnershipProof: PolkadotPrimitivesV9SlashingOpaqueKeyOwnershipProof,
|
|
685
689
|
) => Promise<[] | undefined>
|
|
686
690
|
>;
|
|
687
691
|
|
|
@@ -702,7 +706,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
702
706
|
paraBackingState: GenericRuntimeApiMethod<
|
|
703
707
|
(
|
|
704
708
|
runtimeApiGeneratedName0: PolkadotParachainPrimitivesPrimitivesId,
|
|
705
|
-
) => Promise<
|
|
709
|
+
) => Promise<PolkadotPrimitivesV9AsyncBackingBackingState | undefined>
|
|
706
710
|
>;
|
|
707
711
|
|
|
708
712
|
/**
|
|
@@ -710,14 +714,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
710
714
|
*
|
|
711
715
|
* @callname: ParachainHost_async_backing_params
|
|
712
716
|
**/
|
|
713
|
-
asyncBackingParams: GenericRuntimeApiMethod<() => Promise<
|
|
717
|
+
asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV9AsyncBackingAsyncBackingParams>>;
|
|
714
718
|
|
|
715
719
|
/**
|
|
716
720
|
* Returns a list of all disabled validators at the given block.
|
|
717
721
|
*
|
|
718
722
|
* @callname: ParachainHost_disabled_validators
|
|
719
723
|
**/
|
|
720
|
-
disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<
|
|
724
|
+
disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9ValidatorIndex>>>;
|
|
721
725
|
|
|
722
726
|
/**
|
|
723
727
|
* Get node features.
|
|
@@ -732,7 +736,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
732
736
|
*
|
|
733
737
|
* @callname: ParachainHost_approval_voting_params
|
|
734
738
|
**/
|
|
735
|
-
approvalVotingParams: GenericRuntimeApiMethod<() => Promise<
|
|
739
|
+
approvalVotingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV9ApprovalVotingParams>>;
|
|
736
740
|
|
|
737
741
|
/**
|
|
738
742
|
* Claim queue
|
|
@@ -740,7 +744,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
740
744
|
* @callname: ParachainHost_claim_queue
|
|
741
745
|
**/
|
|
742
746
|
claimQueue: GenericRuntimeApiMethod<
|
|
743
|
-
() => Promise<Array<[
|
|
747
|
+
() => Promise<Array<[PolkadotPrimitivesV9CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
|
|
744
748
|
>;
|
|
745
749
|
|
|
746
750
|
/**
|
|
@@ -752,7 +756,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
752
756
|
candidatesPendingAvailability: GenericRuntimeApiMethod<
|
|
753
757
|
(
|
|
754
758
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
755
|
-
) => Promise<Array<
|
|
759
|
+
) => Promise<Array<PolkadotPrimitivesV9CommittedCandidateReceiptV2>>
|
|
756
760
|
>;
|
|
757
761
|
|
|
758
762
|
/**
|
|
@@ -772,7 +776,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
772
776
|
backingConstraints: GenericRuntimeApiMethod<
|
|
773
777
|
(
|
|
774
778
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
775
|
-
) => Promise<
|
|
779
|
+
) => Promise<PolkadotPrimitivesV9AsyncBackingConstraints | undefined>
|
|
776
780
|
>;
|
|
777
781
|
|
|
778
782
|
/**
|
|
@@ -889,18 +893,6 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
889
893
|
(setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
890
894
|
>;
|
|
891
895
|
|
|
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
896
|
/**
|
|
905
897
|
* Generic runtime api call
|
|
906
898
|
**/
|
|
@@ -939,6 +931,21 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
939
931
|
) => Promise<Result<[Array<SpMmrPrimitivesEncodableOpaqueLeaf>, SpMmrPrimitivesLeafProof], SpMmrPrimitivesError>>
|
|
940
932
|
>;
|
|
941
933
|
|
|
934
|
+
/**
|
|
935
|
+
* Generates a proof that the `prev_block_number` is part of the canonical chain at
|
|
936
|
+
* `best_known_block_number`.
|
|
937
|
+
*
|
|
938
|
+
* @callname: MmrApi_generate_ancestry_proof
|
|
939
|
+
* @param {number} prev_block_number
|
|
940
|
+
* @param {number | undefined} best_known_block_number
|
|
941
|
+
**/
|
|
942
|
+
generateAncestryProof: GenericRuntimeApiMethod<
|
|
943
|
+
(
|
|
944
|
+
prevBlockNumber: number,
|
|
945
|
+
bestKnownBlockNumber?: number | undefined,
|
|
946
|
+
) => Promise<Result<SpMmrPrimitivesAncestryProof, SpMmrPrimitivesError>>
|
|
947
|
+
>;
|
|
948
|
+
|
|
942
949
|
/**
|
|
943
950
|
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
|
944
951
|
*
|
|
@@ -1390,6 +1397,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1390
1397
|
>;
|
|
1391
1398
|
|
|
1392
1399
|
/**
|
|
1400
|
+
* Query delivery fees V2.
|
|
1401
|
+
*
|
|
1393
1402
|
* Get delivery fees for sending a specific `message` to a `destination`.
|
|
1394
1403
|
* These always come in a specific asset, defined by the chain.
|
|
1395
1404
|
*
|
|
@@ -1402,11 +1411,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1402
1411
|
* @callname: XcmPaymentApi_query_delivery_fees
|
|
1403
1412
|
* @param {XcmVersionedLocation} destination
|
|
1404
1413
|
* @param {XcmVersionedXcm} message
|
|
1414
|
+
* @param {XcmVersionedAssetId} asset_id
|
|
1405
1415
|
**/
|
|
1406
1416
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
1407
1417
|
(
|
|
1408
1418
|
destination: XcmVersionedLocation,
|
|
1409
1419
|
message: XcmVersionedXcm,
|
|
1420
|
+
assetId: XcmVersionedAssetId,
|
|
1410
1421
|
) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
|
|
1411
1422
|
>;
|
|
1412
1423
|
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -65,19 +65,19 @@ import type {
|
|
|
65
65
|
PalletNominationPoolsCommissionClaimPermission,
|
|
66
66
|
PalletStakingAsyncRcClientValidatorSetReport,
|
|
67
67
|
PalletStakingAsyncAhClientOperatingMode,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
PolkadotPrimitivesV9AsyncBackingAsyncBackingParams,
|
|
69
|
+
PolkadotPrimitivesV9ExecutorParams,
|
|
70
|
+
PolkadotPrimitivesV9ApprovalVotingParams,
|
|
71
|
+
PolkadotPrimitivesV9SchedulerParams,
|
|
72
|
+
PolkadotPrimitivesV9InherentData,
|
|
73
73
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
74
74
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
75
75
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
76
76
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
PolkadotPrimitivesV9PvfCheckStatement,
|
|
78
|
+
PolkadotPrimitivesV9ValidatorAppSignature,
|
|
79
79
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
80
|
-
|
|
80
|
+
PolkadotPrimitivesV9SlashingDisputeProof,
|
|
81
81
|
SpRuntimeMultiSigner,
|
|
82
82
|
PalletBrokerCoretimeInterfaceCoreAssignment,
|
|
83
83
|
PolkadotRuntimeParachainsAssignerCoretimePartsOf57600,
|
|
@@ -6441,6 +6441,55 @@ export interface ChainTx<
|
|
|
6441
6441
|
>
|
|
6442
6442
|
>;
|
|
6443
6443
|
|
|
6444
|
+
/**
|
|
6445
|
+
* Set session keys for a validator, forwarded from AssetHub.
|
|
6446
|
+
*
|
|
6447
|
+
* This is called when a validator sets their session keys on AssetHub, which forwards
|
|
6448
|
+
* the request to the RelayChain via XCM.
|
|
6449
|
+
*
|
|
6450
|
+
* AssetHub validates both keys and ownership proof before sending.
|
|
6451
|
+
* RC trusts AH's validation and does not re-validate.
|
|
6452
|
+
*
|
|
6453
|
+
* @param {AccountId32Like} stash
|
|
6454
|
+
* @param {BytesLike} keys
|
|
6455
|
+
**/
|
|
6456
|
+
setKeysFromAh: GenericTxCall<
|
|
6457
|
+
(
|
|
6458
|
+
stash: AccountId32Like,
|
|
6459
|
+
keys: BytesLike,
|
|
6460
|
+
) => ChainSubmittableExtrinsic<
|
|
6461
|
+
{
|
|
6462
|
+
pallet: 'StakingAhClient';
|
|
6463
|
+
palletCall: {
|
|
6464
|
+
name: 'SetKeysFromAh';
|
|
6465
|
+
params: { stash: AccountId32Like; keys: BytesLike };
|
|
6466
|
+
};
|
|
6467
|
+
},
|
|
6468
|
+
ChainKnownTypes
|
|
6469
|
+
>
|
|
6470
|
+
>;
|
|
6471
|
+
|
|
6472
|
+
/**
|
|
6473
|
+
* Purge session keys for a validator, forwarded from AssetHub.
|
|
6474
|
+
*
|
|
6475
|
+
* This is called when a validator purges their session keys on AssetHub, which forwards
|
|
6476
|
+
* the request to the RelayChain via XCM.
|
|
6477
|
+
*
|
|
6478
|
+
* @param {AccountId32Like} stash
|
|
6479
|
+
**/
|
|
6480
|
+
purgeKeysFromAh: GenericTxCall<
|
|
6481
|
+
(stash: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
6482
|
+
{
|
|
6483
|
+
pallet: 'StakingAhClient';
|
|
6484
|
+
palletCall: {
|
|
6485
|
+
name: 'PurgeKeysFromAh';
|
|
6486
|
+
params: { stash: AccountId32Like };
|
|
6487
|
+
};
|
|
6488
|
+
},
|
|
6489
|
+
ChainKnownTypes
|
|
6490
|
+
>
|
|
6491
|
+
>;
|
|
6492
|
+
|
|
6444
6493
|
/**
|
|
6445
6494
|
* Generic pallet tx call
|
|
6446
6495
|
**/
|
|
@@ -7111,15 +7160,15 @@ export interface ChainTx<
|
|
|
7111
7160
|
/**
|
|
7112
7161
|
* Set the asynchronous backing parameters.
|
|
7113
7162
|
*
|
|
7114
|
-
* @param {
|
|
7163
|
+
* @param {PolkadotPrimitivesV9AsyncBackingAsyncBackingParams} new_
|
|
7115
7164
|
**/
|
|
7116
7165
|
setAsyncBackingParams: GenericTxCall<
|
|
7117
|
-
(new_:
|
|
7166
|
+
(new_: PolkadotPrimitivesV9AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
|
|
7118
7167
|
{
|
|
7119
7168
|
pallet: 'Configuration';
|
|
7120
7169
|
palletCall: {
|
|
7121
7170
|
name: 'SetAsyncBackingParams';
|
|
7122
|
-
params: { new:
|
|
7171
|
+
params: { new: PolkadotPrimitivesV9AsyncBackingAsyncBackingParams };
|
|
7123
7172
|
};
|
|
7124
7173
|
},
|
|
7125
7174
|
ChainKnownTypes
|
|
@@ -7129,15 +7178,15 @@ export interface ChainTx<
|
|
|
7129
7178
|
/**
|
|
7130
7179
|
* Set PVF executor parameters.
|
|
7131
7180
|
*
|
|
7132
|
-
* @param {
|
|
7181
|
+
* @param {PolkadotPrimitivesV9ExecutorParams} new_
|
|
7133
7182
|
**/
|
|
7134
7183
|
setExecutorParams: GenericTxCall<
|
|
7135
|
-
(new_:
|
|
7184
|
+
(new_: PolkadotPrimitivesV9ExecutorParams) => ChainSubmittableExtrinsic<
|
|
7136
7185
|
{
|
|
7137
7186
|
pallet: 'Configuration';
|
|
7138
7187
|
palletCall: {
|
|
7139
7188
|
name: 'SetExecutorParams';
|
|
7140
|
-
params: { new:
|
|
7189
|
+
params: { new: PolkadotPrimitivesV9ExecutorParams };
|
|
7141
7190
|
};
|
|
7142
7191
|
},
|
|
7143
7192
|
ChainKnownTypes
|
|
@@ -7259,15 +7308,15 @@ export interface ChainTx<
|
|
|
7259
7308
|
/**
|
|
7260
7309
|
* Set approval-voting-params.
|
|
7261
7310
|
*
|
|
7262
|
-
* @param {
|
|
7311
|
+
* @param {PolkadotPrimitivesV9ApprovalVotingParams} new_
|
|
7263
7312
|
**/
|
|
7264
7313
|
setApprovalVotingParams: GenericTxCall<
|
|
7265
|
-
(new_:
|
|
7314
|
+
(new_: PolkadotPrimitivesV9ApprovalVotingParams) => ChainSubmittableExtrinsic<
|
|
7266
7315
|
{
|
|
7267
7316
|
pallet: 'Configuration';
|
|
7268
7317
|
palletCall: {
|
|
7269
7318
|
name: 'SetApprovalVotingParams';
|
|
7270
|
-
params: { new:
|
|
7319
|
+
params: { new: PolkadotPrimitivesV9ApprovalVotingParams };
|
|
7271
7320
|
};
|
|
7272
7321
|
},
|
|
7273
7322
|
ChainKnownTypes
|
|
@@ -7277,15 +7326,15 @@ export interface ChainTx<
|
|
|
7277
7326
|
/**
|
|
7278
7327
|
* Set scheduler-params.
|
|
7279
7328
|
*
|
|
7280
|
-
* @param {
|
|
7329
|
+
* @param {PolkadotPrimitivesV9SchedulerParams} new_
|
|
7281
7330
|
**/
|
|
7282
7331
|
setSchedulerParams: GenericTxCall<
|
|
7283
|
-
(new_:
|
|
7332
|
+
(new_: PolkadotPrimitivesV9SchedulerParams) => ChainSubmittableExtrinsic<
|
|
7284
7333
|
{
|
|
7285
7334
|
pallet: 'Configuration';
|
|
7286
7335
|
palletCall: {
|
|
7287
7336
|
name: 'SetSchedulerParams';
|
|
7288
|
-
params: { new:
|
|
7337
|
+
params: { new: PolkadotPrimitivesV9SchedulerParams };
|
|
7289
7338
|
};
|
|
7290
7339
|
},
|
|
7291
7340
|
ChainKnownTypes
|
|
@@ -7322,15 +7371,15 @@ export interface ChainTx<
|
|
|
7322
7371
|
/**
|
|
7323
7372
|
* Enter the paras inherent. This will process bitfields and backed candidates.
|
|
7324
7373
|
*
|
|
7325
|
-
* @param {
|
|
7374
|
+
* @param {PolkadotPrimitivesV9InherentData} data
|
|
7326
7375
|
**/
|
|
7327
7376
|
enter: GenericTxCall<
|
|
7328
|
-
(data:
|
|
7377
|
+
(data: PolkadotPrimitivesV9InherentData) => ChainSubmittableExtrinsic<
|
|
7329
7378
|
{
|
|
7330
7379
|
pallet: 'ParaInherent';
|
|
7331
7380
|
palletCall: {
|
|
7332
7381
|
name: 'Enter';
|
|
7333
|
-
params: { data:
|
|
7382
|
+
params: { data: PolkadotPrimitivesV9InherentData };
|
|
7334
7383
|
};
|
|
7335
7384
|
},
|
|
7336
7385
|
ChainKnownTypes
|
|
@@ -7526,21 +7575,21 @@ export interface ChainTx<
|
|
|
7526
7575
|
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
|
7527
7576
|
* enacts the results if that was the last vote before achieving the supermajority.
|
|
7528
7577
|
*
|
|
7529
|
-
* @param {
|
|
7530
|
-
* @param {
|
|
7578
|
+
* @param {PolkadotPrimitivesV9PvfCheckStatement} stmt
|
|
7579
|
+
* @param {PolkadotPrimitivesV9ValidatorAppSignature} signature
|
|
7531
7580
|
**/
|
|
7532
7581
|
includePvfCheckStatement: GenericTxCall<
|
|
7533
7582
|
(
|
|
7534
|
-
stmt:
|
|
7535
|
-
signature:
|
|
7583
|
+
stmt: PolkadotPrimitivesV9PvfCheckStatement,
|
|
7584
|
+
signature: PolkadotPrimitivesV9ValidatorAppSignature,
|
|
7536
7585
|
) => ChainSubmittableExtrinsic<
|
|
7537
7586
|
{
|
|
7538
7587
|
pallet: 'Paras';
|
|
7539
7588
|
palletCall: {
|
|
7540
7589
|
name: 'IncludePvfCheckStatement';
|
|
7541
7590
|
params: {
|
|
7542
|
-
stmt:
|
|
7543
|
-
signature:
|
|
7591
|
+
stmt: PolkadotPrimitivesV9PvfCheckStatement;
|
|
7592
|
+
signature: PolkadotPrimitivesV9ValidatorAppSignature;
|
|
7544
7593
|
};
|
|
7545
7594
|
};
|
|
7546
7595
|
},
|
|
@@ -8044,19 +8093,19 @@ export interface ChainTx<
|
|
|
8044
8093
|
parasSlashing: {
|
|
8045
8094
|
/**
|
|
8046
8095
|
*
|
|
8047
|
-
* @param {
|
|
8096
|
+
* @param {PolkadotPrimitivesV9SlashingDisputeProof} disputeProof
|
|
8048
8097
|
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
8049
8098
|
**/
|
|
8050
8099
|
reportDisputeLostUnsigned: GenericTxCall<
|
|
8051
8100
|
(
|
|
8052
|
-
disputeProof:
|
|
8101
|
+
disputeProof: PolkadotPrimitivesV9SlashingDisputeProof,
|
|
8053
8102
|
keyOwnerProof: SpSessionMembershipProof,
|
|
8054
8103
|
) => ChainSubmittableExtrinsic<
|
|
8055
8104
|
{
|
|
8056
8105
|
pallet: 'ParasSlashing';
|
|
8057
8106
|
palletCall: {
|
|
8058
8107
|
name: 'ReportDisputeLostUnsigned';
|
|
8059
|
-
params: { disputeProof:
|
|
8108
|
+
params: { disputeProof: PolkadotPrimitivesV9SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
|
|
8060
8109
|
};
|
|
8061
8110
|
},
|
|
8062
8111
|
ChainKnownTypes
|