@dedot/chaintypes 0.199.0 → 0.201.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/westend/errors.d.ts +5 -0
- package/westend/events.d.ts +12 -12
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +84 -46
- package/westend/runtime.d.ts +100 -79
- package/westend/tx.d.ts +32 -32
- package/westend/types.d.ts +169 -181
- package/westend-asset-hub/consts.d.ts +0 -15
- package/westend-asset-hub/errors.d.ts +30 -41
- package/westend-asset-hub/events.d.ts +35 -37
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +41 -55
- package/westend-asset-hub/runtime.d.ts +28 -10
- package/westend-asset-hub/tx.d.ts +147 -117
- package/westend-asset-hub/types.d.ts +178 -227
- package/westend-asset-hub/view-functions.d.ts +120 -1
- package/westend-people/index.d.ts +1 -1
- package/westend-people/query.d.ts +35 -16
- package/westend-people/runtime.d.ts +27 -5
- package/westend-people/types.d.ts +22 -13
package/westend/runtime.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import type {
|
|
|
16
16
|
AccountId32,
|
|
17
17
|
} from 'dedot/codecs';
|
|
18
18
|
import type {
|
|
19
|
-
|
|
19
|
+
SpRuntimeBlockLazyBlock,
|
|
20
20
|
SpRuntimeExtrinsicInclusionMode,
|
|
21
21
|
SpCoreOpaqueMetadata,
|
|
22
22
|
FrameSupportViewFunctionsViewFunctionDispatchError,
|
|
@@ -26,35 +26,36 @@ import type {
|
|
|
26
26
|
SpInherentsCheckInherentsResult,
|
|
27
27
|
SpRuntimeTransactionValidityValidTransaction,
|
|
28
28
|
SpRuntimeTransactionValidityTransactionSource,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
PolkadotPrimitivesV9ValidatorAppPublic,
|
|
30
|
+
PolkadotPrimitivesV9ValidatorIndex,
|
|
31
|
+
PolkadotPrimitivesV9GroupRotationInfo,
|
|
32
|
+
PolkadotPrimitivesV9CoreState,
|
|
33
|
+
PolkadotPrimitivesV9PersistedValidationData,
|
|
34
34
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
35
|
-
|
|
35
|
+
PolkadotPrimitivesV9OccupiedCoreAssumption,
|
|
36
36
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
37
|
-
|
|
37
|
+
PolkadotPrimitivesV9CandidateCommitments,
|
|
38
38
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
PolkadotPrimitivesV9CommittedCandidateReceiptV2,
|
|
40
|
+
PolkadotPrimitivesV9CandidateEvent,
|
|
41
41
|
PolkadotCorePrimitivesInboundDownwardMessage,
|
|
42
42
|
PolkadotCorePrimitivesInboundHrmpMessage,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
PolkadotPrimitivesV9ScrapedOnChainVotes,
|
|
44
|
+
PolkadotPrimitivesV9SessionInfo,
|
|
45
|
+
PolkadotPrimitivesV9PvfCheckStatement,
|
|
46
|
+
PolkadotPrimitivesV9ValidatorAppSignature,
|
|
47
47
|
PolkadotCorePrimitivesCandidateHash,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
PolkadotPrimitivesV9DisputeState,
|
|
49
|
+
PolkadotPrimitivesV9ExecutorParams,
|
|
50
|
+
PolkadotPrimitivesV9SlashingLegacyPendingSlashes,
|
|
51
|
+
PolkadotPrimitivesV9SlashingOpaqueKeyOwnershipProof,
|
|
52
|
+
PolkadotPrimitivesV9SlashingDisputeProof,
|
|
53
|
+
PolkadotPrimitivesV9AsyncBackingBackingState,
|
|
54
|
+
PolkadotPrimitivesV9AsyncBackingAsyncBackingParams,
|
|
55
|
+
PolkadotPrimitivesV9ApprovalVotingParams,
|
|
56
|
+
PolkadotPrimitivesV9CoreIndex,
|
|
57
|
+
PolkadotPrimitivesV9AsyncBackingConstraints,
|
|
58
|
+
PolkadotPrimitivesV9SlashingPendingSlashes,
|
|
58
59
|
SpConsensusBeefyValidatorSet,
|
|
59
60
|
SpConsensusBeefyDoubleVotingProof,
|
|
60
61
|
SpRuntimeOpaqueValue,
|
|
@@ -64,6 +65,7 @@ import type {
|
|
|
64
65
|
SpMmrPrimitivesError,
|
|
65
66
|
SpMmrPrimitivesEncodableOpaqueLeaf,
|
|
66
67
|
SpMmrPrimitivesLeafProof,
|
|
68
|
+
SpMmrPrimitivesAncestryProof,
|
|
67
69
|
SpConsensusBeefyMmrBeefyAuthoritySet,
|
|
68
70
|
SpConsensusGrandpaAppPublic,
|
|
69
71
|
SpConsensusGrandpaEquivocationProof,
|
|
@@ -109,9 +111,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
109
111
|
* Execute the given block.
|
|
110
112
|
*
|
|
111
113
|
* @callname: Core_execute_block
|
|
112
|
-
* @param {
|
|
114
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
113
115
|
**/
|
|
114
|
-
executeBlock: GenericRuntimeApiMethod<(block:
|
|
116
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlockLazyBlock) => Promise<[]>>;
|
|
115
117
|
|
|
116
118
|
/**
|
|
117
119
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -225,11 +227,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
225
227
|
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
226
228
|
*
|
|
227
229
|
* @callname: BlockBuilder_check_inherents
|
|
228
|
-
* @param {
|
|
230
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
229
231
|
* @param {SpInherentsInherentData} data
|
|
230
232
|
**/
|
|
231
233
|
checkInherents: GenericRuntimeApiMethod<
|
|
232
|
-
(block:
|
|
234
|
+
(block: SpRuntimeBlockLazyBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
233
235
|
>;
|
|
234
236
|
|
|
235
237
|
/**
|
|
@@ -298,7 +300,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
298
300
|
*
|
|
299
301
|
* @callname: ParachainHost_validators
|
|
300
302
|
**/
|
|
301
|
-
validators: GenericRuntimeApiMethod<() => Promise<Array<
|
|
303
|
+
validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9ValidatorAppPublic>>>;
|
|
302
304
|
|
|
303
305
|
/**
|
|
304
306
|
* Returns the validator groups and rotation info localized based on the hypothetical child
|
|
@@ -308,7 +310,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
308
310
|
* @callname: ParachainHost_validator_groups
|
|
309
311
|
**/
|
|
310
312
|
validatorGroups: GenericRuntimeApiMethod<
|
|
311
|
-
() => Promise<[Array<Array<
|
|
313
|
+
() => Promise<[Array<Array<PolkadotPrimitivesV9ValidatorIndex>>, PolkadotPrimitivesV9GroupRotationInfo]>
|
|
312
314
|
>;
|
|
313
315
|
|
|
314
316
|
/**
|
|
@@ -317,7 +319,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
317
319
|
*
|
|
318
320
|
* @callname: ParachainHost_availability_cores
|
|
319
321
|
**/
|
|
320
|
-
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<
|
|
322
|
+
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9CoreState>>>;
|
|
321
323
|
|
|
322
324
|
/**
|
|
323
325
|
* Yields the persisted validation data for the given `ParaId` along with an assumption that
|
|
@@ -328,13 +330,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
328
330
|
*
|
|
329
331
|
* @callname: ParachainHost_persisted_validation_data
|
|
330
332
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
331
|
-
* @param {
|
|
333
|
+
* @param {PolkadotPrimitivesV9OccupiedCoreAssumption} assumption
|
|
332
334
|
**/
|
|
333
335
|
persistedValidationData: GenericRuntimeApiMethod<
|
|
334
336
|
(
|
|
335
337
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
336
|
-
assumption:
|
|
337
|
-
) => Promise<
|
|
338
|
+
assumption: PolkadotPrimitivesV9OccupiedCoreAssumption,
|
|
339
|
+
) => Promise<PolkadotPrimitivesV9PersistedValidationData | undefined>
|
|
338
340
|
>;
|
|
339
341
|
|
|
340
342
|
/**
|
|
@@ -351,7 +353,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
351
353
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
352
354
|
expectedPersistedValidationDataHash: H256,
|
|
353
355
|
) => Promise<
|
|
354
|
-
| [
|
|
356
|
+
| [PolkadotPrimitivesV9PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
|
|
355
357
|
| undefined
|
|
356
358
|
>
|
|
357
359
|
>;
|
|
@@ -361,12 +363,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
361
363
|
*
|
|
362
364
|
* @callname: ParachainHost_check_validation_outputs
|
|
363
365
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
364
|
-
* @param {
|
|
366
|
+
* @param {PolkadotPrimitivesV9CandidateCommitments} outputs
|
|
365
367
|
**/
|
|
366
368
|
checkValidationOutputs: GenericRuntimeApiMethod<
|
|
367
369
|
(
|
|
368
370
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
369
|
-
outputs:
|
|
371
|
+
outputs: PolkadotPrimitivesV9CandidateCommitments,
|
|
370
372
|
) => Promise<boolean>
|
|
371
373
|
>;
|
|
372
374
|
|
|
@@ -387,12 +389,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
387
389
|
*
|
|
388
390
|
* @callname: ParachainHost_validation_code
|
|
389
391
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
390
|
-
* @param {
|
|
392
|
+
* @param {PolkadotPrimitivesV9OccupiedCoreAssumption} assumption
|
|
391
393
|
**/
|
|
392
394
|
validationCode: GenericRuntimeApiMethod<
|
|
393
395
|
(
|
|
394
396
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
395
|
-
assumption:
|
|
397
|
+
assumption: PolkadotPrimitivesV9OccupiedCoreAssumption,
|
|
396
398
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
|
|
397
399
|
>;
|
|
398
400
|
|
|
@@ -406,7 +408,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
406
408
|
candidatePendingAvailability: GenericRuntimeApiMethod<
|
|
407
409
|
(
|
|
408
410
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
409
|
-
) => Promise<
|
|
411
|
+
) => Promise<PolkadotPrimitivesV9CommittedCandidateReceiptV2 | undefined>
|
|
410
412
|
>;
|
|
411
413
|
|
|
412
414
|
/**
|
|
@@ -414,7 +416,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
414
416
|
*
|
|
415
417
|
* @callname: ParachainHost_candidate_events
|
|
416
418
|
**/
|
|
417
|
-
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<
|
|
419
|
+
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9CandidateEvent>>>;
|
|
418
420
|
|
|
419
421
|
/**
|
|
420
422
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
@@ -458,7 +460,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
458
460
|
*
|
|
459
461
|
* @callname: ParachainHost_on_chain_votes
|
|
460
462
|
**/
|
|
461
|
-
onChainVotes: GenericRuntimeApiMethod<() => Promise<
|
|
463
|
+
onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV9ScrapedOnChainVotes | undefined>>;
|
|
462
464
|
|
|
463
465
|
/**
|
|
464
466
|
* Get the session info for the given session, if stored.
|
|
@@ -468,7 +470,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
468
470
|
* @callname: ParachainHost_session_info
|
|
469
471
|
* @param {number} index
|
|
470
472
|
**/
|
|
471
|
-
sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<
|
|
473
|
+
sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV9SessionInfo | undefined>>;
|
|
472
474
|
|
|
473
475
|
/**
|
|
474
476
|
* Submits a PVF pre-checking statement into the transaction pool.
|
|
@@ -476,11 +478,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
476
478
|
* NOTE: This function is only available since parachain host version 2.
|
|
477
479
|
*
|
|
478
480
|
* @callname: ParachainHost_submit_pvf_check_statement
|
|
479
|
-
* @param {
|
|
480
|
-
* @param {
|
|
481
|
+
* @param {PolkadotPrimitivesV9PvfCheckStatement} stmt
|
|
482
|
+
* @param {PolkadotPrimitivesV9ValidatorAppSignature} signature
|
|
481
483
|
**/
|
|
482
484
|
submitPvfCheckStatement: GenericRuntimeApiMethod<
|
|
483
|
-
(stmt:
|
|
485
|
+
(stmt: PolkadotPrimitivesV9PvfCheckStatement, signature: PolkadotPrimitivesV9ValidatorAppSignature) => Promise<[]>
|
|
484
486
|
>;
|
|
485
487
|
|
|
486
488
|
/**
|
|
@@ -501,12 +503,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
501
503
|
*
|
|
502
504
|
* @callname: ParachainHost_validation_code_hash
|
|
503
505
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
504
|
-
* @param {
|
|
506
|
+
* @param {PolkadotPrimitivesV9OccupiedCoreAssumption} assumption
|
|
505
507
|
**/
|
|
506
508
|
validationCodeHash: GenericRuntimeApiMethod<
|
|
507
509
|
(
|
|
508
510
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
509
|
-
assumption:
|
|
511
|
+
assumption: PolkadotPrimitivesV9OccupiedCoreAssumption,
|
|
510
512
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
|
|
511
513
|
>;
|
|
512
514
|
|
|
@@ -516,7 +518,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
516
518
|
* @callname: ParachainHost_disputes
|
|
517
519
|
**/
|
|
518
520
|
disputes: GenericRuntimeApiMethod<
|
|
519
|
-
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash,
|
|
521
|
+
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV9DisputeState]>>
|
|
520
522
|
>;
|
|
521
523
|
|
|
522
524
|
/**
|
|
@@ -526,17 +528,20 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
526
528
|
* @param {number} session_index
|
|
527
529
|
**/
|
|
528
530
|
sessionExecutorParams: GenericRuntimeApiMethod<
|
|
529
|
-
(sessionIndex: number) => Promise<
|
|
531
|
+
(sessionIndex: number) => Promise<PolkadotPrimitivesV9ExecutorParams | undefined>
|
|
530
532
|
>;
|
|
531
533
|
|
|
532
534
|
/**
|
|
533
535
|
* Returns a list of validators that lost a past session dispute and need to be slashed.
|
|
534
|
-
*
|
|
536
|
+
*
|
|
537
|
+
* Deprecated. Use `unapplied_slashes_v2` instead.
|
|
535
538
|
*
|
|
536
539
|
* @callname: ParachainHost_unapplied_slashes
|
|
537
540
|
**/
|
|
538
541
|
unappliedSlashes: GenericRuntimeApiMethod<
|
|
539
|
-
() => Promise<
|
|
542
|
+
() => Promise<
|
|
543
|
+
Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV9SlashingLegacyPendingSlashes]>
|
|
544
|
+
>
|
|
540
545
|
>;
|
|
541
546
|
|
|
542
547
|
/**
|
|
@@ -544,12 +549,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
544
549
|
* NOTE: This function is only available since parachain host version 5.
|
|
545
550
|
*
|
|
546
551
|
* @callname: ParachainHost_key_ownership_proof
|
|
547
|
-
* @param {
|
|
552
|
+
* @param {PolkadotPrimitivesV9ValidatorAppPublic} validator_id
|
|
548
553
|
**/
|
|
549
554
|
keyOwnershipProof: GenericRuntimeApiMethod<
|
|
550
555
|
(
|
|
551
|
-
validatorId:
|
|
552
|
-
) => Promise<
|
|
556
|
+
validatorId: PolkadotPrimitivesV9ValidatorAppPublic,
|
|
557
|
+
) => Promise<PolkadotPrimitivesV9SlashingOpaqueKeyOwnershipProof | undefined>
|
|
553
558
|
>;
|
|
554
559
|
|
|
555
560
|
/**
|
|
@@ -558,13 +563,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
558
563
|
* NOTE: This function is only available since parachain host version 5.
|
|
559
564
|
*
|
|
560
565
|
* @callname: ParachainHost_submit_report_dispute_lost
|
|
561
|
-
* @param {
|
|
562
|
-
* @param {
|
|
566
|
+
* @param {PolkadotPrimitivesV9SlashingDisputeProof} dispute_proof
|
|
567
|
+
* @param {PolkadotPrimitivesV9SlashingOpaqueKeyOwnershipProof} key_ownership_proof
|
|
563
568
|
**/
|
|
564
569
|
submitReportDisputeLost: GenericRuntimeApiMethod<
|
|
565
570
|
(
|
|
566
|
-
disputeProof:
|
|
567
|
-
keyOwnershipProof:
|
|
571
|
+
disputeProof: PolkadotPrimitivesV9SlashingDisputeProof,
|
|
572
|
+
keyOwnershipProof: PolkadotPrimitivesV9SlashingOpaqueKeyOwnershipProof,
|
|
568
573
|
) => Promise<[] | undefined>
|
|
569
574
|
>;
|
|
570
575
|
|
|
@@ -585,7 +590,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
585
590
|
paraBackingState: GenericRuntimeApiMethod<
|
|
586
591
|
(
|
|
587
592
|
runtimeApiGeneratedName0: PolkadotParachainPrimitivesPrimitivesId,
|
|
588
|
-
) => Promise<
|
|
593
|
+
) => Promise<PolkadotPrimitivesV9AsyncBackingBackingState | undefined>
|
|
589
594
|
>;
|
|
590
595
|
|
|
591
596
|
/**
|
|
@@ -593,14 +598,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
593
598
|
*
|
|
594
599
|
* @callname: ParachainHost_async_backing_params
|
|
595
600
|
**/
|
|
596
|
-
asyncBackingParams: GenericRuntimeApiMethod<() => Promise<
|
|
601
|
+
asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV9AsyncBackingAsyncBackingParams>>;
|
|
597
602
|
|
|
598
603
|
/**
|
|
599
604
|
* Returns a list of all disabled validators at the given block.
|
|
600
605
|
*
|
|
601
606
|
* @callname: ParachainHost_disabled_validators
|
|
602
607
|
**/
|
|
603
|
-
disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<
|
|
608
|
+
disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9ValidatorIndex>>>;
|
|
604
609
|
|
|
605
610
|
/**
|
|
606
611
|
* Get node features.
|
|
@@ -615,7 +620,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
615
620
|
*
|
|
616
621
|
* @callname: ParachainHost_approval_voting_params
|
|
617
622
|
**/
|
|
618
|
-
approvalVotingParams: GenericRuntimeApiMethod<() => Promise<
|
|
623
|
+
approvalVotingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV9ApprovalVotingParams>>;
|
|
619
624
|
|
|
620
625
|
/**
|
|
621
626
|
* Claim queue
|
|
@@ -623,7 +628,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
623
628
|
* @callname: ParachainHost_claim_queue
|
|
624
629
|
**/
|
|
625
630
|
claimQueue: GenericRuntimeApiMethod<
|
|
626
|
-
() => Promise<Array<[
|
|
631
|
+
() => Promise<Array<[PolkadotPrimitivesV9CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
|
|
627
632
|
>;
|
|
628
633
|
|
|
629
634
|
/**
|
|
@@ -635,7 +640,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
635
640
|
candidatesPendingAvailability: GenericRuntimeApiMethod<
|
|
636
641
|
(
|
|
637
642
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
638
|
-
) => Promise<Array<
|
|
643
|
+
) => Promise<Array<PolkadotPrimitivesV9CommittedCandidateReceiptV2>>
|
|
639
644
|
>;
|
|
640
645
|
|
|
641
646
|
/**
|
|
@@ -655,7 +660,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
655
660
|
backingConstraints: GenericRuntimeApiMethod<
|
|
656
661
|
(
|
|
657
662
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
658
|
-
) => Promise<
|
|
663
|
+
) => Promise<PolkadotPrimitivesV9AsyncBackingConstraints | undefined>
|
|
659
664
|
>;
|
|
660
665
|
|
|
661
666
|
/**
|
|
@@ -672,6 +677,15 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
672
677
|
**/
|
|
673
678
|
paraIds: GenericRuntimeApiMethod<() => Promise<Array<PolkadotParachainPrimitivesPrimitivesId>>>;
|
|
674
679
|
|
|
680
|
+
/**
|
|
681
|
+
* Returns a list of validators that lost a past session dispute and need to be slashed.
|
|
682
|
+
*
|
|
683
|
+
* @callname: ParachainHost_unapplied_slashes_v2
|
|
684
|
+
**/
|
|
685
|
+
unappliedSlashesV2: GenericRuntimeApiMethod<
|
|
686
|
+
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV9SlashingPendingSlashes]>>
|
|
687
|
+
>;
|
|
688
|
+
|
|
675
689
|
/**
|
|
676
690
|
* Generic runtime api call
|
|
677
691
|
**/
|
|
@@ -779,18 +793,6 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
779
793
|
(setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
780
794
|
>;
|
|
781
795
|
|
|
782
|
-
/**
|
|
783
|
-
* Generates a proof that the `prev_block_number` is part of the canonical chain at
|
|
784
|
-
* `best_known_block_number`.
|
|
785
|
-
*
|
|
786
|
-
* @callname: BeefyApi_generate_ancestry_proof
|
|
787
|
-
* @param {number} prev_block_number
|
|
788
|
-
* @param {number | undefined} best_known_block_number
|
|
789
|
-
**/
|
|
790
|
-
generateAncestryProof: GenericRuntimeApiMethod<
|
|
791
|
-
(prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
792
|
-
>;
|
|
793
|
-
|
|
794
796
|
/**
|
|
795
797
|
* Generic runtime api call
|
|
796
798
|
**/
|
|
@@ -829,6 +831,21 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
829
831
|
) => Promise<Result<[Array<SpMmrPrimitivesEncodableOpaqueLeaf>, SpMmrPrimitivesLeafProof], SpMmrPrimitivesError>>
|
|
830
832
|
>;
|
|
831
833
|
|
|
834
|
+
/**
|
|
835
|
+
* Generates a proof that the `prev_block_number` is part of the canonical chain at
|
|
836
|
+
* `best_known_block_number`.
|
|
837
|
+
*
|
|
838
|
+
* @callname: MmrApi_generate_ancestry_proof
|
|
839
|
+
* @param {number} prev_block_number
|
|
840
|
+
* @param {number | undefined} best_known_block_number
|
|
841
|
+
**/
|
|
842
|
+
generateAncestryProof: GenericRuntimeApiMethod<
|
|
843
|
+
(
|
|
844
|
+
prevBlockNumber: number,
|
|
845
|
+
bestKnownBlockNumber?: number | undefined,
|
|
846
|
+
) => Promise<Result<SpMmrPrimitivesAncestryProof, SpMmrPrimitivesError>>
|
|
847
|
+
>;
|
|
848
|
+
|
|
832
849
|
/**
|
|
833
850
|
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
|
834
851
|
*
|
|
@@ -1257,6 +1274,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1257
1274
|
>;
|
|
1258
1275
|
|
|
1259
1276
|
/**
|
|
1277
|
+
* Query delivery fees V2.
|
|
1278
|
+
*
|
|
1260
1279
|
* Get delivery fees for sending a specific `message` to a `destination`.
|
|
1261
1280
|
* These always come in a specific asset, defined by the chain.
|
|
1262
1281
|
*
|
|
@@ -1269,11 +1288,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1269
1288
|
* @callname: XcmPaymentApi_query_delivery_fees
|
|
1270
1289
|
* @param {XcmVersionedLocation} destination
|
|
1271
1290
|
* @param {XcmVersionedXcm} message
|
|
1291
|
+
* @param {XcmVersionedAssetId} asset_id
|
|
1272
1292
|
**/
|
|
1273
1293
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
1274
1294
|
(
|
|
1275
1295
|
destination: XcmVersionedLocation,
|
|
1276
1296
|
message: XcmVersionedXcm,
|
|
1297
|
+
assetId: XcmVersionedAssetId,
|
|
1277
1298
|
) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
|
|
1278
1299
|
>;
|
|
1279
1300
|
|
|
@@ -1469,7 +1490,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1469
1490
|
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
1470
1491
|
|
|
1471
1492
|
/**
|
|
1472
|
-
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
1493
|
+
* Returns true if a validator `account` has pages to be claimed for the given era.
|
|
1473
1494
|
*
|
|
1474
1495
|
* @callname: StakingApi_pending_rewards
|
|
1475
1496
|
* @param {number} era
|
package/westend/tx.d.ts
CHANGED
|
@@ -64,19 +64,19 @@ import type {
|
|
|
64
64
|
FrameSupportScheduleDispatchTime,
|
|
65
65
|
PolkadotRuntimeCommonImplsVersionedLocatableAsset,
|
|
66
66
|
XcmVersionedLocation,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
PolkadotPrimitivesV9AsyncBackingAsyncBackingParams,
|
|
68
|
+
PolkadotPrimitivesV9ExecutorParams,
|
|
69
|
+
PolkadotPrimitivesV9ApprovalVotingParams,
|
|
70
|
+
PolkadotPrimitivesV9SchedulerParams,
|
|
71
|
+
PolkadotPrimitivesV9InherentData,
|
|
72
72
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
73
73
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
74
74
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
75
75
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
PolkadotPrimitivesV9PvfCheckStatement,
|
|
77
|
+
PolkadotPrimitivesV9ValidatorAppSignature,
|
|
78
78
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
79
|
-
|
|
79
|
+
PolkadotPrimitivesV9SlashingDisputeProof,
|
|
80
80
|
PolkadotRuntimeParachainsParasParaGenesisArgs,
|
|
81
81
|
XcmVersionedXcm,
|
|
82
82
|
SpRuntimeMultiSigner,
|
|
@@ -7293,15 +7293,15 @@ export interface ChainTx<
|
|
|
7293
7293
|
/**
|
|
7294
7294
|
* Set the asynchronous backing parameters.
|
|
7295
7295
|
*
|
|
7296
|
-
* @param {
|
|
7296
|
+
* @param {PolkadotPrimitivesV9AsyncBackingAsyncBackingParams} new_
|
|
7297
7297
|
**/
|
|
7298
7298
|
setAsyncBackingParams: GenericTxCall<
|
|
7299
|
-
(new_:
|
|
7299
|
+
(new_: PolkadotPrimitivesV9AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
|
|
7300
7300
|
{
|
|
7301
7301
|
pallet: 'Configuration';
|
|
7302
7302
|
palletCall: {
|
|
7303
7303
|
name: 'SetAsyncBackingParams';
|
|
7304
|
-
params: { new:
|
|
7304
|
+
params: { new: PolkadotPrimitivesV9AsyncBackingAsyncBackingParams };
|
|
7305
7305
|
};
|
|
7306
7306
|
},
|
|
7307
7307
|
ChainKnownTypes
|
|
@@ -7311,15 +7311,15 @@ export interface ChainTx<
|
|
|
7311
7311
|
/**
|
|
7312
7312
|
* Set PVF executor parameters.
|
|
7313
7313
|
*
|
|
7314
|
-
* @param {
|
|
7314
|
+
* @param {PolkadotPrimitivesV9ExecutorParams} new_
|
|
7315
7315
|
**/
|
|
7316
7316
|
setExecutorParams: GenericTxCall<
|
|
7317
|
-
(new_:
|
|
7317
|
+
(new_: PolkadotPrimitivesV9ExecutorParams) => ChainSubmittableExtrinsic<
|
|
7318
7318
|
{
|
|
7319
7319
|
pallet: 'Configuration';
|
|
7320
7320
|
palletCall: {
|
|
7321
7321
|
name: 'SetExecutorParams';
|
|
7322
|
-
params: { new:
|
|
7322
|
+
params: { new: PolkadotPrimitivesV9ExecutorParams };
|
|
7323
7323
|
};
|
|
7324
7324
|
},
|
|
7325
7325
|
ChainKnownTypes
|
|
@@ -7441,15 +7441,15 @@ export interface ChainTx<
|
|
|
7441
7441
|
/**
|
|
7442
7442
|
* Set approval-voting-params.
|
|
7443
7443
|
*
|
|
7444
|
-
* @param {
|
|
7444
|
+
* @param {PolkadotPrimitivesV9ApprovalVotingParams} new_
|
|
7445
7445
|
**/
|
|
7446
7446
|
setApprovalVotingParams: GenericTxCall<
|
|
7447
|
-
(new_:
|
|
7447
|
+
(new_: PolkadotPrimitivesV9ApprovalVotingParams) => ChainSubmittableExtrinsic<
|
|
7448
7448
|
{
|
|
7449
7449
|
pallet: 'Configuration';
|
|
7450
7450
|
palletCall: {
|
|
7451
7451
|
name: 'SetApprovalVotingParams';
|
|
7452
|
-
params: { new:
|
|
7452
|
+
params: { new: PolkadotPrimitivesV9ApprovalVotingParams };
|
|
7453
7453
|
};
|
|
7454
7454
|
},
|
|
7455
7455
|
ChainKnownTypes
|
|
@@ -7459,15 +7459,15 @@ export interface ChainTx<
|
|
|
7459
7459
|
/**
|
|
7460
7460
|
* Set scheduler-params.
|
|
7461
7461
|
*
|
|
7462
|
-
* @param {
|
|
7462
|
+
* @param {PolkadotPrimitivesV9SchedulerParams} new_
|
|
7463
7463
|
**/
|
|
7464
7464
|
setSchedulerParams: GenericTxCall<
|
|
7465
|
-
(new_:
|
|
7465
|
+
(new_: PolkadotPrimitivesV9SchedulerParams) => ChainSubmittableExtrinsic<
|
|
7466
7466
|
{
|
|
7467
7467
|
pallet: 'Configuration';
|
|
7468
7468
|
palletCall: {
|
|
7469
7469
|
name: 'SetSchedulerParams';
|
|
7470
|
-
params: { new:
|
|
7470
|
+
params: { new: PolkadotPrimitivesV9SchedulerParams };
|
|
7471
7471
|
};
|
|
7472
7472
|
},
|
|
7473
7473
|
ChainKnownTypes
|
|
@@ -7504,15 +7504,15 @@ export interface ChainTx<
|
|
|
7504
7504
|
/**
|
|
7505
7505
|
* Enter the paras inherent. This will process bitfields and backed candidates.
|
|
7506
7506
|
*
|
|
7507
|
-
* @param {
|
|
7507
|
+
* @param {PolkadotPrimitivesV9InherentData} data
|
|
7508
7508
|
**/
|
|
7509
7509
|
enter: GenericTxCall<
|
|
7510
|
-
(data:
|
|
7510
|
+
(data: PolkadotPrimitivesV9InherentData) => ChainSubmittableExtrinsic<
|
|
7511
7511
|
{
|
|
7512
7512
|
pallet: 'ParaInherent';
|
|
7513
7513
|
palletCall: {
|
|
7514
7514
|
name: 'Enter';
|
|
7515
|
-
params: { data:
|
|
7515
|
+
params: { data: PolkadotPrimitivesV9InherentData };
|
|
7516
7516
|
};
|
|
7517
7517
|
},
|
|
7518
7518
|
ChainKnownTypes
|
|
@@ -7708,21 +7708,21 @@ export interface ChainTx<
|
|
|
7708
7708
|
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
|
7709
7709
|
* enacts the results if that was the last vote before achieving the supermajority.
|
|
7710
7710
|
*
|
|
7711
|
-
* @param {
|
|
7712
|
-
* @param {
|
|
7711
|
+
* @param {PolkadotPrimitivesV9PvfCheckStatement} stmt
|
|
7712
|
+
* @param {PolkadotPrimitivesV9ValidatorAppSignature} signature
|
|
7713
7713
|
**/
|
|
7714
7714
|
includePvfCheckStatement: GenericTxCall<
|
|
7715
7715
|
(
|
|
7716
|
-
stmt:
|
|
7717
|
-
signature:
|
|
7716
|
+
stmt: PolkadotPrimitivesV9PvfCheckStatement,
|
|
7717
|
+
signature: PolkadotPrimitivesV9ValidatorAppSignature,
|
|
7718
7718
|
) => ChainSubmittableExtrinsic<
|
|
7719
7719
|
{
|
|
7720
7720
|
pallet: 'Paras';
|
|
7721
7721
|
palletCall: {
|
|
7722
7722
|
name: 'IncludePvfCheckStatement';
|
|
7723
7723
|
params: {
|
|
7724
|
-
stmt:
|
|
7725
|
-
signature:
|
|
7724
|
+
stmt: PolkadotPrimitivesV9PvfCheckStatement;
|
|
7725
|
+
signature: PolkadotPrimitivesV9ValidatorAppSignature;
|
|
7726
7726
|
};
|
|
7727
7727
|
};
|
|
7728
7728
|
},
|
|
@@ -8226,19 +8226,19 @@ export interface ChainTx<
|
|
|
8226
8226
|
parasSlashing: {
|
|
8227
8227
|
/**
|
|
8228
8228
|
*
|
|
8229
|
-
* @param {
|
|
8229
|
+
* @param {PolkadotPrimitivesV9SlashingDisputeProof} disputeProof
|
|
8230
8230
|
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
8231
8231
|
**/
|
|
8232
8232
|
reportDisputeLostUnsigned: GenericTxCall<
|
|
8233
8233
|
(
|
|
8234
|
-
disputeProof:
|
|
8234
|
+
disputeProof: PolkadotPrimitivesV9SlashingDisputeProof,
|
|
8235
8235
|
keyOwnerProof: SpSessionMembershipProof,
|
|
8236
8236
|
) => ChainSubmittableExtrinsic<
|
|
8237
8237
|
{
|
|
8238
8238
|
pallet: 'ParasSlashing';
|
|
8239
8239
|
palletCall: {
|
|
8240
8240
|
name: 'ReportDisputeLostUnsigned';
|
|
8241
|
-
params: { disputeProof:
|
|
8241
|
+
params: { disputeProof: PolkadotPrimitivesV9SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
|
|
8242
8242
|
};
|
|
8243
8243
|
},
|
|
8244
8244
|
ChainKnownTypes
|