@dedot/chaintypes 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,6 @@ import type {
15
15
  BytesLike,
16
16
  EthereumAddress,
17
17
  EthereumAddressLike,
18
- Data,
19
18
  FixedArray,
20
19
  } from 'dedot/codecs';
21
20
  import type {
@@ -25,6 +24,7 @@ import type {
25
24
  FrameSystemLastRuntimeUpgradeInfo,
26
25
  FrameSystemCodeUpgradeAuthorization,
27
26
  PalletSchedulerScheduled,
27
+ PalletSchedulerRetryConfig,
28
28
  PalletPreimageOldRequestStatus,
29
29
  PalletPreimageRequestStatus,
30
30
  SpConsensusBabeAppPublic,
@@ -35,8 +35,8 @@ import type {
35
35
  PalletBalancesAccountData,
36
36
  PalletBalancesBalanceLock,
37
37
  PalletBalancesReserveData,
38
- PalletBalancesIdAmount,
39
- PalletBalancesIdAmountRuntimeFreezeReason,
38
+ FrameSupportTokensMiscIdAmount,
39
+ FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
40
40
  PalletTransactionPaymentReleases,
41
41
  PalletStakingStakingLedger,
42
42
  PalletStakingRewardDestination,
@@ -65,9 +65,6 @@ import type {
65
65
  PolkadotRuntimeCommonClaimsStatementKind,
66
66
  PalletVestingVestingInfo,
67
67
  PalletVestingReleases,
68
- PalletIdentityRegistration,
69
- PalletIdentityRegistrarInfo,
70
- PalletIdentityAuthorityProperties,
71
68
  PalletProxyProxyDefinition,
72
69
  PalletProxyAnnouncement,
73
70
  PalletMultisigMultisig,
@@ -88,24 +85,22 @@ import type {
88
85
  PalletNominationPoolsClaimPermission,
89
86
  PalletFastUnstakeUnstakeRequest,
90
87
  PolkadotRuntimeParachainsConfigurationHostConfiguration,
91
- PolkadotPrimitivesV6ValidatorIndex,
92
- PolkadotPrimitivesV6ValidatorAppPublic,
88
+ PolkadotPrimitivesV7ValidatorIndex,
89
+ PolkadotPrimitivesV7ValidatorAppPublic,
93
90
  PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
94
- PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord,
95
91
  PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
96
92
  PolkadotParachainPrimitivesPrimitivesId,
97
- PolkadotPrimitivesV6CandidateCommitments,
98
- PolkadotPrimitivesV6ScrapedOnChainVotes,
93
+ PolkadotPrimitivesV7ScrapedOnChainVotes,
99
94
  PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
100
- PolkadotPrimitivesV6CoreIndex,
95
+ PolkadotPrimitivesV7CoreIndex,
101
96
  PolkadotRuntimeParachainsSchedulerPalletParasEntry,
102
97
  PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
103
98
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
104
99
  PolkadotRuntimeParachainsParasParaLifecycle,
105
100
  PolkadotParachainPrimitivesPrimitivesHeadData,
106
101
  PolkadotRuntimeParachainsParasParaPastCodeMeta,
107
- PolkadotPrimitivesV6UpgradeGoAhead,
108
- PolkadotPrimitivesV6UpgradeRestriction,
102
+ PolkadotPrimitivesV7UpgradeGoAhead,
103
+ PolkadotPrimitivesV7UpgradeRestriction,
109
104
  PolkadotRuntimeParachainsParasParaGenesisArgs,
110
105
  PolkadotParachainPrimitivesPrimitivesValidationCode,
111
106
  PolkadotRuntimeParachainsInitializerBufferedSessionChange,
@@ -114,12 +109,17 @@ import type {
114
109
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
115
110
  PolkadotRuntimeParachainsHrmpHrmpChannel,
116
111
  PolkadotCorePrimitivesInboundHrmpMessage,
117
- PolkadotPrimitivesV6AssignmentAppPublic,
118
- PolkadotPrimitivesV6SessionInfo,
119
- PolkadotPrimitivesV6ExecutorParams,
120
- PolkadotPrimitivesV6DisputeState,
112
+ PolkadotPrimitivesV7AssignmentAppPublic,
113
+ PolkadotPrimitivesV7SessionInfo,
114
+ PolkadotPrimitivesV7ExecutorParams,
115
+ PolkadotPrimitivesV7DisputeState,
121
116
  PolkadotCorePrimitivesCandidateHash,
122
- PolkadotPrimitivesV6SlashingPendingSlashes,
117
+ PolkadotPrimitivesV7SlashingPendingSlashes,
118
+ PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount,
119
+ PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType,
120
+ BinaryHeapEnqueuedOrder,
121
+ PolkadotRuntimeParachainsAssignerCoretimeSchedule,
122
+ PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
123
123
  PolkadotRuntimeCommonParasRegistrarParaInfo,
124
124
  PolkadotRuntimeCommonCrowdloanFundInfo,
125
125
  PalletStateTrieMigrationMigrationTask,
@@ -130,6 +130,7 @@ import type {
130
130
  PalletXcmVersionMigrationStage,
131
131
  PalletXcmRemoteLockedFungibleRecord,
132
132
  XcmVersionedAssetId,
133
+ StagingXcmV4Xcm,
133
134
  PalletMessageQueueBookState,
134
135
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
135
136
  PalletMessageQueuePage,
@@ -158,6 +159,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
158
159
  **/
159
160
  extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
160
161
 
162
+ /**
163
+ * Whether all inherents have been applied.
164
+ *
165
+ * @param {Callback<boolean> =} callback
166
+ **/
167
+ inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
168
+
161
169
  /**
162
170
  * The current weight for the block.
163
171
  *
@@ -305,6 +313,18 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
305
313
  **/
306
314
  agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
307
315
 
316
+ /**
317
+ * Retry configurations for items to be executed, indexed by task address.
318
+ *
319
+ * @param {[number, number]} arg
320
+ * @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
321
+ **/
322
+ retries: GenericStorageQuery<
323
+ Rv,
324
+ (arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
325
+ [number, number]
326
+ >;
327
+
308
328
  /**
309
329
  * Lookup from a name to the block number and index of the task.
310
330
  *
@@ -617,6 +637,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
617
637
  * Any liquidity locks on some account balances.
618
638
  * NOTE: Should only be accessed when setting, changing and freeing a lock.
619
639
  *
640
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
641
+ *
620
642
  * @param {AccountId32Like} arg
621
643
  * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
622
644
  **/
@@ -625,6 +647,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
625
647
  /**
626
648
  * Named reserves on some account balances.
627
649
  *
650
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
651
+ *
628
652
  * @param {AccountId32Like} arg
629
653
  * @param {Callback<Array<PalletBalancesReserveData>> =} callback
630
654
  **/
@@ -634,19 +658,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
634
658
  * Holds on account balances.
635
659
  *
636
660
  * @param {AccountId32Like} arg
637
- * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
661
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
638
662
  **/
639
- holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
663
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
640
664
 
641
665
  /**
642
666
  * Freeze locks on account balances.
643
667
  *
644
668
  * @param {AccountId32Like} arg
645
- * @param {Callback<Array<PalletBalancesIdAmountRuntimeFreezeReason>> =} callback
669
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
646
670
  **/
647
671
  freezes: GenericStorageQuery<
648
672
  Rv,
649
- (arg: AccountId32Like) => Array<PalletBalancesIdAmountRuntimeFreezeReason>,
673
+ (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
650
674
  AccountId32
651
675
  >;
652
676
 
@@ -839,6 +863,26 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
839
863
  **/
840
864
  counterForNominators: GenericStorageQuery<Rv, () => number>;
841
865
 
866
+ /**
867
+ * Stakers whose funds are managed by other pallets.
868
+ *
869
+ * This pallet does not apply any locks on them, therefore they are only virtually bonded. They
870
+ * are expected to be keyless accounts and hence should not be allowed to mutate their ledger
871
+ * directly via this pallet. Instead, these accounts are managed by other pallets and accessed
872
+ * via low level apis. We keep track of them to do minimal integrity checks.
873
+ *
874
+ * @param {AccountId32Like} arg
875
+ * @param {Callback<[] | undefined> =} callback
876
+ **/
877
+ virtualStakers: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
878
+
879
+ /**
880
+ * Counter for the related counted storage map
881
+ *
882
+ * @param {Callback<number> =} callback
883
+ **/
884
+ counterForVirtualStakers: GenericStorageQuery<Rv, () => number>;
885
+
842
886
  /**
843
887
  * The maximum nominator count before we stop allowing new validators to join.
844
888
  *
@@ -1025,6 +1069,15 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1025
1069
  **/
1026
1070
  forceEra: GenericStorageQuery<Rv, () => PalletStakingForcing>;
1027
1071
 
1072
+ /**
1073
+ * Maximum staked rewards, i.e. the percentage of the era inflation that
1074
+ * is used for stake rewards.
1075
+ * See [Era payout](./index.html#era-payout).
1076
+ *
1077
+ * @param {Callback<Percent | undefined> =} callback
1078
+ **/
1079
+ maxStakedRewards: GenericStorageQuery<Rv, () => Percent | undefined>;
1080
+
1028
1081
  /**
1029
1082
  * The percentage of the slash that is distributed to reporters.
1030
1083
  *
@@ -1120,19 +1173,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1120
1173
  currentPlannedSession: GenericStorageQuery<Rv, () => number>;
1121
1174
 
1122
1175
  /**
1123
- * Indices of validators that have offended in the active era and whether they are currently
1124
- * disabled.
1176
+ * Indices of validators that have offended in the active era. The offenders are disabled for a
1177
+ * whole era. For this reason they are kept here - only staking pallet knows about eras. The
1178
+ * implementor of [`DisablingStrategy`] defines if a validator should be disabled which
1179
+ * implicitly means that the implementor also controls the max number of disabled validators.
1125
1180
  *
1126
- * This value should be a superset of disabled validators since not all offences lead to the
1127
- * validator being disabled (if there was no slash). This is needed to track the percentage of
1128
- * validators that have offended in the current era, ensuring a new era is forced if
1129
- * `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
1130
- * whether a given validator has previously offended using binary search. It gets cleared when
1131
- * the era ends.
1181
+ * The vec is always kept sorted so that we can find whether a given validator has previously
1182
+ * offended using binary search.
1132
1183
  *
1133
- * @param {Callback<Array<[number, boolean]>> =} callback
1184
+ * @param {Callback<Array<number>> =} callback
1134
1185
  **/
1135
- offendingValidators: GenericStorageQuery<Rv, () => Array<[number, boolean]>>;
1186
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
1136
1187
 
1137
1188
  /**
1138
1189
  * The threshold for when users can start calling `chill_other` for other validators /
@@ -1607,98 +1658,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1607
1658
  **/
1608
1659
  [storage: string]: GenericStorageQuery<Rv>;
1609
1660
  };
1610
- /**
1611
- * Pallet `Identity`'s storage queries
1612
- **/
1613
- identity: {
1614
- /**
1615
- * Information that is pertinent to identify the entity behind an account. First item is the
1616
- * registration, second is the account's primary username.
1617
- *
1618
- * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1619
- *
1620
- * @param {AccountId32Like} arg
1621
- * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
1622
- **/
1623
- identityOf: GenericStorageQuery<
1624
- Rv,
1625
- (arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
1626
- AccountId32
1627
- >;
1628
-
1629
- /**
1630
- * The super-identity of an alternative "sub" identity together with its name, within that
1631
- * context. If the account is not some other account's sub-identity, then just `None`.
1632
- *
1633
- * @param {AccountId32Like} arg
1634
- * @param {Callback<[AccountId32, Data] | undefined> =} callback
1635
- **/
1636
- superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
1637
-
1638
- /**
1639
- * Alternative "sub" identities of this account.
1640
- *
1641
- * The first item is the deposit, the second is a vector of the accounts.
1642
- *
1643
- * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1644
- *
1645
- * @param {AccountId32Like} arg
1646
- * @param {Callback<[bigint, Array<AccountId32>]> =} callback
1647
- **/
1648
- subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
1649
-
1650
- /**
1651
- * The set of registrars. Not expected to get very big as can only be added through a
1652
- * special origin (likely a council motion).
1653
- *
1654
- * The index into this can be cast to `RegistrarIndex` to get a valid value.
1655
- *
1656
- * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1657
- **/
1658
- registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
1659
-
1660
- /**
1661
- * A map of the accounts who are authorized to grant usernames.
1662
- *
1663
- * @param {AccountId32Like} arg
1664
- * @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
1665
- **/
1666
- usernameAuthorities: GenericStorageQuery<
1667
- Rv,
1668
- (arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
1669
- AccountId32
1670
- >;
1671
-
1672
- /**
1673
- * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
1674
- * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
1675
- *
1676
- * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
1677
- * primary username.
1678
- *
1679
- * @param {BytesLike} arg
1680
- * @param {Callback<AccountId32 | undefined> =} callback
1681
- **/
1682
- accountOfUsername: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
1683
-
1684
- /**
1685
- * Usernames that an authority has granted, but that the account controller has not confirmed
1686
- * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
1687
- * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
1688
- * [`Call::accept_username`].
1689
- *
1690
- * First tuple item is the account and second is the acceptance deadline.
1691
- *
1692
- * @param {BytesLike} arg
1693
- * @param {Callback<[AccountId32, number] | undefined> =} callback
1694
- **/
1695
- pendingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
1696
-
1697
- /**
1698
- * Generic pallet storage query
1699
- **/
1700
- [storage: string]: GenericStorageQuery<Rv>;
1701
- };
1702
1661
  /**
1703
1662
  * Pallet `Proxy`'s storage queries
1704
1663
  **/
@@ -2110,7 +2069,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2110
2069
 
2111
2070
  /**
2112
2071
  * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
2113
- * claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
2072
+ * claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
2114
2073
  *
2115
2074
  * @param {number} arg
2116
2075
  * @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
@@ -2165,8 +2124,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2165
2124
  /**
2166
2125
  * A reverse lookup from the pool's account id to its id.
2167
2126
  *
2168
- * This is only used for slashing. In all other instances, the pool id is used, and the
2169
- * accounts are deterministically derived from it.
2127
+ * This is only used for slashing and on automatic withdraw update. In all other instances, the
2128
+ * pool id is used, and the accounts are deterministically derived from it.
2170
2129
  *
2171
2130
  * @param {AccountId32Like} arg
2172
2131
  * @param {Callback<number | undefined> =} callback
@@ -2301,17 +2260,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2301
2260
  * All the validators actively participating in parachain consensus.
2302
2261
  * Indices are into the broader validator set.
2303
2262
  *
2304
- * @param {Callback<Array<PolkadotPrimitivesV6ValidatorIndex>> =} callback
2263
+ * @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex>> =} callback
2305
2264
  **/
2306
- activeValidatorIndices: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV6ValidatorIndex>>;
2265
+ activeValidatorIndices: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorIndex>>;
2307
2266
 
2308
2267
  /**
2309
2268
  * The parachain attestation keys of the validators actively participating in parachain
2310
2269
  * consensus. This should be the same length as `ActiveValidatorIndices`.
2311
2270
  *
2312
- * @param {Callback<Array<PolkadotPrimitivesV6ValidatorAppPublic>> =} callback
2271
+ * @param {Callback<Array<PolkadotPrimitivesV7ValidatorAppPublic>> =} callback
2313
2272
  **/
2314
- activeValidatorKeys: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV6ValidatorAppPublic>>;
2273
+ activeValidatorKeys: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorAppPublic>>;
2315
2274
 
2316
2275
  /**
2317
2276
  * All allowed relay-parents.
@@ -2330,42 +2289,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2330
2289
  **/
2331
2290
  paraInclusion: {
2332
2291
  /**
2333
- * The latest bitfield for each validator, referred to by their index in the validator set.
2334
- *
2335
- * @param {PolkadotPrimitivesV6ValidatorIndex} arg
2336
- * @param {Callback<PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord | undefined> =} callback
2337
- **/
2338
- availabilityBitfields: GenericStorageQuery<
2339
- Rv,
2340
- (
2341
- arg: PolkadotPrimitivesV6ValidatorIndex,
2342
- ) => PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord | undefined,
2343
- PolkadotPrimitivesV6ValidatorIndex
2344
- >;
2345
-
2346
- /**
2347
- * Candidates pending availability by `ParaId`.
2292
+ * Candidates pending availability by `ParaId`. They form a chain starting from the latest
2293
+ * included head of the para.
2294
+ * Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage
2295
+ * would otherwise have the exact same prefix which could cause undefined behaviour when doing
2296
+ * the migration.
2348
2297
  *
2349
2298
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2350
- * @param {Callback<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability | undefined> =} callback
2299
+ * @param {Callback<Array<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability> | undefined> =} callback
2351
2300
  **/
2352
- pendingAvailability: GenericStorageQuery<
2301
+ v1: GenericStorageQuery<
2353
2302
  Rv,
2354
2303
  (
2355
2304
  arg: PolkadotParachainPrimitivesPrimitivesId,
2356
- ) => PolkadotRuntimeParachainsInclusionCandidatePendingAvailability | undefined,
2357
- PolkadotParachainPrimitivesPrimitivesId
2358
- >;
2359
-
2360
- /**
2361
- * The commitments of candidates pending availability, by `ParaId`.
2362
- *
2363
- * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2364
- * @param {Callback<PolkadotPrimitivesV6CandidateCommitments | undefined> =} callback
2365
- **/
2366
- pendingAvailabilityCommitments: GenericStorageQuery<
2367
- Rv,
2368
- (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV6CandidateCommitments | undefined,
2305
+ ) => Array<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability> | undefined,
2369
2306
  PolkadotParachainPrimitivesPrimitivesId
2370
2307
  >;
2371
2308
 
@@ -2393,9 +2330,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2393
2330
  /**
2394
2331
  * Scraped on chain data for extracting resolved disputes as well as backing votes.
2395
2332
  *
2396
- * @param {Callback<PolkadotPrimitivesV6ScrapedOnChainVotes | undefined> =} callback
2333
+ * @param {Callback<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined> =} callback
2397
2334
  **/
2398
- onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6ScrapedOnChainVotes | undefined>;
2335
+ onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>;
2399
2336
 
2400
2337
  /**
2401
2338
  * Generic pallet storage query
@@ -2415,15 +2352,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2415
2352
  * multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
2416
2353
  * upper bound at 10k.
2417
2354
  *
2418
- * @param {Callback<Array<Array<PolkadotPrimitivesV6ValidatorIndex>>> =} callback
2355
+ * @param {Callback<Array<Array<PolkadotPrimitivesV7ValidatorIndex>>> =} callback
2419
2356
  **/
2420
- validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV6ValidatorIndex>>>;
2357
+ validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
2421
2358
 
2422
2359
  /**
2423
- * One entry for each availability core. Entries are `None` if the core is not currently
2424
- * occupied. Can be temporarily `Some` if scheduled but not occupied.
2425
- * The i'th parachain belongs to the i'th core, with the remaining cores all being
2426
- * parathread-multiplexers.
2360
+ * One entry for each availability core. The i'th parachain belongs to the i'th core, with the
2361
+ * remaining cores all being on demand parachain multiplexers.
2427
2362
  *
2428
2363
  * Bounded by the maximum of either of these two values:
2429
2364
  * * The number of parachains and parathread multiplexers
@@ -2448,16 +2383,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2448
2383
 
2449
2384
  /**
2450
2385
  * One entry for each availability core. The `VecDeque` represents the assignments to be
2451
- * scheduled on that core. `None` is used to signal to not schedule the next para of the core
2452
- * as there is one currently being scheduled. Not using `None` here would overwrite the
2453
- * `CoreState` in the runtime API. The value contained here will not be valid after the end of
2454
- * a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
2386
+ * scheduled on that core. The value contained here will not be valid after the end of
2387
+ * a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
2455
2388
  *
2456
- * @param {Callback<Array<[PolkadotPrimitivesV6CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2389
+ * @param {Callback<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2457
2390
  **/
2458
2391
  claimQueue: GenericStorageQuery<
2459
2392
  Rv,
2460
- () => Array<[PolkadotPrimitivesV6CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2393
+ () => Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2461
2394
  >;
2462
2395
 
2463
2396
  /**
@@ -2599,7 +2532,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2599
2532
  pastCodePruning: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2600
2533
 
2601
2534
  /**
2602
- * The block number at which the planned code change is expected for a para.
2535
+ * The block number at which the planned code change is expected for a parachain.
2536
+ *
2603
2537
  * The change will be applied after the first parablock for this ID included which executes
2604
2538
  * in the context of a relay chain block with a number >= `expected_at`.
2605
2539
  *
@@ -2612,6 +2546,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2612
2546
  PolkadotParachainPrimitivesPrimitivesId
2613
2547
  >;
2614
2548
 
2549
+ /**
2550
+ * The list of upcoming future code upgrades.
2551
+ *
2552
+ * Each item is a pair of the parachain and the expected block at which the upgrade should be
2553
+ * applied. The upgrade will be applied at the given relay chain block. In contrast to
2554
+ * [`FutureCodeUpgrades`] this code upgrade will be applied regardless the parachain making any
2555
+ * progress or not.
2556
+ *
2557
+ * Ordered ascending by block number.
2558
+ *
2559
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
2560
+ **/
2561
+ futureCodeUpgradesAt: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2562
+
2615
2563
  /**
2616
2564
  * The actual future code hash of a para.
2617
2565
  *
@@ -2641,11 +2589,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2641
2589
  * the format will require migration of parachains.
2642
2590
  *
2643
2591
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2644
- * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
2592
+ * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
2645
2593
  **/
2646
2594
  upgradeGoAheadSignal: GenericStorageQuery<
2647
2595
  Rv,
2648
- (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV6UpgradeGoAhead | undefined,
2596
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeGoAhead | undefined,
2649
2597
  PolkadotParachainPrimitivesPrimitivesId
2650
2598
  >;
2651
2599
 
@@ -2661,11 +2609,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2661
2609
  * the format will require migration of parachains.
2662
2610
  *
2663
2611
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2664
- * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
2612
+ * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
2665
2613
  **/
2666
2614
  upgradeRestrictionSignal: GenericStorageQuery<
2667
2615
  Rv,
2668
- (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV6UpgradeRestriction | undefined,
2616
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeRestriction | undefined,
2669
2617
  PolkadotParachainPrimitivesPrimitivesId
2670
2618
  >;
2671
2619
 
@@ -2679,8 +2627,10 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2679
2627
  upgradeCooldowns: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2680
2628
 
2681
2629
  /**
2682
- * The list of upcoming code upgrades. Each item is a pair of which para performs a code
2683
- * upgrade and at which relay-chain block it is expected at.
2630
+ * The list of upcoming code upgrades.
2631
+ *
2632
+ * Each item is a pair of which para performs a code upgrade and at which relay-chain block it
2633
+ * is expected at.
2684
2634
  *
2685
2635
  * Ordered ascending by block number.
2686
2636
  *
@@ -3030,9 +2980,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3030
2980
  * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
3031
2981
  * When in doubt, use `Sessions` API instead.
3032
2982
  *
3033
- * @param {Callback<Array<PolkadotPrimitivesV6AssignmentAppPublic>> =} callback
2983
+ * @param {Callback<Array<PolkadotPrimitivesV7AssignmentAppPublic>> =} callback
3034
2984
  **/
3035
- assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV6AssignmentAppPublic>>;
2985
+ assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7AssignmentAppPublic>>;
3036
2986
 
3037
2987
  /**
3038
2988
  * The earliest session for which previous session info is stored.
@@ -3047,9 +2997,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3047
2997
  * Does not have any entries before the session index in the first session change notification.
3048
2998
  *
3049
2999
  * @param {number} arg
3050
- * @param {Callback<PolkadotPrimitivesV6SessionInfo | undefined> =} callback
3000
+ * @param {Callback<PolkadotPrimitivesV7SessionInfo | undefined> =} callback
3051
3001
  **/
3052
- sessions: GenericStorageQuery<Rv, (arg: number) => PolkadotPrimitivesV6SessionInfo | undefined, number>;
3002
+ sessions: GenericStorageQuery<Rv, (arg: number) => PolkadotPrimitivesV7SessionInfo | undefined, number>;
3053
3003
 
3054
3004
  /**
3055
3005
  * The validator account keys of the validators actively participating in parachain consensus.
@@ -3063,11 +3013,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3063
3013
  * Executor parameter set for a given session index
3064
3014
  *
3065
3015
  * @param {number} arg
3066
- * @param {Callback<PolkadotPrimitivesV6ExecutorParams | undefined> =} callback
3016
+ * @param {Callback<PolkadotPrimitivesV7ExecutorParams | undefined> =} callback
3067
3017
  **/
3068
3018
  sessionExecutorParams: GenericStorageQuery<
3069
3019
  Rv,
3070
- (arg: number) => PolkadotPrimitivesV6ExecutorParams | undefined,
3020
+ (arg: number) => PolkadotPrimitivesV7ExecutorParams | undefined,
3071
3021
  number
3072
3022
  >;
3073
3023
 
@@ -3092,11 +3042,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3092
3042
  * All ongoing or concluded disputes for the last several sessions.
3093
3043
  *
3094
3044
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3095
- * @param {Callback<PolkadotPrimitivesV6DisputeState | undefined> =} callback
3045
+ * @param {Callback<PolkadotPrimitivesV7DisputeState | undefined> =} callback
3096
3046
  **/
3097
3047
  disputes: GenericStorageQuery<
3098
3048
  Rv,
3099
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV6DisputeState | undefined,
3049
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7DisputeState | undefined,
3100
3050
  [number, PolkadotCorePrimitivesCandidateHash]
3101
3051
  >;
3102
3052
 
@@ -3105,11 +3055,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3105
3055
  * This storage is used for slashing.
3106
3056
  *
3107
3057
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3108
- * @param {Callback<Array<PolkadotPrimitivesV6ValidatorIndex> | undefined> =} callback
3058
+ * @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex> | undefined> =} callback
3109
3059
  **/
3110
3060
  backersOnDisputes: GenericStorageQuery<
3111
3061
  Rv,
3112
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV6ValidatorIndex> | undefined,
3062
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV7ValidatorIndex> | undefined,
3113
3063
  [number, PolkadotCorePrimitivesCandidateHash]
3114
3064
  >;
3115
3065
 
@@ -3149,11 +3099,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3149
3099
  * Validators pending dispute slashes.
3150
3100
  *
3151
3101
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3152
- * @param {Callback<PolkadotPrimitivesV6SlashingPendingSlashes | undefined> =} callback
3102
+ * @param {Callback<PolkadotPrimitivesV7SlashingPendingSlashes | undefined> =} callback
3153
3103
  **/
3154
3104
  unappliedSlashes: GenericStorageQuery<
3155
3105
  Rv,
3156
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV6SlashingPendingSlashes | undefined,
3106
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7SlashingPendingSlashes | undefined,
3157
3107
  [number, PolkadotCorePrimitivesCandidateHash]
3158
3108
  >;
3159
3109
 
@@ -3170,6 +3120,103 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3170
3120
  **/
3171
3121
  [storage: string]: GenericStorageQuery<Rv>;
3172
3122
  };
3123
+ /**
3124
+ * Pallet `OnDemand`'s storage queries
3125
+ **/
3126
+ onDemand: {
3127
+ /**
3128
+ * Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
3129
+ * it's lookahead. Keeping track of this affinity prevents parallel execution of the same
3130
+ * `ParaId` on two or more `CoreIndex`es.
3131
+ *
3132
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3133
+ * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined> =} callback
3134
+ **/
3135
+ paraIdAffinity: GenericStorageQuery<
3136
+ Rv,
3137
+ (
3138
+ arg: PolkadotParachainPrimitivesPrimitivesId,
3139
+ ) => PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined,
3140
+ PolkadotParachainPrimitivesPrimitivesId
3141
+ >;
3142
+
3143
+ /**
3144
+ * Overall status of queue (both free + affinity entries)
3145
+ *
3146
+ * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType> =} callback
3147
+ **/
3148
+ queueStatus: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>;
3149
+
3150
+ /**
3151
+ * Priority queue for all orders which don't yet (or not any more) have any core affinity.
3152
+ *
3153
+ * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3154
+ **/
3155
+ freeEntries: GenericStorageQuery<Rv, () => BinaryHeapEnqueuedOrder>;
3156
+
3157
+ /**
3158
+ * Queue entries that are currently bound to a particular core due to core affinity.
3159
+ *
3160
+ * @param {PolkadotPrimitivesV7CoreIndex} arg
3161
+ * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3162
+ **/
3163
+ affinityEntries: GenericStorageQuery<
3164
+ Rv,
3165
+ (arg: PolkadotPrimitivesV7CoreIndex) => BinaryHeapEnqueuedOrder,
3166
+ PolkadotPrimitivesV7CoreIndex
3167
+ >;
3168
+
3169
+ /**
3170
+ * Keeps track of accumulated revenue from on demand order sales.
3171
+ *
3172
+ * @param {Callback<Array<bigint>> =} callback
3173
+ **/
3174
+ revenue: GenericStorageQuery<Rv, () => Array<bigint>>;
3175
+
3176
+ /**
3177
+ * Generic pallet storage query
3178
+ **/
3179
+ [storage: string]: GenericStorageQuery<Rv>;
3180
+ };
3181
+ /**
3182
+ * Pallet `CoretimeAssignmentProvider`'s storage queries
3183
+ **/
3184
+ coretimeAssignmentProvider: {
3185
+ /**
3186
+ * Scheduled assignment sets.
3187
+ *
3188
+ * Assignments as of the given block number. They will go into state once the block number is
3189
+ * reached (and replace whatever was in there before).
3190
+ *
3191
+ * @param {[number, PolkadotPrimitivesV7CoreIndex]} arg
3192
+ * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
3193
+ **/
3194
+ coreSchedules: GenericStorageQuery<
3195
+ Rv,
3196
+ (arg: [number, PolkadotPrimitivesV7CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3197
+ [number, PolkadotPrimitivesV7CoreIndex]
3198
+ >;
3199
+
3200
+ /**
3201
+ * Assignments which are currently active.
3202
+ *
3203
+ * They will be picked from `PendingAssignments` once we reach the scheduled block number in
3204
+ * `PendingAssignments`.
3205
+ *
3206
+ * @param {PolkadotPrimitivesV7CoreIndex} arg
3207
+ * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
3208
+ **/
3209
+ coreDescriptors: GenericStorageQuery<
3210
+ Rv,
3211
+ (arg: PolkadotPrimitivesV7CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3212
+ PolkadotPrimitivesV7CoreIndex
3213
+ >;
3214
+
3215
+ /**
3216
+ * Generic pallet storage query
3217
+ **/
3218
+ [storage: string]: GenericStorageQuery<Rv>;
3219
+ };
3173
3220
  /**
3174
3221
  * Pallet `Registrar`'s storage queries
3175
3222
  **/
@@ -3507,6 +3554,31 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3507
3554
  **/
3508
3555
  xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
3509
3556
 
3557
+ /**
3558
+ * Whether or not incoming XCMs (both executed locally and received) should be recorded.
3559
+ * Only one XCM program will be recorded at a time.
3560
+ * This is meant to be used in runtime APIs, and it's advised it stays false
3561
+ * for all other use cases, so as to not degrade regular performance.
3562
+ *
3563
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
3564
+ * implementation in the XCM executor configuration.
3565
+ *
3566
+ * @param {Callback<boolean> =} callback
3567
+ **/
3568
+ shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
3569
+
3570
+ /**
3571
+ * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
3572
+ * will be stored here.
3573
+ * Runtime APIs can fetch the XCM that was executed by accessing this value.
3574
+ *
3575
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
3576
+ * implementation in the XCM executor configuration.
3577
+ *
3578
+ * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
3579
+ **/
3580
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
3581
+
3510
3582
  /**
3511
3583
  * Generic pallet storage query
3512
3584
  **/