@dedot/chaintypes 0.264.0 → 0.265.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/kusama/query.d.ts CHANGED
@@ -111,12 +111,14 @@ import type {
111
111
  PolkadotRuntimeParachainsConfigurationHostConfiguration,
112
112
  PolkadotPrimitivesV9ValidatorIndex,
113
113
  PolkadotPrimitivesV9ValidatorAppPublic,
114
- PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
114
+ PolkadotRuntimeParachainsSharedAllowedSchedulingParentsTracker,
115
+ PolkadotPrimitivesVstagingRelayParentInfo,
115
116
  PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
116
117
  PolkadotParachainPrimitivesPrimitivesId,
117
118
  PolkadotPrimitivesV9ScrapedOnChainVotes,
119
+ PolkadotRuntimeParachainsSchedulerAssignerCoretimeSchedule,
118
120
  PolkadotPrimitivesV9CoreIndex,
119
- PolkadotRuntimeParachainsSchedulerCommonAssignment,
121
+ PolkadotRuntimeParachainsSchedulerAssignerCoretimeCoreDescriptor,
120
122
  PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
121
123
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
122
124
  PolkadotRuntimeParachainsParasParaLifecycle,
@@ -139,11 +141,7 @@ import type {
139
141
  PolkadotPrimitivesV9DisputeState,
140
142
  PolkadotCorePrimitivesCandidateHash,
141
143
  PolkadotPrimitivesV9SlashingPendingSlashes,
142
- PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount,
143
- PolkadotRuntimeParachainsOnDemandTypesQueueStatusType,
144
- BinaryHeapEnqueuedOrder,
145
- PolkadotRuntimeParachainsAssignerCoretimeSchedule,
146
- PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
144
+ PolkadotRuntimeParachainsOnDemandOrderStatus,
147
145
  PolkadotRuntimeCommonParasRegistrarParaInfo,
148
146
  PolkadotRuntimeCommonCrowdloanFundInfo,
149
147
  PalletXcmQueryStatus,
@@ -159,14 +157,7 @@ import type {
159
157
  PolkadotRuntimeCommonImplsVersionedLocatableAsset,
160
158
  SpConsensusBeefyEcdsaCryptoPublic,
161
159
  SpConsensusBeefyMmrBeefyAuthoritySet,
162
- PalletRcMigratorMigrationStage,
163
- PalletRcMigratorAccountsAccountState,
164
- PalletRcMigratorAccountsMigratedBalances,
165
- PalletRcMigratorQueuePriority,
166
- FrameSupportScheduleDispatchTime,
167
- PalletRcMigratorMigrationSettings,
168
- StagingKusamaRuntimeRuntimeCall,
169
- StagingKusamaRuntimeRuntimeCallLike,
160
+ PalletRcMigratorAccountState,
170
161
  } from './types.js';
171
162
 
172
163
  export interface ChainStorage extends GenericChainStorage {
@@ -204,11 +195,13 @@ export interface ChainStorage extends GenericChainStorage {
204
195
  blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
205
196
 
206
197
  /**
207
- * Total length (in bytes) for all extrinsics put together, for the current block.
198
+ * Total size (in bytes) of the current block.
199
+ *
200
+ * Tracks the size of the header and all extrinsics.
208
201
  *
209
202
  * @param {Callback<number | undefined> =} callback
210
203
  **/
211
- allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
204
+ blockSize: GenericStorageQuery<() => number | undefined>;
212
205
 
213
206
  /**
214
207
  * Map of block numbers to block hashes.
@@ -291,6 +284,13 @@ export interface ChainStorage extends GenericChainStorage {
291
284
  **/
292
285
  lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
293
286
 
287
+ /**
288
+ * Number of blocks till the pending code upgrade is applied.
289
+ *
290
+ * @param {Callback<number | undefined> =} callback
291
+ **/
292
+ blocksTillUpgrade: GenericStorageQuery<() => number | undefined>;
293
+
294
294
  /**
295
295
  * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
296
296
  *
@@ -2868,11 +2868,41 @@ export interface ChainStorage extends GenericChainStorage {
2868
2868
  activeValidatorKeys: GenericStorageQuery<() => Array<PolkadotPrimitivesV9ValidatorAppPublic>>;
2869
2869
 
2870
2870
  /**
2871
- * All allowed relay-parents.
2871
+ * All allowed scheduling parents.
2872
2872
  *
2873
- * @param {Callback<PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker> =} callback
2873
+ * @param {Callback<PolkadotRuntimeParachainsSharedAllowedSchedulingParentsTracker> =} callback
2874
2874
  **/
2875
- allowedRelayParents: GenericStorageQuery<() => PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker>;
2875
+ allowedSchedulingParents: GenericStorageQuery<() => PolkadotRuntimeParachainsSharedAllowedSchedulingParentsTracker>;
2876
+
2877
+ /**
2878
+ * All allowed relay parents, keyed by (session_index, relay_parent_hash).
2879
+ *
2880
+ * @param {[number, H256]} arg
2881
+ * @param {Callback<PolkadotPrimitivesVstagingRelayParentInfo | undefined> =} callback
2882
+ **/
2883
+ allowedRelayParents: GenericStorageQuery<
2884
+ (arg: [number, H256]) => PolkadotPrimitivesVstagingRelayParentInfo | undefined,
2885
+ [number, H256]
2886
+ >;
2887
+
2888
+ /**
2889
+ * The oldest session index for which we still have relay parent entries in
2890
+ * `AllowedRelayParents`. Used to efficiently prune all expired sessions
2891
+ * when `max_relay_parent_session_age` decreases.
2892
+ *
2893
+ * @param {Callback<number> =} callback
2894
+ **/
2895
+ oldestRelayParentSession: GenericStorageQuery<() => number>;
2896
+
2897
+ /**
2898
+ * The minimum relay parent block number for each session that has entries in
2899
+ * `AllowedRelayParents`. This is the block number of the first relay parent
2900
+ * added to each session.
2901
+ *
2902
+ * @param {number} arg
2903
+ * @param {Callback<number | undefined> =} callback
2904
+ **/
2905
+ minimumRelayParentNumber: GenericStorageQuery<(arg: number) => number | undefined, number>;
2876
2906
 
2877
2907
  /**
2878
2908
  * Generic pallet storage query
@@ -2964,13 +2994,34 @@ export interface ChainStorage extends GenericChainStorage {
2964
2994
  sessionStartBlock: GenericStorageQuery<() => number>;
2965
2995
 
2966
2996
  /**
2967
- * One entry for each availability core. The `VecDeque` represents the assignments to be
2968
- * scheduled on that core.
2997
+ * Scheduled assignment sets for coretime cores.
2969
2998
  *
2970
- * @param {Callback<Array<[PolkadotPrimitivesV9CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>> =} callback
2999
+ * Assignments as of the given block number. They will go into state once the block number is
3000
+ * reached (and replace whatever was in there before).
3001
+ *
3002
+ * Managed by the `assigner_coretime` submodule.
3003
+ *
3004
+ * @param {[number, PolkadotPrimitivesV9CoreIndex]} arg
3005
+ * @param {Callback<PolkadotRuntimeParachainsSchedulerAssignerCoretimeSchedule | undefined> =} callback
3006
+ **/
3007
+ coreSchedules: GenericStorageQuery<
3008
+ (
3009
+ arg: [number, PolkadotPrimitivesV9CoreIndex],
3010
+ ) => PolkadotRuntimeParachainsSchedulerAssignerCoretimeSchedule | undefined,
3011
+ [number, PolkadotPrimitivesV9CoreIndex]
3012
+ >;
3013
+
3014
+ /**
3015
+ * Assignments which are currently active for each core.
3016
+ *
3017
+ * They will be picked from `CoreSchedules` once we reach the scheduled block number.
3018
+ *
3019
+ * Managed by the `assigner_coretime` submodule.
3020
+ *
3021
+ * @param {Callback<Array<[PolkadotPrimitivesV9CoreIndex, PolkadotRuntimeParachainsSchedulerAssignerCoretimeCoreDescriptor]>> =} callback
2971
3022
  **/
2972
- claimQueue: GenericStorageQuery<
2973
- () => Array<[PolkadotPrimitivesV9CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>
3023
+ coreDescriptors: GenericStorageQuery<
3024
+ () => Array<[PolkadotPrimitivesV9CoreIndex, PolkadotRuntimeParachainsSchedulerAssignerCoretimeCoreDescriptor]>
2974
3025
  >;
2975
3026
 
2976
3027
  /**
@@ -3673,45 +3724,12 @@ export interface ChainStorage extends GenericChainStorage {
3673
3724
  * Pallet `OnDemandAssignmentProvider`'s storage queries
3674
3725
  **/
3675
3726
  onDemandAssignmentProvider: {
3676
- /**
3677
- * Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
3678
- * it's lookahead. Keeping track of this affinity prevents parallel execution of the same
3679
- * `ParaId` on two or more `CoreIndex`es.
3680
- *
3681
- * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3682
- * @param {Callback<PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined> =} callback
3683
- **/
3684
- paraIdAffinity: GenericStorageQuery<
3685
- (
3686
- arg: PolkadotParachainPrimitivesPrimitivesId,
3687
- ) => PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined,
3688
- PolkadotParachainPrimitivesPrimitivesId
3689
- >;
3690
-
3691
- /**
3692
- * Overall status of queue (both free + affinity entries)
3693
- *
3694
- * @param {Callback<PolkadotRuntimeParachainsOnDemandTypesQueueStatusType> =} callback
3695
- **/
3696
- queueStatus: GenericStorageQuery<() => PolkadotRuntimeParachainsOnDemandTypesQueueStatusType>;
3697
-
3698
3727
  /**
3699
3728
  * Priority queue for all orders which don't yet (or not any more) have any core affinity.
3700
3729
  *
3701
- * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3730
+ * @param {Callback<PolkadotRuntimeParachainsOnDemandOrderStatus> =} callback
3702
3731
  **/
3703
- freeEntries: GenericStorageQuery<() => BinaryHeapEnqueuedOrder>;
3704
-
3705
- /**
3706
- * Queue entries that are currently bound to a particular core due to core affinity.
3707
- *
3708
- * @param {PolkadotPrimitivesV9CoreIndex} arg
3709
- * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3710
- **/
3711
- affinityEntries: GenericStorageQuery<
3712
- (arg: PolkadotPrimitivesV9CoreIndex) => BinaryHeapEnqueuedOrder,
3713
- PolkadotPrimitivesV9CoreIndex
3714
- >;
3732
+ orderStatus: GenericStorageQuery<() => PolkadotRuntimeParachainsOnDemandOrderStatus>;
3715
3733
 
3716
3734
  /**
3717
3735
  * Keeps track of accumulated revenue from on demand order sales.
@@ -3733,43 +3751,6 @@ export interface ChainStorage extends GenericChainStorage {
3733
3751
  **/
3734
3752
  [storage: string]: GenericStorageQuery;
3735
3753
  };
3736
- /**
3737
- * Pallet `CoretimeAssignmentProvider`'s storage queries
3738
- **/
3739
- coretimeAssignmentProvider: {
3740
- /**
3741
- * Scheduled assignment sets.
3742
- *
3743
- * Assignments as of the given block number. They will go into state once the block number is
3744
- * reached (and replace whatever was in there before).
3745
- *
3746
- * @param {[number, PolkadotPrimitivesV9CoreIndex]} arg
3747
- * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
3748
- **/
3749
- coreSchedules: GenericStorageQuery<
3750
- (arg: [number, PolkadotPrimitivesV9CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3751
- [number, PolkadotPrimitivesV9CoreIndex]
3752
- >;
3753
-
3754
- /**
3755
- * Assignments which are currently active.
3756
- *
3757
- * They will be picked from `PendingAssignments` once we reach the scheduled block number in
3758
- * `PendingAssignments`.
3759
- *
3760
- * @param {PolkadotPrimitivesV9CoreIndex} arg
3761
- * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
3762
- **/
3763
- coreDescriptors: GenericStorageQuery<
3764
- (arg: PolkadotPrimitivesV9CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3765
- PolkadotPrimitivesV9CoreIndex
3766
- >;
3767
-
3768
- /**
3769
- * Generic pallet storage query
3770
- **/
3771
- [storage: string]: GenericStorageQuery;
3772
- };
3773
3754
  /**
3774
3755
  * Pallet `Registrar`'s storage queries
3775
3756
  **/
@@ -4281,24 +4262,14 @@ export interface ChainStorage extends GenericChainStorage {
4281
4262
  * Pallet `RcMigrator`'s storage queries
4282
4263
  **/
4283
4264
  rcMigrator: {
4284
- /**
4285
- * The Relay Chain migration state.
4286
- *
4287
- * @param {Callback<PalletRcMigratorMigrationStage> =} callback
4288
- **/
4289
- rcMigrationStage: GenericStorageQuery<() => PalletRcMigratorMigrationStage>;
4290
-
4291
4265
  /**
4292
4266
  * Helper storage item to obtain and store the known accounts that should be kept partially or
4293
4267
  * fully on Relay Chain.
4294
4268
  *
4295
4269
  * @param {AccountId32Like} arg
4296
- * @param {Callback<PalletRcMigratorAccountsAccountState | undefined> =} callback
4270
+ * @param {Callback<PalletRcMigratorAccountState | undefined> =} callback
4297
4271
  **/
4298
- rcAccounts: GenericStorageQuery<
4299
- (arg: AccountId32Like) => PalletRcMigratorAccountsAccountState | undefined,
4300
- AccountId32
4301
- >;
4272
+ rcAccounts: GenericStorageQuery<(arg: AccountId32Like) => PalletRcMigratorAccountState | undefined, AccountId32>;
4302
4273
 
4303
4274
  /**
4304
4275
  * Counter for the related counted storage map
@@ -4308,183 +4279,19 @@ export interface ChainStorage extends GenericChainStorage {
4308
4279
  counterForRcAccounts: GenericStorageQuery<() => number>;
4309
4280
 
4310
4281
  /**
4311
- * Helper storage item to store the total balance that should be kept on Relay Chain.
4312
- *
4313
- * @param {Callback<PalletRcMigratorAccountsMigratedBalances> =} callback
4314
- **/
4315
- rcMigratedBalance: GenericStorageQuery<() => PalletRcMigratorAccountsMigratedBalances>;
4316
-
4317
- /**
4318
- * Helper storage item to store the total balance that should be kept on Relay Chain after
4319
- * it is consumed from the `RcMigratedBalance` storage item and sent to the Asset Hub.
4320
- *
4321
- * This let us to take the value from the `RcMigratedBalance` storage item and keep the
4322
- * `SignalMigrationFinish` stage to be idempotent while preserving these values for tests and
4323
- * later discoveries.
4324
- *
4325
- * @param {Callback<PalletRcMigratorAccountsMigratedBalances> =} callback
4326
- **/
4327
- rcMigratedBalanceArchive: GenericStorageQuery<() => PalletRcMigratorAccountsMigratedBalances>;
4328
-
4329
- /**
4330
- * The pending XCM messages.
4331
- *
4332
- * Contains data messages that have been sent to the Asset Hub but not yet confirmed.
4333
- *
4334
- * Unconfirmed messages can be resent by calling the [`Pallet::resend_xcm`] function.
4335
- *
4336
- * @param {[bigint, H256]} arg
4337
- * @param {Callback<StagingXcmV5Xcm | undefined> =} callback
4338
- **/
4339
- pendingXcmMessages: GenericStorageQuery<(arg: [bigint, H256]) => StagingXcmV5Xcm | undefined, [bigint, H256]>;
4340
-
4341
- /**
4342
- * Counter for the related counted storage map
4343
- *
4344
- * @param {Callback<number> =} callback
4345
- **/
4346
- counterForPendingXcmMessages: GenericStorageQuery<() => number>;
4347
-
4348
- /**
4349
- * Accounts that use the proxy pallet to delegate permissions and have no nonce.
4350
- *
4351
- * Boolean value is whether they have been migrated to the Asset Hub. Needed for idempotency.
4352
- *
4353
- * @param {AccountId32Like} arg
4354
- * @param {Callback<boolean | undefined> =} callback
4355
- **/
4356
- pureProxyCandidatesMigrated: GenericStorageQuery<(arg: AccountId32Like) => boolean | undefined, AccountId32>;
4357
-
4358
- /**
4359
- * The pending XCM response queries and their XCM hash referencing the message in the
4360
- * [`PendingXcmMessages`] storage.
4361
- *
4362
- * The `QueryId` is the identifier from the [`pallet_xcm`] query handler registry. The XCM
4363
- * pallet will notify about the status of the message by calling the
4364
- * [`Pallet::receive_query_response`] function with the `QueryId` and the
4365
- * response.
4366
- *
4367
- * @param {bigint} arg
4368
- * @param {Callback<H256 | undefined> =} callback
4369
- **/
4370
- pendingXcmQueries: GenericStorageQuery<(arg: bigint) => H256 | undefined, bigint>;
4371
-
4372
- /**
4373
- * Manual override for `type UnprocessedMsgBuffer: Get<u32>`. Look there for docs.
4374
- *
4375
- * @param {Callback<number | undefined> =} callback
4376
- **/
4377
- unprocessedMsgBuffer: GenericStorageQuery<() => number | undefined>;
4378
-
4379
- /**
4380
- * The priority of the Asset Hub UMP queue during migration.
4381
- *
4382
- * Controls how the Asset Hub UMP (Upward Message Passing) queue is processed relative to other
4383
- * queues during the migration process. This helps ensure timely processing of migration
4384
- * messages. The default priority pattern is defined in the pallet configuration, but can be
4385
- * overridden by a storage value of this type.
4386
- *
4387
- * @param {Callback<PalletRcMigratorQueuePriority> =} callback
4388
- **/
4389
- ahUmpQueuePriorityConfig: GenericStorageQuery<() => PalletRcMigratorQueuePriority>;
4390
-
4391
- /**
4392
- * An optional account id of a manager.
4393
- *
4394
- * This account id has similar privileges to [`Config::AdminOrigin`] except that it
4395
- * can not set the manager account id via `set_manager` call.
4396
- *
4397
- * @param {Callback<AccountId32 | undefined> =} callback
4398
- **/
4399
- manager: GenericStorageQuery<() => AccountId32 | undefined>;
4400
-
4401
- /**
4402
- * An optional account id of a canceller.
4403
- *
4404
- * This account id can only stop scheduled migration.
4405
- *
4406
- * @param {Callback<AccountId32 | undefined> =} callback
4407
- **/
4408
- canceller: GenericStorageQuery<() => AccountId32 | undefined>;
4409
-
4410
- /**
4411
- * The block number at which the migration began and the pallet's extrinsics were locked.
4412
- *
4413
- * This value is set when entering the `WaitingForAh` stage, i.e., when
4414
- * `RcMigrationStage::is_ongoing()` becomes `true`.
4282
+ * The block number when the migration started.
4415
4283
  *
4416
4284
  * @param {Callback<number | undefined> =} callback
4417
4285
  **/
4418
4286
  migrationStartBlock: GenericStorageQuery<() => number | undefined>;
4419
4287
 
4420
4288
  /**
4421
- * Block number when migration finished and extrinsics were unlocked.
4422
- *
4423
- * This is set when entering the `MigrationDone` stage hence when
4424
- * `RcMigrationStage::is_finished()` becomes `true`.
4289
+ * The block number when the migration ended.
4425
4290
  *
4426
4291
  * @param {Callback<number | undefined> =} callback
4427
4292
  **/
4428
4293
  migrationEndBlock: GenericStorageQuery<() => number | undefined>;
4429
4294
 
4430
- /**
4431
- * The duration of the pre migration warm-up period.
4432
- *
4433
- * This is the duration of the warm-up period before the data migration starts. During this
4434
- * period, the migration will be in ongoing state and the concerned extrinsics will be locked.
4435
- *
4436
- * @param {Callback<FrameSupportScheduleDispatchTime | undefined> =} callback
4437
- **/
4438
- warmUpPeriod: GenericStorageQuery<() => FrameSupportScheduleDispatchTime | undefined>;
4439
-
4440
- /**
4441
- * The duration of the post migration cool-off period.
4442
- *
4443
- * This is the duration of the cool-off period after the data migration is finished. During
4444
- * this period, the migration will be still in ongoing state and the concerned extrinsics will
4445
- * be locked.
4446
- *
4447
- * @param {Callback<FrameSupportScheduleDispatchTime | undefined> =} callback
4448
- **/
4449
- coolOffPeriod: GenericStorageQuery<() => FrameSupportScheduleDispatchTime | undefined>;
4450
-
4451
- /**
4452
- * The migration settings.
4453
- *
4454
- * @param {Callback<PalletRcMigratorMigrationSettings | undefined> =} callback
4455
- **/
4456
- settings: GenericStorageQuery<() => PalletRcMigratorMigrationSettings | undefined>;
4457
-
4458
- /**
4459
- * The multisig AccountIDs that votes to execute a specific call.
4460
- *
4461
- * @param {StagingKusamaRuntimeRuntimeCallLike} arg
4462
- * @param {Callback<Array<AccountId32>> =} callback
4463
- **/
4464
- managerMultisigs: GenericStorageQuery<
4465
- (arg: StagingKusamaRuntimeRuntimeCallLike) => Array<AccountId32>,
4466
- StagingKusamaRuntimeRuntimeCall
4467
- >;
4468
-
4469
- /**
4470
- * The current round of the multisig voting.
4471
- *
4472
- * Votes are only valid for the current round.
4473
- *
4474
- * @param {Callback<number> =} callback
4475
- **/
4476
- managerMultisigRound: GenericStorageQuery<() => number>;
4477
-
4478
- /**
4479
- * How often each participant voted in the current round.
4480
- *
4481
- * Will be cleared at the end of each round.
4482
- *
4483
- * @param {AccountId32Like} arg
4484
- * @param {Callback<number> =} callback
4485
- **/
4486
- managerVotesInCurrentRound: GenericStorageQuery<(arg: AccountId32Like) => number, AccountId32>;
4487
-
4488
4295
  /**
4489
4296
  * Generic pallet storage query
4490
4297
  **/
@@ -10,8 +10,8 @@ import type {
10
10
  UncheckedExtrinsic,
11
11
  H256,
12
12
  BitSequence,
13
- Bytes,
14
13
  BytesLike,
14
+ Bytes,
15
15
  AccountId32Like,
16
16
  AccountId32,
17
17
  } from 'dedot/codecs';
@@ -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,
@@ -644,6 +647,48 @@ export interface RuntimeApis extends GenericRuntimeApis {
644
647
  **/
645
648
  schedulingLookahead: GenericRuntimeApiMethod<() => Promise<number>>;
646
649
 
650
+ /**
651
+ * Retrieve paraids at relay parent
652
+ *
653
+ * @callname: ParachainHost_para_ids
654
+ **/
655
+ paraIds: GenericRuntimeApiMethod<() => Promise<Array<PolkadotParachainPrimitivesPrimitivesId>>>;
656
+
657
+ /**
658
+ * Returns a list of validators that lost a past session dispute and need to be slashed.
659
+ *
660
+ * @callname: ParachainHost_unapplied_slashes_v2
661
+ **/
662
+ unappliedSlashesV2: GenericRuntimeApiMethod<
663
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV9SlashingPendingSlashes]>>
664
+ >;
665
+
666
+ /**
667
+ * Retrieve the maximum relay parent session age allowed for parachain blocks.
668
+ *
669
+ * @callname: ParachainHost_max_relay_parent_session_age
670
+ **/
671
+ maxRelayParentSessionAge: GenericRuntimeApiMethod<() => Promise<number>>;
672
+
673
+ /**
674
+ * Look up relay parent info for a block that is an **ancestor** of the block
675
+ * this API is called at. Returns `None` if the relay parent is not found
676
+ * in the allowed relay parents for the given session.
677
+ *
678
+ * NOTE: A block is not in its own `AllowedRelayParents` storage (it gets
679
+ * added during the next block's inherent). Querying a block about itself
680
+ * will always return `None`. Use the node-side `check_relay_parent_session`
681
+ * utility for a general-purpose check that handles both the self and
682
+ * ancestor cases.
683
+ *
684
+ * @callname: ParachainHost_ancestor_relay_parent_info
685
+ * @param {number} session_index
686
+ * @param {H256} relay_parent
687
+ **/
688
+ ancestorRelayParentInfo: GenericRuntimeApiMethod<
689
+ (sessionIndex: number, relayParent: H256) => Promise<PolkadotPrimitivesVstagingRelayParentInfo | undefined>
690
+ >;
691
+
647
692
  /**
648
693
  * Generic runtime api call
649
694
  **/
@@ -1055,9 +1100,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
1055
1100
  * Returns the concatenated SCALE encoded public keys.
1056
1101
  *
1057
1102
  * @callname: SessionKeys_generate_session_keys
1103
+ * @param {BytesLike} owner
1058
1104
  * @param {BytesLike | undefined} seed
1059
1105
  **/
1060
- generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
1106
+ generateSessionKeys: GenericRuntimeApiMethod<
1107
+ (owner: BytesLike, seed?: BytesLike | undefined) => Promise<SpSessionRuntimeApiOpaqueGeneratedSessionKeys>
1108
+ >;
1061
1109
 
1062
1110
  /**
1063
1111
  * 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
  **/