@dedot/chaintypes 0.244.0 → 0.246.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/astar/consts.d.ts +5 -0
- package/astar/index.d.ts +1 -1
- package/astar/types.d.ts +1 -0
- package/kusama/errors.d.ts +5 -0
- package/kusama/events.d.ts +99 -16
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +85 -46
- package/kusama/runtime.d.ts +90 -79
- package/kusama/tx.d.ts +105 -32
- package/kusama/types.d.ts +307 -209
- package/kusama-asset-hub/consts.d.ts +45 -0
- package/kusama-asset-hub/errors.d.ts +156 -0
- package/kusama-asset-hub/events.d.ts +234 -5
- package/kusama-asset-hub/index.d.ts +3 -1
- package/kusama-asset-hub/query.d.ts +230 -16
- package/kusama-asset-hub/runtime.d.ts +11 -6
- package/kusama-asset-hub/tx.d.ts +650 -1
- package/kusama-asset-hub/types.d.ts +1225 -146
- package/kusama-asset-hub/view-functions.d.ts +195 -2
- package/kusama-people/events.d.ts +64 -1
- package/kusama-people/index.d.ts +1 -1
- package/kusama-people/query.d.ts +36 -16
- package/kusama-people/runtime.d.ts +9 -5
- package/kusama-people/types.d.ts +67 -21
- package/package.json +2 -2
package/kusama/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
|
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
|
/**
|
|
@@ -273,7 +274,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
273
274
|
*
|
|
274
275
|
* @callname: ParachainHost_validators
|
|
275
276
|
**/
|
|
276
|
-
validators: GenericRuntimeApiMethod<() => Promise<Array<
|
|
277
|
+
validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9ValidatorAppPublic>>>;
|
|
277
278
|
|
|
278
279
|
/**
|
|
279
280
|
* Returns the validator groups and rotation info localized based on the hypothetical child
|
|
@@ -283,7 +284,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
283
284
|
* @callname: ParachainHost_validator_groups
|
|
284
285
|
**/
|
|
285
286
|
validatorGroups: GenericRuntimeApiMethod<
|
|
286
|
-
() => Promise<[Array<Array<
|
|
287
|
+
() => Promise<[Array<Array<PolkadotPrimitivesV9ValidatorIndex>>, PolkadotPrimitivesV9GroupRotationInfo]>
|
|
287
288
|
>;
|
|
288
289
|
|
|
289
290
|
/**
|
|
@@ -292,7 +293,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
292
293
|
*
|
|
293
294
|
* @callname: ParachainHost_availability_cores
|
|
294
295
|
**/
|
|
295
|
-
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<
|
|
296
|
+
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9CoreState>>>;
|
|
296
297
|
|
|
297
298
|
/**
|
|
298
299
|
* Yields the persisted validation data for the given `ParaId` along with an assumption that
|
|
@@ -303,13 +304,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
303
304
|
*
|
|
304
305
|
* @callname: ParachainHost_persisted_validation_data
|
|
305
306
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
306
|
-
* @param {
|
|
307
|
+
* @param {PolkadotPrimitivesV9OccupiedCoreAssumption} assumption
|
|
307
308
|
**/
|
|
308
309
|
persistedValidationData: GenericRuntimeApiMethod<
|
|
309
310
|
(
|
|
310
311
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
311
|
-
assumption:
|
|
312
|
-
) => Promise<
|
|
312
|
+
assumption: PolkadotPrimitivesV9OccupiedCoreAssumption,
|
|
313
|
+
) => Promise<PolkadotPrimitivesV9PersistedValidationData | undefined>
|
|
313
314
|
>;
|
|
314
315
|
|
|
315
316
|
/**
|
|
@@ -326,7 +327,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
326
327
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
327
328
|
expectedPersistedValidationDataHash: H256,
|
|
328
329
|
) => Promise<
|
|
329
|
-
| [
|
|
330
|
+
| [PolkadotPrimitivesV9PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
|
|
330
331
|
| undefined
|
|
331
332
|
>
|
|
332
333
|
>;
|
|
@@ -336,12 +337,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
336
337
|
*
|
|
337
338
|
* @callname: ParachainHost_check_validation_outputs
|
|
338
339
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
339
|
-
* @param {
|
|
340
|
+
* @param {PolkadotPrimitivesV9CandidateCommitments} outputs
|
|
340
341
|
**/
|
|
341
342
|
checkValidationOutputs: GenericRuntimeApiMethod<
|
|
342
343
|
(
|
|
343
344
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
344
|
-
outputs:
|
|
345
|
+
outputs: PolkadotPrimitivesV9CandidateCommitments,
|
|
345
346
|
) => Promise<boolean>
|
|
346
347
|
>;
|
|
347
348
|
|
|
@@ -362,12 +363,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
362
363
|
*
|
|
363
364
|
* @callname: ParachainHost_validation_code
|
|
364
365
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
365
|
-
* @param {
|
|
366
|
+
* @param {PolkadotPrimitivesV9OccupiedCoreAssumption} assumption
|
|
366
367
|
**/
|
|
367
368
|
validationCode: GenericRuntimeApiMethod<
|
|
368
369
|
(
|
|
369
370
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
370
|
-
assumption:
|
|
371
|
+
assumption: PolkadotPrimitivesV9OccupiedCoreAssumption,
|
|
371
372
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
|
|
372
373
|
>;
|
|
373
374
|
|
|
@@ -381,7 +382,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
381
382
|
candidatePendingAvailability: GenericRuntimeApiMethod<
|
|
382
383
|
(
|
|
383
384
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
384
|
-
) => Promise<
|
|
385
|
+
) => Promise<PolkadotPrimitivesV9CommittedCandidateReceiptV2 | undefined>
|
|
385
386
|
>;
|
|
386
387
|
|
|
387
388
|
/**
|
|
@@ -389,7 +390,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
389
390
|
*
|
|
390
391
|
* @callname: ParachainHost_candidate_events
|
|
391
392
|
**/
|
|
392
|
-
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<
|
|
393
|
+
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9CandidateEvent>>>;
|
|
393
394
|
|
|
394
395
|
/**
|
|
395
396
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
@@ -433,7 +434,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
433
434
|
*
|
|
434
435
|
* @callname: ParachainHost_on_chain_votes
|
|
435
436
|
**/
|
|
436
|
-
onChainVotes: GenericRuntimeApiMethod<() => Promise<
|
|
437
|
+
onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV9ScrapedOnChainVotes | undefined>>;
|
|
437
438
|
|
|
438
439
|
/**
|
|
439
440
|
* Get the session info for the given session, if stored.
|
|
@@ -443,7 +444,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
443
444
|
* @callname: ParachainHost_session_info
|
|
444
445
|
* @param {number} index
|
|
445
446
|
**/
|
|
446
|
-
sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<
|
|
447
|
+
sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV9SessionInfo | undefined>>;
|
|
447
448
|
|
|
448
449
|
/**
|
|
449
450
|
* Submits a PVF pre-checking statement into the transaction pool.
|
|
@@ -451,11 +452,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
451
452
|
* NOTE: This function is only available since parachain host version 2.
|
|
452
453
|
*
|
|
453
454
|
* @callname: ParachainHost_submit_pvf_check_statement
|
|
454
|
-
* @param {
|
|
455
|
-
* @param {
|
|
455
|
+
* @param {PolkadotPrimitivesV9PvfCheckStatement} stmt
|
|
456
|
+
* @param {PolkadotPrimitivesV9ValidatorAppSignature} signature
|
|
456
457
|
**/
|
|
457
458
|
submitPvfCheckStatement: GenericRuntimeApiMethod<
|
|
458
|
-
(stmt:
|
|
459
|
+
(stmt: PolkadotPrimitivesV9PvfCheckStatement, signature: PolkadotPrimitivesV9ValidatorAppSignature) => Promise<[]>
|
|
459
460
|
>;
|
|
460
461
|
|
|
461
462
|
/**
|
|
@@ -476,12 +477,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
476
477
|
*
|
|
477
478
|
* @callname: ParachainHost_validation_code_hash
|
|
478
479
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
479
|
-
* @param {
|
|
480
|
+
* @param {PolkadotPrimitivesV9OccupiedCoreAssumption} assumption
|
|
480
481
|
**/
|
|
481
482
|
validationCodeHash: GenericRuntimeApiMethod<
|
|
482
483
|
(
|
|
483
484
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
484
|
-
assumption:
|
|
485
|
+
assumption: PolkadotPrimitivesV9OccupiedCoreAssumption,
|
|
485
486
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
|
|
486
487
|
>;
|
|
487
488
|
|
|
@@ -491,7 +492,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
491
492
|
* @callname: ParachainHost_disputes
|
|
492
493
|
**/
|
|
493
494
|
disputes: GenericRuntimeApiMethod<
|
|
494
|
-
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash,
|
|
495
|
+
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV9DisputeState]>>
|
|
495
496
|
>;
|
|
496
497
|
|
|
497
498
|
/**
|
|
@@ -501,17 +502,20 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
501
502
|
* @param {number} session_index
|
|
502
503
|
**/
|
|
503
504
|
sessionExecutorParams: GenericRuntimeApiMethod<
|
|
504
|
-
(sessionIndex: number) => Promise<
|
|
505
|
+
(sessionIndex: number) => Promise<PolkadotPrimitivesV9ExecutorParams | undefined>
|
|
505
506
|
>;
|
|
506
507
|
|
|
507
508
|
/**
|
|
508
509
|
* Returns a list of validators that lost a past session dispute and need to be slashed.
|
|
509
|
-
*
|
|
510
|
+
*
|
|
511
|
+
* Deprecated. Use `unapplied_slashes_v2` instead.
|
|
510
512
|
*
|
|
511
513
|
* @callname: ParachainHost_unapplied_slashes
|
|
512
514
|
**/
|
|
513
515
|
unappliedSlashes: GenericRuntimeApiMethod<
|
|
514
|
-
() => Promise<
|
|
516
|
+
() => Promise<
|
|
517
|
+
Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV9SlashingLegacyPendingSlashes]>
|
|
518
|
+
>
|
|
515
519
|
>;
|
|
516
520
|
|
|
517
521
|
/**
|
|
@@ -519,12 +523,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
519
523
|
* NOTE: This function is only available since parachain host version 5.
|
|
520
524
|
*
|
|
521
525
|
* @callname: ParachainHost_key_ownership_proof
|
|
522
|
-
* @param {
|
|
526
|
+
* @param {PolkadotPrimitivesV9ValidatorAppPublic} validator_id
|
|
523
527
|
**/
|
|
524
528
|
keyOwnershipProof: GenericRuntimeApiMethod<
|
|
525
529
|
(
|
|
526
|
-
validatorId:
|
|
527
|
-
) => Promise<
|
|
530
|
+
validatorId: PolkadotPrimitivesV9ValidatorAppPublic,
|
|
531
|
+
) => Promise<PolkadotPrimitivesV9SlashingOpaqueKeyOwnershipProof | undefined>
|
|
528
532
|
>;
|
|
529
533
|
|
|
530
534
|
/**
|
|
@@ -533,13 +537,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
533
537
|
* NOTE: This function is only available since parachain host version 5.
|
|
534
538
|
*
|
|
535
539
|
* @callname: ParachainHost_submit_report_dispute_lost
|
|
536
|
-
* @param {
|
|
537
|
-
* @param {
|
|
540
|
+
* @param {PolkadotPrimitivesV9SlashingDisputeProof} dispute_proof
|
|
541
|
+
* @param {PolkadotPrimitivesV9SlashingOpaqueKeyOwnershipProof} key_ownership_proof
|
|
538
542
|
**/
|
|
539
543
|
submitReportDisputeLost: GenericRuntimeApiMethod<
|
|
540
544
|
(
|
|
541
|
-
disputeProof:
|
|
542
|
-
keyOwnershipProof:
|
|
545
|
+
disputeProof: PolkadotPrimitivesV9SlashingDisputeProof,
|
|
546
|
+
keyOwnershipProof: PolkadotPrimitivesV9SlashingOpaqueKeyOwnershipProof,
|
|
543
547
|
) => Promise<[] | undefined>
|
|
544
548
|
>;
|
|
545
549
|
|
|
@@ -560,7 +564,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
560
564
|
paraBackingState: GenericRuntimeApiMethod<
|
|
561
565
|
(
|
|
562
566
|
runtimeApiGeneratedName0: PolkadotParachainPrimitivesPrimitivesId,
|
|
563
|
-
) => Promise<
|
|
567
|
+
) => Promise<PolkadotPrimitivesV9AsyncBackingBackingState | undefined>
|
|
564
568
|
>;
|
|
565
569
|
|
|
566
570
|
/**
|
|
@@ -568,14 +572,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
568
572
|
*
|
|
569
573
|
* @callname: ParachainHost_async_backing_params
|
|
570
574
|
**/
|
|
571
|
-
asyncBackingParams: GenericRuntimeApiMethod<() => Promise<
|
|
575
|
+
asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV9AsyncBackingAsyncBackingParams>>;
|
|
572
576
|
|
|
573
577
|
/**
|
|
574
578
|
* Returns a list of all disabled validators at the given block.
|
|
575
579
|
*
|
|
576
580
|
* @callname: ParachainHost_disabled_validators
|
|
577
581
|
**/
|
|
578
|
-
disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<
|
|
582
|
+
disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV9ValidatorIndex>>>;
|
|
579
583
|
|
|
580
584
|
/**
|
|
581
585
|
* Get node features.
|
|
@@ -590,7 +594,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
590
594
|
*
|
|
591
595
|
* @callname: ParachainHost_approval_voting_params
|
|
592
596
|
**/
|
|
593
|
-
approvalVotingParams: GenericRuntimeApiMethod<() => Promise<
|
|
597
|
+
approvalVotingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV9ApprovalVotingParams>>;
|
|
594
598
|
|
|
595
599
|
/**
|
|
596
600
|
* Claim queue
|
|
@@ -598,7 +602,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
598
602
|
* @callname: ParachainHost_claim_queue
|
|
599
603
|
**/
|
|
600
604
|
claimQueue: GenericRuntimeApiMethod<
|
|
601
|
-
() => Promise<Array<[
|
|
605
|
+
() => Promise<Array<[PolkadotPrimitivesV9CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
|
|
602
606
|
>;
|
|
603
607
|
|
|
604
608
|
/**
|
|
@@ -610,7 +614,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
610
614
|
candidatesPendingAvailability: GenericRuntimeApiMethod<
|
|
611
615
|
(
|
|
612
616
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
613
|
-
) => Promise<Array<
|
|
617
|
+
) => Promise<Array<PolkadotPrimitivesV9CommittedCandidateReceiptV2>>
|
|
614
618
|
>;
|
|
615
619
|
|
|
616
620
|
/**
|
|
@@ -630,7 +634,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
630
634
|
backingConstraints: GenericRuntimeApiMethod<
|
|
631
635
|
(
|
|
632
636
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
633
|
-
) => Promise<
|
|
637
|
+
) => Promise<PolkadotPrimitivesV9AsyncBackingConstraints | undefined>
|
|
634
638
|
>;
|
|
635
639
|
|
|
636
640
|
/**
|
|
@@ -747,18 +751,6 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
747
751
|
(setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
748
752
|
>;
|
|
749
753
|
|
|
750
|
-
/**
|
|
751
|
-
* Generates a proof that the `prev_block_number` is part of the canonical chain at
|
|
752
|
-
* `best_known_block_number`.
|
|
753
|
-
*
|
|
754
|
-
* @callname: BeefyApi_generate_ancestry_proof
|
|
755
|
-
* @param {number} prev_block_number
|
|
756
|
-
* @param {number | undefined} best_known_block_number
|
|
757
|
-
**/
|
|
758
|
-
generateAncestryProof: GenericRuntimeApiMethod<
|
|
759
|
-
(prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
760
|
-
>;
|
|
761
|
-
|
|
762
754
|
/**
|
|
763
755
|
* Generic runtime api call
|
|
764
756
|
**/
|
|
@@ -797,6 +789,21 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
797
789
|
) => Promise<Result<[Array<SpMmrPrimitivesEncodableOpaqueLeaf>, SpMmrPrimitivesLeafProof], SpMmrPrimitivesError>>
|
|
798
790
|
>;
|
|
799
791
|
|
|
792
|
+
/**
|
|
793
|
+
* Generates a proof that the `prev_block_number` is part of the canonical chain at
|
|
794
|
+
* `best_known_block_number`.
|
|
795
|
+
*
|
|
796
|
+
* @callname: MmrApi_generate_ancestry_proof
|
|
797
|
+
* @param {number} prev_block_number
|
|
798
|
+
* @param {number | undefined} best_known_block_number
|
|
799
|
+
**/
|
|
800
|
+
generateAncestryProof: GenericRuntimeApiMethod<
|
|
801
|
+
(
|
|
802
|
+
prevBlockNumber: number,
|
|
803
|
+
bestKnownBlockNumber?: number | undefined,
|
|
804
|
+
) => Promise<Result<SpMmrPrimitivesAncestryProof, SpMmrPrimitivesError>>
|
|
805
|
+
>;
|
|
806
|
+
|
|
800
807
|
/**
|
|
801
808
|
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
|
802
809
|
*
|
|
@@ -1248,6 +1255,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1248
1255
|
>;
|
|
1249
1256
|
|
|
1250
1257
|
/**
|
|
1258
|
+
* Query delivery fees V2.
|
|
1259
|
+
*
|
|
1251
1260
|
* Get delivery fees for sending a specific `message` to a `destination`.
|
|
1252
1261
|
* These always come in a specific asset, defined by the chain.
|
|
1253
1262
|
*
|
|
@@ -1260,11 +1269,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1260
1269
|
* @callname: XcmPaymentApi_query_delivery_fees
|
|
1261
1270
|
* @param {XcmVersionedLocation} destination
|
|
1262
1271
|
* @param {XcmVersionedXcm} message
|
|
1272
|
+
* @param {XcmVersionedAssetId} asset_id
|
|
1263
1273
|
**/
|
|
1264
1274
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
1265
1275
|
(
|
|
1266
1276
|
destination: XcmVersionedLocation,
|
|
1267
1277
|
message: XcmVersionedXcm,
|
|
1278
|
+
assetId: XcmVersionedAssetId,
|
|
1268
1279
|
) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
|
|
1269
1280
|
>;
|
|
1270
1281
|
|
|
@@ -1460,7 +1471,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1460
1471
|
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
1461
1472
|
|
|
1462
1473
|
/**
|
|
1463
|
-
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
1474
|
+
* Returns true if a validator `account` has pages to be claimed for the given era.
|
|
1464
1475
|
*
|
|
1465
1476
|
* @callname: StakingApi_pending_rewards
|
|
1466
1477
|
* @param {number} era
|