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