@dedot/chaintypes 0.19.0 → 0.20.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/polkadot/consts.d.ts +65 -93
- package/polkadot/errors.d.ts +149 -232
- package/polkadot/events.d.ts +86 -183
- package/polkadot/index.d.ts +1 -1
- package/polkadot/query.d.ts +267 -195
- package/polkadot/runtime.d.ts +327 -95
- package/polkadot/tx.d.ts +2983 -924
- package/polkadot/types.d.ts +5876 -1475
package/polkadot/runtime.d.ts
CHANGED
|
@@ -13,53 +13,55 @@ import type {
|
|
|
13
13
|
BitSequence,
|
|
14
14
|
Bytes,
|
|
15
15
|
BytesLike,
|
|
16
|
+
AccountId32,
|
|
16
17
|
} from 'dedot/codecs';
|
|
17
18
|
import type {
|
|
18
19
|
SpRuntimeBlock,
|
|
20
|
+
SpRuntimeExtrinsicInclusionMode,
|
|
19
21
|
SpCoreOpaqueMetadata,
|
|
20
22
|
SpRuntimeTransactionValidityTransactionValidityError,
|
|
21
23
|
SpInherentsInherentData,
|
|
22
24
|
SpInherentsCheckInherentsResult,
|
|
23
25
|
SpRuntimeTransactionValidityValidTransaction,
|
|
24
26
|
SpRuntimeTransactionValidityTransactionSource,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
PolkadotPrimitivesV7ValidatorAppPublic,
|
|
28
|
+
PolkadotPrimitivesV7ValidatorIndex,
|
|
29
|
+
PolkadotPrimitivesV7GroupRotationInfo,
|
|
30
|
+
PolkadotPrimitivesV7CoreState,
|
|
31
|
+
PolkadotPrimitivesV7PersistedValidationData,
|
|
30
32
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
31
|
-
|
|
33
|
+
PolkadotPrimitivesV7OccupiedCoreAssumption,
|
|
32
34
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
33
|
-
|
|
35
|
+
PolkadotPrimitivesV7CandidateCommitments,
|
|
34
36
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
PolkadotPrimitivesV7CommittedCandidateReceipt,
|
|
38
|
+
PolkadotPrimitivesV7CandidateEvent,
|
|
37
39
|
PolkadotCorePrimitivesInboundDownwardMessage,
|
|
38
40
|
PolkadotCorePrimitivesInboundHrmpMessage,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
PolkadotPrimitivesV7ScrapedOnChainVotes,
|
|
42
|
+
PolkadotPrimitivesV7SessionInfo,
|
|
43
|
+
PolkadotPrimitivesV7PvfCheckStatement,
|
|
44
|
+
PolkadotPrimitivesV7ValidatorAppSignature,
|
|
43
45
|
PolkadotCorePrimitivesCandidateHash,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
PolkadotPrimitivesV7DisputeState,
|
|
47
|
+
PolkadotPrimitivesV7ExecutorParams,
|
|
48
|
+
PolkadotPrimitivesV7SlashingPendingSlashes,
|
|
49
|
+
PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
|
|
50
|
+
PolkadotPrimitivesV7SlashingDisputeProof,
|
|
51
|
+
PolkadotPrimitivesV7AsyncBackingBackingState,
|
|
52
|
+
PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
|
|
53
|
+
PolkadotPrimitivesV7ApprovalVotingParams,
|
|
54
|
+
PolkadotPrimitivesV7CoreIndex,
|
|
52
55
|
SpConsensusBeefyValidatorSet,
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
SpConsensusBeefyDoubleVotingProof,
|
|
57
|
+
SpRuntimeOpaqueValue,
|
|
55
58
|
SpConsensusBeefyEcdsaCryptoPublic,
|
|
56
59
|
SpMmrPrimitivesError,
|
|
57
60
|
SpMmrPrimitivesEncodableOpaqueLeaf,
|
|
58
|
-
|
|
61
|
+
SpMmrPrimitivesLeafProof,
|
|
59
62
|
SpConsensusBeefyMmrBeefyAuthoritySet,
|
|
60
63
|
SpConsensusGrandpaAppPublic,
|
|
61
64
|
SpConsensusGrandpaEquivocationProof,
|
|
62
|
-
SpConsensusGrandpaOpaqueKeyOwnershipProof,
|
|
63
65
|
SpConsensusBabeBabeConfiguration,
|
|
64
66
|
SpConsensusSlotsSlot,
|
|
65
67
|
SpConsensusBabeEpoch,
|
|
@@ -72,6 +74,16 @@ import type {
|
|
|
72
74
|
PalletTransactionPaymentFeeDetails,
|
|
73
75
|
SpWeightsWeightV2Weight,
|
|
74
76
|
PolkadotRuntimeRuntimeCallLike,
|
|
77
|
+
XcmVersionedAssetId,
|
|
78
|
+
XcmRuntimeApisFeesError,
|
|
79
|
+
XcmVersionedXcm,
|
|
80
|
+
XcmVersionedAssets,
|
|
81
|
+
XcmVersionedLocation,
|
|
82
|
+
XcmRuntimeApisDryRunCallDryRunEffects,
|
|
83
|
+
XcmRuntimeApisDryRunError,
|
|
84
|
+
PolkadotRuntimeOriginCaller,
|
|
85
|
+
XcmRuntimeApisDryRunXcmDryRunEffects,
|
|
86
|
+
XcmRuntimeApisConversionsError,
|
|
75
87
|
} from './types';
|
|
76
88
|
|
|
77
89
|
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
@@ -95,12 +107,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
95
107
|
executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
|
|
96
108
|
|
|
97
109
|
/**
|
|
98
|
-
* Initialize a block with the given header.
|
|
110
|
+
* Initialize a block with the given header and return the runtime executive mode.
|
|
99
111
|
*
|
|
100
112
|
* @callname: Core_initialize_block
|
|
101
113
|
* @param {Header} header
|
|
102
114
|
**/
|
|
103
|
-
initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<
|
|
115
|
+
initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
104
116
|
|
|
105
117
|
/**
|
|
106
118
|
* Generic runtime api call
|
|
@@ -228,6 +240,51 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
228
240
|
**/
|
|
229
241
|
balanceToPoints: GenericRuntimeApiMethod<Rv, (poolId: number, newFunds: bigint) => Promise<bigint>>;
|
|
230
242
|
|
|
243
|
+
/**
|
|
244
|
+
* Returns the pending slash for a given pool.
|
|
245
|
+
*
|
|
246
|
+
* @callname: NominationPoolsApi_pool_pending_slash
|
|
247
|
+
* @param {number} pool_id
|
|
248
|
+
**/
|
|
249
|
+
poolPendingSlash: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Returns the pending slash for a given pool member.
|
|
253
|
+
*
|
|
254
|
+
* @callname: NominationPoolsApi_member_pending_slash
|
|
255
|
+
* @param {AccountId32Like} member
|
|
256
|
+
**/
|
|
257
|
+
memberPendingSlash: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<bigint>>;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Returns true if the pool with `pool_id` needs migration.
|
|
261
|
+
*
|
|
262
|
+
* This can happen when the `pallet-nomination-pools` has switched to using strategy
|
|
263
|
+
* [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool
|
|
264
|
+
* still has funds that were staked using the older strategy
|
|
265
|
+
* [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use
|
|
266
|
+
* [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake)
|
|
267
|
+
* to migrate the pool.
|
|
268
|
+
*
|
|
269
|
+
* @callname: NominationPoolsApi_pool_needs_delegate_migration
|
|
270
|
+
* @param {number} pool_id
|
|
271
|
+
**/
|
|
272
|
+
poolNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<boolean>>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Returns true if the delegated funds of the pool `member` needs migration.
|
|
276
|
+
*
|
|
277
|
+
* Once a pool has successfully migrated to the strategy
|
|
278
|
+
* [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the
|
|
279
|
+
* member can be migrated from pool account to the member's account. Use
|
|
280
|
+
* [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation)
|
|
281
|
+
* to migrate the funds of the pool member.
|
|
282
|
+
*
|
|
283
|
+
* @callname: NominationPoolsApi_member_needs_delegate_migration
|
|
284
|
+
* @param {AccountId32Like} member
|
|
285
|
+
**/
|
|
286
|
+
memberNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<boolean>>;
|
|
287
|
+
|
|
231
288
|
/**
|
|
232
289
|
* Generic runtime api call
|
|
233
290
|
**/
|
|
@@ -330,7 +387,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
330
387
|
*
|
|
331
388
|
* @callname: ParachainHost_validators
|
|
332
389
|
**/
|
|
333
|
-
validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<
|
|
390
|
+
validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7ValidatorAppPublic>>>;
|
|
334
391
|
|
|
335
392
|
/**
|
|
336
393
|
* Returns the validator groups and rotation info localized based on the hypothetical child
|
|
@@ -341,7 +398,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
341
398
|
**/
|
|
342
399
|
validatorGroups: GenericRuntimeApiMethod<
|
|
343
400
|
Rv,
|
|
344
|
-
() => Promise<[Array<Array<
|
|
401
|
+
() => Promise<[Array<Array<PolkadotPrimitivesV7ValidatorIndex>>, PolkadotPrimitivesV7GroupRotationInfo]>
|
|
345
402
|
>;
|
|
346
403
|
|
|
347
404
|
/**
|
|
@@ -350,7 +407,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
350
407
|
*
|
|
351
408
|
* @callname: ParachainHost_availability_cores
|
|
352
409
|
**/
|
|
353
|
-
availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<
|
|
410
|
+
availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7CoreState>>>;
|
|
354
411
|
|
|
355
412
|
/**
|
|
356
413
|
* Yields the persisted validation data for the given `ParaId` along with an assumption that
|
|
@@ -361,14 +418,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
361
418
|
*
|
|
362
419
|
* @callname: ParachainHost_persisted_validation_data
|
|
363
420
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
364
|
-
* @param {
|
|
421
|
+
* @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
|
|
365
422
|
**/
|
|
366
423
|
persistedValidationData: GenericRuntimeApiMethod<
|
|
367
424
|
Rv,
|
|
368
425
|
(
|
|
369
426
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
370
|
-
assumption:
|
|
371
|
-
) => Promise<
|
|
427
|
+
assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
|
|
428
|
+
) => Promise<PolkadotPrimitivesV7PersistedValidationData | undefined>
|
|
372
429
|
>;
|
|
373
430
|
|
|
374
431
|
/**
|
|
@@ -386,7 +443,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
386
443
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
387
444
|
expectedPersistedValidationDataHash: H256,
|
|
388
445
|
) => Promise<
|
|
389
|
-
| [
|
|
446
|
+
| [PolkadotPrimitivesV7PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
|
|
390
447
|
| undefined
|
|
391
448
|
>
|
|
392
449
|
>;
|
|
@@ -396,13 +453,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
396
453
|
*
|
|
397
454
|
* @callname: ParachainHost_check_validation_outputs
|
|
398
455
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
399
|
-
* @param {
|
|
456
|
+
* @param {PolkadotPrimitivesV7CandidateCommitments} outputs
|
|
400
457
|
**/
|
|
401
458
|
checkValidationOutputs: GenericRuntimeApiMethod<
|
|
402
459
|
Rv,
|
|
403
460
|
(
|
|
404
461
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
405
|
-
outputs:
|
|
462
|
+
outputs: PolkadotPrimitivesV7CandidateCommitments,
|
|
406
463
|
) => Promise<boolean>
|
|
407
464
|
>;
|
|
408
465
|
|
|
@@ -423,13 +480,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
423
480
|
*
|
|
424
481
|
* @callname: ParachainHost_validation_code
|
|
425
482
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
426
|
-
* @param {
|
|
483
|
+
* @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
|
|
427
484
|
**/
|
|
428
485
|
validationCode: GenericRuntimeApiMethod<
|
|
429
486
|
Rv,
|
|
430
487
|
(
|
|
431
488
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
432
|
-
assumption:
|
|
489
|
+
assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
|
|
433
490
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
|
|
434
491
|
>;
|
|
435
492
|
|
|
@@ -444,7 +501,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
444
501
|
Rv,
|
|
445
502
|
(
|
|
446
503
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
447
|
-
) => Promise<
|
|
504
|
+
) => Promise<PolkadotPrimitivesV7CommittedCandidateReceipt | undefined>
|
|
448
505
|
>;
|
|
449
506
|
|
|
450
507
|
/**
|
|
@@ -452,7 +509,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
452
509
|
*
|
|
453
510
|
* @callname: ParachainHost_candidate_events
|
|
454
511
|
**/
|
|
455
|
-
candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<
|
|
512
|
+
candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7CandidateEvent>>>;
|
|
456
513
|
|
|
457
514
|
/**
|
|
458
515
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
@@ -499,7 +556,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
499
556
|
*
|
|
500
557
|
* @callname: ParachainHost_on_chain_votes
|
|
501
558
|
**/
|
|
502
|
-
onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<
|
|
559
|
+
onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>>;
|
|
503
560
|
|
|
504
561
|
/**
|
|
505
562
|
* Get the session info for the given session, if stored.
|
|
@@ -509,7 +566,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
509
566
|
* @callname: ParachainHost_session_info
|
|
510
567
|
* @param {number} index
|
|
511
568
|
**/
|
|
512
|
-
sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<
|
|
569
|
+
sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<PolkadotPrimitivesV7SessionInfo | undefined>>;
|
|
513
570
|
|
|
514
571
|
/**
|
|
515
572
|
* Submits a PVF pre-checking statement into the transaction pool.
|
|
@@ -517,12 +574,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
517
574
|
* NOTE: This function is only available since parachain host version 2.
|
|
518
575
|
*
|
|
519
576
|
* @callname: ParachainHost_submit_pvf_check_statement
|
|
520
|
-
* @param {
|
|
521
|
-
* @param {
|
|
577
|
+
* @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
|
|
578
|
+
* @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
|
|
522
579
|
**/
|
|
523
580
|
submitPvfCheckStatement: GenericRuntimeApiMethod<
|
|
524
581
|
Rv,
|
|
525
|
-
(stmt:
|
|
582
|
+
(stmt: PolkadotPrimitivesV7PvfCheckStatement, signature: PolkadotPrimitivesV7ValidatorAppSignature) => Promise<[]>
|
|
526
583
|
>;
|
|
527
584
|
|
|
528
585
|
/**
|
|
@@ -544,13 +601,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
544
601
|
*
|
|
545
602
|
* @callname: ParachainHost_validation_code_hash
|
|
546
603
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
547
|
-
* @param {
|
|
604
|
+
* @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
|
|
548
605
|
**/
|
|
549
606
|
validationCodeHash: GenericRuntimeApiMethod<
|
|
550
607
|
Rv,
|
|
551
608
|
(
|
|
552
609
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
553
|
-
assumption:
|
|
610
|
+
assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
|
|
554
611
|
) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
|
|
555
612
|
>;
|
|
556
613
|
|
|
@@ -561,7 +618,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
561
618
|
**/
|
|
562
619
|
disputes: GenericRuntimeApiMethod<
|
|
563
620
|
Rv,
|
|
564
|
-
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash,
|
|
621
|
+
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7DisputeState]>>
|
|
565
622
|
>;
|
|
566
623
|
|
|
567
624
|
/**
|
|
@@ -572,7 +629,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
572
629
|
**/
|
|
573
630
|
sessionExecutorParams: GenericRuntimeApiMethod<
|
|
574
631
|
Rv,
|
|
575
|
-
(sessionIndex: number) => Promise<
|
|
632
|
+
(sessionIndex: number) => Promise<PolkadotPrimitivesV7ExecutorParams | undefined>
|
|
576
633
|
>;
|
|
577
634
|
|
|
578
635
|
/**
|
|
@@ -583,7 +640,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
583
640
|
**/
|
|
584
641
|
unappliedSlashes: GenericRuntimeApiMethod<
|
|
585
642
|
Rv,
|
|
586
|
-
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash,
|
|
643
|
+
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7SlashingPendingSlashes]>>
|
|
587
644
|
>;
|
|
588
645
|
|
|
589
646
|
/**
|
|
@@ -591,13 +648,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
591
648
|
* NOTE: This function is only available since parachain host version 5.
|
|
592
649
|
*
|
|
593
650
|
* @callname: ParachainHost_key_ownership_proof
|
|
594
|
-
* @param {
|
|
651
|
+
* @param {PolkadotPrimitivesV7ValidatorAppPublic} validator_id
|
|
595
652
|
**/
|
|
596
653
|
keyOwnershipProof: GenericRuntimeApiMethod<
|
|
597
654
|
Rv,
|
|
598
655
|
(
|
|
599
|
-
validatorId:
|
|
600
|
-
) => Promise<
|
|
656
|
+
validatorId: PolkadotPrimitivesV7ValidatorAppPublic,
|
|
657
|
+
) => Promise<PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof | undefined>
|
|
601
658
|
>;
|
|
602
659
|
|
|
603
660
|
/**
|
|
@@ -606,14 +663,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
606
663
|
* NOTE: This function is only available since parachain host version 5.
|
|
607
664
|
*
|
|
608
665
|
* @callname: ParachainHost_submit_report_dispute_lost
|
|
609
|
-
* @param {
|
|
610
|
-
* @param {
|
|
666
|
+
* @param {PolkadotPrimitivesV7SlashingDisputeProof} dispute_proof
|
|
667
|
+
* @param {PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof} key_ownership_proof
|
|
611
668
|
**/
|
|
612
669
|
submitReportDisputeLost: GenericRuntimeApiMethod<
|
|
613
670
|
Rv,
|
|
614
671
|
(
|
|
615
|
-
disputeProof:
|
|
616
|
-
keyOwnershipProof:
|
|
672
|
+
disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
|
|
673
|
+
keyOwnershipProof: PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
|
|
617
674
|
) => Promise<[] | undefined>
|
|
618
675
|
>;
|
|
619
676
|
|
|
@@ -635,7 +692,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
635
692
|
Rv,
|
|
636
693
|
(
|
|
637
694
|
undefined: PolkadotParachainPrimitivesPrimitivesId,
|
|
638
|
-
) => Promise<
|
|
695
|
+
) => Promise<PolkadotPrimitivesV7AsyncBackingBackingState | undefined>
|
|
639
696
|
>;
|
|
640
697
|
|
|
641
698
|
/**
|
|
@@ -643,14 +700,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
643
700
|
*
|
|
644
701
|
* @callname: ParachainHost_async_backing_params
|
|
645
702
|
**/
|
|
646
|
-
asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<
|
|
703
|
+
asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
|
|
647
704
|
|
|
648
705
|
/**
|
|
649
706
|
* Returns a list of all disabled validators at the given block.
|
|
650
707
|
*
|
|
651
708
|
* @callname: ParachainHost_disabled_validators
|
|
652
709
|
**/
|
|
653
|
-
disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<
|
|
710
|
+
disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
|
|
654
711
|
|
|
655
712
|
/**
|
|
656
713
|
* Get node features.
|
|
@@ -665,7 +722,28 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
665
722
|
*
|
|
666
723
|
* @callname: ParachainHost_approval_voting_params
|
|
667
724
|
**/
|
|
668
|
-
approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<
|
|
725
|
+
approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7ApprovalVotingParams>>;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Claim queue
|
|
729
|
+
*
|
|
730
|
+
* @callname: ParachainHost_claim_queue
|
|
731
|
+
**/
|
|
732
|
+
claimQueue: GenericRuntimeApiMethod<
|
|
733
|
+
Rv,
|
|
734
|
+
() => Promise<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
|
|
735
|
+
>;
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Elastic scaling support
|
|
739
|
+
*
|
|
740
|
+
* @callname: ParachainHost_candidates_pending_availability
|
|
741
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
742
|
+
**/
|
|
743
|
+
candidatesPendingAvailability: GenericRuntimeApiMethod<
|
|
744
|
+
Rv,
|
|
745
|
+
(paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV7CommittedCandidateReceipt>>
|
|
746
|
+
>;
|
|
669
747
|
|
|
670
748
|
/**
|
|
671
749
|
* Generic runtime api call
|
|
@@ -701,14 +779,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
701
779
|
* hardcoded to return `None`). Only useful in an offchain context.
|
|
702
780
|
*
|
|
703
781
|
* @callname: BeefyApi_submit_report_equivocation_unsigned_extrinsic
|
|
704
|
-
* @param {
|
|
705
|
-
* @param {
|
|
782
|
+
* @param {SpConsensusBeefyDoubleVotingProof} equivocation_proof
|
|
783
|
+
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
706
784
|
**/
|
|
707
785
|
submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
708
786
|
Rv,
|
|
709
787
|
(
|
|
710
|
-
equivocationProof:
|
|
711
|
-
keyOwnerProof:
|
|
788
|
+
equivocationProof: SpConsensusBeefyDoubleVotingProof,
|
|
789
|
+
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
712
790
|
) => Promise<[] | undefined>
|
|
713
791
|
>;
|
|
714
792
|
|
|
@@ -731,10 +809,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
731
809
|
**/
|
|
732
810
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
733
811
|
Rv,
|
|
734
|
-
(
|
|
735
|
-
setId: bigint,
|
|
736
|
-
authorityId: SpConsensusBeefyEcdsaCryptoPublic,
|
|
737
|
-
) => Promise<SpConsensusBeefyOpaqueKeyOwnershipProof | undefined>
|
|
812
|
+
(setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
738
813
|
>;
|
|
739
814
|
|
|
740
815
|
/**
|
|
@@ -773,7 +848,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
773
848
|
(
|
|
774
849
|
blockNumbers: Array<number>,
|
|
775
850
|
bestKnownBlockNumber?: number | undefined,
|
|
776
|
-
) => Promise<Result<[Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
|
|
851
|
+
) => Promise<Result<[Array<SpMmrPrimitivesEncodableOpaqueLeaf>, SpMmrPrimitivesLeafProof], SpMmrPrimitivesError>>
|
|
777
852
|
>;
|
|
778
853
|
|
|
779
854
|
/**
|
|
@@ -781,17 +856,17 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
781
856
|
*
|
|
782
857
|
* Note this function will use on-chain MMR root hash and check if the proof matches the hash.
|
|
783
858
|
* Note, the leaves should be sorted such that corresponding leaves and leaf indices have the
|
|
784
|
-
* same position in both the `leaves` vector and the `leaf_indices` vector contained in the [
|
|
859
|
+
* same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
|
|
785
860
|
*
|
|
786
861
|
* @callname: MmrApi_verify_proof
|
|
787
862
|
* @param {Array<SpMmrPrimitivesEncodableOpaqueLeaf>} leaves
|
|
788
|
-
* @param {
|
|
863
|
+
* @param {SpMmrPrimitivesLeafProof} proof
|
|
789
864
|
**/
|
|
790
865
|
verifyProof: GenericRuntimeApiMethod<
|
|
791
866
|
Rv,
|
|
792
867
|
(
|
|
793
868
|
leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
|
|
794
|
-
proof:
|
|
869
|
+
proof: SpMmrPrimitivesLeafProof,
|
|
795
870
|
) => Promise<Result<[], SpMmrPrimitivesError>>
|
|
796
871
|
>;
|
|
797
872
|
|
|
@@ -802,19 +877,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
802
877
|
* proof is verified against given MMR root hash.
|
|
803
878
|
*
|
|
804
879
|
* Note, the leaves should be sorted such that corresponding leaves and leaf indices have the
|
|
805
|
-
* same position in both the `leaves` vector and the `leaf_indices` vector contained in the [
|
|
880
|
+
* same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
|
|
806
881
|
*
|
|
807
882
|
* @callname: MmrApi_verify_proof_stateless
|
|
808
883
|
* @param {H256} root
|
|
809
884
|
* @param {Array<SpMmrPrimitivesEncodableOpaqueLeaf>} leaves
|
|
810
|
-
* @param {
|
|
885
|
+
* @param {SpMmrPrimitivesLeafProof} proof
|
|
811
886
|
**/
|
|
812
887
|
verifyProofStateless: GenericRuntimeApiMethod<
|
|
813
888
|
Rv,
|
|
814
889
|
(
|
|
815
890
|
root: H256,
|
|
816
891
|
leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
|
|
817
|
-
proof:
|
|
892
|
+
proof: SpMmrPrimitivesLeafProof,
|
|
818
893
|
) => Promise<Result<[], SpMmrPrimitivesError>>
|
|
819
894
|
>;
|
|
820
895
|
|
|
@@ -874,13 +949,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
874
949
|
*
|
|
875
950
|
* @callname: GrandpaApi_submit_report_equivocation_unsigned_extrinsic
|
|
876
951
|
* @param {SpConsensusGrandpaEquivocationProof} equivocation_proof
|
|
877
|
-
* @param {
|
|
952
|
+
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
878
953
|
**/
|
|
879
954
|
submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
880
955
|
Rv,
|
|
881
956
|
(
|
|
882
957
|
equivocationProof: SpConsensusGrandpaEquivocationProof,
|
|
883
|
-
keyOwnerProof:
|
|
958
|
+
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
884
959
|
) => Promise<[] | undefined>
|
|
885
960
|
>;
|
|
886
961
|
|
|
@@ -903,10 +978,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
903
978
|
**/
|
|
904
979
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
905
980
|
Rv,
|
|
906
|
-
(
|
|
907
|
-
setId: bigint,
|
|
908
|
-
authorityId: SpConsensusGrandpaAppPublic,
|
|
909
|
-
) => Promise<SpConsensusGrandpaOpaqueKeyOwnershipProof | undefined>
|
|
981
|
+
(setId: bigint, authorityId: SpConsensusGrandpaAppPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
910
982
|
>;
|
|
911
983
|
|
|
912
984
|
/**
|
|
@@ -1169,33 +1241,193 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1169
1241
|
**/
|
|
1170
1242
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
1171
1243
|
};
|
|
1244
|
+
/**
|
|
1245
|
+
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
1246
|
+
**/
|
|
1247
|
+
xcmPaymentApi: {
|
|
1248
|
+
/**
|
|
1249
|
+
* Returns a list of acceptable payment assets.
|
|
1250
|
+
*
|
|
1251
|
+
* # Arguments
|
|
1252
|
+
*
|
|
1253
|
+
* * `xcm_version`: Version.
|
|
1254
|
+
*
|
|
1255
|
+
* @callname: XcmPaymentApi_query_acceptable_payment_assets
|
|
1256
|
+
* @param {number} xcm_version
|
|
1257
|
+
**/
|
|
1258
|
+
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
1259
|
+
Rv,
|
|
1260
|
+
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
1261
|
+
>;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* Returns a weight needed to execute a XCM.
|
|
1265
|
+
*
|
|
1266
|
+
* # Arguments
|
|
1267
|
+
*
|
|
1268
|
+
* * `message`: `VersionedXcm`.
|
|
1269
|
+
*
|
|
1270
|
+
* @callname: XcmPaymentApi_query_xcm_weight
|
|
1271
|
+
* @param {XcmVersionedXcm} message
|
|
1272
|
+
**/
|
|
1273
|
+
queryXcmWeight: GenericRuntimeApiMethod<
|
|
1274
|
+
Rv,
|
|
1275
|
+
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
1276
|
+
>;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* Converts a weight into a fee for the specified `AssetId`.
|
|
1280
|
+
*
|
|
1281
|
+
* # Arguments
|
|
1282
|
+
*
|
|
1283
|
+
* * `weight`: convertible `Weight`.
|
|
1284
|
+
* * `asset`: `VersionedAssetId`.
|
|
1285
|
+
*
|
|
1286
|
+
* @callname: XcmPaymentApi_query_weight_to_asset_fee
|
|
1287
|
+
* @param {SpWeightsWeightV2Weight} weight
|
|
1288
|
+
* @param {XcmVersionedAssetId} asset
|
|
1289
|
+
**/
|
|
1290
|
+
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
1291
|
+
Rv,
|
|
1292
|
+
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
1293
|
+
>;
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Get delivery fees for sending a specific `message` to a `destination`.
|
|
1297
|
+
* These always come in a specific asset, defined by the chain.
|
|
1298
|
+
*
|
|
1299
|
+
* # Arguments
|
|
1300
|
+
* * `message`: The message that'll be sent, necessary because most delivery fees are based on the
|
|
1301
|
+
* size of the message.
|
|
1302
|
+
* * `destination`: The destination to send the message to. Different destinations may use
|
|
1303
|
+
* different senders that charge different fees.
|
|
1304
|
+
*
|
|
1305
|
+
* @callname: XcmPaymentApi_query_delivery_fees
|
|
1306
|
+
* @param {XcmVersionedLocation} destination
|
|
1307
|
+
* @param {XcmVersionedXcm} message
|
|
1308
|
+
**/
|
|
1309
|
+
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
1310
|
+
Rv,
|
|
1311
|
+
(
|
|
1312
|
+
destination: XcmVersionedLocation,
|
|
1313
|
+
message: XcmVersionedXcm,
|
|
1314
|
+
) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
|
|
1315
|
+
>;
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* Generic runtime api call
|
|
1319
|
+
**/
|
|
1320
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
1321
|
+
};
|
|
1322
|
+
/**
|
|
1323
|
+
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
1324
|
+
**/
|
|
1325
|
+
dryRunApi: {
|
|
1326
|
+
/**
|
|
1327
|
+
* Dry run call.
|
|
1328
|
+
*
|
|
1329
|
+
* @callname: DryRunApi_dry_run_call
|
|
1330
|
+
* @param {PolkadotRuntimeOriginCaller} origin
|
|
1331
|
+
* @param {PolkadotRuntimeRuntimeCallLike} call
|
|
1332
|
+
**/
|
|
1333
|
+
dryRunCall: GenericRuntimeApiMethod<
|
|
1334
|
+
Rv,
|
|
1335
|
+
(
|
|
1336
|
+
origin: PolkadotRuntimeOriginCaller,
|
|
1337
|
+
call: PolkadotRuntimeRuntimeCallLike,
|
|
1338
|
+
) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
1339
|
+
>;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Dry run XCM program
|
|
1343
|
+
*
|
|
1344
|
+
* @callname: DryRunApi_dry_run_xcm
|
|
1345
|
+
* @param {XcmVersionedLocation} origin_location
|
|
1346
|
+
* @param {XcmVersionedXcm} xcm
|
|
1347
|
+
**/
|
|
1348
|
+
dryRunXcm: GenericRuntimeApiMethod<
|
|
1349
|
+
Rv,
|
|
1350
|
+
(
|
|
1351
|
+
originLocation: XcmVersionedLocation,
|
|
1352
|
+
xcm: XcmVersionedXcm,
|
|
1353
|
+
) => Promise<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
1354
|
+
>;
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* Generic runtime api call
|
|
1358
|
+
**/
|
|
1359
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
1360
|
+
};
|
|
1361
|
+
/**
|
|
1362
|
+
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
1363
|
+
**/
|
|
1364
|
+
locationToAccountApi: {
|
|
1365
|
+
/**
|
|
1366
|
+
* Converts `Location` to `AccountId`.
|
|
1367
|
+
*
|
|
1368
|
+
* @callname: LocationToAccountApi_convert_location
|
|
1369
|
+
* @param {XcmVersionedLocation} location
|
|
1370
|
+
**/
|
|
1371
|
+
convertLocation: GenericRuntimeApiMethod<
|
|
1372
|
+
Rv,
|
|
1373
|
+
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
1374
|
+
>;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* Generic runtime api call
|
|
1378
|
+
**/
|
|
1379
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
1380
|
+
};
|
|
1172
1381
|
/**
|
|
1173
1382
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
1174
1383
|
**/
|
|
1175
1384
|
genesisBuilder: {
|
|
1176
1385
|
/**
|
|
1177
|
-
*
|
|
1386
|
+
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
|
|
1387
|
+
* storage.
|
|
1388
|
+
*
|
|
1389
|
+
* In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
|
|
1390
|
+
* puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
|
|
1391
|
+
* deserialization fails, an error is returned.
|
|
1178
1392
|
*
|
|
1179
|
-
*
|
|
1180
|
-
*
|
|
1393
|
+
* Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
|
|
1394
|
+
* defaults will be used.
|
|
1181
1395
|
*
|
|
1182
|
-
* @callname:
|
|
1396
|
+
* @callname: GenesisBuilder_build_state
|
|
1397
|
+
* @param {BytesLike} json
|
|
1183
1398
|
**/
|
|
1184
|
-
|
|
1399
|
+
buildState: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
|
|
1185
1400
|
|
|
1186
1401
|
/**
|
|
1187
|
-
*
|
|
1402
|
+
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
1403
|
+
* `id`.
|
|
1188
1404
|
*
|
|
1189
|
-
*
|
|
1190
|
-
*
|
|
1191
|
-
*
|
|
1405
|
+
* If `id` is `None` the function returns JSON blob representation of the default
|
|
1406
|
+
* `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
|
|
1407
|
+
* `RuntimeGenesisConfig`.
|
|
1192
1408
|
*
|
|
1193
|
-
*
|
|
1409
|
+
* Otherwise function returns a JSON representation of the built-in, named
|
|
1410
|
+
* `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
|
|
1411
|
+
* exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
|
|
1412
|
+
* (potentially nested) key-value pairs that are intended for customizing the default
|
|
1413
|
+
* runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
|
|
1414
|
+
* of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
|
|
1415
|
+
* be used in `build_state` method.
|
|
1194
1416
|
*
|
|
1195
|
-
* @callname:
|
|
1196
|
-
* @param {
|
|
1417
|
+
* @callname: GenesisBuilder_get_preset
|
|
1418
|
+
* @param {string | undefined} id
|
|
1419
|
+
**/
|
|
1420
|
+
getPreset: GenericRuntimeApiMethod<Rv, (id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
1424
|
+
*
|
|
1425
|
+
* The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If
|
|
1426
|
+
* no named presets are provided by the runtime the list is empty.
|
|
1427
|
+
*
|
|
1428
|
+
* @callname: GenesisBuilder_preset_names
|
|
1197
1429
|
**/
|
|
1198
|
-
|
|
1430
|
+
presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
|
|
1199
1431
|
|
|
1200
1432
|
/**
|
|
1201
1433
|
* Generic runtime api call
|