@dedot/chaintypes 0.266.0 → 0.267.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.
@@ -96,12 +96,14 @@ import type {
96
96
  PolkadotRuntimeParachainsConfigurationHostConfiguration,
97
97
  PolkadotPrimitivesV9ValidatorIndex,
98
98
  PolkadotPrimitivesV9ValidatorAppPublic,
99
- PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
99
+ PolkadotRuntimeParachainsSharedAllowedSchedulingParentsTracker,
100
+ PolkadotPrimitivesVstagingRelayParentInfo,
100
101
  PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
101
102
  PolkadotParachainPrimitivesPrimitivesId,
102
103
  PolkadotPrimitivesV9ScrapedOnChainVotes,
104
+ PolkadotRuntimeParachainsSchedulerAssignerCoretimeSchedule,
103
105
  PolkadotPrimitivesV9CoreIndex,
104
- PolkadotRuntimeParachainsSchedulerCommonAssignment,
106
+ PolkadotRuntimeParachainsSchedulerAssignerCoretimeCoreDescriptor,
105
107
  PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
106
108
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
107
109
  PolkadotRuntimeParachainsParasParaLifecycle,
@@ -124,11 +126,7 @@ import type {
124
126
  PolkadotPrimitivesV9DisputeState,
125
127
  PolkadotCorePrimitivesCandidateHash,
126
128
  PolkadotPrimitivesV9SlashingPendingSlashes,
127
- PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount,
128
- PolkadotRuntimeParachainsOnDemandTypesQueueStatusType,
129
- BinaryHeapEnqueuedOrder,
130
- PolkadotRuntimeParachainsAssignerCoretimeSchedule,
131
- PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
129
+ PolkadotRuntimeParachainsOnDemandOrderStatus,
132
130
  PolkadotRuntimeCommonParasRegistrarParaInfo,
133
131
  PolkadotRuntimeCommonCrowdloanFundInfo,
134
132
  PalletStateTrieMigrationMigrationTask,
@@ -146,14 +144,7 @@ import type {
146
144
  PolkadotRuntimeCommonImplsVersionedLocatableAsset,
147
145
  SpConsensusBeefyEcdsaCryptoPublic,
148
146
  SpConsensusBeefyMmrBeefyAuthoritySet,
149
- PalletRcMigratorMigrationStage,
150
- PalletRcMigratorAccountsAccountState,
151
- PalletRcMigratorAccountsMigratedBalances,
152
- PalletRcMigratorQueuePriority,
153
- FrameSupportScheduleDispatchTime,
154
- PalletRcMigratorMigrationSettings,
155
- PolkadotRuntimeRuntimeCall,
156
- PolkadotRuntimeRuntimeCallLike,
147
+ PalletRcMigratorAccountState,
157
148
  } from './types.js';
158
149
 
159
150
  export interface ChainStorage extends GenericChainStorage {
@@ -191,11 +182,13 @@ export interface ChainStorage extends GenericChainStorage {
191
182
  blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
192
183
 
193
184
  /**
194
- * Total length (in bytes) for all extrinsics put together, for the current block.
185
+ * Total size (in bytes) of the current block.
186
+ *
187
+ * Tracks the size of the header and all extrinsics.
195
188
  *
196
189
  * @param {Callback<number | undefined> =} callback
197
190
  **/
198
- allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
191
+ blockSize: GenericStorageQuery<() => number | undefined>;
199
192
 
200
193
  /**
201
194
  * Map of block numbers to block hashes.
@@ -278,6 +271,13 @@ export interface ChainStorage extends GenericChainStorage {
278
271
  **/
279
272
  lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
280
273
 
274
+ /**
275
+ * Number of blocks till the pending code upgrade is applied.
276
+ *
277
+ * @param {Callback<number | undefined> =} callback
278
+ **/
279
+ blocksTillUpgrade: GenericStorageQuery<() => number | undefined>;
280
+
281
281
  /**
282
282
  * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
283
283
  *
@@ -2497,11 +2497,41 @@ export interface ChainStorage extends GenericChainStorage {
2497
2497
  activeValidatorKeys: GenericStorageQuery<() => Array<PolkadotPrimitivesV9ValidatorAppPublic>>;
2498
2498
 
2499
2499
  /**
2500
- * All allowed relay-parents.
2500
+ * All allowed scheduling parents.
2501
2501
  *
2502
- * @param {Callback<PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker> =} callback
2502
+ * @param {Callback<PolkadotRuntimeParachainsSharedAllowedSchedulingParentsTracker> =} callback
2503
2503
  **/
2504
- allowedRelayParents: GenericStorageQuery<() => PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker>;
2504
+ allowedSchedulingParents: GenericStorageQuery<() => PolkadotRuntimeParachainsSharedAllowedSchedulingParentsTracker>;
2505
+
2506
+ /**
2507
+ * All allowed relay parents, keyed by (session_index, relay_parent_hash).
2508
+ *
2509
+ * @param {[number, H256]} arg
2510
+ * @param {Callback<PolkadotPrimitivesVstagingRelayParentInfo | undefined> =} callback
2511
+ **/
2512
+ allowedRelayParents: GenericStorageQuery<
2513
+ (arg: [number, H256]) => PolkadotPrimitivesVstagingRelayParentInfo | undefined,
2514
+ [number, H256]
2515
+ >;
2516
+
2517
+ /**
2518
+ * The oldest session index for which we still have relay parent entries in
2519
+ * `AllowedRelayParents`. Used to efficiently prune all expired sessions
2520
+ * when `max_relay_parent_session_age` decreases.
2521
+ *
2522
+ * @param {Callback<number> =} callback
2523
+ **/
2524
+ oldestRelayParentSession: GenericStorageQuery<() => number>;
2525
+
2526
+ /**
2527
+ * The minimum relay parent block number for each session that has entries in
2528
+ * `AllowedRelayParents`. This is the block number of the first relay parent
2529
+ * added to each session.
2530
+ *
2531
+ * @param {number} arg
2532
+ * @param {Callback<number | undefined> =} callback
2533
+ **/
2534
+ minimumRelayParentNumber: GenericStorageQuery<(arg: number) => number | undefined, number>;
2505
2535
 
2506
2536
  /**
2507
2537
  * Generic pallet storage query
@@ -2593,13 +2623,34 @@ export interface ChainStorage extends GenericChainStorage {
2593
2623
  sessionStartBlock: GenericStorageQuery<() => number>;
2594
2624
 
2595
2625
  /**
2596
- * One entry for each availability core. The `VecDeque` represents the assignments to be
2597
- * scheduled on that core.
2626
+ * Scheduled assignment sets for coretime cores.
2598
2627
  *
2599
- * @param {Callback<Array<[PolkadotPrimitivesV9CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>> =} callback
2628
+ * Assignments as of the given block number. They will go into state once the block number is
2629
+ * reached (and replace whatever was in there before).
2630
+ *
2631
+ * Managed by the `assigner_coretime` submodule.
2632
+ *
2633
+ * @param {[number, PolkadotPrimitivesV9CoreIndex]} arg
2634
+ * @param {Callback<PolkadotRuntimeParachainsSchedulerAssignerCoretimeSchedule | undefined> =} callback
2635
+ **/
2636
+ coreSchedules: GenericStorageQuery<
2637
+ (
2638
+ arg: [number, PolkadotPrimitivesV9CoreIndex],
2639
+ ) => PolkadotRuntimeParachainsSchedulerAssignerCoretimeSchedule | undefined,
2640
+ [number, PolkadotPrimitivesV9CoreIndex]
2641
+ >;
2642
+
2643
+ /**
2644
+ * Assignments which are currently active for each core.
2645
+ *
2646
+ * They will be picked from `CoreSchedules` once we reach the scheduled block number.
2647
+ *
2648
+ * Managed by the `assigner_coretime` submodule.
2649
+ *
2650
+ * @param {Callback<Array<[PolkadotPrimitivesV9CoreIndex, PolkadotRuntimeParachainsSchedulerAssignerCoretimeCoreDescriptor]>> =} callback
2600
2651
  **/
2601
- claimQueue: GenericStorageQuery<
2602
- () => Array<[PolkadotPrimitivesV9CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>
2652
+ coreDescriptors: GenericStorageQuery<
2653
+ () => Array<[PolkadotPrimitivesV9CoreIndex, PolkadotRuntimeParachainsSchedulerAssignerCoretimeCoreDescriptor]>
2603
2654
  >;
2604
2655
 
2605
2656
  /**
@@ -3302,45 +3353,12 @@ export interface ChainStorage extends GenericChainStorage {
3302
3353
  * Pallet `OnDemand`'s storage queries
3303
3354
  **/
3304
3355
  onDemand: {
3305
- /**
3306
- * Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
3307
- * it's lookahead. Keeping track of this affinity prevents parallel execution of the same
3308
- * `ParaId` on two or more `CoreIndex`es.
3309
- *
3310
- * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3311
- * @param {Callback<PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined> =} callback
3312
- **/
3313
- paraIdAffinity: GenericStorageQuery<
3314
- (
3315
- arg: PolkadotParachainPrimitivesPrimitivesId,
3316
- ) => PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined,
3317
- PolkadotParachainPrimitivesPrimitivesId
3318
- >;
3319
-
3320
- /**
3321
- * Overall status of queue (both free + affinity entries)
3322
- *
3323
- * @param {Callback<PolkadotRuntimeParachainsOnDemandTypesQueueStatusType> =} callback
3324
- **/
3325
- queueStatus: GenericStorageQuery<() => PolkadotRuntimeParachainsOnDemandTypesQueueStatusType>;
3326
-
3327
3356
  /**
3328
3357
  * Priority queue for all orders which don't yet (or not any more) have any core affinity.
3329
3358
  *
3330
- * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3359
+ * @param {Callback<PolkadotRuntimeParachainsOnDemandOrderStatus> =} callback
3331
3360
  **/
3332
- freeEntries: GenericStorageQuery<() => BinaryHeapEnqueuedOrder>;
3333
-
3334
- /**
3335
- * Queue entries that are currently bound to a particular core due to core affinity.
3336
- *
3337
- * @param {PolkadotPrimitivesV9CoreIndex} arg
3338
- * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3339
- **/
3340
- affinityEntries: GenericStorageQuery<
3341
- (arg: PolkadotPrimitivesV9CoreIndex) => BinaryHeapEnqueuedOrder,
3342
- PolkadotPrimitivesV9CoreIndex
3343
- >;
3361
+ orderStatus: GenericStorageQuery<() => PolkadotRuntimeParachainsOnDemandOrderStatus>;
3344
3362
 
3345
3363
  /**
3346
3364
  * Keeps track of accumulated revenue from on demand order sales.
@@ -3362,43 +3380,6 @@ export interface ChainStorage extends GenericChainStorage {
3362
3380
  **/
3363
3381
  [storage: string]: GenericStorageQuery;
3364
3382
  };
3365
- /**
3366
- * Pallet `CoretimeAssignmentProvider`'s storage queries
3367
- **/
3368
- coretimeAssignmentProvider: {
3369
- /**
3370
- * Scheduled assignment sets.
3371
- *
3372
- * Assignments as of the given block number. They will go into state once the block number is
3373
- * reached (and replace whatever was in there before).
3374
- *
3375
- * @param {[number, PolkadotPrimitivesV9CoreIndex]} arg
3376
- * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
3377
- **/
3378
- coreSchedules: GenericStorageQuery<
3379
- (arg: [number, PolkadotPrimitivesV9CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3380
- [number, PolkadotPrimitivesV9CoreIndex]
3381
- >;
3382
-
3383
- /**
3384
- * Assignments which are currently active.
3385
- *
3386
- * They will be picked from `PendingAssignments` once we reach the scheduled block number in
3387
- * `PendingAssignments`.
3388
- *
3389
- * @param {PolkadotPrimitivesV9CoreIndex} arg
3390
- * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
3391
- **/
3392
- coreDescriptors: GenericStorageQuery<
3393
- (arg: PolkadotPrimitivesV9CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3394
- PolkadotPrimitivesV9CoreIndex
3395
- >;
3396
-
3397
- /**
3398
- * Generic pallet storage query
3399
- **/
3400
- [storage: string]: GenericStorageQuery;
3401
- };
3402
3383
  /**
3403
3384
  * Pallet `Registrar`'s storage queries
3404
3385
  **/
@@ -3947,24 +3928,14 @@ export interface ChainStorage extends GenericChainStorage {
3947
3928
  * Pallet `RcMigrator`'s storage queries
3948
3929
  **/
3949
3930
  rcMigrator: {
3950
- /**
3951
- * The Relay Chain migration state.
3952
- *
3953
- * @param {Callback<PalletRcMigratorMigrationStage> =} callback
3954
- **/
3955
- rcMigrationStage: GenericStorageQuery<() => PalletRcMigratorMigrationStage>;
3956
-
3957
3931
  /**
3958
3932
  * Helper storage item to obtain and store the known accounts that should be kept partially or
3959
3933
  * fully on Relay Chain.
3960
3934
  *
3961
3935
  * @param {AccountId32Like} arg
3962
- * @param {Callback<PalletRcMigratorAccountsAccountState | undefined> =} callback
3936
+ * @param {Callback<PalletRcMigratorAccountState | undefined> =} callback
3963
3937
  **/
3964
- rcAccounts: GenericStorageQuery<
3965
- (arg: AccountId32Like) => PalletRcMigratorAccountsAccountState | undefined,
3966
- AccountId32
3967
- >;
3938
+ rcAccounts: GenericStorageQuery<(arg: AccountId32Like) => PalletRcMigratorAccountState | undefined, AccountId32>;
3968
3939
 
3969
3940
  /**
3970
3941
  * Counter for the related counted storage map
@@ -3974,183 +3945,19 @@ export interface ChainStorage extends GenericChainStorage {
3974
3945
  counterForRcAccounts: GenericStorageQuery<() => number>;
3975
3946
 
3976
3947
  /**
3977
- * Helper storage item to store the total balance that should be kept on Relay Chain.
3978
- *
3979
- * @param {Callback<PalletRcMigratorAccountsMigratedBalances> =} callback
3980
- **/
3981
- rcMigratedBalance: GenericStorageQuery<() => PalletRcMigratorAccountsMigratedBalances>;
3982
-
3983
- /**
3984
- * Helper storage item to store the total balance that should be kept on Relay Chain after
3985
- * it is consumed from the `RcMigratedBalance` storage item and sent to the Asset Hub.
3986
- *
3987
- * This let us to take the value from the `RcMigratedBalance` storage item and keep the
3988
- * `SignalMigrationFinish` stage to be idempotent while preserving these values for tests and
3989
- * later discoveries.
3990
- *
3991
- * @param {Callback<PalletRcMigratorAccountsMigratedBalances> =} callback
3992
- **/
3993
- rcMigratedBalanceArchive: GenericStorageQuery<() => PalletRcMigratorAccountsMigratedBalances>;
3994
-
3995
- /**
3996
- * The pending XCM messages.
3997
- *
3998
- * Contains data messages that have been sent to the Asset Hub but not yet confirmed.
3999
- *
4000
- * Unconfirmed messages can be resent by calling the [`Pallet::resend_xcm`] function.
4001
- *
4002
- * @param {[bigint, H256]} arg
4003
- * @param {Callback<StagingXcmV5Xcm | undefined> =} callback
4004
- **/
4005
- pendingXcmMessages: GenericStorageQuery<(arg: [bigint, H256]) => StagingXcmV5Xcm | undefined, [bigint, H256]>;
4006
-
4007
- /**
4008
- * Counter for the related counted storage map
4009
- *
4010
- * @param {Callback<number> =} callback
4011
- **/
4012
- counterForPendingXcmMessages: GenericStorageQuery<() => number>;
4013
-
4014
- /**
4015
- * Accounts that use the proxy pallet to delegate permissions and have no nonce.
4016
- *
4017
- * Boolean value is whether they have been migrated to the Asset Hub. Needed for idempotency.
4018
- *
4019
- * @param {AccountId32Like} arg
4020
- * @param {Callback<boolean | undefined> =} callback
4021
- **/
4022
- pureProxyCandidatesMigrated: GenericStorageQuery<(arg: AccountId32Like) => boolean | undefined, AccountId32>;
4023
-
4024
- /**
4025
- * The pending XCM response queries and their XCM hash referencing the message in the
4026
- * [`PendingXcmMessages`] storage.
4027
- *
4028
- * The `QueryId` is the identifier from the [`pallet_xcm`] query handler registry. The XCM
4029
- * pallet will notify about the status of the message by calling the
4030
- * [`Pallet::receive_query_response`] function with the `QueryId` and the
4031
- * response.
4032
- *
4033
- * @param {bigint} arg
4034
- * @param {Callback<H256 | undefined> =} callback
4035
- **/
4036
- pendingXcmQueries: GenericStorageQuery<(arg: bigint) => H256 | undefined, bigint>;
4037
-
4038
- /**
4039
- * Manual override for `type UnprocessedMsgBuffer: Get<u32>`. Look there for docs.
4040
- *
4041
- * @param {Callback<number | undefined> =} callback
4042
- **/
4043
- unprocessedMsgBuffer: GenericStorageQuery<() => number | undefined>;
4044
-
4045
- /**
4046
- * The priority of the Asset Hub UMP queue during migration.
4047
- *
4048
- * Controls how the Asset Hub UMP (Upward Message Passing) queue is processed relative to other
4049
- * queues during the migration process. This helps ensure timely processing of migration
4050
- * messages. The default priority pattern is defined in the pallet configuration, but can be
4051
- * overridden by a storage value of this type.
4052
- *
4053
- * @param {Callback<PalletRcMigratorQueuePriority> =} callback
4054
- **/
4055
- ahUmpQueuePriorityConfig: GenericStorageQuery<() => PalletRcMigratorQueuePriority>;
4056
-
4057
- /**
4058
- * An optional account id of a manager.
4059
- *
4060
- * This account id has similar privileges to [`Config::AdminOrigin`] except that it
4061
- * can not set the manager account id via `set_manager` call.
4062
- *
4063
- * @param {Callback<AccountId32 | undefined> =} callback
4064
- **/
4065
- manager: GenericStorageQuery<() => AccountId32 | undefined>;
4066
-
4067
- /**
4068
- * An optional account id of a canceller.
4069
- *
4070
- * This account id can only stop scheduled migration.
4071
- *
4072
- * @param {Callback<AccountId32 | undefined> =} callback
4073
- **/
4074
- canceller: GenericStorageQuery<() => AccountId32 | undefined>;
4075
-
4076
- /**
4077
- * The block number at which the migration began and the pallet's extrinsics were locked.
4078
- *
4079
- * This value is set when entering the `WaitingForAh` stage, i.e., when
4080
- * `RcMigrationStage::is_ongoing()` becomes `true`.
3948
+ * The block number when the migration started.
4081
3949
  *
4082
3950
  * @param {Callback<number | undefined> =} callback
4083
3951
  **/
4084
3952
  migrationStartBlock: GenericStorageQuery<() => number | undefined>;
4085
3953
 
4086
3954
  /**
4087
- * Block number when migration finished and extrinsics were unlocked.
4088
- *
4089
- * This is set when entering the `MigrationDone` stage hence when
4090
- * `RcMigrationStage::is_finished()` becomes `true`.
3955
+ * The block number when the migration ended.
4091
3956
  *
4092
3957
  * @param {Callback<number | undefined> =} callback
4093
3958
  **/
4094
3959
  migrationEndBlock: GenericStorageQuery<() => number | undefined>;
4095
3960
 
4096
- /**
4097
- * The duration of the pre migration warm-up period.
4098
- *
4099
- * This is the duration of the warm-up period before the data migration starts. During this
4100
- * period, the migration will be in ongoing state and the concerned extrinsics will be locked.
4101
- *
4102
- * @param {Callback<FrameSupportScheduleDispatchTime | undefined> =} callback
4103
- **/
4104
- warmUpPeriod: GenericStorageQuery<() => FrameSupportScheduleDispatchTime | undefined>;
4105
-
4106
- /**
4107
- * The duration of the post migration cool-off period.
4108
- *
4109
- * This is the duration of the cool-off period after the data migration is finished. During
4110
- * this period, the migration will be still in ongoing state and the concerned extrinsics will
4111
- * be locked.
4112
- *
4113
- * @param {Callback<FrameSupportScheduleDispatchTime | undefined> =} callback
4114
- **/
4115
- coolOffPeriod: GenericStorageQuery<() => FrameSupportScheduleDispatchTime | undefined>;
4116
-
4117
- /**
4118
- * The migration settings.
4119
- *
4120
- * @param {Callback<PalletRcMigratorMigrationSettings | undefined> =} callback
4121
- **/
4122
- settings: GenericStorageQuery<() => PalletRcMigratorMigrationSettings | undefined>;
4123
-
4124
- /**
4125
- * The multisig AccountIDs that votes to execute a specific call.
4126
- *
4127
- * @param {PolkadotRuntimeRuntimeCallLike} arg
4128
- * @param {Callback<Array<AccountId32>> =} callback
4129
- **/
4130
- managerMultisigs: GenericStorageQuery<
4131
- (arg: PolkadotRuntimeRuntimeCallLike) => Array<AccountId32>,
4132
- PolkadotRuntimeRuntimeCall
4133
- >;
4134
-
4135
- /**
4136
- * The current round of the multisig voting.
4137
- *
4138
- * Votes are only valid for the current round.
4139
- *
4140
- * @param {Callback<number> =} callback
4141
- **/
4142
- managerMultisigRound: GenericStorageQuery<() => number>;
4143
-
4144
- /**
4145
- * How often each participant voted in the current round.
4146
- *
4147
- * Will be cleared at the end of each round.
4148
- *
4149
- * @param {AccountId32Like} arg
4150
- * @param {Callback<number> =} callback
4151
- **/
4152
- managerVotesInCurrentRound: GenericStorageQuery<(arg: AccountId32Like) => number, AccountId32>;
4153
-
4154
3961
  /**
4155
3962
  * Generic pallet storage query
4156
3963
  **/
@@ -12,8 +12,8 @@ import type {
12
12
  AccountId32,
13
13
  H256,
14
14
  BitSequence,
15
- Bytes,
16
15
  BytesLike,
16
+ Bytes,
17
17
  } from 'dedot/codecs';
18
18
  import type {
19
19
  SpRuntimeBlockLazyBlock,
@@ -53,6 +53,8 @@ import type {
53
53
  PolkadotPrimitivesV9ApprovalVotingParams,
54
54
  PolkadotPrimitivesV9CoreIndex,
55
55
  PolkadotPrimitivesV9AsyncBackingConstraints,
56
+ PolkadotPrimitivesV9SlashingPendingSlashes,
57
+ PolkadotPrimitivesVstagingRelayParentInfo,
56
58
  SpConsensusBeefyValidatorSet,
57
59
  SpConsensusBeefyDoubleVotingProof,
58
60
  SpRuntimeOpaqueValue,
@@ -73,6 +75,7 @@ import type {
73
75
  SpConsensusBabeAppPublic,
74
76
  SpConsensusSlotsEquivocationProof,
75
77
  SpAuthorityDiscoveryAppPublic,
78
+ SpSessionRuntimeApiOpaqueGeneratedSessionKeys,
76
79
  SpCoreCryptoKeyTypeId,
77
80
  FrameSupportViewFunctionsViewFunctionDispatchError,
78
81
  FrameSupportViewFunctionsViewFunctionId,
@@ -786,6 +789,48 @@ export interface RuntimeApis extends GenericRuntimeApis {
786
789
  **/
787
790
  schedulingLookahead: GenericRuntimeApiMethod<() => Promise<number>>;
788
791
 
792
+ /**
793
+ * Retrieve paraids at relay parent
794
+ *
795
+ * @callname: ParachainHost_para_ids
796
+ **/
797
+ paraIds: GenericRuntimeApiMethod<() => Promise<Array<PolkadotParachainPrimitivesPrimitivesId>>>;
798
+
799
+ /**
800
+ * Returns a list of validators that lost a past session dispute and need to be slashed.
801
+ *
802
+ * @callname: ParachainHost_unapplied_slashes_v2
803
+ **/
804
+ unappliedSlashesV2: GenericRuntimeApiMethod<
805
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV9SlashingPendingSlashes]>>
806
+ >;
807
+
808
+ /**
809
+ * Retrieve the maximum relay parent session age allowed for parachain blocks.
810
+ *
811
+ * @callname: ParachainHost_max_relay_parent_session_age
812
+ **/
813
+ maxRelayParentSessionAge: GenericRuntimeApiMethod<() => Promise<number>>;
814
+
815
+ /**
816
+ * Look up relay parent info for a block that is an **ancestor** of the block
817
+ * this API is called at. Returns `None` if the relay parent is not found
818
+ * in the allowed relay parents for the given session.
819
+ *
820
+ * NOTE: A block is not in its own `AllowedRelayParents` storage (it gets
821
+ * added during the next block's inherent). Querying a block about itself
822
+ * will always return `None`. Use the node-side `check_relay_parent_session`
823
+ * utility for a general-purpose check that handles both the self and
824
+ * ancestor cases.
825
+ *
826
+ * @callname: ParachainHost_ancestor_relay_parent_info
827
+ * @param {number} session_index
828
+ * @param {H256} relay_parent
829
+ **/
830
+ ancestorRelayParentInfo: GenericRuntimeApiMethod<
831
+ (sessionIndex: number, relayParent: H256) => Promise<PolkadotPrimitivesVstagingRelayParentInfo | undefined>
832
+ >;
833
+
789
834
  /**
790
835
  * Generic runtime api call
791
836
  **/
@@ -1197,9 +1242,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
1197
1242
  * Returns the concatenated SCALE encoded public keys.
1198
1243
  *
1199
1244
  * @callname: SessionKeys_generate_session_keys
1245
+ * @param {BytesLike} owner
1200
1246
  * @param {BytesLike | undefined} seed
1201
1247
  **/
1202
- generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
1248
+ generateSessionKeys: GenericRuntimeApiMethod<
1249
+ (owner: BytesLike, seed?: BytesLike | undefined) => Promise<SpSessionRuntimeApiOpaqueGeneratedSessionKeys>
1250
+ >;
1203
1251
 
1204
1252
  /**
1205
1253
  * Decode the given public session keys.
@@ -1536,6 +1584,29 @@ export interface RuntimeApis extends GenericRuntimeApis {
1536
1584
  **/
1537
1585
  presetNames: GenericRuntimeApiMethod<() => Promise<Array<string>>>;
1538
1586
 
1587
+ /**
1588
+ * Generic runtime api call
1589
+ **/
1590
+ [method: string]: GenericRuntimeApiMethod;
1591
+ };
1592
+ /**
1593
+ * @runtimeapi: AssetHubMigrationApi - 0xc1b8f0c037f97de8
1594
+ **/
1595
+ assetHubMigrationApi: {
1596
+ /**
1597
+ * Returns the block number when the migration started.
1598
+ *
1599
+ * @callname: AssetHubMigrationApi_migration_start_block
1600
+ **/
1601
+ migrationStartBlock: GenericRuntimeApiMethod<() => Promise<number>>;
1602
+
1603
+ /**
1604
+ * Returns the block number when the migration ended.
1605
+ *
1606
+ * @callname: AssetHubMigrationApi_migration_end_block
1607
+ **/
1608
+ migrationEndBlock: GenericRuntimeApiMethod<() => Promise<number>>;
1609
+
1539
1610
  /**
1540
1611
  * Generic runtime api call
1541
1612
  **/