@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.
Files changed (51) hide show
  1. package/kusama/consts.d.ts +48 -30
  2. package/kusama/errors.d.ts +89 -100
  3. package/kusama/events.d.ts +87 -28
  4. package/kusama/index.d.ts +1 -1
  5. package/kusama/query.d.ts +241 -130
  6. package/kusama/runtime.d.ts +347 -95
  7. package/kusama/tx.d.ts +3309 -456
  8. package/kusama/types.d.ts +6341 -1092
  9. package/kusama-asset-hub/consts.d.ts +52 -3
  10. package/kusama-asset-hub/errors.d.ts +30 -5
  11. package/kusama-asset-hub/events.d.ts +61 -1
  12. package/kusama-asset-hub/index.d.ts +1 -1
  13. package/kusama-asset-hub/query.d.ts +100 -18
  14. package/kusama-asset-hub/runtime.d.ts +186 -15
  15. package/kusama-asset-hub/tx.d.ts +3074 -254
  16. package/kusama-asset-hub/types.d.ts +6190 -551
  17. package/package.json +2 -2
  18. package/paseo/index.d.ts +1 -1
  19. package/rococo/errors.d.ts +0 -10
  20. package/rococo/events.d.ts +33 -12
  21. package/rococo/index.d.ts +1 -1
  22. package/rococo/query.d.ts +52 -52
  23. package/rococo/runtime.d.ts +117 -58
  24. package/rococo/tx.d.ts +33 -33
  25. package/rococo/types.d.ts +191 -185
  26. package/rococo-asset-hub/consts.d.ts +2 -2
  27. package/rococo-asset-hub/events.d.ts +87 -80
  28. package/rococo-asset-hub/index.d.ts +1 -1
  29. package/rococo-asset-hub/query.d.ts +66 -54
  30. package/rococo-asset-hub/runtime.d.ts +12 -15
  31. package/rococo-asset-hub/tx.d.ts +250 -241
  32. package/rococo-asset-hub/types.d.ts +353 -404
  33. package/westend/consts.d.ts +9 -0
  34. package/westend/errors.d.ts +0 -10
  35. package/westend/events.d.ts +79 -13
  36. package/westend/index.d.ts +1 -1
  37. package/westend/query.d.ts +75 -52
  38. package/westend/runtime.d.ts +133 -58
  39. package/westend/tx.d.ts +72 -35
  40. package/westend/types.d.ts +308 -190
  41. package/westend-asset-hub/consts.d.ts +2 -2
  42. package/westend-asset-hub/events.d.ts +87 -80
  43. package/westend-asset-hub/index.d.ts +1 -1
  44. package/westend-asset-hub/query.d.ts +66 -54
  45. package/westend-asset-hub/runtime.d.ts +12 -15
  46. package/westend-asset-hub/tx.d.ts +250 -241
  47. package/westend-asset-hub/types.d.ts +353 -404
  48. package/westend-people/index.d.ts +1 -1
  49. package/westend-people/query.d.ts +12 -12
  50. package/westend-people/tx.d.ts +1 -58
  51. package/westend-people/types.d.ts +16 -62
@@ -13,53 +13,56 @@ import type {
13
13
  Bytes,
14
14
  BytesLike,
15
15
  AccountId32Like,
16
+ AccountId32,
16
17
  } from 'dedot/codecs';
17
18
  import type {
19
+ RelayCommonApisInflationInfo,
18
20
  SpRuntimeBlock,
21
+ SpRuntimeExtrinsicInclusionMode,
19
22
  SpCoreOpaqueMetadata,
20
23
  SpRuntimeTransactionValidityTransactionValidityError,
21
24
  SpInherentsInherentData,
22
25
  SpInherentsCheckInherentsResult,
23
26
  SpRuntimeTransactionValidityValidTransaction,
24
27
  SpRuntimeTransactionValidityTransactionSource,
25
- PolkadotPrimitivesV6ValidatorAppPublic,
26
- PolkadotPrimitivesV6ValidatorIndex,
27
- PolkadotPrimitivesV6GroupRotationInfo,
28
- PolkadotPrimitivesV6CoreState,
29
- PolkadotPrimitivesV6PersistedValidationData,
28
+ PolkadotPrimitivesV7ValidatorAppPublic,
29
+ PolkadotPrimitivesV7ValidatorIndex,
30
+ PolkadotPrimitivesV7GroupRotationInfo,
31
+ PolkadotPrimitivesV7CoreState,
32
+ PolkadotPrimitivesV7PersistedValidationData,
30
33
  PolkadotParachainPrimitivesPrimitivesId,
31
- PolkadotPrimitivesV6OccupiedCoreAssumption,
34
+ PolkadotPrimitivesV7OccupiedCoreAssumption,
32
35
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
33
- PolkadotPrimitivesV6CandidateCommitments,
36
+ PolkadotPrimitivesV7CandidateCommitments,
34
37
  PolkadotParachainPrimitivesPrimitivesValidationCode,
35
- PolkadotPrimitivesV6CommittedCandidateReceipt,
36
- PolkadotPrimitivesV6CandidateEvent,
38
+ PolkadotPrimitivesV7CommittedCandidateReceipt,
39
+ PolkadotPrimitivesV7CandidateEvent,
37
40
  PolkadotCorePrimitivesInboundDownwardMessage,
38
41
  PolkadotCorePrimitivesInboundHrmpMessage,
39
- PolkadotPrimitivesV6ScrapedOnChainVotes,
40
- PolkadotPrimitivesV6SessionInfo,
41
- PolkadotPrimitivesV6PvfCheckStatement,
42
- PolkadotPrimitivesV6ValidatorAppSignature,
42
+ PolkadotPrimitivesV7ScrapedOnChainVotes,
43
+ PolkadotPrimitivesV7SessionInfo,
44
+ PolkadotPrimitivesV7PvfCheckStatement,
45
+ PolkadotPrimitivesV7ValidatorAppSignature,
43
46
  PolkadotCorePrimitivesCandidateHash,
44
- PolkadotPrimitivesV6DisputeState,
45
- PolkadotPrimitivesV6ExecutorParams,
46
- PolkadotPrimitivesV6SlashingPendingSlashes,
47
- PolkadotPrimitivesV6SlashingOpaqueKeyOwnershipProof,
48
- PolkadotPrimitivesV6SlashingDisputeProof,
49
- PolkadotPrimitivesV6AsyncBackingBackingState,
50
- PolkadotPrimitivesV6AsyncBackingAsyncBackingParams,
51
- PolkadotPrimitivesVstagingApprovalVotingParams,
47
+ PolkadotPrimitivesV7DisputeState,
48
+ PolkadotPrimitivesV7ExecutorParams,
49
+ PolkadotPrimitivesV7SlashingPendingSlashes,
50
+ PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
51
+ PolkadotPrimitivesV7SlashingDisputeProof,
52
+ PolkadotPrimitivesV7AsyncBackingBackingState,
53
+ PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
54
+ PolkadotPrimitivesV7ApprovalVotingParams,
55
+ PolkadotPrimitivesV7CoreIndex,
52
56
  SpConsensusBeefyValidatorSet,
53
- SpConsensusBeefyEquivocationProof,
54
- SpConsensusBeefyOpaqueKeyOwnershipProof,
57
+ SpConsensusBeefyDoubleVotingProof,
58
+ SpRuntimeOpaqueValue,
55
59
  SpConsensusBeefyEcdsaCryptoPublic,
56
60
  SpMmrPrimitivesError,
57
61
  SpMmrPrimitivesEncodableOpaqueLeaf,
58
- SpMmrPrimitivesProof,
62
+ SpMmrPrimitivesLeafProof,
59
63
  SpConsensusBeefyMmrBeefyAuthoritySet,
60
64
  SpConsensusGrandpaAppPublic,
61
65
  SpConsensusGrandpaEquivocationProof,
62
- SpConsensusGrandpaOpaqueKeyOwnershipProof,
63
66
  SpConsensusBabeBabeConfiguration,
64
67
  SpConsensusSlotsSlot,
65
68
  SpConsensusBabeEpoch,
@@ -72,9 +75,38 @@ import type {
72
75
  PalletTransactionPaymentFeeDetails,
73
76
  SpWeightsWeightV2Weight,
74
77
  StagingKusamaRuntimeRuntimeCallLike,
78
+ XcmVersionedAssetId,
79
+ XcmRuntimeApisFeesError,
80
+ XcmVersionedXcm,
81
+ XcmVersionedAssets,
82
+ XcmVersionedLocation,
83
+ XcmRuntimeApisDryRunCallDryRunEffects,
84
+ XcmRuntimeApisDryRunError,
85
+ StagingKusamaRuntimeOriginCaller,
86
+ XcmRuntimeApisDryRunXcmDryRunEffects,
87
+ XcmRuntimeApisConversionsError,
75
88
  } from './types';
76
89
 
77
90
  export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
91
+ /**
92
+ * @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
93
+ **/
94
+ inflation: {
95
+ /**
96
+ * Return the current estimates of the inflation amount.
97
+ *
98
+ * This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly
99
+ * recommended over trying to read-storage, or re-create the onchain logic.
100
+ *
101
+ * @callname: Inflation_experimental_inflation_prediction_info
102
+ **/
103
+ experimentalInflationPredictionInfo: GenericRuntimeApiMethod<Rv, () => Promise<RelayCommonApisInflationInfo>>;
104
+
105
+ /**
106
+ * Generic runtime api call
107
+ **/
108
+ [method: string]: GenericRuntimeApiMethod<Rv>;
109
+ };
78
110
  /**
79
111
  * @runtimeapi: Core - 0xdf6acb689907609b
80
112
  **/
@@ -95,12 +127,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
95
127
  executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
96
128
 
97
129
  /**
98
- * Initialize a block with the given header.
130
+ * Initialize a block with the given header and return the runtime executive mode.
99
131
  *
100
132
  * @callname: Core_initialize_block
101
133
  * @param {Header} header
102
134
  **/
103
- initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
135
+ initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
104
136
 
105
137
  /**
106
138
  * Generic runtime api call
@@ -260,7 +292,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
260
292
  *
261
293
  * @callname: ParachainHost_validators
262
294
  **/
263
- validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV6ValidatorAppPublic>>>;
295
+ validators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7ValidatorAppPublic>>>;
264
296
 
265
297
  /**
266
298
  * Returns the validator groups and rotation info localized based on the hypothetical child
@@ -271,7 +303,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
271
303
  **/
272
304
  validatorGroups: GenericRuntimeApiMethod<
273
305
  Rv,
274
- () => Promise<[Array<Array<PolkadotPrimitivesV6ValidatorIndex>>, PolkadotPrimitivesV6GroupRotationInfo]>
306
+ () => Promise<[Array<Array<PolkadotPrimitivesV7ValidatorIndex>>, PolkadotPrimitivesV7GroupRotationInfo]>
275
307
  >;
276
308
 
277
309
  /**
@@ -280,7 +312,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
280
312
  *
281
313
  * @callname: ParachainHost_availability_cores
282
314
  **/
283
- availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV6CoreState>>>;
315
+ availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7CoreState>>>;
284
316
 
285
317
  /**
286
318
  * Yields the persisted validation data for the given `ParaId` along with an assumption that
@@ -291,14 +323,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
291
323
  *
292
324
  * @callname: ParachainHost_persisted_validation_data
293
325
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
294
- * @param {PolkadotPrimitivesV6OccupiedCoreAssumption} assumption
326
+ * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
295
327
  **/
296
328
  persistedValidationData: GenericRuntimeApiMethod<
297
329
  Rv,
298
330
  (
299
331
  paraId: PolkadotParachainPrimitivesPrimitivesId,
300
- assumption: PolkadotPrimitivesV6OccupiedCoreAssumption,
301
- ) => Promise<PolkadotPrimitivesV6PersistedValidationData | undefined>
332
+ assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
333
+ ) => Promise<PolkadotPrimitivesV7PersistedValidationData | undefined>
302
334
  >;
303
335
 
304
336
  /**
@@ -316,7 +348,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
316
348
  paraId: PolkadotParachainPrimitivesPrimitivesId,
317
349
  expectedPersistedValidationDataHash: H256,
318
350
  ) => Promise<
319
- | [PolkadotPrimitivesV6PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
351
+ | [PolkadotPrimitivesV7PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
320
352
  | undefined
321
353
  >
322
354
  >;
@@ -326,13 +358,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
326
358
  *
327
359
  * @callname: ParachainHost_check_validation_outputs
328
360
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
329
- * @param {PolkadotPrimitivesV6CandidateCommitments} outputs
361
+ * @param {PolkadotPrimitivesV7CandidateCommitments} outputs
330
362
  **/
331
363
  checkValidationOutputs: GenericRuntimeApiMethod<
332
364
  Rv,
333
365
  (
334
366
  paraId: PolkadotParachainPrimitivesPrimitivesId,
335
- outputs: PolkadotPrimitivesV6CandidateCommitments,
367
+ outputs: PolkadotPrimitivesV7CandidateCommitments,
336
368
  ) => Promise<boolean>
337
369
  >;
338
370
 
@@ -353,13 +385,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
353
385
  *
354
386
  * @callname: ParachainHost_validation_code
355
387
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
356
- * @param {PolkadotPrimitivesV6OccupiedCoreAssumption} assumption
388
+ * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
357
389
  **/
358
390
  validationCode: GenericRuntimeApiMethod<
359
391
  Rv,
360
392
  (
361
393
  paraId: PolkadotParachainPrimitivesPrimitivesId,
362
- assumption: PolkadotPrimitivesV6OccupiedCoreAssumption,
394
+ assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
363
395
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
364
396
  >;
365
397
 
@@ -374,7 +406,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
374
406
  Rv,
375
407
  (
376
408
  paraId: PolkadotParachainPrimitivesPrimitivesId,
377
- ) => Promise<PolkadotPrimitivesV6CommittedCandidateReceipt | undefined>
409
+ ) => Promise<PolkadotPrimitivesV7CommittedCandidateReceipt | undefined>
378
410
  >;
379
411
 
380
412
  /**
@@ -382,7 +414,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
382
414
  *
383
415
  * @callname: ParachainHost_candidate_events
384
416
  **/
385
- candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV6CandidateEvent>>>;
417
+ candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7CandidateEvent>>>;
386
418
 
387
419
  /**
388
420
  * Get all the pending inbound messages in the downward message queue for a para.
@@ -429,7 +461,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
429
461
  *
430
462
  * @callname: ParachainHost_on_chain_votes
431
463
  **/
432
- onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV6ScrapedOnChainVotes | undefined>>;
464
+ onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>>;
433
465
 
434
466
  /**
435
467
  * Get the session info for the given session, if stored.
@@ -439,7 +471,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
439
471
  * @callname: ParachainHost_session_info
440
472
  * @param {number} index
441
473
  **/
442
- sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<PolkadotPrimitivesV6SessionInfo | undefined>>;
474
+ sessionInfo: GenericRuntimeApiMethod<Rv, (index: number) => Promise<PolkadotPrimitivesV7SessionInfo | undefined>>;
443
475
 
444
476
  /**
445
477
  * Submits a PVF pre-checking statement into the transaction pool.
@@ -447,12 +479,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
447
479
  * NOTE: This function is only available since parachain host version 2.
448
480
  *
449
481
  * @callname: ParachainHost_submit_pvf_check_statement
450
- * @param {PolkadotPrimitivesV6PvfCheckStatement} stmt
451
- * @param {PolkadotPrimitivesV6ValidatorAppSignature} signature
482
+ * @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
483
+ * @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
452
484
  **/
453
485
  submitPvfCheckStatement: GenericRuntimeApiMethod<
454
486
  Rv,
455
- (stmt: PolkadotPrimitivesV6PvfCheckStatement, signature: PolkadotPrimitivesV6ValidatorAppSignature) => Promise<[]>
487
+ (stmt: PolkadotPrimitivesV7PvfCheckStatement, signature: PolkadotPrimitivesV7ValidatorAppSignature) => Promise<[]>
456
488
  >;
457
489
 
458
490
  /**
@@ -474,13 +506,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
474
506
  *
475
507
  * @callname: ParachainHost_validation_code_hash
476
508
  * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
477
- * @param {PolkadotPrimitivesV6OccupiedCoreAssumption} assumption
509
+ * @param {PolkadotPrimitivesV7OccupiedCoreAssumption} assumption
478
510
  **/
479
511
  validationCodeHash: GenericRuntimeApiMethod<
480
512
  Rv,
481
513
  (
482
514
  paraId: PolkadotParachainPrimitivesPrimitivesId,
483
- assumption: PolkadotPrimitivesV6OccupiedCoreAssumption,
515
+ assumption: PolkadotPrimitivesV7OccupiedCoreAssumption,
484
516
  ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
485
517
  >;
486
518
 
@@ -491,7 +523,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
491
523
  **/
492
524
  disputes: GenericRuntimeApiMethod<
493
525
  Rv,
494
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV6DisputeState]>>
526
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7DisputeState]>>
495
527
  >;
496
528
 
497
529
  /**
@@ -502,7 +534,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
502
534
  **/
503
535
  sessionExecutorParams: GenericRuntimeApiMethod<
504
536
  Rv,
505
- (sessionIndex: number) => Promise<PolkadotPrimitivesV6ExecutorParams | undefined>
537
+ (sessionIndex: number) => Promise<PolkadotPrimitivesV7ExecutorParams | undefined>
506
538
  >;
507
539
 
508
540
  /**
@@ -513,7 +545,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
513
545
  **/
514
546
  unappliedSlashes: GenericRuntimeApiMethod<
515
547
  Rv,
516
- () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV6SlashingPendingSlashes]>>
548
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV7SlashingPendingSlashes]>>
517
549
  >;
518
550
 
519
551
  /**
@@ -521,13 +553,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
521
553
  * NOTE: This function is only available since parachain host version 5.
522
554
  *
523
555
  * @callname: ParachainHost_key_ownership_proof
524
- * @param {PolkadotPrimitivesV6ValidatorAppPublic} validator_id
556
+ * @param {PolkadotPrimitivesV7ValidatorAppPublic} validator_id
525
557
  **/
526
558
  keyOwnershipProof: GenericRuntimeApiMethod<
527
559
  Rv,
528
560
  (
529
- validatorId: PolkadotPrimitivesV6ValidatorAppPublic,
530
- ) => Promise<PolkadotPrimitivesV6SlashingOpaqueKeyOwnershipProof | undefined>
561
+ validatorId: PolkadotPrimitivesV7ValidatorAppPublic,
562
+ ) => Promise<PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof | undefined>
531
563
  >;
532
564
 
533
565
  /**
@@ -536,14 +568,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
536
568
  * NOTE: This function is only available since parachain host version 5.
537
569
  *
538
570
  * @callname: ParachainHost_submit_report_dispute_lost
539
- * @param {PolkadotPrimitivesV6SlashingDisputeProof} dispute_proof
540
- * @param {PolkadotPrimitivesV6SlashingOpaqueKeyOwnershipProof} key_ownership_proof
571
+ * @param {PolkadotPrimitivesV7SlashingDisputeProof} dispute_proof
572
+ * @param {PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof} key_ownership_proof
541
573
  **/
542
574
  submitReportDisputeLost: GenericRuntimeApiMethod<
543
575
  Rv,
544
576
  (
545
- disputeProof: PolkadotPrimitivesV6SlashingDisputeProof,
546
- keyOwnershipProof: PolkadotPrimitivesV6SlashingOpaqueKeyOwnershipProof,
577
+ disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
578
+ keyOwnershipProof: PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof,
547
579
  ) => Promise<[] | undefined>
548
580
  >;
549
581
 
@@ -565,7 +597,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
565
597
  Rv,
566
598
  (
567
599
  undefined: PolkadotParachainPrimitivesPrimitivesId,
568
- ) => Promise<PolkadotPrimitivesV6AsyncBackingBackingState | undefined>
600
+ ) => Promise<PolkadotPrimitivesV7AsyncBackingBackingState | undefined>
569
601
  >;
570
602
 
571
603
  /**
@@ -573,14 +605,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
573
605
  *
574
606
  * @callname: ParachainHost_async_backing_params
575
607
  **/
576
- asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV6AsyncBackingAsyncBackingParams>>;
608
+ asyncBackingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
577
609
 
578
610
  /**
579
611
  * Returns a list of all disabled validators at the given block.
580
612
  *
581
613
  * @callname: ParachainHost_disabled_validators
582
614
  **/
583
- disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV6ValidatorIndex>>>;
615
+ disabledValidators: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
584
616
 
585
617
  /**
586
618
  * Get node features.
@@ -595,7 +627,28 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
595
627
  *
596
628
  * @callname: ParachainHost_approval_voting_params
597
629
  **/
598
- approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesVstagingApprovalVotingParams>>;
630
+ approvalVotingParams: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV7ApprovalVotingParams>>;
631
+
632
+ /**
633
+ * Claim queue
634
+ *
635
+ * @callname: ParachainHost_claim_queue
636
+ **/
637
+ claimQueue: GenericRuntimeApiMethod<
638
+ Rv,
639
+ () => Promise<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotParachainPrimitivesPrimitivesId>]>>
640
+ >;
641
+
642
+ /**
643
+ * Elastic scaling support
644
+ *
645
+ * @callname: ParachainHost_candidates_pending_availability
646
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
647
+ **/
648
+ candidatesPendingAvailability: GenericRuntimeApiMethod<
649
+ Rv,
650
+ (paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV7CommittedCandidateReceipt>>
651
+ >;
599
652
 
600
653
  /**
601
654
  * Generic runtime api call
@@ -631,14 +684,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
631
684
  * hardcoded to return `None`). Only useful in an offchain context.
632
685
  *
633
686
  * @callname: BeefyApi_submit_report_equivocation_unsigned_extrinsic
634
- * @param {SpConsensusBeefyEquivocationProof} equivocation_proof
635
- * @param {SpConsensusBeefyOpaqueKeyOwnershipProof} key_owner_proof
687
+ * @param {SpConsensusBeefyDoubleVotingProof} equivocation_proof
688
+ * @param {SpRuntimeOpaqueValue} key_owner_proof
636
689
  **/
637
690
  submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
638
691
  Rv,
639
692
  (
640
- equivocationProof: SpConsensusBeefyEquivocationProof,
641
- keyOwnerProof: SpConsensusBeefyOpaqueKeyOwnershipProof,
693
+ equivocationProof: SpConsensusBeefyDoubleVotingProof,
694
+ keyOwnerProof: SpRuntimeOpaqueValue,
642
695
  ) => Promise<[] | undefined>
643
696
  >;
644
697
 
@@ -661,10 +714,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
661
714
  **/
662
715
  generateKeyOwnershipProof: GenericRuntimeApiMethod<
663
716
  Rv,
664
- (
665
- setId: bigint,
666
- authorityId: SpConsensusBeefyEcdsaCryptoPublic,
667
- ) => Promise<SpConsensusBeefyOpaqueKeyOwnershipProof | undefined>
717
+ (setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
668
718
  >;
669
719
 
670
720
  /**
@@ -703,7 +753,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
703
753
  (
704
754
  blockNumbers: Array<number>,
705
755
  bestKnownBlockNumber?: number | undefined,
706
- ) => Promise<Result<[Array<SpMmrPrimitivesEncodableOpaqueLeaf>, SpMmrPrimitivesProof], SpMmrPrimitivesError>>
756
+ ) => Promise<Result<[Array<SpMmrPrimitivesEncodableOpaqueLeaf>, SpMmrPrimitivesLeafProof], SpMmrPrimitivesError>>
707
757
  >;
708
758
 
709
759
  /**
@@ -711,17 +761,17 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
711
761
  *
712
762
  * Note this function will use on-chain MMR root hash and check if the proof matches the hash.
713
763
  * Note, the leaves should be sorted such that corresponding leaves and leaf indices have the
714
- * same position in both the `leaves` vector and the `leaf_indices` vector contained in the [Proof]
764
+ * same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
715
765
  *
716
766
  * @callname: MmrApi_verify_proof
717
767
  * @param {Array<SpMmrPrimitivesEncodableOpaqueLeaf>} leaves
718
- * @param {SpMmrPrimitivesProof} proof
768
+ * @param {SpMmrPrimitivesLeafProof} proof
719
769
  **/
720
770
  verifyProof: GenericRuntimeApiMethod<
721
771
  Rv,
722
772
  (
723
773
  leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
724
- proof: SpMmrPrimitivesProof,
774
+ proof: SpMmrPrimitivesLeafProof,
725
775
  ) => Promise<Result<[], SpMmrPrimitivesError>>
726
776
  >;
727
777
 
@@ -732,19 +782,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
732
782
  * proof is verified against given MMR root hash.
733
783
  *
734
784
  * Note, the leaves should be sorted such that corresponding leaves and leaf indices have the
735
- * same position in both the `leaves` vector and the `leaf_indices` vector contained in the [Proof]
785
+ * same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
736
786
  *
737
787
  * @callname: MmrApi_verify_proof_stateless
738
788
  * @param {H256} root
739
789
  * @param {Array<SpMmrPrimitivesEncodableOpaqueLeaf>} leaves
740
- * @param {SpMmrPrimitivesProof} proof
790
+ * @param {SpMmrPrimitivesLeafProof} proof
741
791
  **/
742
792
  verifyProofStateless: GenericRuntimeApiMethod<
743
793
  Rv,
744
794
  (
745
795
  root: H256,
746
796
  leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
747
- proof: SpMmrPrimitivesProof,
797
+ proof: SpMmrPrimitivesLeafProof,
748
798
  ) => Promise<Result<[], SpMmrPrimitivesError>>
749
799
  >;
750
800
 
@@ -804,13 +854,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
804
854
  *
805
855
  * @callname: GrandpaApi_submit_report_equivocation_unsigned_extrinsic
806
856
  * @param {SpConsensusGrandpaEquivocationProof} equivocation_proof
807
- * @param {SpConsensusGrandpaOpaqueKeyOwnershipProof} key_owner_proof
857
+ * @param {SpRuntimeOpaqueValue} key_owner_proof
808
858
  **/
809
859
  submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
810
860
  Rv,
811
861
  (
812
862
  equivocationProof: SpConsensusGrandpaEquivocationProof,
813
- keyOwnerProof: SpConsensusGrandpaOpaqueKeyOwnershipProof,
863
+ keyOwnerProof: SpRuntimeOpaqueValue,
814
864
  ) => Promise<[] | undefined>
815
865
  >;
816
866
 
@@ -833,10 +883,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
833
883
  **/
834
884
  generateKeyOwnershipProof: GenericRuntimeApiMethod<
835
885
  Rv,
836
- (
837
- setId: bigint,
838
- authorityId: SpConsensusGrandpaAppPublic,
839
- ) => Promise<SpConsensusGrandpaOpaqueKeyOwnershipProof | undefined>
886
+ (setId: bigint, authorityId: SpConsensusGrandpaAppPublic) => Promise<SpRuntimeOpaqueValue | undefined>
840
887
  >;
841
888
 
842
889
  /**
@@ -1099,6 +1146,143 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1099
1146
  **/
1100
1147
  [method: string]: GenericRuntimeApiMethod<Rv>;
1101
1148
  };
1149
+ /**
1150
+ * @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
1151
+ **/
1152
+ xcmPaymentApi: {
1153
+ /**
1154
+ * Returns a list of acceptable payment assets.
1155
+ *
1156
+ * # Arguments
1157
+ *
1158
+ * * `xcm_version`: Version.
1159
+ *
1160
+ * @callname: XcmPaymentApi_query_acceptable_payment_assets
1161
+ * @param {number} xcm_version
1162
+ **/
1163
+ queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
1164
+ Rv,
1165
+ (xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
1166
+ >;
1167
+
1168
+ /**
1169
+ * Returns a weight needed to execute a XCM.
1170
+ *
1171
+ * # Arguments
1172
+ *
1173
+ * * `message`: `VersionedXcm`.
1174
+ *
1175
+ * @callname: XcmPaymentApi_query_xcm_weight
1176
+ * @param {XcmVersionedXcm} message
1177
+ **/
1178
+ queryXcmWeight: GenericRuntimeApiMethod<
1179
+ Rv,
1180
+ (message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
1181
+ >;
1182
+
1183
+ /**
1184
+ * Converts a weight into a fee for the specified `AssetId`.
1185
+ *
1186
+ * # Arguments
1187
+ *
1188
+ * * `weight`: convertible `Weight`.
1189
+ * * `asset`: `VersionedAssetId`.
1190
+ *
1191
+ * @callname: XcmPaymentApi_query_weight_to_asset_fee
1192
+ * @param {SpWeightsWeightV2Weight} weight
1193
+ * @param {XcmVersionedAssetId} asset
1194
+ **/
1195
+ queryWeightToAssetFee: GenericRuntimeApiMethod<
1196
+ Rv,
1197
+ (weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
1198
+ >;
1199
+
1200
+ /**
1201
+ * Get delivery fees for sending a specific `message` to a `destination`.
1202
+ * These always come in a specific asset, defined by the chain.
1203
+ *
1204
+ * # Arguments
1205
+ * * `message`: The message that'll be sent, necessary because most delivery fees are based on the
1206
+ * size of the message.
1207
+ * * `destination`: The destination to send the message to. Different destinations may use
1208
+ * different senders that charge different fees.
1209
+ *
1210
+ * @callname: XcmPaymentApi_query_delivery_fees
1211
+ * @param {XcmVersionedLocation} destination
1212
+ * @param {XcmVersionedXcm} message
1213
+ **/
1214
+ queryDeliveryFees: GenericRuntimeApiMethod<
1215
+ Rv,
1216
+ (
1217
+ destination: XcmVersionedLocation,
1218
+ message: XcmVersionedXcm,
1219
+ ) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
1220
+ >;
1221
+
1222
+ /**
1223
+ * Generic runtime api call
1224
+ **/
1225
+ [method: string]: GenericRuntimeApiMethod<Rv>;
1226
+ };
1227
+ /**
1228
+ * @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
1229
+ **/
1230
+ dryRunApi: {
1231
+ /**
1232
+ * Dry run call.
1233
+ *
1234
+ * @callname: DryRunApi_dry_run_call
1235
+ * @param {StagingKusamaRuntimeOriginCaller} origin
1236
+ * @param {StagingKusamaRuntimeRuntimeCallLike} call
1237
+ **/
1238
+ dryRunCall: GenericRuntimeApiMethod<
1239
+ Rv,
1240
+ (
1241
+ origin: StagingKusamaRuntimeOriginCaller,
1242
+ call: StagingKusamaRuntimeRuntimeCallLike,
1243
+ ) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
1244
+ >;
1245
+
1246
+ /**
1247
+ * Dry run XCM program
1248
+ *
1249
+ * @callname: DryRunApi_dry_run_xcm
1250
+ * @param {XcmVersionedLocation} origin_location
1251
+ * @param {XcmVersionedXcm} xcm
1252
+ **/
1253
+ dryRunXcm: GenericRuntimeApiMethod<
1254
+ Rv,
1255
+ (
1256
+ originLocation: XcmVersionedLocation,
1257
+ xcm: XcmVersionedXcm,
1258
+ ) => Promise<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>
1259
+ >;
1260
+
1261
+ /**
1262
+ * Generic runtime api call
1263
+ **/
1264
+ [method: string]: GenericRuntimeApiMethod<Rv>;
1265
+ };
1266
+ /**
1267
+ * @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
1268
+ **/
1269
+ locationToAccountApi: {
1270
+ /**
1271
+ * Converts `Location` to `AccountId`.
1272
+ *
1273
+ * @callname: LocationToAccountApi_convert_location
1274
+ * @param {XcmVersionedLocation} location
1275
+ **/
1276
+ convertLocation: GenericRuntimeApiMethod<
1277
+ Rv,
1278
+ (location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
1279
+ >;
1280
+
1281
+ /**
1282
+ * Generic runtime api call
1283
+ **/
1284
+ [method: string]: GenericRuntimeApiMethod<Rv>;
1285
+ };
1102
1286
  /**
1103
1287
  * @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
1104
1288
  **/
@@ -1129,6 +1313,51 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1129
1313
  **/
1130
1314
  balanceToPoints: GenericRuntimeApiMethod<Rv, (poolId: number, newFunds: bigint) => Promise<bigint>>;
1131
1315
 
1316
+ /**
1317
+ * Returns the pending slash for a given pool.
1318
+ *
1319
+ * @callname: NominationPoolsApi_pool_pending_slash
1320
+ * @param {number} pool_id
1321
+ **/
1322
+ poolPendingSlash: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
1323
+
1324
+ /**
1325
+ * Returns the pending slash for a given pool member.
1326
+ *
1327
+ * @callname: NominationPoolsApi_member_pending_slash
1328
+ * @param {AccountId32Like} member
1329
+ **/
1330
+ memberPendingSlash: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<bigint>>;
1331
+
1332
+ /**
1333
+ * Returns true if the pool with `pool_id` needs migration.
1334
+ *
1335
+ * This can happen when the `pallet-nomination-pools` has switched to using strategy
1336
+ * [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool
1337
+ * still has funds that were staked using the older strategy
1338
+ * [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use
1339
+ * [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake)
1340
+ * to migrate the pool.
1341
+ *
1342
+ * @callname: NominationPoolsApi_pool_needs_delegate_migration
1343
+ * @param {number} pool_id
1344
+ **/
1345
+ poolNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<boolean>>;
1346
+
1347
+ /**
1348
+ * Returns true if the delegated funds of the pool `member` needs migration.
1349
+ *
1350
+ * Once a pool has successfully migrated to the strategy
1351
+ * [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the
1352
+ * member can be migrated from pool account to the member's account. Use
1353
+ * [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation)
1354
+ * to migrate the funds of the pool member.
1355
+ *
1356
+ * @callname: NominationPoolsApi_member_needs_delegate_migration
1357
+ * @param {AccountId32Like} member
1358
+ **/
1359
+ memberNeedsDelegateMigration: GenericRuntimeApiMethod<Rv, (member: AccountId32Like) => Promise<boolean>>;
1360
+
1132
1361
  /**
1133
1362
  * Generic runtime api call
1134
1363
  **/
@@ -1174,28 +1403,51 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1174
1403
  **/
1175
1404
  genesisBuilder: {
1176
1405
  /**
1177
- * Creates the default `GenesisConfig` and returns it as a JSON blob.
1406
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
1407
+ * storage.
1178
1408
  *
1179
- * This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
1180
- * blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
1409
+ * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
1410
+ * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
1411
+ * deserialization fails, an error is returned.
1181
1412
  *
1182
- * @callname: GenesisBuilder_create_default_config
1413
+ * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
1414
+ * defaults will be used.
1415
+ *
1416
+ * @callname: GenesisBuilder_build_state
1417
+ * @param {BytesLike} json
1183
1418
  **/
1184
- createDefaultConfig: GenericRuntimeApiMethod<Rv, () => Promise<Bytes>>;
1419
+ buildState: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
1185
1420
 
1186
1421
  /**
1187
- * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
1422
+ * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
1423
+ * `id`.
1188
1424
  *
1189
- * This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
1190
- * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
1191
- * It is recommended to log any errors encountered during the process.
1425
+ * If `id` is `None` the function returns JSON blob representation of the default
1426
+ * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
1427
+ * `RuntimeGenesisConfig`.
1192
1428
  *
1193
- * Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
1429
+ * Otherwise function returns a JSON representation of the built-in, named
1430
+ * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
1431
+ * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
1432
+ * (potentially nested) key-value pairs that are intended for customizing the default
1433
+ * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
1434
+ * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
1435
+ * be used in `build_state` method.
1194
1436
  *
1195
- * @callname: GenesisBuilder_build_config
1196
- * @param {BytesLike} json
1437
+ * @callname: GenesisBuilder_get_preset
1438
+ * @param {string | undefined} id
1439
+ **/
1440
+ getPreset: GenericRuntimeApiMethod<Rv, (id?: string | undefined) => Promise<Bytes | undefined>>;
1441
+
1442
+ /**
1443
+ * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
1444
+ *
1445
+ * The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If
1446
+ * no named presets are provided by the runtime the list is empty.
1447
+ *
1448
+ * @callname: GenesisBuilder_preset_names
1197
1449
  **/
1198
- buildConfig: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
1450
+ presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
1199
1451
 
1200
1452
  /**
1201
1453
  * Generic runtime api call