@@ -12,6 +12,7 @@ import type {
1212 BytesLike ,
1313 FixedBytes ,
1414 H160 ,
15+ U256 ,
1516 Perbill ,
1617 Percent ,
1718} from 'dedot/codecs' ;
@@ -22,6 +23,7 @@ import type {
2223 FrameSystemLastRuntimeUpgradeInfo ,
2324 FrameSystemCodeUpgradeAuthorization ,
2425 SpWeightsWeightV2Weight ,
26+ CumulusPalletParachainSystemBlockWeightBlockWeightMode ,
2527 CumulusPalletParachainSystemUnincludedSegmentAncestor ,
2628 CumulusPalletParachainSystemUnincludedSegmentSegmentTracker ,
2729 PolkadotPrimitivesV9PersistedValidationData ,
@@ -34,6 +36,7 @@ import type {
3436 PolkadotParachainPrimitivesPrimitivesId ,
3537 CumulusPalletParachainSystemParachainInherentInboundMessageId ,
3638 PolkadotCorePrimitivesOutboundHrmpMessage ,
39+ CumulusPalletParachainSystemPoVMessages ,
3740 PalletMigrationsMigrationCursor ,
3841 PalletPreimageOldRequestStatus ,
3942 PalletPreimageRequestStatus ,
@@ -270,6 +273,13 @@ export interface ChainStorage extends GenericChainStorage {
270273 **/
271274 lastRuntimeUpgrade : GenericStorageQuery < ( ) => FrameSystemLastRuntimeUpgradeInfo | undefined > ;
272275
276+ /**
277+ * Number of blocks till the pending code upgrade is applied.
278+ *
279+ * @param {Callback<number | undefined> = } callback
280+ **/
281+ blocksTillUpgrade : GenericStorageQuery < ( ) => number | undefined > ;
282+
273283 /**
274284 * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
275285 *
@@ -321,6 +331,27 @@ export interface ChainStorage extends GenericChainStorage {
321331 * Pallet `ParachainSystem`'s storage queries
322332 **/
323333 parachainSystem : {
334+ /**
335+ * The current block weight mode.
336+ *
337+ * This is used to determine what is the maximum allowed block weight, for more information see
338+ * [`block_weight`].
339+ *
340+ * Killed in [`Self::on_initialize`] and set by the [`block_weight`] logic.
341+ *
342+ * @param {Callback<CumulusPalletParachainSystemBlockWeightBlockWeightMode | undefined> = } callback
343+ **/
344+ blockWeightMode : GenericStorageQuery < ( ) => CumulusPalletParachainSystemBlockWeightBlockWeightMode | undefined > ;
345+
346+ /**
347+ * The core count available to the parachain in the previous block.
348+ *
349+ * This is mainly used for offchain functionality to calculate the correct target block weight.
350+ *
351+ * @param {Callback<number | undefined> = } callback
352+ **/
353+ previousCoreCount : GenericStorageQuery < ( ) => number | undefined > ;
354+
324355 /**
325356 * Latest included block descendants the runtime accepted. In other words, these are
326357 * ancestors of the currently executing block which have not been included in the observed
@@ -349,8 +380,8 @@ export interface ChainStorage extends GenericChainStorage {
349380 * applied.
350381 *
351382 * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
352- * [`:code `][sp_core::storage::well_known_keys::CODE ] which will result the next block process
353- * with the new validation code. This concludes the upgrade process.
383+ * [`:pending_code `][sp_core::storage::well_known_keys::PENDING_CODE ] which will result the
384+ * next block to be processed with the new validation code. This concludes the upgrade process.
354385 *
355386 * @param {Callback<Bytes> = } callback
356387 **/
@@ -589,6 +620,15 @@ export interface ChainStorage extends GenericChainStorage {
589620 **/
590621 customValidationHeadData : GenericStorageQuery < ( ) => Bytes | undefined > ;
591622
623+ /**
624+ * Tracks cumulative `UMP` and `HRMP` messages sent across blocks in the current `PoV`.
625+ *
626+ * Across different candidates/PoVs the budgets are tracked by [`AggregatedUnincludedSegment`].
627+ *
628+ * @param {Callback<CumulusPalletParachainSystemPoVMessages | undefined> = } callback
629+ **/
630+ poVMessagesTracker : GenericStorageQuery < ( ) => CumulusPalletParachainSystemPoVMessages | undefined > ;
631+
592632 /**
593633 * Generic pallet storage query
594634 **/
@@ -1040,6 +1080,17 @@ export interface ChainStorage extends GenericChainStorage {
10401080 [ SpCoreCryptoKeyTypeId , Bytes ]
10411081 > ;
10421082
1083+ /**
1084+ * Accounts whose keys were set via `SessionInterface` (external path) without
1085+ * incrementing the consumer reference or placing a key deposit. `do_purge_keys`
1086+ * only decrements consumers for accounts that were registered through the local
1087+ * session pallet.
1088+ *
1089+ * @param {AccountId32Like } arg
1090+ * @param {Callback<[] | undefined> = } callback
1091+ **/
1092+ externallySetKeys : GenericStorageQuery < ( arg : AccountId32Like ) => [ ] | undefined , AccountId32 > ;
1093+
10431094 /**
10441095 * Generic pallet storage query
10451096 **/
@@ -2278,6 +2329,65 @@ export interface ChainStorage extends GenericChainStorage {
22782329 **/
22792330 [ storage : string ] : GenericStorageQuery ;
22802331 } ;
2332+ /**
2333+ * Pallet `AssetsPrecompiles`'s storage queries
2334+ **/
2335+ assetsPrecompiles : {
2336+ /**
2337+ * The next available asset index for foreign assets.
2338+ * This is incremented each time a new foreign asset mapping is created.
2339+ *
2340+ * @param {Callback<number> = } callback
2341+ **/
2342+ nextAssetIndex : GenericStorageQuery < ( ) => number > ;
2343+
2344+ /**
2345+ * Mapping an asset index (derived from the precompile address) to a `ForeignAssetId`.
2346+ *
2347+ * @param {number } arg
2348+ * @param {Callback<StagingXcmV5Location | undefined> = } callback
2349+ **/
2350+ assetIndexToForeignAssetId : GenericStorageQuery < ( arg : number ) => StagingXcmV5Location | undefined , number > ;
2351+
2352+ /**
2353+ * Mapping a `ForeignAssetId` to an asset index (used for deriving precompile addresses).
2354+ *
2355+ * @param {StagingXcmV5Location } arg
2356+ * @param {Callback<number | undefined> = } callback
2357+ **/
2358+ foreignAssetIdToAssetIndex : GenericStorageQuery <
2359+ ( arg : StagingXcmV5Location ) => number | undefined ,
2360+ StagingXcmV5Location
2361+ > ;
2362+
2363+ /**
2364+ * Generic pallet storage query
2365+ **/
2366+ [ storage : string ] : GenericStorageQuery ;
2367+ } ;
2368+ /**
2369+ * Pallet `AssetsPrecompilesPermit`'s storage queries
2370+ **/
2371+ assetsPrecompilesPermit : {
2372+ /**
2373+ * Nonces for permit signatures.
2374+ * Mapping: (verifying_contract, owner_address) => nonce
2375+ *
2376+ * Uses Blake2_128Concat for the first key to prevent storage collision attacks
2377+ * when the verifying_contract address could be influenced by an attacker.
2378+ *
2379+ * Note: EIP-2612 specifies uint256 nonce. We store as U256 for compatibility.
2380+ *
2381+ * @param {[H160, H160] } arg
2382+ * @param {Callback<U256> = } callback
2383+ **/
2384+ nonces : GenericStorageQuery < ( arg : [ H160 , H160 ] ) => U256 , [ H160 , H160 ] > ;
2385+
2386+ /**
2387+ * Generic pallet storage query
2388+ **/
2389+ [ storage : string ] : GenericStorageQuery ;
2390+ } ;
22812391 /**
22822392 * Pallet `StateTrieMigration`'s storage queries
22832393 **/
0 commit comments