@dedot/chaintypes 0.231.0 → 0.233.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/paseo/consts.d.ts +106 -18
- package/paseo/errors.d.ts +294 -42
- package/paseo/events.d.ts +753 -87
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +556 -115
- package/paseo/runtime.d.ts +212 -91
- package/paseo/tx.d.ts +1188 -196
- package/paseo/types.d.ts +6894 -4909
- package/paseo/view-functions.d.ts +75 -1
package/paseo/runtime.d.ts
CHANGED
|
@@ -9,14 +9,13 @@ import type {
|
|
|
9
9
|
UncheckedExtrinsicLike,
|
|
10
10
|
UncheckedExtrinsic,
|
|
11
11
|
AccountId32Like,
|
|
12
|
+
AccountId32,
|
|
12
13
|
H256,
|
|
13
14
|
BitSequence,
|
|
14
15
|
Bytes,
|
|
15
16
|
BytesLike,
|
|
16
|
-
AccountId32,
|
|
17
17
|
} from 'dedot/codecs';
|
|
18
18
|
import type {
|
|
19
|
-
RelayCommonApisInflationInfo,
|
|
20
19
|
SpRuntimeBlock,
|
|
21
20
|
SpRuntimeExtrinsicInclusionMode,
|
|
22
21
|
SpCoreOpaqueMetadata,
|
|
@@ -25,37 +24,40 @@ import type {
|
|
|
25
24
|
SpInherentsCheckInherentsResult,
|
|
26
25
|
SpRuntimeTransactionValidityValidTransaction,
|
|
27
26
|
SpRuntimeTransactionValidityTransactionSource,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
PolkadotPrimitivesV8ValidatorAppPublic,
|
|
28
|
+
PolkadotPrimitivesV8ValidatorIndex,
|
|
29
|
+
PolkadotPrimitivesV8GroupRotationInfo,
|
|
30
|
+
PolkadotPrimitivesVstagingCoreState,
|
|
31
|
+
PolkadotPrimitivesV8PersistedValidationData,
|
|
33
32
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
34
|
-
|
|
33
|
+
PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
35
34
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
36
|
-
|
|
35
|
+
PolkadotPrimitivesV8CandidateCommitments,
|
|
37
36
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
PolkadotPrimitivesVstagingCommittedCandidateReceiptV2,
|
|
38
|
+
PolkadotPrimitivesVstagingCandidateEvent,
|
|
40
39
|
PolkadotCorePrimitivesInboundDownwardMessage,
|
|
41
40
|
PolkadotCorePrimitivesInboundHrmpMessage,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
PolkadotPrimitivesVstagingScrapedOnChainVotes,
|
|
42
|
+
PolkadotPrimitivesV8SessionInfo,
|
|
43
|
+
PolkadotPrimitivesV8PvfCheckStatement,
|
|
44
|
+
PolkadotPrimitivesV8ValidatorAppSignature,
|
|
46
45
|
PolkadotCorePrimitivesCandidateHash,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
PolkadotPrimitivesV8DisputeState,
|
|
47
|
+
PolkadotPrimitivesV8ExecutorParams,
|
|
48
|
+
PolkadotPrimitivesV8SlashingPendingSlashes,
|
|
49
|
+
PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
|
|
50
|
+
PolkadotPrimitivesV8SlashingDisputeProof,
|
|
51
|
+
PolkadotPrimitivesVstagingAsyncBackingBackingState,
|
|
52
|
+
PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
|
|
53
|
+
PolkadotPrimitivesV8ApprovalVotingParams,
|
|
54
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
55
|
+
PolkadotPrimitivesVstagingAsyncBackingConstraints,
|
|
56
56
|
SpConsensusBeefyValidatorSet,
|
|
57
57
|
SpConsensusBeefyDoubleVotingProof,
|
|
58
58
|
SpRuntimeOpaqueValue,
|
|
59
|
+
SpConsensusBeefyForkVotingProofOpaqueValue,
|
|
60
|
+
SpConsensusBeefyFutureBlockVotingProof,
|
|
59
61
|
SpConsensusBeefyEcdsaCryptoPublic,
|
|
60
62
|
SpMmrPrimitivesError,
|
|
61
63
|
SpMmrPrimitivesEncodableOpaqueLeaf,
|
|
@@ -71,6 +73,8 @@ import type {
|
|
|
71
73
|
SpConsensusSlotsEquivocationProof,
|
|
72
74
|
SpAuthorityDiscoveryAppPublic,
|
|
73
75
|
SpCoreCryptoKeyTypeId,
|
|
76
|
+
FrameSupportViewFunctionsViewFunctionDispatchError,
|
|
77
|
+
FrameSupportViewFunctionsViewFunctionId,
|
|
74
78
|
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
75
79
|
PalletTransactionPaymentFeeDetails,
|
|
76
80
|
SpWeightsWeightV2Weight,
|
|
@@ -88,25 +92,6 @@ import type {
|
|
|
88
92
|
} from './types.js';
|
|
89
93
|
|
|
90
94
|
export interface RuntimeApis extends GenericRuntimeApis {
|
|
91
|
-
/**
|
|
92
|
-
* @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
|
|
93
|
-
**/
|
|
94
|
-
inflation: {
|
|
95
|
-
/**
|
|
96
|
-
* Return the current estimates of the inflation amount.
|
|
97
|
-
*
|
|
98
|
-
* This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly
|
|
99
|
-
* recommended over trying to read-storage, or re-create the onchain logic.
|
|
100
|
-
*
|
|
101
|
-
* @callname: Inflation_experimental_inflation_prediction_info
|
|
102
|
-
**/
|
|
103
|
-
experimentalInflationPredictionInfo: GenericRuntimeApiMethod<() => Promise<RelayCommonApisInflationInfo>>;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Generic runtime api call
|
|
107
|
-
**/
|
|
108
|
-
[method: string]: GenericRuntimeApiMethod;
|
|
109
|
-
};
|
|
110
95
|
/**
|
|
111
96
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
112
97
|
**/
|
|
@@ -268,6 +253,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
268
253
|
/**
|
|
269
254
|
* Returns the pending slash for a given pool member.
|
|
270
255
|
*
|
|
256
|
+
* If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on
|
|
257
|
+
* chain.
|
|
258
|
+
*
|
|
271
259
|
* @callname: NominationPoolsApi_member_pending_slash
|
|
272
260
|
* @param {AccountId32Like} member
|
|
273
261
|
**/
|
|
@@ -302,6 +290,30 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
302
290
|
**/
|
|
303
291
|
memberNeedsDelegateMigration: GenericRuntimeApiMethod<(member: AccountId32Like) => Promise<boolean>>;
|
|
304
292
|
|
|
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
|
+
|
|
305
317
|
/**
|
|
306
318
|
* Generic runtime api call
|
|
307
319
|
**/
|
|
@@ -403,7 +415,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
403
415
|
*
|
|
404
416
|
* @callname: ParachainHost_validators
|
|
405
417
|
**/
|
|
406
|
-
validators: GenericRuntimeApiMethod<() => Promise<Array<
|
|
418
|
+
validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorAppPublic>>>;
|
|
407
419
|
|
|
408
420
|
/**
|
|
409
421
|
* Returns the validator groups and rotation info localized based on the hypothetical child
|
|
@@ -413,7 +425,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
413
425
|
* @callname: ParachainHost_validator_groups
|
|
414
426
|
**/
|
|
415
427
|
validatorGroups: GenericRuntimeApiMethod<
|
|
416
|
-
() => Promise<[Array<Array<
|
|
428
|
+
() => Promise<[Array<Array<PolkadotPrimitivesV8ValidatorIndex>>, PolkadotPrimitivesV8GroupRotationInfo]>
|
|
417
429
|
>;
|
|
418
430
|
|
|
419
431
|
/**
|
|
@@ -422,7 +434,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
422
434
|
*
|
|
423
435
|
* @callname: ParachainHost_availability_cores
|
|
424
436
|
**/
|
|
425
|
-
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<
|
|
437
|
+
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCoreState>>>;
|
|
426
438
|
|
|
427
439
|
/**
|
|
428
440
|
* Yields the persisted validation data for the given `ParaId` along with an assumption that
|
|
@@ -433,13 +445,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
433
445
|
*
|
|
434
446
|
* @callname: ParachainHost_persisted_validation_data
|
|
435
447
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
436
|
-
* @param {
|
|
448
|
+
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
437
449
|
**/
|
|
438
450
|
persistedValidationData: GenericRuntimeApiMethod<
|
|
439
451
|
(
|
|
440
452
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
441
|
-
assumption:
|
|
442
|
-
) => Promise<
|
|
453
|
+
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
454
|
+
) => Promise<PolkadotPrimitivesV8PersistedValidationData | undefined>
|
|
443
455
|
>;
|
|
444
456
|
|
|
445
457
|
/**
|
|
@@ -456,7 +468,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
456
468
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
457
469
|
expectedPersistedValidationDataHash: H256,
|
|
458
470
|
) => Promise<
|
|
459
|
-
| [
|
|
471
|
+
| [PolkadotPrimitivesV8PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
|
|
460
472
|
| undefined
|
|
461
473
|
>
|
|
462
474
|
>;
|
|
@@ -466,12 +478,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
466
478
|
*
|
|
467
479
|
* @callname: ParachainHost_check_validation_outputs
|
|
468
480
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
469
|
-
* @param {
|
|
481
|
+
* @param {PolkadotPrimitivesV8CandidateCommitments} outputs
|
|
470
482
|
**/
|
|
471
483
|
checkValidationOutputs: GenericRuntimeApiMethod<
|
|
472
484
|
(
|
|
473
485
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
474
|
-
outputs:
|
|
486
|
+
outputs: PolkadotPrimitivesV8CandidateCommitments,
|
|
475
487
|
) => Promise<boolean>
|
|
476
488
|
>;
|
|
477
489
|
|
|
@@ -492,12 +504,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
492
504
|
*
|
|
493
505
|
* @callname: ParachainHost_validation_code
|
|
494
506
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
495
|
-
* @param {
|
|
507
|
+
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
496
508
|
**/
|
|
497
509
|
validationCode: GenericRuntimeApiMethod<
|
|
498
510
|
(
|
|
499
511
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
500
|
-
assumption:
|
|
512
|
+
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
501
513
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
|
|
502
514
|
>;
|
|
503
515
|
|
|
@@ -511,7 +523,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
511
523
|
candidatePendingAvailability: GenericRuntimeApiMethod<
|
|
512
524
|
(
|
|
513
525
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
514
|
-
) => Promise<
|
|
526
|
+
) => Promise<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2 | undefined>
|
|
515
527
|
>;
|
|
516
528
|
|
|
517
529
|
/**
|
|
@@ -519,7 +531,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
519
531
|
*
|
|
520
532
|
* @callname: ParachainHost_candidate_events
|
|
521
533
|
**/
|
|
522
|
-
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<
|
|
534
|
+
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCandidateEvent>>>;
|
|
523
535
|
|
|
524
536
|
/**
|
|
525
537
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
@@ -563,7 +575,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
563
575
|
*
|
|
564
576
|
* @callname: ParachainHost_on_chain_votes
|
|
565
577
|
**/
|
|
566
|
-
onChainVotes: GenericRuntimeApiMethod<() => Promise<
|
|
578
|
+
onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined>>;
|
|
567
579
|
|
|
568
580
|
/**
|
|
569
581
|
* Get the session info for the given session, if stored.
|
|
@@ -573,7 +585,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
573
585
|
* @callname: ParachainHost_session_info
|
|
574
586
|
* @param {number} index
|
|
575
587
|
**/
|
|
576
|
-
sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<
|
|
588
|
+
sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV8SessionInfo | undefined>>;
|
|
577
589
|
|
|
578
590
|
/**
|
|
579
591
|
* Submits a PVF pre-checking statement into the transaction pool.
|
|
@@ -581,11 +593,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
581
593
|
* NOTE: This function is only available since parachain host version 2.
|
|
582
594
|
*
|
|
583
595
|
* @callname: ParachainHost_submit_pvf_check_statement
|
|
584
|
-
* @param {
|
|
585
|
-
* @param {
|
|
596
|
+
* @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
|
|
597
|
+
* @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
|
|
586
598
|
**/
|
|
587
599
|
submitPvfCheckStatement: GenericRuntimeApiMethod<
|
|
588
|
-
(stmt:
|
|
600
|
+
(stmt: PolkadotPrimitivesV8PvfCheckStatement, signature: PolkadotPrimitivesV8ValidatorAppSignature) => Promise<[]>
|
|
589
601
|
>;
|
|
590
602
|
|
|
591
603
|
/**
|
|
@@ -606,12 +618,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
606
618
|
*
|
|
607
619
|
* @callname: ParachainHost_validation_code_hash
|
|
608
620
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
609
|
-
* @param {
|
|
621
|
+
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
610
622
|
**/
|
|
611
623
|
validationCodeHash: GenericRuntimeApiMethod<
|
|
612
624
|
(
|
|
613
625
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
614
|
-
assumption:
|
|
626
|
+
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
615
627
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
|
|
616
628
|
>;
|
|
617
629
|
|
|
@@ -621,7 +633,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
621
633
|
* @callname: ParachainHost_disputes
|
|
622
634
|
**/
|
|
623
635
|
disputes: GenericRuntimeApiMethod<
|
|
624
|
-
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash,
|
|
636
|
+
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8DisputeState]>>
|
|
625
637
|
>;
|
|
626
638
|
|
|
627
639
|
/**
|
|
@@ -631,7 +643,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
631
643
|
* @param {number} session_index
|
|
632
644
|
**/
|
|
633
645
|
sessionExecutorParams: GenericRuntimeApiMethod<
|
|
634
|
-
(sessionIndex: number) => Promise<
|
|
646
|
+
(sessionIndex: number) => Promise<PolkadotPrimitivesV8ExecutorParams | undefined>
|
|
635
647
|
>;
|
|
636
648
|
|
|
637
649
|
/**
|
|
@@ -641,7 +653,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
641
653
|
* @callname: ParachainHost_unapplied_slashes
|
|
642
654
|
**/
|
|
643
655
|
unappliedSlashes: GenericRuntimeApiMethod<
|
|
644
|
-
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash,
|
|
656
|
+
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8SlashingPendingSlashes]>>
|
|
645
657
|
>;
|
|
646
658
|
|
|
647
659
|
/**
|
|
@@ -649,12 +661,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
649
661
|
* NOTE: This function is only available since parachain host version 5.
|
|
650
662
|
*
|
|
651
663
|
* @callname: ParachainHost_key_ownership_proof
|
|
652
|
-
* @param {
|
|
664
|
+
* @param {PolkadotPrimitivesV8ValidatorAppPublic} validator_id
|
|
653
665
|
**/
|
|
654
666
|
keyOwnershipProof: GenericRuntimeApiMethod<
|
|
655
667
|
(
|
|
656
|
-
validatorId:
|
|
657
|
-
) => Promise<
|
|
668
|
+
validatorId: PolkadotPrimitivesV8ValidatorAppPublic,
|
|
669
|
+
) => Promise<PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof | undefined>
|
|
658
670
|
>;
|
|
659
671
|
|
|
660
672
|
/**
|
|
@@ -663,13 +675,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
663
675
|
* NOTE: This function is only available since parachain host version 5.
|
|
664
676
|
*
|
|
665
677
|
* @callname: ParachainHost_submit_report_dispute_lost
|
|
666
|
-
* @param {
|
|
667
|
-
* @param {
|
|
678
|
+
* @param {PolkadotPrimitivesV8SlashingDisputeProof} dispute_proof
|
|
679
|
+
* @param {PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof} key_ownership_proof
|
|
668
680
|
**/
|
|
669
681
|
submitReportDisputeLost: GenericRuntimeApiMethod<
|
|
670
682
|
(
|
|
671
|
-
disputeProof:
|
|
672
|
-
keyOwnershipProof:
|
|
683
|
+
disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
|
|
684
|
+
keyOwnershipProof: PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
|
|
673
685
|
) => Promise<[] | undefined>
|
|
674
686
|
>;
|
|
675
687
|
|
|
@@ -685,12 +697,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
685
697
|
* Returns the state of parachain backing for a given para.
|
|
686
698
|
*
|
|
687
699
|
* @callname: ParachainHost_para_backing_state
|
|
688
|
-
* @param {PolkadotParachainPrimitivesPrimitivesId}
|
|
700
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} __runtime_api_generated_name_0__
|
|
689
701
|
**/
|
|
690
702
|
paraBackingState: GenericRuntimeApiMethod<
|
|
691
703
|
(
|
|
692
|
-
|
|
693
|
-
) => Promise<
|
|
704
|
+
runtimeApiGeneratedName0: PolkadotParachainPrimitivesPrimitivesId,
|
|
705
|
+
) => Promise<PolkadotPrimitivesVstagingAsyncBackingBackingState | undefined>
|
|
694
706
|
>;
|
|
695
707
|
|
|
696
708
|
/**
|
|
@@ -698,14 +710,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
698
710
|
*
|
|
699
711
|
* @callname: ParachainHost_async_backing_params
|
|
700
712
|
**/
|
|
701
|
-
asyncBackingParams: GenericRuntimeApiMethod<() => Promise<
|
|
713
|
+
asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8AsyncBackingAsyncBackingParams>>;
|
|
702
714
|
|
|
703
715
|
/**
|
|
704
716
|
* Returns a list of all disabled validators at the given block.
|
|
705
717
|
*
|
|
706
718
|
* @callname: ParachainHost_disabled_validators
|
|
707
719
|
**/
|
|
708
|
-
disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<
|
|
720
|
+
disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
|
|
709
721
|
|
|
710
722
|
/**
|
|
711
723
|
* Get node features.
|
|
@@ -720,7 +732,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
720
732
|
*
|
|
721
733
|
* @callname: ParachainHost_approval_voting_params
|
|
722
734
|
**/
|
|
723
|
-
approvalVotingParams: GenericRuntimeApiMethod<() => Promise<
|
|
735
|
+
approvalVotingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV8ApprovalVotingParams>>;
|
|
724
736
|
|
|
725
737
|
/**
|
|
726
738
|
* Claim queue
|
|
@@ -728,7 +740,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
728
740
|
* @callname: ParachainHost_claim_queue
|
|
729
741
|
**/
|
|
730
742
|
claimQueue: GenericRuntimeApiMethod<
|
|
731
|
-
() => Promise<Array<[
|
|
743
|
+
() => Promise<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
|
|
732
744
|
>;
|
|
733
745
|
|
|
734
746
|
/**
|
|
@@ -738,9 +750,38 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
738
750
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
739
751
|
**/
|
|
740
752
|
candidatesPendingAvailability: GenericRuntimeApiMethod<
|
|
741
|
-
(
|
|
753
|
+
(
|
|
754
|
+
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
755
|
+
) => Promise<Array<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2>>
|
|
742
756
|
>;
|
|
743
757
|
|
|
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
|
+
|
|
744
785
|
/**
|
|
745
786
|
* Generic runtime api call
|
|
746
787
|
**/
|
|
@@ -765,8 +806,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
765
806
|
validatorSet: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyValidatorSet | undefined>>;
|
|
766
807
|
|
|
767
808
|
/**
|
|
768
|
-
* Submits an unsigned extrinsic to report
|
|
769
|
-
* must provide the
|
|
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
|
|
770
811
|
* (should be obtained using `generate_key_ownership_proof`). The
|
|
771
812
|
* extrinsic will be unsigned and should only be accepted for local
|
|
772
813
|
* authorship (not to be broadcast to the network). This method returns
|
|
@@ -774,17 +815,59 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
774
815
|
* reporting is disabled for the given runtime (i.e. this method is
|
|
775
816
|
* hardcoded to return `None`). Only useful in an offchain context.
|
|
776
817
|
*
|
|
777
|
-
* @callname:
|
|
818
|
+
* @callname: BeefyApi_submit_report_double_voting_unsigned_extrinsic
|
|
778
819
|
* @param {SpConsensusBeefyDoubleVotingProof} equivocation_proof
|
|
779
820
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
780
821
|
**/
|
|
781
|
-
|
|
822
|
+
submitReportDoubleVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
782
823
|
(
|
|
783
824
|
equivocationProof: SpConsensusBeefyDoubleVotingProof,
|
|
784
825
|
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
785
826
|
) => Promise<[] | undefined>
|
|
786
827
|
>;
|
|
787
828
|
|
|
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
|
+
|
|
788
871
|
/**
|
|
789
872
|
* Generates a proof of key ownership for the given authority in the
|
|
790
873
|
* given set. An example usage of this module is coupled with the
|
|
@@ -806,6 +889,18 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
806
889
|
(setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
807
890
|
>;
|
|
808
891
|
|
|
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
|
+
|
|
809
904
|
/**
|
|
810
905
|
* Generic runtime api call
|
|
811
906
|
**/
|
|
@@ -1116,6 +1211,29 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1116
1211
|
**/
|
|
1117
1212
|
[method: string]: GenericRuntimeApiMethod;
|
|
1118
1213
|
};
|
|
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
|
+
};
|
|
1119
1237
|
/**
|
|
1120
1238
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
1121
1239
|
**/
|
|
@@ -1302,16 +1420,18 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1302
1420
|
**/
|
|
1303
1421
|
dryRunApi: {
|
|
1304
1422
|
/**
|
|
1305
|
-
* Dry run call.
|
|
1423
|
+
* Dry run call V2.
|
|
1306
1424
|
*
|
|
1307
1425
|
* @callname: DryRunApi_dry_run_call
|
|
1308
1426
|
* @param {PaseoRuntimeOriginCaller} origin
|
|
1309
1427
|
* @param {PaseoRuntimeRuntimeCallLike} call
|
|
1428
|
+
* @param {number} result_xcms_version
|
|
1310
1429
|
**/
|
|
1311
1430
|
dryRunCall: GenericRuntimeApiMethod<
|
|
1312
1431
|
(
|
|
1313
1432
|
origin: PaseoRuntimeOriginCaller,
|
|
1314
1433
|
call: PaseoRuntimeRuntimeCallLike,
|
|
1434
|
+
resultXcmsVersion: number,
|
|
1315
1435
|
) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
1316
1436
|
>;
|
|
1317
1437
|
|
|
@@ -1361,9 +1481,10 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1361
1481
|
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
|
|
1362
1482
|
* storage.
|
|
1363
1483
|
*
|
|
1364
|
-
* In the case of a FRAME-based runtime, this function deserializes the full
|
|
1365
|
-
*
|
|
1366
|
-
* deserialization fails, an error
|
|
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.
|
|
1367
1488
|
*
|
|
1368
1489
|
* Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
|
|
1369
1490
|
* defaults will be used.
|
|
@@ -1377,13 +1498,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1377
1498
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
1378
1499
|
* `id`.
|
|
1379
1500
|
*
|
|
1380
|
-
* If `id` is `None` the function
|
|
1501
|
+
* If `id` is `None` the function should return JSON blob representation of the default
|
|
1381
1502
|
* `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
|
|
1382
1503
|
* `RuntimeGenesisConfig`.
|
|
1383
1504
|
*
|
|
1384
1505
|
* Otherwise function returns a JSON representation of the built-in, named
|
|
1385
1506
|
* `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
|
|
1386
|
-
*
|
|
1507
|
+
* exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
|
|
1387
1508
|
* (potentially nested) key-value pairs that are intended for customizing the default
|
|
1388
1509
|
* runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
|
|
1389
1510
|
* of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
|