@dedot/chaintypes 0.14.0 → 0.16.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/kusama/consts.d.ts +48 -30
- package/kusama/errors.d.ts +89 -100
- package/kusama/events.d.ts +87 -28
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +241 -130
- package/kusama/runtime.d.ts +347 -95
- package/kusama/tx.d.ts +3309 -456
- package/kusama/types.d.ts +6341 -1092
- package/kusama-asset-hub/consts.d.ts +52 -3
- package/kusama-asset-hub/errors.d.ts +30 -5
- package/kusama-asset-hub/events.d.ts +61 -1
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +100 -18
- package/kusama-asset-hub/runtime.d.ts +186 -15
- package/kusama-asset-hub/tx.d.ts +3074 -254
- package/kusama-asset-hub/types.d.ts +6190 -551
- package/package.json +2 -2
- package/paseo/index.d.ts +1 -1
- package/rococo/errors.d.ts +0 -10
- package/rococo/events.d.ts +33 -12
- package/rococo/index.d.ts +1 -1
- package/rococo/query.d.ts +52 -52
- package/rococo/runtime.d.ts +117 -58
- package/rococo/tx.d.ts +33 -33
- package/rococo/types.d.ts +191 -185
- package/rococo-asset-hub/consts.d.ts +2 -2
- package/rococo-asset-hub/events.d.ts +87 -80
- package/rococo-asset-hub/index.d.ts +1 -1
- package/rococo-asset-hub/query.d.ts +66 -54
- package/rococo-asset-hub/runtime.d.ts +12 -15
- package/rococo-asset-hub/tx.d.ts +250 -241
- package/rococo-asset-hub/types.d.ts +353 -404
- package/westend/consts.d.ts +9 -0
- package/westend/errors.d.ts +0 -10
- package/westend/events.d.ts +79 -13
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +75 -52
- package/westend/runtime.d.ts +133 -58
- package/westend/tx.d.ts +72 -35
- package/westend/types.d.ts +308 -190
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/events.d.ts +87 -80
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +66 -54
- package/westend-asset-hub/runtime.d.ts +12 -15
- package/westend-asset-hub/tx.d.ts +250 -241
- package/westend-asset-hub/types.d.ts +353 -404
- package/westend-people/index.d.ts +1 -1
- package/westend-people/query.d.ts +12 -12
- package/westend-people/tx.d.ts +1 -58
- package/westend-people/types.d.ts +16 -62
package/westend/runtime.d.ts
CHANGED
|
@@ -24,37 +24,39 @@ import type {
|
|
|
24
24
|
SpInherentsCheckInherentsResult,
|
|
25
25
|
SpRuntimeTransactionValidityValidTransaction,
|
|
26
26
|
SpRuntimeTransactionValidityTransactionSource,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
PolkadotPrimitivesV8ValidatorAppPublic,
|
|
28
|
+
PolkadotPrimitivesV8ValidatorIndex,
|
|
29
|
+
PolkadotPrimitivesV8GroupRotationInfo,
|
|
30
|
+
PolkadotPrimitivesV8CoreState,
|
|
31
|
+
PolkadotPrimitivesV8PersistedValidationData,
|
|
32
32
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
33
|
-
|
|
33
|
+
PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
34
34
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
35
|
-
|
|
35
|
+
PolkadotPrimitivesV8CandidateCommitments,
|
|
36
36
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
PolkadotPrimitivesV8CommittedCandidateReceipt,
|
|
38
|
+
PolkadotPrimitivesV8CandidateEvent,
|
|
39
39
|
PolkadotCorePrimitivesInboundDownwardMessage,
|
|
40
40
|
PolkadotCorePrimitivesInboundHrmpMessage,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
PolkadotPrimitivesV8ScrapedOnChainVotes,
|
|
42
|
+
PolkadotPrimitivesV8SessionInfo,
|
|
43
|
+
PolkadotPrimitivesV8PvfCheckStatement,
|
|
44
|
+
PolkadotPrimitivesV8ValidatorAppSignature,
|
|
45
45
|
PolkadotCorePrimitivesCandidateHash,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
PolkadotPrimitivesV8DisputeState,
|
|
47
|
+
PolkadotPrimitivesV8ExecutorParams,
|
|
48
|
+
PolkadotPrimitivesV8SlashingPendingSlashes,
|
|
49
|
+
PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
|
|
50
|
+
PolkadotPrimitivesV8SlashingDisputeProof,
|
|
51
|
+
PolkadotPrimitivesV8AsyncBackingBackingState,
|
|
52
|
+
PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
|
|
53
|
+
PolkadotPrimitivesV8ApprovalVotingParams,
|
|
54
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
55
55
|
SpConsensusBeefyValidatorSet,
|
|
56
56
|
SpConsensusBeefyDoubleVotingProof,
|
|
57
57
|
SpRuntimeOpaqueValue,
|
|
58
|
+
SpConsensusBeefyForkVotingProofOpaqueValue,
|
|
59
|
+
SpConsensusBeefyFutureBlockVotingProof,
|
|
58
60
|
SpConsensusBeefyEcdsaCryptoPublic,
|
|
59
61
|
SpMmrPrimitivesError,
|
|
60
62
|
SpMmrPrimitivesEncodableOpaqueLeaf,
|
|
@@ -272,7 +274,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
272
274
|
*
|
|
273
275
|
* @callname: ParachainHost_validators
|
|
274
276
|
**/
|
|
275
|
-
validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<
|
|
277
|
+
validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8ValidatorAppPublic>>>;
|
|
276
278
|
|
|
277
279
|
/**
|
|
278
280
|
* Returns the validator groups and rotation info localized based on the hypothetical child
|
|
@@ -283,7 +285,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
283
285
|
**/
|
|
284
286
|
validatorGroups: GenericRuntimeApiMethod<
|
|
285
287
|
Rv,
|
|
286
|
-
() => Promise<[Array<Array<
|
|
288
|
+
() => Promise<[Array<Array<PolkadotPrimitivesV8ValidatorIndex>>, PolkadotPrimitivesV8GroupRotationInfo]>
|
|
287
289
|
>;
|
|
288
290
|
|
|
289
291
|
/**
|
|
@@ -292,7 +294,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
292
294
|
*
|
|
293
295
|
* @callname: ParachainHost_availability_cores
|
|
294
296
|
**/
|
|
295
|
-
availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<
|
|
297
|
+
availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8CoreState>>>;
|
|
296
298
|
|
|
297
299
|
/**
|
|
298
300
|
* Yields the persisted validation data for the given `ParaId` along with an assumption that
|
|
@@ -303,14 +305,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
303
305
|
*
|
|
304
306
|
* @callname: ParachainHost_persisted_validation_data
|
|
305
307
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
306
|
-
* @param {
|
|
308
|
+
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
307
309
|
**/
|
|
308
310
|
persistedValidationData: GenericRuntimeApiMethod<
|
|
309
311
|
Rv,
|
|
310
312
|
(
|
|
311
313
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
312
|
-
assumption:
|
|
313
|
-
) => Promise<
|
|
314
|
+
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
315
|
+
) => Promise<PolkadotPrimitivesV8PersistedValidationData | undefined>
|
|
314
316
|
>;
|
|
315
317
|
|
|
316
318
|
/**
|
|
@@ -328,7 +330,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
328
330
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
329
331
|
expectedPersistedValidationDataHash: H256,
|
|
330
332
|
) => Promise<
|
|
331
|
-
| [
|
|
333
|
+
| [PolkadotPrimitivesV8PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
|
|
332
334
|
| undefined
|
|
333
335
|
>
|
|
334
336
|
>;
|
|
@@ -338,13 +340,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
338
340
|
*
|
|
339
341
|
* @callname: ParachainHost_check_validation_outputs
|
|
340
342
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
341
|
-
* @param {
|
|
343
|
+
* @param {PolkadotPrimitivesV8CandidateCommitments} outputs
|
|
342
344
|
**/
|
|
343
345
|
checkValidationOutputs: GenericRuntimeApiMethod<
|
|
344
346
|
Rv,
|
|
345
347
|
(
|
|
346
348
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
347
|
-
outputs:
|
|
349
|
+
outputs: PolkadotPrimitivesV8CandidateCommitments,
|
|
348
350
|
) => Promise<boolean>
|
|
349
351
|
>;
|
|
350
352
|
|
|
@@ -365,13 +367,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
365
367
|
*
|
|
366
368
|
* @callname: ParachainHost_validation_code
|
|
367
369
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
368
|
-
* @param {
|
|
370
|
+
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
369
371
|
**/
|
|
370
372
|
validationCode: GenericRuntimeApiMethod<
|
|
371
373
|
Rv,
|
|
372
374
|
(
|
|
373
375
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
374
|
-
assumption:
|
|
376
|
+
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
375
377
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
|
|
376
378
|
>;
|
|
377
379
|
|
|
@@ -386,7 +388,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
386
388
|
Rv,
|
|
387
389
|
(
|
|
388
390
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
389
|
-
) => Promise<
|
|
391
|
+
) => Promise<PolkadotPrimitivesV8CommittedCandidateReceipt | undefined>
|
|
390
392
|
>;
|
|
391
393
|
|
|
392
394
|
/**
|
|
@@ -394,7 +396,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
394
396
|
*
|
|
395
397
|
* @callname: ParachainHost_candidate_events
|
|
396
398
|
**/
|
|
397
|
-
candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<
|
|
399
|
+
candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8CandidateEvent>>>;
|
|
398
400
|
|
|
399
401
|
/**
|
|
400
402
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
@@ -441,7 +443,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
441
443
|
*
|
|
442
444
|
* @callname: ParachainHost_on_chain_votes
|
|
443
445
|
**/
|
|
444
|
-
onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<
|
|
446
|
+
onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>>;
|
|
445
447
|
|
|
446
448
|
/**
|
|
447
449
|
* Get the session info for the given session, if stored.
|
|
@@ -451,7 +453,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
451
453
|
* @callname: ParachainHost_session_info
|
|
452
454
|
* @param {number} index
|
|
453
455
|
**/
|
|
454
|
-
sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<
|
|
456
|
+
sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<PolkadotPrimitivesV8SessionInfo | undefined>>;
|
|
455
457
|
|
|
456
458
|
/**
|
|
457
459
|
* Submits a PVF pre-checking statement into the transaction pool.
|
|
@@ -459,12 +461,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
459
461
|
* NOTE: This function is only available since parachain host version 2.
|
|
460
462
|
*
|
|
461
463
|
* @callname: ParachainHost_submit_pvf_check_statement
|
|
462
|
-
* @param {
|
|
463
|
-
* @param {
|
|
464
|
+
* @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
|
|
465
|
+
* @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
|
|
464
466
|
**/
|
|
465
467
|
submitPvfCheckStatement: GenericRuntimeApiMethod<
|
|
466
468
|
Rv,
|
|
467
|
-
(stmt:
|
|
469
|
+
(stmt: PolkadotPrimitivesV8PvfCheckStatement, signature: PolkadotPrimitivesV8ValidatorAppSignature) => Promise<[]>
|
|
468
470
|
>;
|
|
469
471
|
|
|
470
472
|
/**
|
|
@@ -486,13 +488,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
486
488
|
*
|
|
487
489
|
* @callname: ParachainHost_validation_code_hash
|
|
488
490
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
489
|
-
* @param {
|
|
491
|
+
* @param {PolkadotPrimitivesV8OccupiedCoreAssumption} assumption
|
|
490
492
|
**/
|
|
491
493
|
validationCodeHash: GenericRuntimeApiMethod<
|
|
492
494
|
Rv,
|
|
493
495
|
(
|
|
494
496
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
495
|
-
assumption:
|
|
497
|
+
assumption: PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
496
498
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
|
|
497
499
|
>;
|
|
498
500
|
|
|
@@ -503,7 +505,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
503
505
|
**/
|
|
504
506
|
disputes: GenericRuntimeApiMethod<
|
|
505
507
|
Rv,
|
|
506
|
-
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash,
|
|
508
|
+
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8DisputeState]>>
|
|
507
509
|
>;
|
|
508
510
|
|
|
509
511
|
/**
|
|
@@ -514,7 +516,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
514
516
|
**/
|
|
515
517
|
sessionExecutorParams: GenericRuntimeApiMethod<
|
|
516
518
|
Rv,
|
|
517
|
-
(sessionIndex: number) => Promise<
|
|
519
|
+
(sessionIndex: number) => Promise<PolkadotPrimitivesV8ExecutorParams | undefined>
|
|
518
520
|
>;
|
|
519
521
|
|
|
520
522
|
/**
|
|
@@ -525,7 +527,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
525
527
|
**/
|
|
526
528
|
unappliedSlashes: GenericRuntimeApiMethod<
|
|
527
529
|
Rv,
|
|
528
|
-
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash,
|
|
530
|
+
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV8SlashingPendingSlashes]>>
|
|
529
531
|
>;
|
|
530
532
|
|
|
531
533
|
/**
|
|
@@ -533,13 +535,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
533
535
|
* NOTE: This function is only available since parachain host version 5.
|
|
534
536
|
*
|
|
535
537
|
* @callname: ParachainHost_key_ownership_proof
|
|
536
|
-
* @param {
|
|
538
|
+
* @param {PolkadotPrimitivesV8ValidatorAppPublic} validator_id
|
|
537
539
|
**/
|
|
538
540
|
keyOwnershipProof: GenericRuntimeApiMethod<
|
|
539
541
|
Rv,
|
|
540
542
|
(
|
|
541
|
-
validatorId:
|
|
542
|
-
) => Promise<
|
|
543
|
+
validatorId: PolkadotPrimitivesV8ValidatorAppPublic,
|
|
544
|
+
) => Promise<PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof | undefined>
|
|
543
545
|
>;
|
|
544
546
|
|
|
545
547
|
/**
|
|
@@ -548,14 +550,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
548
550
|
* NOTE: This function is only available since parachain host version 5.
|
|
549
551
|
*
|
|
550
552
|
* @callname: ParachainHost_submit_report_dispute_lost
|
|
551
|
-
* @param {
|
|
552
|
-
* @param {
|
|
553
|
+
* @param {PolkadotPrimitivesV8SlashingDisputeProof} dispute_proof
|
|
554
|
+
* @param {PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof} key_ownership_proof
|
|
553
555
|
**/
|
|
554
556
|
submitReportDisputeLost: GenericRuntimeApiMethod<
|
|
555
557
|
Rv,
|
|
556
558
|
(
|
|
557
|
-
disputeProof:
|
|
558
|
-
keyOwnershipProof:
|
|
559
|
+
disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
|
|
560
|
+
keyOwnershipProof: PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
|
|
559
561
|
) => Promise<[] | undefined>
|
|
560
562
|
>;
|
|
561
563
|
|
|
@@ -577,7 +579,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
577
579
|
Rv,
|
|
578
580
|
(
|
|
579
581
|
undefined: PolkadotParachainPrimitivesPrimitivesId,
|
|
580
|
-
) => Promise<
|
|
582
|
+
) => Promise<PolkadotPrimitivesV8AsyncBackingBackingState | undefined>
|
|
581
583
|
>;
|
|
582
584
|
|
|
583
585
|
/**
|
|
@@ -585,14 +587,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
585
587
|
*
|
|
586
588
|
* @callname: ParachainHost_async_backing_params
|
|
587
589
|
**/
|
|
588
|
-
asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<
|
|
590
|
+
asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8AsyncBackingAsyncBackingParams>>;
|
|
589
591
|
|
|
590
592
|
/**
|
|
591
593
|
* Returns a list of all disabled validators at the given block.
|
|
592
594
|
*
|
|
593
595
|
* @callname: ParachainHost_disabled_validators
|
|
594
596
|
**/
|
|
595
|
-
disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<
|
|
597
|
+
disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
|
|
596
598
|
|
|
597
599
|
/**
|
|
598
600
|
* Get node features.
|
|
@@ -607,7 +609,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
607
609
|
*
|
|
608
610
|
* @callname: ParachainHost_approval_voting_params
|
|
609
611
|
**/
|
|
610
|
-
approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<
|
|
612
|
+
approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8ApprovalVotingParams>>;
|
|
611
613
|
|
|
612
614
|
/**
|
|
613
615
|
* Claim queue
|
|
@@ -616,7 +618,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
616
618
|
**/
|
|
617
619
|
claimQueue: GenericRuntimeApiMethod<
|
|
618
620
|
Rv,
|
|
619
|
-
() => Promise<Array<[
|
|
621
|
+
() => Promise<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
|
|
620
622
|
>;
|
|
621
623
|
|
|
622
624
|
/**
|
|
@@ -627,7 +629,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
627
629
|
**/
|
|
628
630
|
candidatesPendingAvailability: GenericRuntimeApiMethod<
|
|
629
631
|
Rv,
|
|
630
|
-
(paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<
|
|
632
|
+
(paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV8CommittedCandidateReceipt>>
|
|
631
633
|
>;
|
|
632
634
|
|
|
633
635
|
/**
|
|
@@ -675,6 +677,50 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
675
677
|
) => Promise<[] | undefined>
|
|
676
678
|
>;
|
|
677
679
|
|
|
680
|
+
/**
|
|
681
|
+
* Submits an unsigned extrinsic to report a fork voting equivocation. The caller
|
|
682
|
+
* must provide the fork voting proof (the ancestry proof should be obtained using
|
|
683
|
+
* `generate_ancestry_proof`) and a key ownership proof (should be obtained using
|
|
684
|
+
* `generate_key_ownership_proof`). The extrinsic will be unsigned and should only
|
|
685
|
+
* be accepted for local authorship (not to be broadcast to the network). This method
|
|
686
|
+
* returns `None` when creation of the extrinsic fails, e.g. if equivocation
|
|
687
|
+
* reporting is disabled for the given runtime (i.e. this method is
|
|
688
|
+
* hardcoded to return `None`). Only useful in an offchain context.
|
|
689
|
+
*
|
|
690
|
+
* @callname: BeefyApi_submit_report_fork_voting_unsigned_extrinsic
|
|
691
|
+
* @param {SpConsensusBeefyForkVotingProofOpaqueValue} equivocation_proof
|
|
692
|
+
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
693
|
+
**/
|
|
694
|
+
submitReportForkVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
695
|
+
Rv,
|
|
696
|
+
(
|
|
697
|
+
equivocationProof: SpConsensusBeefyForkVotingProofOpaqueValue,
|
|
698
|
+
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
699
|
+
) => Promise<[] | undefined>
|
|
700
|
+
>;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Submits an unsigned extrinsic to report a future block voting equivocation. The caller
|
|
704
|
+
* must provide the future block voting proof and a key ownership proof
|
|
705
|
+
* (should be obtained using `generate_key_ownership_proof`).
|
|
706
|
+
* The extrinsic will be unsigned and should only be accepted for local
|
|
707
|
+
* authorship (not to be broadcast to the network). This method returns
|
|
708
|
+
* `None` when creation of the extrinsic fails, e.g. if equivocation
|
|
709
|
+
* reporting is disabled for the given runtime (i.e. this method is
|
|
710
|
+
* hardcoded to return `None`). Only useful in an offchain context.
|
|
711
|
+
*
|
|
712
|
+
* @callname: BeefyApi_submit_report_future_block_voting_unsigned_extrinsic
|
|
713
|
+
* @param {SpConsensusBeefyFutureBlockVotingProof} equivocation_proof
|
|
714
|
+
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
715
|
+
**/
|
|
716
|
+
submitReportFutureBlockVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
717
|
+
Rv,
|
|
718
|
+
(
|
|
719
|
+
equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
|
|
720
|
+
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
721
|
+
) => Promise<[] | undefined>
|
|
722
|
+
>;
|
|
723
|
+
|
|
678
724
|
/**
|
|
679
725
|
* Generates a proof of key ownership for the given authority in the
|
|
680
726
|
* given set. An example usage of this module is coupled with the
|
|
@@ -697,6 +743,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
697
743
|
(setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
698
744
|
>;
|
|
699
745
|
|
|
746
|
+
/**
|
|
747
|
+
* Generates a proof that the `prev_block_number` is part of the canonical chain at
|
|
748
|
+
* `best_known_block_number`.
|
|
749
|
+
*
|
|
750
|
+
* @callname: BeefyApi_generate_ancestry_proof
|
|
751
|
+
* @param {number} prev_block_number
|
|
752
|
+
* @param {number | undefined} best_known_block_number
|
|
753
|
+
**/
|
|
754
|
+
generateAncestryProof: GenericRuntimeApiMethod<
|
|
755
|
+
Rv,
|
|
756
|
+
(prevBlockNumber: number, bestKnownBlockNumber?: number | undefined) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
757
|
+
>;
|
|
758
|
+
|
|
700
759
|
/**
|
|
701
760
|
* Generic runtime api call
|
|
702
761
|
**/
|
|
@@ -1338,6 +1397,22 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1338
1397
|
**/
|
|
1339
1398
|
memberNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<boolean>>;
|
|
1340
1399
|
|
|
1400
|
+
/**
|
|
1401
|
+
* Returns the total contribution of a pool member including any balance that is unbonding.
|
|
1402
|
+
*
|
|
1403
|
+
* @callname: NominationPoolsApi_member_total_balance
|
|
1404
|
+
* @param {AccountId32Like} who
|
|
1405
|
+
**/
|
|
1406
|
+
memberTotalBalance: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* Total balance contributed to the pool.
|
|
1410
|
+
*
|
|
1411
|
+
* @callname: NominationPoolsApi_pool_balance
|
|
1412
|
+
* @param {number} pool_id
|
|
1413
|
+
**/
|
|
1414
|
+
poolBalance: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
|
|
1415
|
+
|
|
1341
1416
|
/**
|
|
1342
1417
|
* Generic runtime api call
|
|
1343
1418
|
**/
|
package/westend/tx.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ import type {
|
|
|
37
37
|
PalletStakingPalletConfigOpPercent,
|
|
38
38
|
PalletStakingPalletConfigOpPerbill,
|
|
39
39
|
PalletStakingUnlockChunk,
|
|
40
|
+
WestendRuntimeRuntimeParameters,
|
|
40
41
|
WestendRuntimeSessionKeys,
|
|
41
42
|
SpConsensusGrandpaEquivocationProof,
|
|
42
43
|
WestendRuntimeOriginCaller,
|
|
@@ -65,19 +66,19 @@ import type {
|
|
|
65
66
|
FrameSupportScheduleDispatchTime,
|
|
66
67
|
PolkadotRuntimeCommonImplsVersionedLocatableAsset,
|
|
67
68
|
XcmVersionedLocation,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
|
|
70
|
+
PolkadotPrimitivesV8ExecutorParams,
|
|
71
|
+
PolkadotPrimitivesV8ApprovalVotingParams,
|
|
72
|
+
PolkadotPrimitivesV8SchedulerParams,
|
|
73
|
+
PolkadotPrimitivesV8InherentData,
|
|
73
74
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
74
75
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
75
76
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
76
77
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
PolkadotPrimitivesV8PvfCheckStatement,
|
|
79
|
+
PolkadotPrimitivesV8ValidatorAppSignature,
|
|
79
80
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
80
|
-
|
|
81
|
+
PolkadotPrimitivesV8SlashingDisputeProof,
|
|
81
82
|
PolkadotRuntimeParachainsParasParaGenesisArgs,
|
|
82
83
|
XcmVersionedXcm,
|
|
83
84
|
SpRuntimeMultiSigner,
|
|
@@ -1853,6 +1854,37 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1853
1854
|
**/
|
|
1854
1855
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
1855
1856
|
};
|
|
1857
|
+
/**
|
|
1858
|
+
* Pallet `Parameters`'s transaction calls
|
|
1859
|
+
**/
|
|
1860
|
+
parameters: {
|
|
1861
|
+
/**
|
|
1862
|
+
* Set the value of a parameter.
|
|
1863
|
+
*
|
|
1864
|
+
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
|
|
1865
|
+
* deleted by setting them to `None`.
|
|
1866
|
+
*
|
|
1867
|
+
* @param {WestendRuntimeRuntimeParameters} keyValue
|
|
1868
|
+
**/
|
|
1869
|
+
setParameter: GenericTxCall<
|
|
1870
|
+
Rv,
|
|
1871
|
+
(keyValue: WestendRuntimeRuntimeParameters) => ChainSubmittableExtrinsic<
|
|
1872
|
+
Rv,
|
|
1873
|
+
{
|
|
1874
|
+
pallet: 'Parameters';
|
|
1875
|
+
palletCall: {
|
|
1876
|
+
name: 'SetParameter';
|
|
1877
|
+
params: { keyValue: WestendRuntimeRuntimeParameters };
|
|
1878
|
+
};
|
|
1879
|
+
}
|
|
1880
|
+
>
|
|
1881
|
+
>;
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Generic pallet tx call
|
|
1885
|
+
**/
|
|
1886
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
1887
|
+
};
|
|
1856
1888
|
/**
|
|
1857
1889
|
* Pallet `Session`'s transaction calls
|
|
1858
1890
|
**/
|
|
@@ -2340,7 +2372,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2340
2372
|
* - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
|
|
2341
2373
|
*
|
|
2342
2374
|
* ```nocompile
|
|
2343
|
-
*
|
|
2375
|
+
* Registrars::<T>::get().get(reg_index).unwrap().fee
|
|
2344
2376
|
* ```
|
|
2345
2377
|
*
|
|
2346
2378
|
* Emits `JudgementRequested` if successful.
|
|
@@ -4687,8 +4719,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4687
4719
|
**/
|
|
4688
4720
|
nominationPools: {
|
|
4689
4721
|
/**
|
|
4690
|
-
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
|
4691
|
-
*
|
|
4722
|
+
* Stake funds with a pool. The amount to bond is transferred from the member to the pool
|
|
4723
|
+
* account and immediately increases the pools bond.
|
|
4724
|
+
*
|
|
4725
|
+
* The method of transferring the amount to the pool account is determined by
|
|
4726
|
+
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
|
4727
|
+
* [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
|
|
4728
|
+
* the `origin`, while the pool gains the right to use these funds for staking.
|
|
4692
4729
|
*
|
|
4693
4730
|
* # Note
|
|
4694
4731
|
*
|
|
@@ -7174,17 +7211,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7174
7211
|
/**
|
|
7175
7212
|
* Set the asynchronous backing parameters.
|
|
7176
7213
|
*
|
|
7177
|
-
* @param {
|
|
7214
|
+
* @param {PolkadotPrimitivesV8AsyncBackingAsyncBackingParams} new_
|
|
7178
7215
|
**/
|
|
7179
7216
|
setAsyncBackingParams: GenericTxCall<
|
|
7180
7217
|
Rv,
|
|
7181
|
-
(new_:
|
|
7218
|
+
(new_: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<
|
|
7182
7219
|
Rv,
|
|
7183
7220
|
{
|
|
7184
7221
|
pallet: 'Configuration';
|
|
7185
7222
|
palletCall: {
|
|
7186
7223
|
name: 'SetAsyncBackingParams';
|
|
7187
|
-
params: { new:
|
|
7224
|
+
params: { new: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams };
|
|
7188
7225
|
};
|
|
7189
7226
|
}
|
|
7190
7227
|
>
|
|
@@ -7193,17 +7230,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7193
7230
|
/**
|
|
7194
7231
|
* Set PVF executor parameters.
|
|
7195
7232
|
*
|
|
7196
|
-
* @param {
|
|
7233
|
+
* @param {PolkadotPrimitivesV8ExecutorParams} new_
|
|
7197
7234
|
**/
|
|
7198
7235
|
setExecutorParams: GenericTxCall<
|
|
7199
7236
|
Rv,
|
|
7200
|
-
(new_:
|
|
7237
|
+
(new_: PolkadotPrimitivesV8ExecutorParams) => ChainSubmittableExtrinsic<
|
|
7201
7238
|
Rv,
|
|
7202
7239
|
{
|
|
7203
7240
|
pallet: 'Configuration';
|
|
7204
7241
|
palletCall: {
|
|
7205
7242
|
name: 'SetExecutorParams';
|
|
7206
|
-
params: { new:
|
|
7243
|
+
params: { new: PolkadotPrimitivesV8ExecutorParams };
|
|
7207
7244
|
};
|
|
7208
7245
|
}
|
|
7209
7246
|
>
|
|
@@ -7349,17 +7386,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7349
7386
|
/**
|
|
7350
7387
|
* Set approval-voting-params.
|
|
7351
7388
|
*
|
|
7352
|
-
* @param {
|
|
7389
|
+
* @param {PolkadotPrimitivesV8ApprovalVotingParams} new_
|
|
7353
7390
|
**/
|
|
7354
7391
|
setApprovalVotingParams: GenericTxCall<
|
|
7355
7392
|
Rv,
|
|
7356
|
-
(new_:
|
|
7393
|
+
(new_: PolkadotPrimitivesV8ApprovalVotingParams) => ChainSubmittableExtrinsic<
|
|
7357
7394
|
Rv,
|
|
7358
7395
|
{
|
|
7359
7396
|
pallet: 'Configuration';
|
|
7360
7397
|
palletCall: {
|
|
7361
7398
|
name: 'SetApprovalVotingParams';
|
|
7362
|
-
params: { new:
|
|
7399
|
+
params: { new: PolkadotPrimitivesV8ApprovalVotingParams };
|
|
7363
7400
|
};
|
|
7364
7401
|
}
|
|
7365
7402
|
>
|
|
@@ -7368,17 +7405,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7368
7405
|
/**
|
|
7369
7406
|
* Set scheduler-params.
|
|
7370
7407
|
*
|
|
7371
|
-
* @param {
|
|
7408
|
+
* @param {PolkadotPrimitivesV8SchedulerParams} new_
|
|
7372
7409
|
**/
|
|
7373
7410
|
setSchedulerParams: GenericTxCall<
|
|
7374
7411
|
Rv,
|
|
7375
|
-
(new_:
|
|
7412
|
+
(new_: PolkadotPrimitivesV8SchedulerParams) => ChainSubmittableExtrinsic<
|
|
7376
7413
|
Rv,
|
|
7377
7414
|
{
|
|
7378
7415
|
pallet: 'Configuration';
|
|
7379
7416
|
palletCall: {
|
|
7380
7417
|
name: 'SetSchedulerParams';
|
|
7381
|
-
params: { new:
|
|
7418
|
+
params: { new: PolkadotPrimitivesV8SchedulerParams };
|
|
7382
7419
|
};
|
|
7383
7420
|
}
|
|
7384
7421
|
>
|
|
@@ -7414,17 +7451,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7414
7451
|
/**
|
|
7415
7452
|
* Enter the paras inherent. This will process bitfields and backed candidates.
|
|
7416
7453
|
*
|
|
7417
|
-
* @param {
|
|
7454
|
+
* @param {PolkadotPrimitivesV8InherentData} data
|
|
7418
7455
|
**/
|
|
7419
7456
|
enter: GenericTxCall<
|
|
7420
7457
|
Rv,
|
|
7421
|
-
(data:
|
|
7458
|
+
(data: PolkadotPrimitivesV8InherentData) => ChainSubmittableExtrinsic<
|
|
7422
7459
|
Rv,
|
|
7423
7460
|
{
|
|
7424
7461
|
pallet: 'ParaInherent';
|
|
7425
7462
|
palletCall: {
|
|
7426
7463
|
name: 'Enter';
|
|
7427
|
-
params: { data:
|
|
7464
|
+
params: { data: PolkadotPrimitivesV8InherentData };
|
|
7428
7465
|
};
|
|
7429
7466
|
}
|
|
7430
7467
|
>
|
|
@@ -7626,14 +7663,14 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7626
7663
|
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
|
7627
7664
|
* enacts the results if that was the last vote before achieving the supermajority.
|
|
7628
7665
|
*
|
|
7629
|
-
* @param {
|
|
7630
|
-
* @param {
|
|
7666
|
+
* @param {PolkadotPrimitivesV8PvfCheckStatement} stmt
|
|
7667
|
+
* @param {PolkadotPrimitivesV8ValidatorAppSignature} signature
|
|
7631
7668
|
**/
|
|
7632
7669
|
includePvfCheckStatement: GenericTxCall<
|
|
7633
7670
|
Rv,
|
|
7634
7671
|
(
|
|
7635
|
-
stmt:
|
|
7636
|
-
signature:
|
|
7672
|
+
stmt: PolkadotPrimitivesV8PvfCheckStatement,
|
|
7673
|
+
signature: PolkadotPrimitivesV8ValidatorAppSignature,
|
|
7637
7674
|
) => ChainSubmittableExtrinsic<
|
|
7638
7675
|
Rv,
|
|
7639
7676
|
{
|
|
@@ -7641,8 +7678,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7641
7678
|
palletCall: {
|
|
7642
7679
|
name: 'IncludePvfCheckStatement';
|
|
7643
7680
|
params: {
|
|
7644
|
-
stmt:
|
|
7645
|
-
signature:
|
|
7681
|
+
stmt: PolkadotPrimitivesV8PvfCheckStatement;
|
|
7682
|
+
signature: PolkadotPrimitivesV8ValidatorAppSignature;
|
|
7646
7683
|
};
|
|
7647
7684
|
};
|
|
7648
7685
|
}
|
|
@@ -8074,13 +8111,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8074
8111
|
parasSlashing: {
|
|
8075
8112
|
/**
|
|
8076
8113
|
*
|
|
8077
|
-
* @param {
|
|
8114
|
+
* @param {PolkadotPrimitivesV8SlashingDisputeProof} disputeProof
|
|
8078
8115
|
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
8079
8116
|
**/
|
|
8080
8117
|
reportDisputeLostUnsigned: GenericTxCall<
|
|
8081
8118
|
Rv,
|
|
8082
8119
|
(
|
|
8083
|
-
disputeProof:
|
|
8120
|
+
disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
|
|
8084
8121
|
keyOwnerProof: SpSessionMembershipProof,
|
|
8085
8122
|
) => ChainSubmittableExtrinsic<
|
|
8086
8123
|
Rv,
|
|
@@ -8088,7 +8125,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8088
8125
|
pallet: 'ParasSlashing';
|
|
8089
8126
|
palletCall: {
|
|
8090
8127
|
name: 'ReportDisputeLostUnsigned';
|
|
8091
|
-
params: { disputeProof:
|
|
8128
|
+
params: { disputeProof: PolkadotPrimitivesV8SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
|
|
8092
8129
|
};
|
|
8093
8130
|
}
|
|
8094
8131
|
>
|