@dedot/chaintypes 0.0.1-next.f5bf4fc2.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +3 -1
  2. package/aleph/consts.d.ts +94 -13
  3. package/aleph/errors.d.ts +251 -182
  4. package/aleph/events.d.ts +319 -102
  5. package/aleph/index.d.ts +16 -11
  6. package/aleph/json-rpc.d.ts +76 -0
  7. package/aleph/query.d.ts +261 -168
  8. package/aleph/runtime.d.ts +90 -39
  9. package/aleph/tx.d.ts +1822 -1052
  10. package/aleph/types.d.ts +458 -138
  11. package/astar/consts.d.ts +112 -116
  12. package/astar/errors.d.ts +342 -409
  13. package/astar/events.d.ts +449 -358
  14. package/astar/index.d.ts +16 -11
  15. package/astar/json-rpc.d.ts +131 -0
  16. package/astar/query.d.ts +459 -367
  17. package/astar/runtime.d.ts +591 -98
  18. package/astar/tx.d.ts +2485 -3430
  19. package/astar/types.d.ts +1530 -4436
  20. package/index.d.ts +3 -0
  21. package/index.ts +3 -0
  22. package/kusama/consts.d.ts +54 -115
  23. package/kusama/errors.d.ts +696 -682
  24. package/kusama/events.d.ts +592 -407
  25. package/kusama/index.d.ts +16 -11
  26. package/kusama/json-rpc.d.ts +103 -0
  27. package/kusama/query.d.ts +840 -538
  28. package/kusama/runtime.d.ts +136 -65
  29. package/kusama/tx.d.ts +4557 -3051
  30. package/kusama/types.d.ts +1437 -1161
  31. package/kusamaAssetHub/consts.d.ts +66 -20
  32. package/kusamaAssetHub/errors.d.ts +428 -308
  33. package/kusamaAssetHub/events.d.ts +497 -305
  34. package/kusamaAssetHub/index.d.ts +16 -11
  35. package/kusamaAssetHub/json-rpc.d.ts +89 -0
  36. package/kusamaAssetHub/query.d.ts +376 -253
  37. package/kusamaAssetHub/runtime.d.ts +82 -41
  38. package/kusamaAssetHub/tx.d.ts +3264 -1955
  39. package/kusamaAssetHub/types.d.ts +1262 -726
  40. package/moonbeam/consts.d.ts +115 -170
  41. package/moonbeam/errors.d.ts +564 -787
  42. package/moonbeam/events.d.ts +583 -746
  43. package/moonbeam/index.d.ts +16 -11
  44. package/moonbeam/json-rpc.d.ts +137 -0
  45. package/moonbeam/query.d.ts +507 -607
  46. package/moonbeam/runtime.d.ts +132 -47
  47. package/moonbeam/tx.d.ts +3309 -3268
  48. package/moonbeam/types.d.ts +1484 -1375
  49. package/package.json +4 -14
  50. package/paseo/consts.d.ts +1331 -0
  51. package/paseo/errors.d.ts +2644 -0
  52. package/paseo/events.d.ts +2821 -0
  53. package/paseo/index.d.ts +27 -0
  54. package/paseo/json-rpc.d.ts +103 -0
  55. package/paseo/query.d.ts +3709 -0
  56. package/paseo/runtime.d.ts +1205 -0
  57. package/paseo/tx.d.ts +8024 -0
  58. package/paseo/types.d.ts +10194 -0
  59. package/polkadot/consts.d.ts +95 -50
  60. package/polkadot/errors.d.ts +619 -468
  61. package/polkadot/events.d.ts +582 -257
  62. package/polkadot/index.d.ts +16 -11
  63. package/polkadot/json-rpc.d.ts +103 -0
  64. package/polkadot/query.d.ts +770 -399
  65. package/polkadot/runtime.d.ts +136 -65
  66. package/polkadot/tx.d.ts +4268 -2368
  67. package/polkadot/types.d.ts +1570 -745
  68. package/polkadotAssetHub/consts.d.ts +154 -15
  69. package/polkadotAssetHub/errors.d.ts +615 -234
  70. package/polkadotAssetHub/events.d.ts +829 -270
  71. package/polkadotAssetHub/index.d.ts +16 -11
  72. package/polkadotAssetHub/json-rpc.d.ts +89 -0
  73. package/polkadotAssetHub/query.d.ts +438 -243
  74. package/polkadotAssetHub/runtime.d.ts +147 -40
  75. package/polkadotAssetHub/tx.d.ts +3747 -1643
  76. package/polkadotAssetHub/types.d.ts +2096 -806
  77. package/rococo/consts.d.ts +51 -32
  78. package/rococo/errors.d.ts +549 -605
  79. package/rococo/events.d.ts +447 -238
  80. package/rococo/index.d.ts +16 -11
  81. package/rococo/json-rpc.d.ts +103 -0
  82. package/rococo/query.d.ts +724 -426
  83. package/rococo/runtime.d.ts +366 -144
  84. package/rococo/tx.d.ts +6850 -3079
  85. package/rococo/types.d.ts +5959 -1619
  86. package/rococoAssetHub/consts.d.ts +92 -7
  87. package/rococoAssetHub/errors.d.ts +381 -285
  88. package/rococoAssetHub/events.d.ts +461 -140
  89. package/rococoAssetHub/index.d.ts +16 -11
  90. package/rococoAssetHub/json-rpc.d.ts +89 -0
  91. package/rococoAssetHub/query.d.ts +487 -174
  92. package/rococoAssetHub/runtime.d.ts +235 -51
  93. package/rococoAssetHub/tx.d.ts +6005 -2163
  94. package/rococoAssetHub/types.d.ts +6683 -1003
  95. package/substrate/consts.d.ts +233 -52
  96. package/substrate/errors.d.ts +966 -781
  97. package/substrate/events.d.ts +1226 -381
  98. package/substrate/index.d.ts +16 -11
  99. package/substrate/json-rpc.d.ts +103 -0
  100. package/substrate/query.d.ts +1090 -460
  101. package/substrate/runtime.d.ts +274 -71
  102. package/substrate/tx.d.ts +12313 -4510
  103. package/substrate/types.d.ts +11036 -1432
  104. package/westend/consts.d.ts +1349 -0
  105. package/westend/errors.d.ts +2736 -0
  106. package/westend/events.d.ts +2906 -0
  107. package/westend/index.d.ts +27 -0
  108. package/westend/json-rpc.d.ts +103 -0
  109. package/westend/query.d.ts +3855 -0
  110. package/westend/runtime.d.ts +1437 -0
  111. package/westend/tx.d.ts +10248 -0
  112. package/westend/types.d.ts +14769 -0
  113. package/westendAssetHub/consts.d.ts +126 -7
  114. package/westendAssetHub/errors.d.ts +426 -285
  115. package/westendAssetHub/events.d.ts +498 -140
  116. package/westendAssetHub/index.d.ts +16 -11
  117. package/westendAssetHub/json-rpc.d.ts +89 -0
  118. package/westendAssetHub/query.d.ts +526 -174
  119. package/westendAssetHub/runtime.d.ts +245 -56
  120. package/westendAssetHub/tx.d.ts +6196 -2166
  121. package/westendAssetHub/types.d.ts +6913 -1002
  122. package/westendPeople/consts.d.ts +434 -0
  123. package/westendPeople/errors.d.ts +769 -0
  124. package/westendPeople/events.d.ts +1082 -0
  125. package/westendPeople/index.d.ts +27 -0
  126. package/westendPeople/json-rpc.d.ts +89 -0
  127. package/westendPeople/query.d.ts +1209 -0
  128. package/westendPeople/runtime.d.ts +636 -0
  129. package/westendPeople/tx.d.ts +2891 -0
  130. package/westendPeople/types.d.ts +4984 -0
  131. package/aleph/rpc.d.ts +0 -727
  132. package/astar/rpc.d.ts +0 -974
  133. package/kusama/rpc.d.ts +0 -904
  134. package/kusamaAssetHub/rpc.d.ts +0 -746
  135. package/moonbeam/rpc.d.ts +0 -1015
  136. package/packageInfo.d.ts +0 -4
  137. package/packageInfo.js +0 -2
  138. package/packageInfo.ts +0 -3
  139. package/polkadot/rpc.d.ts +0 -904
  140. package/polkadotAssetHub/rpc.d.ts +0 -746
  141. package/rococo/rpc.d.ts +0 -904
  142. package/rococoAssetHub/rpc.d.ts +0 -746
  143. package/substrate/rpc.d.ts +0 -894
  144. package/westendAssetHub/rpc.d.ts +0 -746
@@ -0,0 +1,3855 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types';
4
+ import type {
5
+ AccountId32,
6
+ AccountId32Like,
7
+ H256,
8
+ Bytes,
9
+ Digest,
10
+ Phase,
11
+ FixedBytes,
12
+ FixedU128,
13
+ Perbill,
14
+ Percent,
15
+ BytesLike,
16
+ Data,
17
+ FixedArray,
18
+ } from 'dedot/codecs';
19
+ import type {
20
+ FrameSystemAccountInfo,
21
+ FrameSupportDispatchPerDispatchClass,
22
+ FrameSystemEventRecord,
23
+ FrameSystemLastRuntimeUpgradeInfo,
24
+ FrameSystemCodeUpgradeAuthorization,
25
+ SpConsensusBabeAppPublic,
26
+ SpConsensusSlotsSlot,
27
+ SpConsensusBabeDigestsNextConfigDescriptor,
28
+ SpConsensusBabeDigestsPreDigest,
29
+ SpConsensusBabeBabeEpochConfiguration,
30
+ PalletBalancesAccountData,
31
+ PalletBalancesBalanceLock,
32
+ PalletBalancesReserveData,
33
+ FrameSupportTokensMiscIdAmount,
34
+ FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
35
+ PalletTransactionPaymentReleases,
36
+ PalletStakingStakingLedger,
37
+ PalletStakingRewardDestination,
38
+ PalletStakingValidatorPrefs,
39
+ PalletStakingNominations,
40
+ PalletStakingActiveEraInfo,
41
+ SpStakingExposure,
42
+ SpStakingPagedExposureMetadata,
43
+ SpStakingExposurePage,
44
+ PalletStakingEraRewardPoints,
45
+ PalletStakingForcing,
46
+ PalletStakingUnappliedSlash,
47
+ PalletStakingSlashingSlashingSpans,
48
+ PalletStakingSlashingSpanRecord,
49
+ SpStakingOffenceOffenceDetails,
50
+ WestendRuntimeSessionKeys,
51
+ SpCoreCryptoKeyTypeId,
52
+ PalletGrandpaStoredState,
53
+ PalletGrandpaStoredPendingChange,
54
+ SpConsensusGrandpaAppPublic,
55
+ SpAuthorityDiscoveryAppPublic,
56
+ PalletIdentityRegistration,
57
+ PalletIdentityRegistrarInfo,
58
+ PalletIdentityAuthorityProperties,
59
+ PalletRecoveryRecoveryConfig,
60
+ PalletRecoveryActiveRecovery,
61
+ PalletVestingVestingInfo,
62
+ PalletVestingReleases,
63
+ PalletSchedulerScheduled,
64
+ PalletSchedulerRetryConfig,
65
+ PalletPreimageOldRequestStatus,
66
+ PalletPreimageRequestStatus,
67
+ PalletProxyProxyDefinition,
68
+ PalletProxyAnnouncement,
69
+ PalletMultisigMultisig,
70
+ PalletElectionProviderMultiPhasePhase,
71
+ PalletElectionProviderMultiPhaseReadySolution,
72
+ PalletElectionProviderMultiPhaseRoundSnapshot,
73
+ PalletElectionProviderMultiPhaseSolutionOrSnapshotSize,
74
+ SpNposElectionsElectionScore,
75
+ PalletElectionProviderMultiPhaseSignedSignedSubmission,
76
+ PalletBagsListListNode,
77
+ PalletBagsListListBag,
78
+ PalletNominationPoolsPoolMember,
79
+ PalletNominationPoolsBondedPoolInner,
80
+ PalletNominationPoolsRewardPool,
81
+ PalletNominationPoolsSubPools,
82
+ PalletNominationPoolsClaimPermission,
83
+ PalletFastUnstakeUnstakeRequest,
84
+ PalletConvictionVotingVoteVoting,
85
+ PalletReferendaReferendumInfo,
86
+ PalletTreasuryProposal,
87
+ PalletTreasurySpendStatus,
88
+ PalletDelegatedStakingDelegation,
89
+ PalletDelegatedStakingAgentLedger,
90
+ PolkadotRuntimeParachainsConfigurationHostConfiguration,
91
+ PolkadotPrimitivesV7ValidatorIndex,
92
+ PolkadotPrimitivesV7ValidatorAppPublic,
93
+ PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
94
+ PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
95
+ PolkadotParachainPrimitivesPrimitivesId,
96
+ PolkadotPrimitivesV7ScrapedOnChainVotes,
97
+ PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
98
+ PolkadotPrimitivesV7CoreIndex,
99
+ PolkadotRuntimeParachainsSchedulerPalletParasEntry,
100
+ PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
101
+ PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
102
+ PolkadotRuntimeParachainsParasParaLifecycle,
103
+ PolkadotParachainPrimitivesPrimitivesHeadData,
104
+ PolkadotRuntimeParachainsParasParaPastCodeMeta,
105
+ PolkadotPrimitivesV7UpgradeGoAhead,
106
+ PolkadotPrimitivesV7UpgradeRestriction,
107
+ PolkadotRuntimeParachainsParasParaGenesisArgs,
108
+ PolkadotParachainPrimitivesPrimitivesValidationCode,
109
+ PolkadotRuntimeParachainsInitializerBufferedSessionChange,
110
+ PolkadotCorePrimitivesInboundDownwardMessage,
111
+ PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest,
112
+ PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
113
+ PolkadotRuntimeParachainsHrmpHrmpChannel,
114
+ PolkadotCorePrimitivesInboundHrmpMessage,
115
+ PolkadotPrimitivesV7AssignmentAppPublic,
116
+ PolkadotPrimitivesV7SessionInfo,
117
+ PolkadotPrimitivesV7ExecutorParams,
118
+ PolkadotPrimitivesV7DisputeState,
119
+ PolkadotCorePrimitivesCandidateHash,
120
+ PolkadotPrimitivesV7SlashingPendingSlashes,
121
+ PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount,
122
+ PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType,
123
+ BinaryHeapEnqueuedOrder,
124
+ PolkadotRuntimeParachainsAssignerCoretimeSchedule,
125
+ PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
126
+ PolkadotRuntimeCommonParasRegistrarParaInfo,
127
+ PolkadotRuntimeCommonCrowdloanFundInfo,
128
+ PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot,
129
+ PalletXcmQueryStatus,
130
+ XcmVersionedLocation,
131
+ SpWeightsWeightV2Weight,
132
+ PalletXcmVersionMigrationStage,
133
+ PalletXcmRemoteLockedFungibleRecord,
134
+ XcmVersionedAssetId,
135
+ StagingXcmV4Xcm,
136
+ PalletMessageQueueBookState,
137
+ PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
138
+ PalletMessageQueuePage,
139
+ PolkadotRuntimeCommonImplsVersionedLocatableAsset,
140
+ SpConsensusBeefyEcdsaCryptoPublic,
141
+ SpConsensusBeefyMmrBeefyAuthoritySet,
142
+ } from './types';
143
+
144
+ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
145
+ /**
146
+ * Pallet `System`'s storage queries
147
+ **/
148
+ system: {
149
+ /**
150
+ * The full account information for a particular account ID.
151
+ *
152
+ * @param {AccountId32Like} arg
153
+ * @param {Callback<FrameSystemAccountInfo> =} callback
154
+ **/
155
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
156
+
157
+ /**
158
+ * Total extrinsics count for the current block.
159
+ *
160
+ * @param {Callback<number | undefined> =} callback
161
+ **/
162
+ extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
163
+
164
+ /**
165
+ * Whether all inherents have been applied.
166
+ *
167
+ * @param {Callback<boolean> =} callback
168
+ **/
169
+ inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
170
+
171
+ /**
172
+ * The current weight for the block.
173
+ *
174
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
175
+ **/
176
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
177
+
178
+ /**
179
+ * Total length (in bytes) for all extrinsics put together, for the current block.
180
+ *
181
+ * @param {Callback<number | undefined> =} callback
182
+ **/
183
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
184
+
185
+ /**
186
+ * Map of block numbers to block hashes.
187
+ *
188
+ * @param {number} arg
189
+ * @param {Callback<H256> =} callback
190
+ **/
191
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
192
+
193
+ /**
194
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
195
+ *
196
+ * @param {number} arg
197
+ * @param {Callback<Bytes> =} callback
198
+ **/
199
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
200
+
201
+ /**
202
+ * The current block number being processed. Set by `execute_block`.
203
+ *
204
+ * @param {Callback<number> =} callback
205
+ **/
206
+ number: GenericStorageQuery<Rv, () => number>;
207
+
208
+ /**
209
+ * Hash of the previous block.
210
+ *
211
+ * @param {Callback<H256> =} callback
212
+ **/
213
+ parentHash: GenericStorageQuery<Rv, () => H256>;
214
+
215
+ /**
216
+ * Digest of the current block, also part of the block header.
217
+ *
218
+ * @param {Callback<Digest> =} callback
219
+ **/
220
+ digest: GenericStorageQuery<Rv, () => Digest>;
221
+
222
+ /**
223
+ * Events deposited for the current block.
224
+ *
225
+ * NOTE: The item is unbound and should therefore never be read on chain.
226
+ * It could otherwise inflate the PoV size of a block.
227
+ *
228
+ * Events have a large in-memory size. Box the events to not go out-of-memory
229
+ * just in case someone still reads them from within the runtime.
230
+ *
231
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
232
+ **/
233
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
234
+
235
+ /**
236
+ * The number of events in the `Events<T>` list.
237
+ *
238
+ * @param {Callback<number> =} callback
239
+ **/
240
+ eventCount: GenericStorageQuery<Rv, () => number>;
241
+
242
+ /**
243
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
244
+ * of events in the `<Events<T>>` list.
245
+ *
246
+ * All topic vectors have deterministic storage locations depending on the topic. This
247
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
248
+ * in case of changes fetch the list of events of interest.
249
+ *
250
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
251
+ * the `EventIndex` then in case if the topic has the same contents on the next block
252
+ * no notification will be triggered thus the event might be lost.
253
+ *
254
+ * @param {H256} arg
255
+ * @param {Callback<Array<[number, number]>> =} callback
256
+ **/
257
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
258
+
259
+ /**
260
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
261
+ *
262
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
263
+ **/
264
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
265
+
266
+ /**
267
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
268
+ *
269
+ * @param {Callback<boolean> =} callback
270
+ **/
271
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
272
+
273
+ /**
274
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
275
+ * (default) if not.
276
+ *
277
+ * @param {Callback<boolean> =} callback
278
+ **/
279
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
280
+
281
+ /**
282
+ * The execution phase of the block.
283
+ *
284
+ * @param {Callback<Phase | undefined> =} callback
285
+ **/
286
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
287
+
288
+ /**
289
+ * `Some` if a code upgrade has been authorized.
290
+ *
291
+ * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
292
+ **/
293
+ authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
294
+
295
+ /**
296
+ * Generic pallet storage query
297
+ **/
298
+ [storage: string]: GenericStorageQuery<Rv>;
299
+ };
300
+ /**
301
+ * Pallet `Babe`'s storage queries
302
+ **/
303
+ babe: {
304
+ /**
305
+ * Current epoch index.
306
+ *
307
+ * @param {Callback<bigint> =} callback
308
+ **/
309
+ epochIndex: GenericStorageQuery<Rv, () => bigint>;
310
+
311
+ /**
312
+ * Current epoch authorities.
313
+ *
314
+ * @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
315
+ **/
316
+ authorities: GenericStorageQuery<Rv, () => Array<[SpConsensusBabeAppPublic, bigint]>>;
317
+
318
+ /**
319
+ * The slot at which the first epoch actually started. This is 0
320
+ * until the first block of the chain.
321
+ *
322
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
323
+ **/
324
+ genesisSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
325
+
326
+ /**
327
+ * Current slot number.
328
+ *
329
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
330
+ **/
331
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
332
+
333
+ /**
334
+ * The epoch randomness for the *current* epoch.
335
+ *
336
+ * # Security
337
+ *
338
+ * This MUST NOT be used for gambling, as it can be influenced by a
339
+ * malicious validator in the short term. It MAY be used in many
340
+ * cryptographic protocols, however, so long as one remembers that this
341
+ * (like everything else on-chain) it is public. For example, it can be
342
+ * used where a number is needed that cannot have been chosen by an
343
+ * adversary, for purposes such as public-coin zero-knowledge proofs.
344
+ *
345
+ * @param {Callback<FixedBytes<32>> =} callback
346
+ **/
347
+ randomness: GenericStorageQuery<Rv, () => FixedBytes<32>>;
348
+
349
+ /**
350
+ * Pending epoch configuration change that will be applied when the next epoch is enacted.
351
+ *
352
+ * @param {Callback<SpConsensusBabeDigestsNextConfigDescriptor | undefined> =} callback
353
+ **/
354
+ pendingEpochConfigChange: GenericStorageQuery<Rv, () => SpConsensusBabeDigestsNextConfigDescriptor | undefined>;
355
+
356
+ /**
357
+ * Next epoch randomness.
358
+ *
359
+ * @param {Callback<FixedBytes<32>> =} callback
360
+ **/
361
+ nextRandomness: GenericStorageQuery<Rv, () => FixedBytes<32>>;
362
+
363
+ /**
364
+ * Next epoch authorities.
365
+ *
366
+ * @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
367
+ **/
368
+ nextAuthorities: GenericStorageQuery<Rv, () => Array<[SpConsensusBabeAppPublic, bigint]>>;
369
+
370
+ /**
371
+ * Randomness under construction.
372
+ *
373
+ * We make a trade-off between storage accesses and list length.
374
+ * We store the under-construction randomness in segments of up to
375
+ * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
376
+ *
377
+ * Once a segment reaches this length, we begin the next one.
378
+ * We reset all segments and return to `0` at the beginning of every
379
+ * epoch.
380
+ *
381
+ * @param {Callback<number> =} callback
382
+ **/
383
+ segmentIndex: GenericStorageQuery<Rv, () => number>;
384
+
385
+ /**
386
+ * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
387
+ *
388
+ * @param {number} arg
389
+ * @param {Callback<Array<FixedBytes<32>>> =} callback
390
+ **/
391
+ underConstruction: GenericStorageQuery<Rv, (arg: number) => Array<FixedBytes<32>>, number>;
392
+
393
+ /**
394
+ * Temporary value (cleared at block finalization) which is `Some`
395
+ * if per-block initialization has already been called for current block.
396
+ *
397
+ * @param {Callback<SpConsensusBabeDigestsPreDigest | undefined | undefined> =} callback
398
+ **/
399
+ initialized: GenericStorageQuery<Rv, () => SpConsensusBabeDigestsPreDigest | undefined | undefined>;
400
+
401
+ /**
402
+ * This field should always be populated during block processing unless
403
+ * secondary plain slots are enabled (which don't contain a VRF output).
404
+ *
405
+ * It is set in `on_finalize`, before it will contain the value from the last block.
406
+ *
407
+ * @param {Callback<FixedBytes<32> | undefined> =} callback
408
+ **/
409
+ authorVrfRandomness: GenericStorageQuery<Rv, () => FixedBytes<32> | undefined>;
410
+
411
+ /**
412
+ * The block numbers when the last and current epoch have started, respectively `N-1` and
413
+ * `N`.
414
+ * NOTE: We track this is in order to annotate the block number when a given pool of
415
+ * entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
416
+ * slots, which may be skipped, the block numbers may not line up with the slot numbers.
417
+ *
418
+ * @param {Callback<[number, number]> =} callback
419
+ **/
420
+ epochStart: GenericStorageQuery<Rv, () => [number, number]>;
421
+
422
+ /**
423
+ * How late the current block is compared to its parent.
424
+ *
425
+ * This entry is populated as part of block execution and is cleaned up
426
+ * on block finalization. Querying this storage entry outside of block
427
+ * execution context should always yield zero.
428
+ *
429
+ * @param {Callback<number> =} callback
430
+ **/
431
+ lateness: GenericStorageQuery<Rv, () => number>;
432
+
433
+ /**
434
+ * The configuration for the current epoch. Should never be `None` as it is initialized in
435
+ * genesis.
436
+ *
437
+ * @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
438
+ **/
439
+ epochConfig: GenericStorageQuery<Rv, () => SpConsensusBabeBabeEpochConfiguration | undefined>;
440
+
441
+ /**
442
+ * The configuration for the next epoch, `None` if the config will not change
443
+ * (you can fallback to `EpochConfig` instead in that case).
444
+ *
445
+ * @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
446
+ **/
447
+ nextEpochConfig: GenericStorageQuery<Rv, () => SpConsensusBabeBabeEpochConfiguration | undefined>;
448
+
449
+ /**
450
+ * A list of the last 100 skipped epochs and the corresponding session index
451
+ * when the epoch was skipped.
452
+ *
453
+ * This is only used for validating equivocation proofs. An equivocation proof
454
+ * must contains a key-ownership proof for a given session, therefore we need a
455
+ * way to tie together sessions and epoch indices, i.e. we need to validate that
456
+ * a validator was the owner of a given key on a given session, and what the
457
+ * active epoch index was during that session.
458
+ *
459
+ * @param {Callback<Array<[bigint, number]>> =} callback
460
+ **/
461
+ skippedEpochs: GenericStorageQuery<Rv, () => Array<[bigint, number]>>;
462
+
463
+ /**
464
+ * Generic pallet storage query
465
+ **/
466
+ [storage: string]: GenericStorageQuery<Rv>;
467
+ };
468
+ /**
469
+ * Pallet `Timestamp`'s storage queries
470
+ **/
471
+ timestamp: {
472
+ /**
473
+ * The current time for the current block.
474
+ *
475
+ * @param {Callback<bigint> =} callback
476
+ **/
477
+ now: GenericStorageQuery<Rv, () => bigint>;
478
+
479
+ /**
480
+ * Whether the timestamp has been updated in this block.
481
+ *
482
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
483
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
484
+ *
485
+ * @param {Callback<boolean> =} callback
486
+ **/
487
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
488
+
489
+ /**
490
+ * Generic pallet storage query
491
+ **/
492
+ [storage: string]: GenericStorageQuery<Rv>;
493
+ };
494
+ /**
495
+ * Pallet `Indices`'s storage queries
496
+ **/
497
+ indices: {
498
+ /**
499
+ * The lookup from index to account.
500
+ *
501
+ * @param {number} arg
502
+ * @param {Callback<[AccountId32, bigint, boolean] | undefined> =} callback
503
+ **/
504
+ accounts: GenericStorageQuery<Rv, (arg: number) => [AccountId32, bigint, boolean] | undefined, number>;
505
+
506
+ /**
507
+ * Generic pallet storage query
508
+ **/
509
+ [storage: string]: GenericStorageQuery<Rv>;
510
+ };
511
+ /**
512
+ * Pallet `Balances`'s storage queries
513
+ **/
514
+ balances: {
515
+ /**
516
+ * The total units issued in the system.
517
+ *
518
+ * @param {Callback<bigint> =} callback
519
+ **/
520
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
521
+
522
+ /**
523
+ * The total units of outstanding deactivated balance in the system.
524
+ *
525
+ * @param {Callback<bigint> =} callback
526
+ **/
527
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
528
+
529
+ /**
530
+ * The Balances pallet example of storing the balance of an account.
531
+ *
532
+ * # Example
533
+ *
534
+ * ```nocompile
535
+ * impl pallet_balances::Config for Runtime {
536
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
537
+ * }
538
+ * ```
539
+ *
540
+ * You can also store the balance of an account in the `System` pallet.
541
+ *
542
+ * # Example
543
+ *
544
+ * ```nocompile
545
+ * impl pallet_balances::Config for Runtime {
546
+ * type AccountStore = System
547
+ * }
548
+ * ```
549
+ *
550
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
551
+ * `frame_system` data alongside the account data contrary to storing account balances in the
552
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
553
+ * NOTE: This is only used in the case that this pallet is used to store balances.
554
+ *
555
+ * @param {AccountId32Like} arg
556
+ * @param {Callback<PalletBalancesAccountData> =} callback
557
+ **/
558
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
559
+
560
+ /**
561
+ * Any liquidity locks on some account balances.
562
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
563
+ *
564
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
565
+ *
566
+ * @param {AccountId32Like} arg
567
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
568
+ **/
569
+ locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
570
+
571
+ /**
572
+ * Named reserves on some account balances.
573
+ *
574
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
575
+ *
576
+ * @param {AccountId32Like} arg
577
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
578
+ **/
579
+ reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
580
+
581
+ /**
582
+ * Holds on account balances.
583
+ *
584
+ * @param {AccountId32Like} arg
585
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
586
+ **/
587
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
588
+
589
+ /**
590
+ * Freeze locks on account balances.
591
+ *
592
+ * @param {AccountId32Like} arg
593
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
594
+ **/
595
+ freezes: GenericStorageQuery<
596
+ Rv,
597
+ (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
598
+ AccountId32
599
+ >;
600
+
601
+ /**
602
+ * Generic pallet storage query
603
+ **/
604
+ [storage: string]: GenericStorageQuery<Rv>;
605
+ };
606
+ /**
607
+ * Pallet `TransactionPayment`'s storage queries
608
+ **/
609
+ transactionPayment: {
610
+ /**
611
+ *
612
+ * @param {Callback<FixedU128> =} callback
613
+ **/
614
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
615
+
616
+ /**
617
+ *
618
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
619
+ **/
620
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
621
+
622
+ /**
623
+ * Generic pallet storage query
624
+ **/
625
+ [storage: string]: GenericStorageQuery<Rv>;
626
+ };
627
+ /**
628
+ * Pallet `Authorship`'s storage queries
629
+ **/
630
+ authorship: {
631
+ /**
632
+ * Author of current block.
633
+ *
634
+ * @param {Callback<AccountId32 | undefined> =} callback
635
+ **/
636
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
637
+
638
+ /**
639
+ * Generic pallet storage query
640
+ **/
641
+ [storage: string]: GenericStorageQuery<Rv>;
642
+ };
643
+ /**
644
+ * Pallet `Staking`'s storage queries
645
+ **/
646
+ staking: {
647
+ /**
648
+ * The ideal number of active validators.
649
+ *
650
+ * @param {Callback<number> =} callback
651
+ **/
652
+ validatorCount: GenericStorageQuery<Rv, () => number>;
653
+
654
+ /**
655
+ * Minimum number of staking participants before emergency conditions are imposed.
656
+ *
657
+ * @param {Callback<number> =} callback
658
+ **/
659
+ minimumValidatorCount: GenericStorageQuery<Rv, () => number>;
660
+
661
+ /**
662
+ * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
663
+ * easy to initialize and the performance hit is minimal (we expect no more than four
664
+ * invulnerables) and restricted to testnets.
665
+ *
666
+ * @param {Callback<Array<AccountId32>> =} callback
667
+ **/
668
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
669
+
670
+ /**
671
+ * Map from all locked "stash" accounts to the controller account.
672
+ *
673
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
674
+ *
675
+ * @param {AccountId32Like} arg
676
+ * @param {Callback<AccountId32 | undefined> =} callback
677
+ **/
678
+ bonded: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
679
+
680
+ /**
681
+ * The minimum active bond to become and maintain the role of a nominator.
682
+ *
683
+ * @param {Callback<bigint> =} callback
684
+ **/
685
+ minNominatorBond: GenericStorageQuery<Rv, () => bigint>;
686
+
687
+ /**
688
+ * The minimum active bond to become and maintain the role of a validator.
689
+ *
690
+ * @param {Callback<bigint> =} callback
691
+ **/
692
+ minValidatorBond: GenericStorageQuery<Rv, () => bigint>;
693
+
694
+ /**
695
+ * The minimum active nominator stake of the last successful election.
696
+ *
697
+ * @param {Callback<bigint> =} callback
698
+ **/
699
+ minimumActiveStake: GenericStorageQuery<Rv, () => bigint>;
700
+
701
+ /**
702
+ * The minimum amount of commission that validators can set.
703
+ *
704
+ * If set to `0`, no limit exists.
705
+ *
706
+ * @param {Callback<Perbill> =} callback
707
+ **/
708
+ minCommission: GenericStorageQuery<Rv, () => Perbill>;
709
+
710
+ /**
711
+ * Map from all (unlocked) "controller" accounts to the info regarding the staking.
712
+ *
713
+ * Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
714
+ * by [`StakingLedger`] to ensure data and lock consistency.
715
+ *
716
+ * @param {AccountId32Like} arg
717
+ * @param {Callback<PalletStakingStakingLedger | undefined> =} callback
718
+ **/
719
+ ledger: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingStakingLedger | undefined, AccountId32>;
720
+
721
+ /**
722
+ * Where the reward payment should be made. Keyed by stash.
723
+ *
724
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
725
+ *
726
+ * @param {AccountId32Like} arg
727
+ * @param {Callback<PalletStakingRewardDestination | undefined> =} callback
728
+ **/
729
+ payee: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingRewardDestination | undefined, AccountId32>;
730
+
731
+ /**
732
+ * The map from (wannabe) validator stash key to the preferences of that validator.
733
+ *
734
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
735
+ *
736
+ * @param {AccountId32Like} arg
737
+ * @param {Callback<PalletStakingValidatorPrefs> =} callback
738
+ **/
739
+ validators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingValidatorPrefs, AccountId32>;
740
+
741
+ /**
742
+ * Counter for the related counted storage map
743
+ *
744
+ * @param {Callback<number> =} callback
745
+ **/
746
+ counterForValidators: GenericStorageQuery<Rv, () => number>;
747
+
748
+ /**
749
+ * The maximum validator count before we stop allowing new validators to join.
750
+ *
751
+ * When this value is not set, no limits are enforced.
752
+ *
753
+ * @param {Callback<number | undefined> =} callback
754
+ **/
755
+ maxValidatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
756
+
757
+ /**
758
+ * The map from nominator stash key to their nomination preferences, namely the validators that
759
+ * they wish to support.
760
+ *
761
+ * Note that the keys of this storage map might become non-decodable in case the
762
+ * account's [`NominationsQuota::MaxNominations`] configuration is decreased.
763
+ * In this rare case, these nominators
764
+ * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
765
+ * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
766
+ * nominators will effectively not-exist, until they re-submit their preferences such that it
767
+ * is within the bounds of the newly set `Config::MaxNominations`.
768
+ *
769
+ * This implies that `::iter_keys().count()` and `::iter().count()` might return different
770
+ * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
771
+ * number of keys that exist.
772
+ *
773
+ * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
774
+ * [`Call::chill_other`] dispatchable by anyone.
775
+ *
776
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
777
+ *
778
+ * @param {AccountId32Like} arg
779
+ * @param {Callback<PalletStakingNominations | undefined> =} callback
780
+ **/
781
+ nominators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingNominations | undefined, AccountId32>;
782
+
783
+ /**
784
+ * Counter for the related counted storage map
785
+ *
786
+ * @param {Callback<number> =} callback
787
+ **/
788
+ counterForNominators: GenericStorageQuery<Rv, () => number>;
789
+
790
+ /**
791
+ * Stakers whose funds are managed by other pallets.
792
+ *
793
+ * This pallet does not apply any locks on them, therefore they are only virtually bonded. They
794
+ * are expected to be keyless accounts and hence should not be allowed to mutate their ledger
795
+ * directly via this pallet. Instead, these accounts are managed by other pallets and accessed
796
+ * via low level apis. We keep track of them to do minimal integrity checks.
797
+ *
798
+ * @param {AccountId32Like} arg
799
+ * @param {Callback<[] | undefined> =} callback
800
+ **/
801
+ virtualStakers: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
802
+
803
+ /**
804
+ * Counter for the related counted storage map
805
+ *
806
+ * @param {Callback<number> =} callback
807
+ **/
808
+ counterForVirtualStakers: GenericStorageQuery<Rv, () => number>;
809
+
810
+ /**
811
+ * The maximum nominator count before we stop allowing new validators to join.
812
+ *
813
+ * When this value is not set, no limits are enforced.
814
+ *
815
+ * @param {Callback<number | undefined> =} callback
816
+ **/
817
+ maxNominatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
818
+
819
+ /**
820
+ * The current era index.
821
+ *
822
+ * This is the latest planned era, depending on how the Session pallet queues the validator
823
+ * set, it might be active or not.
824
+ *
825
+ * @param {Callback<number | undefined> =} callback
826
+ **/
827
+ currentEra: GenericStorageQuery<Rv, () => number | undefined>;
828
+
829
+ /**
830
+ * The active era information, it holds index and start.
831
+ *
832
+ * The active era is the era being currently rewarded. Validator set of this era must be
833
+ * equal to [`SessionInterface::validators`].
834
+ *
835
+ * @param {Callback<PalletStakingActiveEraInfo | undefined> =} callback
836
+ **/
837
+ activeEra: GenericStorageQuery<Rv, () => PalletStakingActiveEraInfo | undefined>;
838
+
839
+ /**
840
+ * The session index at which the era start for the last [`Config::HistoryDepth`] eras.
841
+ *
842
+ * Note: This tracks the starting session (i.e. session index when era start being active)
843
+ * for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
844
+ *
845
+ * @param {number} arg
846
+ * @param {Callback<number | undefined> =} callback
847
+ **/
848
+ erasStartSessionIndex: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
849
+
850
+ /**
851
+ * Exposure of validator at era.
852
+ *
853
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
854
+ *
855
+ * Is it removed after [`Config::HistoryDepth`] eras.
856
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
857
+ *
858
+ * Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
859
+ *
860
+ * @param {[number, AccountId32Like]} arg
861
+ * @param {Callback<SpStakingExposure> =} callback
862
+ **/
863
+ erasStakers: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => SpStakingExposure, [number, AccountId32]>;
864
+
865
+ /**
866
+ * Summary of validator exposure at a given era.
867
+ *
868
+ * This contains the total stake in support of the validator and their own stake. In addition,
869
+ * it can also be used to get the number of nominators backing this validator and the number of
870
+ * exposure pages they are divided into. The page count is useful to determine the number of
871
+ * pages of rewards that needs to be claimed.
872
+ *
873
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
874
+ * Should only be accessed through `EraInfo`.
875
+ *
876
+ * Is it removed after [`Config::HistoryDepth`] eras.
877
+ * If stakers hasn't been set or has been removed then empty overview is returned.
878
+ *
879
+ * @param {[number, AccountId32Like]} arg
880
+ * @param {Callback<SpStakingPagedExposureMetadata | undefined> =} callback
881
+ **/
882
+ erasStakersOverview: GenericStorageQuery<
883
+ Rv,
884
+ (arg: [number, AccountId32Like]) => SpStakingPagedExposureMetadata | undefined,
885
+ [number, AccountId32]
886
+ >;
887
+
888
+ /**
889
+ * Clipped Exposure of validator at era.
890
+ *
891
+ * Note: This is deprecated, should be used as read-only and will be removed in the future.
892
+ * New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
893
+ *
894
+ * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
895
+ * `T::MaxExposurePageSize` biggest stakers.
896
+ * (Note: the field `total` and `own` of the exposure remains unchanged).
897
+ * This is used to limit the i/o cost for the nominator payout.
898
+ *
899
+ * This is keyed fist by the era index to allow bulk deletion and then the stash account.
900
+ *
901
+ * It is removed after [`Config::HistoryDepth`] eras.
902
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
903
+ *
904
+ * Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
905
+ *
906
+ * @param {[number, AccountId32Like]} arg
907
+ * @param {Callback<SpStakingExposure> =} callback
908
+ **/
909
+ erasStakersClipped: GenericStorageQuery<
910
+ Rv,
911
+ (arg: [number, AccountId32Like]) => SpStakingExposure,
912
+ [number, AccountId32]
913
+ >;
914
+
915
+ /**
916
+ * Paginated exposure of a validator at given era.
917
+ *
918
+ * This is keyed first by the era index to allow bulk deletion, then stash account and finally
919
+ * the page. Should only be accessed through `EraInfo`.
920
+ *
921
+ * This is cleared after [`Config::HistoryDepth`] eras.
922
+ *
923
+ * @param {[number, AccountId32Like, number]} arg
924
+ * @param {Callback<SpStakingExposurePage | undefined> =} callback
925
+ **/
926
+ erasStakersPaged: GenericStorageQuery<
927
+ Rv,
928
+ (arg: [number, AccountId32Like, number]) => SpStakingExposurePage | undefined,
929
+ [number, AccountId32, number]
930
+ >;
931
+
932
+ /**
933
+ * History of claimed paged rewards by era and validator.
934
+ *
935
+ * This is keyed by era and validator stash which maps to the set of page indexes which have
936
+ * been claimed.
937
+ *
938
+ * It is removed after [`Config::HistoryDepth`] eras.
939
+ *
940
+ * @param {[number, AccountId32Like]} arg
941
+ * @param {Callback<Array<number>> =} callback
942
+ **/
943
+ claimedRewards: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => Array<number>, [number, AccountId32]>;
944
+
945
+ /**
946
+ * Similar to `ErasStakers`, this holds the preferences of validators.
947
+ *
948
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
949
+ *
950
+ * Is it removed after [`Config::HistoryDepth`] eras.
951
+ *
952
+ * @param {[number, AccountId32Like]} arg
953
+ * @param {Callback<PalletStakingValidatorPrefs> =} callback
954
+ **/
955
+ erasValidatorPrefs: GenericStorageQuery<
956
+ Rv,
957
+ (arg: [number, AccountId32Like]) => PalletStakingValidatorPrefs,
958
+ [number, AccountId32]
959
+ >;
960
+
961
+ /**
962
+ * The total validator era payout for the last [`Config::HistoryDepth`] eras.
963
+ *
964
+ * Eras that haven't finished yet or has been removed doesn't have reward.
965
+ *
966
+ * @param {number} arg
967
+ * @param {Callback<bigint | undefined> =} callback
968
+ **/
969
+ erasValidatorReward: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
970
+
971
+ /**
972
+ * Rewards for the last [`Config::HistoryDepth`] eras.
973
+ * If reward hasn't been set or has been removed then 0 reward is returned.
974
+ *
975
+ * @param {number} arg
976
+ * @param {Callback<PalletStakingEraRewardPoints> =} callback
977
+ **/
978
+ erasRewardPoints: GenericStorageQuery<Rv, (arg: number) => PalletStakingEraRewardPoints, number>;
979
+
980
+ /**
981
+ * The total amount staked for the last [`Config::HistoryDepth`] eras.
982
+ * If total hasn't been set or has been removed then 0 stake is returned.
983
+ *
984
+ * @param {number} arg
985
+ * @param {Callback<bigint> =} callback
986
+ **/
987
+ erasTotalStake: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
988
+
989
+ /**
990
+ * Mode of era forcing.
991
+ *
992
+ * @param {Callback<PalletStakingForcing> =} callback
993
+ **/
994
+ forceEra: GenericStorageQuery<Rv, () => PalletStakingForcing>;
995
+
996
+ /**
997
+ * Maximum staked rewards, i.e. the percentage of the era inflation that
998
+ * is used for stake rewards.
999
+ * See [Era payout](./index.html#era-payout).
1000
+ *
1001
+ * @param {Callback<Percent | undefined> =} callback
1002
+ **/
1003
+ maxStakedRewards: GenericStorageQuery<Rv, () => Percent | undefined>;
1004
+
1005
+ /**
1006
+ * The percentage of the slash that is distributed to reporters.
1007
+ *
1008
+ * The rest of the slashed value is handled by the `Slash`.
1009
+ *
1010
+ * @param {Callback<Perbill> =} callback
1011
+ **/
1012
+ slashRewardFraction: GenericStorageQuery<Rv, () => Perbill>;
1013
+
1014
+ /**
1015
+ * The amount of currency given to reporters of a slash event which was
1016
+ * canceled by extraordinary circumstances (e.g. governance).
1017
+ *
1018
+ * @param {Callback<bigint> =} callback
1019
+ **/
1020
+ canceledSlashPayout: GenericStorageQuery<Rv, () => bigint>;
1021
+
1022
+ /**
1023
+ * All unapplied slashes that are queued for later.
1024
+ *
1025
+ * @param {number} arg
1026
+ * @param {Callback<Array<PalletStakingUnappliedSlash>> =} callback
1027
+ **/
1028
+ unappliedSlashes: GenericStorageQuery<Rv, (arg: number) => Array<PalletStakingUnappliedSlash>, number>;
1029
+
1030
+ /**
1031
+ * A mapping from still-bonded eras to the first session index of that era.
1032
+ *
1033
+ * Must contains information for eras for the range:
1034
+ * `[active_era - bounding_duration; active_era]`
1035
+ *
1036
+ * @param {Callback<Array<[number, number]>> =} callback
1037
+ **/
1038
+ bondedEras: GenericStorageQuery<Rv, () => Array<[number, number]>>;
1039
+
1040
+ /**
1041
+ * All slashing events on validators, mapped by era to the highest slash proportion
1042
+ * and slash value of the era.
1043
+ *
1044
+ * @param {[number, AccountId32Like]} arg
1045
+ * @param {Callback<[Perbill, bigint] | undefined> =} callback
1046
+ **/
1047
+ validatorSlashInEra: GenericStorageQuery<
1048
+ Rv,
1049
+ (arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined,
1050
+ [number, AccountId32]
1051
+ >;
1052
+
1053
+ /**
1054
+ * All slashing events on nominators, mapped by era to the highest slash value of the era.
1055
+ *
1056
+ * @param {[number, AccountId32Like]} arg
1057
+ * @param {Callback<bigint | undefined> =} callback
1058
+ **/
1059
+ nominatorSlashInEra: GenericStorageQuery<
1060
+ Rv,
1061
+ (arg: [number, AccountId32Like]) => bigint | undefined,
1062
+ [number, AccountId32]
1063
+ >;
1064
+
1065
+ /**
1066
+ * Slashing spans for stash accounts.
1067
+ *
1068
+ * @param {AccountId32Like} arg
1069
+ * @param {Callback<PalletStakingSlashingSlashingSpans | undefined> =} callback
1070
+ **/
1071
+ slashingSpans: GenericStorageQuery<
1072
+ Rv,
1073
+ (arg: AccountId32Like) => PalletStakingSlashingSlashingSpans | undefined,
1074
+ AccountId32
1075
+ >;
1076
+
1077
+ /**
1078
+ * Records information about the maximum slash of a stash within a slashing span,
1079
+ * as well as how much reward has been paid out.
1080
+ *
1081
+ * @param {[AccountId32Like, number]} arg
1082
+ * @param {Callback<PalletStakingSlashingSpanRecord> =} callback
1083
+ **/
1084
+ spanSlash: GenericStorageQuery<
1085
+ Rv,
1086
+ (arg: [AccountId32Like, number]) => PalletStakingSlashingSpanRecord,
1087
+ [AccountId32, number]
1088
+ >;
1089
+
1090
+ /**
1091
+ * The last planned session scheduled by the session pallet.
1092
+ *
1093
+ * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
1094
+ *
1095
+ * @param {Callback<number> =} callback
1096
+ **/
1097
+ currentPlannedSession: GenericStorageQuery<Rv, () => number>;
1098
+
1099
+ /**
1100
+ * Indices of validators that have offended in the active era. The offenders are disabled for a
1101
+ * whole era. For this reason they are kept here - only staking pallet knows about eras. The
1102
+ * implementor of [`DisablingStrategy`] defines if a validator should be disabled which
1103
+ * implicitly means that the implementor also controls the max number of disabled validators.
1104
+ *
1105
+ * The vec is always kept sorted so that we can find whether a given validator has previously
1106
+ * offended using binary search.
1107
+ *
1108
+ * @param {Callback<Array<number>> =} callback
1109
+ **/
1110
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
1111
+
1112
+ /**
1113
+ * The threshold for when users can start calling `chill_other` for other validators /
1114
+ * nominators. The threshold is compared to the actual number of validators / nominators
1115
+ * (`CountFor*`) in the system compared to the configured max (`Max*Count`).
1116
+ *
1117
+ * @param {Callback<Percent | undefined> =} callback
1118
+ **/
1119
+ chillThreshold: GenericStorageQuery<Rv, () => Percent | undefined>;
1120
+
1121
+ /**
1122
+ * Generic pallet storage query
1123
+ **/
1124
+ [storage: string]: GenericStorageQuery<Rv>;
1125
+ };
1126
+ /**
1127
+ * Pallet `Offences`'s storage queries
1128
+ **/
1129
+ offences: {
1130
+ /**
1131
+ * The primary structure that holds all offence records keyed by report identifiers.
1132
+ *
1133
+ * @param {H256} arg
1134
+ * @param {Callback<SpStakingOffenceOffenceDetails | undefined> =} callback
1135
+ **/
1136
+ reports: GenericStorageQuery<Rv, (arg: H256) => SpStakingOffenceOffenceDetails | undefined, H256>;
1137
+
1138
+ /**
1139
+ * A vector of reports of the same kind that happened at the same time slot.
1140
+ *
1141
+ * @param {[FixedBytes<16>, BytesLike]} arg
1142
+ * @param {Callback<Array<H256>> =} callback
1143
+ **/
1144
+ concurrentReportsIndex: GenericStorageQuery<
1145
+ Rv,
1146
+ (arg: [FixedBytes<16>, BytesLike]) => Array<H256>,
1147
+ [FixedBytes<16>, Bytes]
1148
+ >;
1149
+
1150
+ /**
1151
+ * Generic pallet storage query
1152
+ **/
1153
+ [storage: string]: GenericStorageQuery<Rv>;
1154
+ };
1155
+ /**
1156
+ * Pallet `Historical`'s storage queries
1157
+ **/
1158
+ historical: {
1159
+ /**
1160
+ * Mapping from historical session indices to session-data root hash and validator count.
1161
+ *
1162
+ * @param {number} arg
1163
+ * @param {Callback<[H256, number] | undefined> =} callback
1164
+ **/
1165
+ historicalSessions: GenericStorageQuery<Rv, (arg: number) => [H256, number] | undefined, number>;
1166
+
1167
+ /**
1168
+ * The range of historical sessions we store. [first, last)
1169
+ *
1170
+ * @param {Callback<[number, number] | undefined> =} callback
1171
+ **/
1172
+ storedRange: GenericStorageQuery<Rv, () => [number, number] | undefined>;
1173
+
1174
+ /**
1175
+ * Generic pallet storage query
1176
+ **/
1177
+ [storage: string]: GenericStorageQuery<Rv>;
1178
+ };
1179
+ /**
1180
+ * Pallet `Session`'s storage queries
1181
+ **/
1182
+ session: {
1183
+ /**
1184
+ * The current set of validators.
1185
+ *
1186
+ * @param {Callback<Array<AccountId32>> =} callback
1187
+ **/
1188
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
1189
+
1190
+ /**
1191
+ * Current index of the session.
1192
+ *
1193
+ * @param {Callback<number> =} callback
1194
+ **/
1195
+ currentIndex: GenericStorageQuery<Rv, () => number>;
1196
+
1197
+ /**
1198
+ * True if the underlying economic identities or weighting behind the validators
1199
+ * has changed in the queued validator set.
1200
+ *
1201
+ * @param {Callback<boolean> =} callback
1202
+ **/
1203
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
1204
+
1205
+ /**
1206
+ * The queued keys for the next session. When the next session begins, these keys
1207
+ * will be used to determine the validator's session keys.
1208
+ *
1209
+ * @param {Callback<Array<[AccountId32, WestendRuntimeSessionKeys]>> =} callback
1210
+ **/
1211
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, WestendRuntimeSessionKeys]>>;
1212
+
1213
+ /**
1214
+ * Indices of disabled validators.
1215
+ *
1216
+ * The vec is always kept sorted so that we can find whether a given validator is
1217
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
1218
+ * a new set of identities.
1219
+ *
1220
+ * @param {Callback<Array<number>> =} callback
1221
+ **/
1222
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
1223
+
1224
+ /**
1225
+ * The next session keys for a validator.
1226
+ *
1227
+ * @param {AccountId32Like} arg
1228
+ * @param {Callback<WestendRuntimeSessionKeys | undefined> =} callback
1229
+ **/
1230
+ nextKeys: GenericStorageQuery<Rv, (arg: AccountId32Like) => WestendRuntimeSessionKeys | undefined, AccountId32>;
1231
+
1232
+ /**
1233
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
1234
+ *
1235
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
1236
+ * @param {Callback<AccountId32 | undefined> =} callback
1237
+ **/
1238
+ keyOwner: GenericStorageQuery<
1239
+ Rv,
1240
+ (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
1241
+ [SpCoreCryptoKeyTypeId, Bytes]
1242
+ >;
1243
+
1244
+ /**
1245
+ * Generic pallet storage query
1246
+ **/
1247
+ [storage: string]: GenericStorageQuery<Rv>;
1248
+ };
1249
+ /**
1250
+ * Pallet `Grandpa`'s storage queries
1251
+ **/
1252
+ grandpa: {
1253
+ /**
1254
+ * State of the current authority set.
1255
+ *
1256
+ * @param {Callback<PalletGrandpaStoredState> =} callback
1257
+ **/
1258
+ state: GenericStorageQuery<Rv, () => PalletGrandpaStoredState>;
1259
+
1260
+ /**
1261
+ * Pending change: (signaled at, scheduled change).
1262
+ *
1263
+ * @param {Callback<PalletGrandpaStoredPendingChange | undefined> =} callback
1264
+ **/
1265
+ pendingChange: GenericStorageQuery<Rv, () => PalletGrandpaStoredPendingChange | undefined>;
1266
+
1267
+ /**
1268
+ * next block number where we can force a change.
1269
+ *
1270
+ * @param {Callback<number | undefined> =} callback
1271
+ **/
1272
+ nextForced: GenericStorageQuery<Rv, () => number | undefined>;
1273
+
1274
+ /**
1275
+ * `true` if we are currently stalled.
1276
+ *
1277
+ * @param {Callback<[number, number] | undefined> =} callback
1278
+ **/
1279
+ stalled: GenericStorageQuery<Rv, () => [number, number] | undefined>;
1280
+
1281
+ /**
1282
+ * The number of changes (both in terms of keys and underlying economic responsibilities)
1283
+ * in the "set" of Grandpa validators from genesis.
1284
+ *
1285
+ * @param {Callback<bigint> =} callback
1286
+ **/
1287
+ currentSetId: GenericStorageQuery<Rv, () => bigint>;
1288
+
1289
+ /**
1290
+ * A mapping from grandpa set ID to the index of the *most recent* session for which its
1291
+ * members were responsible.
1292
+ *
1293
+ * This is only used for validating equivocation proofs. An equivocation proof must
1294
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
1295
+ * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
1296
+ * was the owner of a given key on a given session, and what the active set ID was
1297
+ * during that session.
1298
+ *
1299
+ * TWOX-NOTE: `SetId` is not under user control.
1300
+ *
1301
+ * @param {bigint} arg
1302
+ * @param {Callback<number | undefined> =} callback
1303
+ **/
1304
+ setIdSession: GenericStorageQuery<Rv, (arg: bigint) => number | undefined, bigint>;
1305
+
1306
+ /**
1307
+ * The current list of authorities.
1308
+ *
1309
+ * @param {Callback<Array<[SpConsensusGrandpaAppPublic, bigint]>> =} callback
1310
+ **/
1311
+ authorities: GenericStorageQuery<Rv, () => Array<[SpConsensusGrandpaAppPublic, bigint]>>;
1312
+
1313
+ /**
1314
+ * Generic pallet storage query
1315
+ **/
1316
+ [storage: string]: GenericStorageQuery<Rv>;
1317
+ };
1318
+ /**
1319
+ * Pallet `AuthorityDiscovery`'s storage queries
1320
+ **/
1321
+ authorityDiscovery: {
1322
+ /**
1323
+ * Keys of the current authority set.
1324
+ *
1325
+ * @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
1326
+ **/
1327
+ keys: GenericStorageQuery<Rv, () => Array<SpAuthorityDiscoveryAppPublic>>;
1328
+
1329
+ /**
1330
+ * Keys of the next authority set.
1331
+ *
1332
+ * @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
1333
+ **/
1334
+ nextKeys: GenericStorageQuery<Rv, () => Array<SpAuthorityDiscoveryAppPublic>>;
1335
+
1336
+ /**
1337
+ * Generic pallet storage query
1338
+ **/
1339
+ [storage: string]: GenericStorageQuery<Rv>;
1340
+ };
1341
+ /**
1342
+ * Pallet `Identity`'s storage queries
1343
+ **/
1344
+ identity: {
1345
+ /**
1346
+ * Information that is pertinent to identify the entity behind an account. First item is the
1347
+ * registration, second is the account's primary username.
1348
+ *
1349
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1350
+ *
1351
+ * @param {AccountId32Like} arg
1352
+ * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
1353
+ **/
1354
+ identityOf: GenericStorageQuery<
1355
+ Rv,
1356
+ (arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
1357
+ AccountId32
1358
+ >;
1359
+
1360
+ /**
1361
+ * The super-identity of an alternative "sub" identity together with its name, within that
1362
+ * context. If the account is not some other account's sub-identity, then just `None`.
1363
+ *
1364
+ * @param {AccountId32Like} arg
1365
+ * @param {Callback<[AccountId32, Data] | undefined> =} callback
1366
+ **/
1367
+ superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
1368
+
1369
+ /**
1370
+ * Alternative "sub" identities of this account.
1371
+ *
1372
+ * The first item is the deposit, the second is a vector of the accounts.
1373
+ *
1374
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1375
+ *
1376
+ * @param {AccountId32Like} arg
1377
+ * @param {Callback<[bigint, Array<AccountId32>]> =} callback
1378
+ **/
1379
+ subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
1380
+
1381
+ /**
1382
+ * The set of registrars. Not expected to get very big as can only be added through a
1383
+ * special origin (likely a council motion).
1384
+ *
1385
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
1386
+ *
1387
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1388
+ **/
1389
+ registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
1390
+
1391
+ /**
1392
+ * A map of the accounts who are authorized to grant usernames.
1393
+ *
1394
+ * @param {AccountId32Like} arg
1395
+ * @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
1396
+ **/
1397
+ usernameAuthorities: GenericStorageQuery<
1398
+ Rv,
1399
+ (arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
1400
+ AccountId32
1401
+ >;
1402
+
1403
+ /**
1404
+ * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
1405
+ * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
1406
+ *
1407
+ * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
1408
+ * primary username.
1409
+ *
1410
+ * @param {BytesLike} arg
1411
+ * @param {Callback<AccountId32 | undefined> =} callback
1412
+ **/
1413
+ accountOfUsername: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
1414
+
1415
+ /**
1416
+ * Usernames that an authority has granted, but that the account controller has not confirmed
1417
+ * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
1418
+ * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
1419
+ * [`Call::accept_username`].
1420
+ *
1421
+ * First tuple item is the account and second is the acceptance deadline.
1422
+ *
1423
+ * @param {BytesLike} arg
1424
+ * @param {Callback<[AccountId32, number] | undefined> =} callback
1425
+ **/
1426
+ pendingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
1427
+
1428
+ /**
1429
+ * Generic pallet storage query
1430
+ **/
1431
+ [storage: string]: GenericStorageQuery<Rv>;
1432
+ };
1433
+ /**
1434
+ * Pallet `Recovery`'s storage queries
1435
+ **/
1436
+ recovery: {
1437
+ /**
1438
+ * The set of recoverable accounts and their recovery configuration.
1439
+ *
1440
+ * @param {AccountId32Like} arg
1441
+ * @param {Callback<PalletRecoveryRecoveryConfig | undefined> =} callback
1442
+ **/
1443
+ recoverable: GenericStorageQuery<
1444
+ Rv,
1445
+ (arg: AccountId32Like) => PalletRecoveryRecoveryConfig | undefined,
1446
+ AccountId32
1447
+ >;
1448
+
1449
+ /**
1450
+ * Active recovery attempts.
1451
+ *
1452
+ * First account is the account to be recovered, and the second account
1453
+ * is the user trying to recover the account.
1454
+ *
1455
+ * @param {[AccountId32Like, AccountId32Like]} arg
1456
+ * @param {Callback<PalletRecoveryActiveRecovery | undefined> =} callback
1457
+ **/
1458
+ activeRecoveries: GenericStorageQuery<
1459
+ Rv,
1460
+ (arg: [AccountId32Like, AccountId32Like]) => PalletRecoveryActiveRecovery | undefined,
1461
+ [AccountId32, AccountId32]
1462
+ >;
1463
+
1464
+ /**
1465
+ * The list of allowed proxy accounts.
1466
+ *
1467
+ * Map from the user who can access it to the recovered account.
1468
+ *
1469
+ * @param {AccountId32Like} arg
1470
+ * @param {Callback<AccountId32 | undefined> =} callback
1471
+ **/
1472
+ proxy: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
1473
+
1474
+ /**
1475
+ * Generic pallet storage query
1476
+ **/
1477
+ [storage: string]: GenericStorageQuery<Rv>;
1478
+ };
1479
+ /**
1480
+ * Pallet `Vesting`'s storage queries
1481
+ **/
1482
+ vesting: {
1483
+ /**
1484
+ * Information regarding the vesting of a given account.
1485
+ *
1486
+ * @param {AccountId32Like} arg
1487
+ * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
1488
+ **/
1489
+ vesting: GenericStorageQuery<
1490
+ Rv,
1491
+ (arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined,
1492
+ AccountId32
1493
+ >;
1494
+
1495
+ /**
1496
+ * Storage version of the pallet.
1497
+ *
1498
+ * New networks start with latest version, as determined by the genesis build.
1499
+ *
1500
+ * @param {Callback<PalletVestingReleases> =} callback
1501
+ **/
1502
+ storageVersion: GenericStorageQuery<Rv, () => PalletVestingReleases>;
1503
+
1504
+ /**
1505
+ * Generic pallet storage query
1506
+ **/
1507
+ [storage: string]: GenericStorageQuery<Rv>;
1508
+ };
1509
+ /**
1510
+ * Pallet `Scheduler`'s storage queries
1511
+ **/
1512
+ scheduler: {
1513
+ /**
1514
+ *
1515
+ * @param {Callback<number | undefined> =} callback
1516
+ **/
1517
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
1518
+
1519
+ /**
1520
+ * Items to be executed, indexed by the block number that they should be executed on.
1521
+ *
1522
+ * @param {number} arg
1523
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
1524
+ **/
1525
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
1526
+
1527
+ /**
1528
+ * Retry configurations for items to be executed, indexed by task address.
1529
+ *
1530
+ * @param {[number, number]} arg
1531
+ * @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
1532
+ **/
1533
+ retries: GenericStorageQuery<
1534
+ Rv,
1535
+ (arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
1536
+ [number, number]
1537
+ >;
1538
+
1539
+ /**
1540
+ * Lookup from a name to the block number and index of the task.
1541
+ *
1542
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
1543
+ * identities.
1544
+ *
1545
+ * @param {FixedBytes<32>} arg
1546
+ * @param {Callback<[number, number] | undefined> =} callback
1547
+ **/
1548
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
1549
+
1550
+ /**
1551
+ * Generic pallet storage query
1552
+ **/
1553
+ [storage: string]: GenericStorageQuery<Rv>;
1554
+ };
1555
+ /**
1556
+ * Pallet `Preimage`'s storage queries
1557
+ **/
1558
+ preimage: {
1559
+ /**
1560
+ * The request status of a given hash.
1561
+ *
1562
+ * @param {H256} arg
1563
+ * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
1564
+ **/
1565
+ statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
1566
+
1567
+ /**
1568
+ * The request status of a given hash.
1569
+ *
1570
+ * @param {H256} arg
1571
+ * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
1572
+ **/
1573
+ requestStatusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
1574
+
1575
+ /**
1576
+ *
1577
+ * @param {[H256, number]} arg
1578
+ * @param {Callback<Bytes | undefined> =} callback
1579
+ **/
1580
+ preimageFor: GenericStorageQuery<Rv, (arg: [H256, number]) => Bytes | undefined, [H256, number]>;
1581
+
1582
+ /**
1583
+ * Generic pallet storage query
1584
+ **/
1585
+ [storage: string]: GenericStorageQuery<Rv>;
1586
+ };
1587
+ /**
1588
+ * Pallet `Sudo`'s storage queries
1589
+ **/
1590
+ sudo: {
1591
+ /**
1592
+ * The `AccountId` of the sudo key.
1593
+ *
1594
+ * @param {Callback<AccountId32 | undefined> =} callback
1595
+ **/
1596
+ key: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1597
+
1598
+ /**
1599
+ * Generic pallet storage query
1600
+ **/
1601
+ [storage: string]: GenericStorageQuery<Rv>;
1602
+ };
1603
+ /**
1604
+ * Pallet `Proxy`'s storage queries
1605
+ **/
1606
+ proxy: {
1607
+ /**
1608
+ * The set of account proxies. Maps the account which has delegated to the accounts
1609
+ * which are being delegated to, together with the amount held on deposit.
1610
+ *
1611
+ * @param {AccountId32Like} arg
1612
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1613
+ **/
1614
+ proxies: GenericStorageQuery<
1615
+ Rv,
1616
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
1617
+ AccountId32
1618
+ >;
1619
+
1620
+ /**
1621
+ * The announcements made by the proxy (key).
1622
+ *
1623
+ * @param {AccountId32Like} arg
1624
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1625
+ **/
1626
+ announcements: GenericStorageQuery<
1627
+ Rv,
1628
+ (arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
1629
+ AccountId32
1630
+ >;
1631
+
1632
+ /**
1633
+ * Generic pallet storage query
1634
+ **/
1635
+ [storage: string]: GenericStorageQuery<Rv>;
1636
+ };
1637
+ /**
1638
+ * Pallet `Multisig`'s storage queries
1639
+ **/
1640
+ multisig: {
1641
+ /**
1642
+ * The set of open multisig operations.
1643
+ *
1644
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
1645
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1646
+ **/
1647
+ multisigs: GenericStorageQuery<
1648
+ Rv,
1649
+ (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1650
+ [AccountId32, FixedBytes<32>]
1651
+ >;
1652
+
1653
+ /**
1654
+ * Generic pallet storage query
1655
+ **/
1656
+ [storage: string]: GenericStorageQuery<Rv>;
1657
+ };
1658
+ /**
1659
+ * Pallet `ElectionProviderMultiPhase`'s storage queries
1660
+ **/
1661
+ electionProviderMultiPhase: {
1662
+ /**
1663
+ * Internal counter for the number of rounds.
1664
+ *
1665
+ * This is useful for de-duplication of transactions submitted to the pool, and general
1666
+ * diagnostics of the pallet.
1667
+ *
1668
+ * This is merely incremented once per every time that an upstream `elect` is called.
1669
+ *
1670
+ * @param {Callback<number> =} callback
1671
+ **/
1672
+ round: GenericStorageQuery<Rv, () => number>;
1673
+
1674
+ /**
1675
+ * Current phase.
1676
+ *
1677
+ * @param {Callback<PalletElectionProviderMultiPhasePhase> =} callback
1678
+ **/
1679
+ currentPhase: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhasePhase>;
1680
+
1681
+ /**
1682
+ * Current best solution, signed or unsigned, queued to be returned upon `elect`.
1683
+ *
1684
+ * Always sorted by score.
1685
+ *
1686
+ * @param {Callback<PalletElectionProviderMultiPhaseReadySolution | undefined> =} callback
1687
+ **/
1688
+ queuedSolution: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhaseReadySolution | undefined>;
1689
+
1690
+ /**
1691
+ * Snapshot data of the round.
1692
+ *
1693
+ * This is created at the beginning of the signed phase and cleared upon calling `elect`.
1694
+ * Note: This storage type must only be mutated through [`SnapshotWrapper`].
1695
+ *
1696
+ * @param {Callback<PalletElectionProviderMultiPhaseRoundSnapshot | undefined> =} callback
1697
+ **/
1698
+ snapshot: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhaseRoundSnapshot | undefined>;
1699
+
1700
+ /**
1701
+ * Desired number of targets to elect for this round.
1702
+ *
1703
+ * Only exists when [`Snapshot`] is present.
1704
+ * Note: This storage type must only be mutated through [`SnapshotWrapper`].
1705
+ *
1706
+ * @param {Callback<number | undefined> =} callback
1707
+ **/
1708
+ desiredTargets: GenericStorageQuery<Rv, () => number | undefined>;
1709
+
1710
+ /**
1711
+ * The metadata of the [`RoundSnapshot`]
1712
+ *
1713
+ * Only exists when [`Snapshot`] is present.
1714
+ * Note: This storage type must only be mutated through [`SnapshotWrapper`].
1715
+ *
1716
+ * @param {Callback<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined> =} callback
1717
+ **/
1718
+ snapshotMetadata: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined>;
1719
+
1720
+ /**
1721
+ * The next index to be assigned to an incoming signed submission.
1722
+ *
1723
+ * Every accepted submission is assigned a unique index; that index is bound to that particular
1724
+ * submission for the duration of the election. On election finalization, the next index is
1725
+ * reset to 0.
1726
+ *
1727
+ * We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its
1728
+ * capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,
1729
+ * because iteration is slow. Instead, we store the value here.
1730
+ *
1731
+ * @param {Callback<number> =} callback
1732
+ **/
1733
+ signedSubmissionNextIndex: GenericStorageQuery<Rv, () => number>;
1734
+
1735
+ /**
1736
+ * A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
1737
+ * value in `SignedSubmissions`.
1738
+ *
1739
+ * We never need to process more than a single signed submission at a time. Signed submissions
1740
+ * can be quite large, so we're willing to pay the cost of multiple database accesses to access
1741
+ * them one at a time instead of reading and decoding all of them at once.
1742
+ *
1743
+ * @param {Callback<Array<[SpNposElectionsElectionScore, number, number]>> =} callback
1744
+ **/
1745
+ signedSubmissionIndices: GenericStorageQuery<Rv, () => Array<[SpNposElectionsElectionScore, number, number]>>;
1746
+
1747
+ /**
1748
+ * Unchecked, signed solutions.
1749
+ *
1750
+ * Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while
1751
+ * allowing us to keep only a single one in memory at a time.
1752
+ *
1753
+ * Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
1754
+ * affect; we shouldn't need a cryptographically secure hasher.
1755
+ *
1756
+ * @param {number} arg
1757
+ * @param {Callback<PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined> =} callback
1758
+ **/
1759
+ signedSubmissionsMap: GenericStorageQuery<
1760
+ Rv,
1761
+ (arg: number) => PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined,
1762
+ number
1763
+ >;
1764
+
1765
+ /**
1766
+ * The minimum score that each 'untrusted' solution must attain in order to be considered
1767
+ * feasible.
1768
+ *
1769
+ * Can be set via `set_minimum_untrusted_score`.
1770
+ *
1771
+ * @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
1772
+ **/
1773
+ minimumUntrustedScore: GenericStorageQuery<Rv, () => SpNposElectionsElectionScore | undefined>;
1774
+
1775
+ /**
1776
+ * Generic pallet storage query
1777
+ **/
1778
+ [storage: string]: GenericStorageQuery<Rv>;
1779
+ };
1780
+ /**
1781
+ * Pallet `VoterList`'s storage queries
1782
+ **/
1783
+ voterList: {
1784
+ /**
1785
+ * A single node, within some bag.
1786
+ *
1787
+ * Nodes store links forward and back within their respective bags.
1788
+ *
1789
+ * @param {AccountId32Like} arg
1790
+ * @param {Callback<PalletBagsListListNode | undefined> =} callback
1791
+ **/
1792
+ listNodes: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBagsListListNode | undefined, AccountId32>;
1793
+
1794
+ /**
1795
+ * Counter for the related counted storage map
1796
+ *
1797
+ * @param {Callback<number> =} callback
1798
+ **/
1799
+ counterForListNodes: GenericStorageQuery<Rv, () => number>;
1800
+
1801
+ /**
1802
+ * A bag stored in storage.
1803
+ *
1804
+ * Stores a `Bag` struct, which stores head and tail pointers to itself.
1805
+ *
1806
+ * @param {bigint} arg
1807
+ * @param {Callback<PalletBagsListListBag | undefined> =} callback
1808
+ **/
1809
+ listBags: GenericStorageQuery<Rv, (arg: bigint) => PalletBagsListListBag | undefined, bigint>;
1810
+
1811
+ /**
1812
+ * Generic pallet storage query
1813
+ **/
1814
+ [storage: string]: GenericStorageQuery<Rv>;
1815
+ };
1816
+ /**
1817
+ * Pallet `NominationPools`'s storage queries
1818
+ **/
1819
+ nominationPools: {
1820
+ /**
1821
+ * The sum of funds across all pools.
1822
+ *
1823
+ * This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
1824
+ * because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
1825
+ * `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
1826
+ *
1827
+ * @param {Callback<bigint> =} callback
1828
+ **/
1829
+ totalValueLocked: GenericStorageQuery<Rv, () => bigint>;
1830
+
1831
+ /**
1832
+ * Minimum amount to bond to join a pool.
1833
+ *
1834
+ * @param {Callback<bigint> =} callback
1835
+ **/
1836
+ minJoinBond: GenericStorageQuery<Rv, () => bigint>;
1837
+
1838
+ /**
1839
+ * Minimum bond required to create a pool.
1840
+ *
1841
+ * This is the amount that the depositor must put as their initial stake in the pool, as an
1842
+ * indication of "skin in the game".
1843
+ *
1844
+ * This is the value that will always exist in the staking ledger of the pool bonded account
1845
+ * while all other accounts leave.
1846
+ *
1847
+ * @param {Callback<bigint> =} callback
1848
+ **/
1849
+ minCreateBond: GenericStorageQuery<Rv, () => bigint>;
1850
+
1851
+ /**
1852
+ * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
1853
+ * pools can exist.
1854
+ *
1855
+ * @param {Callback<number | undefined> =} callback
1856
+ **/
1857
+ maxPools: GenericStorageQuery<Rv, () => number | undefined>;
1858
+
1859
+ /**
1860
+ * Maximum number of members that can exist in the system. If `None`, then the count
1861
+ * members are not bound on a system wide basis.
1862
+ *
1863
+ * @param {Callback<number | undefined> =} callback
1864
+ **/
1865
+ maxPoolMembers: GenericStorageQuery<Rv, () => number | undefined>;
1866
+
1867
+ /**
1868
+ * Maximum number of members that may belong to pool. If `None`, then the count of
1869
+ * members is not bound on a per pool basis.
1870
+ *
1871
+ * @param {Callback<number | undefined> =} callback
1872
+ **/
1873
+ maxPoolMembersPerPool: GenericStorageQuery<Rv, () => number | undefined>;
1874
+
1875
+ /**
1876
+ * The maximum commission that can be charged by a pool. Used on commission payouts to bound
1877
+ * pool commissions that are > `GlobalMaxCommission`, necessary if a future
1878
+ * `GlobalMaxCommission` is lower than some current pool commissions.
1879
+ *
1880
+ * @param {Callback<Perbill | undefined> =} callback
1881
+ **/
1882
+ globalMaxCommission: GenericStorageQuery<Rv, () => Perbill | undefined>;
1883
+
1884
+ /**
1885
+ * Active members.
1886
+ *
1887
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1888
+ *
1889
+ * @param {AccountId32Like} arg
1890
+ * @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
1891
+ **/
1892
+ poolMembers: GenericStorageQuery<
1893
+ Rv,
1894
+ (arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined,
1895
+ AccountId32
1896
+ >;
1897
+
1898
+ /**
1899
+ * Counter for the related counted storage map
1900
+ *
1901
+ * @param {Callback<number> =} callback
1902
+ **/
1903
+ counterForPoolMembers: GenericStorageQuery<Rv, () => number>;
1904
+
1905
+ /**
1906
+ * Storage for bonded pools.
1907
+ *
1908
+ * @param {number} arg
1909
+ * @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
1910
+ **/
1911
+ bondedPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsBondedPoolInner | undefined, number>;
1912
+
1913
+ /**
1914
+ * Counter for the related counted storage map
1915
+ *
1916
+ * @param {Callback<number> =} callback
1917
+ **/
1918
+ counterForBondedPools: GenericStorageQuery<Rv, () => number>;
1919
+
1920
+ /**
1921
+ * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
1922
+ * claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
1923
+ *
1924
+ * @param {number} arg
1925
+ * @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
1926
+ **/
1927
+ rewardPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsRewardPool | undefined, number>;
1928
+
1929
+ /**
1930
+ * Counter for the related counted storage map
1931
+ *
1932
+ * @param {Callback<number> =} callback
1933
+ **/
1934
+ counterForRewardPools: GenericStorageQuery<Rv, () => number>;
1935
+
1936
+ /**
1937
+ * Groups of unbonding pools. Each group of unbonding pools belongs to a
1938
+ * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
1939
+ *
1940
+ * @param {number} arg
1941
+ * @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
1942
+ **/
1943
+ subPoolsStorage: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsSubPools | undefined, number>;
1944
+
1945
+ /**
1946
+ * Counter for the related counted storage map
1947
+ *
1948
+ * @param {Callback<number> =} callback
1949
+ **/
1950
+ counterForSubPoolsStorage: GenericStorageQuery<Rv, () => number>;
1951
+
1952
+ /**
1953
+ * Metadata for the pool.
1954
+ *
1955
+ * @param {number} arg
1956
+ * @param {Callback<Bytes> =} callback
1957
+ **/
1958
+ metadata: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
1959
+
1960
+ /**
1961
+ * Counter for the related counted storage map
1962
+ *
1963
+ * @param {Callback<number> =} callback
1964
+ **/
1965
+ counterForMetadata: GenericStorageQuery<Rv, () => number>;
1966
+
1967
+ /**
1968
+ * Ever increasing number of all pools created so far.
1969
+ *
1970
+ * @param {Callback<number> =} callback
1971
+ **/
1972
+ lastPoolId: GenericStorageQuery<Rv, () => number>;
1973
+
1974
+ /**
1975
+ * A reverse lookup from the pool's account id to its id.
1976
+ *
1977
+ * This is only used for slashing and on automatic withdraw update. In all other instances, the
1978
+ * pool id is used, and the accounts are deterministically derived from it.
1979
+ *
1980
+ * @param {AccountId32Like} arg
1981
+ * @param {Callback<number | undefined> =} callback
1982
+ **/
1983
+ reversePoolIdLookup: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
1984
+
1985
+ /**
1986
+ * Counter for the related counted storage map
1987
+ *
1988
+ * @param {Callback<number> =} callback
1989
+ **/
1990
+ counterForReversePoolIdLookup: GenericStorageQuery<Rv, () => number>;
1991
+
1992
+ /**
1993
+ * Map from a pool member account to their opted claim permission.
1994
+ *
1995
+ * @param {AccountId32Like} arg
1996
+ * @param {Callback<PalletNominationPoolsClaimPermission> =} callback
1997
+ **/
1998
+ claimPermissions: GenericStorageQuery<
1999
+ Rv,
2000
+ (arg: AccountId32Like) => PalletNominationPoolsClaimPermission,
2001
+ AccountId32
2002
+ >;
2003
+
2004
+ /**
2005
+ * Generic pallet storage query
2006
+ **/
2007
+ [storage: string]: GenericStorageQuery<Rv>;
2008
+ };
2009
+ /**
2010
+ * Pallet `FastUnstake`'s storage queries
2011
+ **/
2012
+ fastUnstake: {
2013
+ /**
2014
+ * The current "head of the queue" being unstaked.
2015
+ *
2016
+ * The head in itself can be a batch of up to [`Config::BatchSize`] stakers.
2017
+ *
2018
+ * @param {Callback<PalletFastUnstakeUnstakeRequest | undefined> =} callback
2019
+ **/
2020
+ head: GenericStorageQuery<Rv, () => PalletFastUnstakeUnstakeRequest | undefined>;
2021
+
2022
+ /**
2023
+ * The map of all accounts wishing to be unstaked.
2024
+ *
2025
+ * Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
2026
+ *
2027
+ * @param {AccountId32Like} arg
2028
+ * @param {Callback<bigint | undefined> =} callback
2029
+ **/
2030
+ queue: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint | undefined, AccountId32>;
2031
+
2032
+ /**
2033
+ * Counter for the related counted storage map
2034
+ *
2035
+ * @param {Callback<number> =} callback
2036
+ **/
2037
+ counterForQueue: GenericStorageQuery<Rv, () => number>;
2038
+
2039
+ /**
2040
+ * Number of eras to check per block.
2041
+ *
2042
+ * If set to 0, this pallet does absolutely nothing. Cannot be set to more than
2043
+ * [`Config::MaxErasToCheckPerBlock`].
2044
+ *
2045
+ * Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are
2046
+ * checked. The checking is represented by updating [`UnstakeRequest::checked`], which is
2047
+ * stored in [`Head`].
2048
+ *
2049
+ * @param {Callback<number> =} callback
2050
+ **/
2051
+ erasToCheckPerBlock: GenericStorageQuery<Rv, () => number>;
2052
+
2053
+ /**
2054
+ * Generic pallet storage query
2055
+ **/
2056
+ [storage: string]: GenericStorageQuery<Rv>;
2057
+ };
2058
+ /**
2059
+ * Pallet `ConvictionVoting`'s storage queries
2060
+ **/
2061
+ convictionVoting: {
2062
+ /**
2063
+ * All voting for a particular voter in a particular voting class. We store the balance for the
2064
+ * number of votes that we have recorded.
2065
+ *
2066
+ * @param {[AccountId32Like, number]} arg
2067
+ * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
2068
+ **/
2069
+ votingFor: GenericStorageQuery<
2070
+ Rv,
2071
+ (arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting,
2072
+ [AccountId32, number]
2073
+ >;
2074
+
2075
+ /**
2076
+ * The voting classes which have a non-zero lock requirement and the lock amounts which they
2077
+ * require. The actual amount locked on behalf of this pallet should always be the maximum of
2078
+ * this list.
2079
+ *
2080
+ * @param {AccountId32Like} arg
2081
+ * @param {Callback<Array<[number, bigint]>> =} callback
2082
+ **/
2083
+ classLocksFor: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<[number, bigint]>, AccountId32>;
2084
+
2085
+ /**
2086
+ * Generic pallet storage query
2087
+ **/
2088
+ [storage: string]: GenericStorageQuery<Rv>;
2089
+ };
2090
+ /**
2091
+ * Pallet `Referenda`'s storage queries
2092
+ **/
2093
+ referenda: {
2094
+ /**
2095
+ * The next free referendum index, aka the number of referenda started so far.
2096
+ *
2097
+ * @param {Callback<number> =} callback
2098
+ **/
2099
+ referendumCount: GenericStorageQuery<Rv, () => number>;
2100
+
2101
+ /**
2102
+ * Information concerning any given referendum.
2103
+ *
2104
+ * @param {number} arg
2105
+ * @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
2106
+ **/
2107
+ referendumInfoFor: GenericStorageQuery<Rv, (arg: number) => PalletReferendaReferendumInfo | undefined, number>;
2108
+
2109
+ /**
2110
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
2111
+ * conviction-weighted approvals.
2112
+ *
2113
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
2114
+ *
2115
+ * @param {number} arg
2116
+ * @param {Callback<Array<[number, bigint]>> =} callback
2117
+ **/
2118
+ trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, bigint]>, number>;
2119
+
2120
+ /**
2121
+ * The number of referenda being decided currently.
2122
+ *
2123
+ * @param {number} arg
2124
+ * @param {Callback<number> =} callback
2125
+ **/
2126
+ decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
2127
+
2128
+ /**
2129
+ * The metadata is a general information concerning the referendum.
2130
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
2131
+ * dump or IPFS hash of a JSON file.
2132
+ *
2133
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
2134
+ * large preimages.
2135
+ *
2136
+ * @param {number} arg
2137
+ * @param {Callback<H256 | undefined> =} callback
2138
+ **/
2139
+ metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
2140
+
2141
+ /**
2142
+ * Generic pallet storage query
2143
+ **/
2144
+ [storage: string]: GenericStorageQuery<Rv>;
2145
+ };
2146
+ /**
2147
+ * Pallet `Whitelist`'s storage queries
2148
+ **/
2149
+ whitelist: {
2150
+ /**
2151
+ *
2152
+ * @param {H256} arg
2153
+ * @param {Callback<[] | undefined> =} callback
2154
+ **/
2155
+ whitelistedCall: GenericStorageQuery<Rv, (arg: H256) => [] | undefined, H256>;
2156
+
2157
+ /**
2158
+ * Generic pallet storage query
2159
+ **/
2160
+ [storage: string]: GenericStorageQuery<Rv>;
2161
+ };
2162
+ /**
2163
+ * Pallet `Treasury`'s storage queries
2164
+ **/
2165
+ treasury: {
2166
+ /**
2167
+ * Number of proposals that have been made.
2168
+ *
2169
+ * @param {Callback<number> =} callback
2170
+ **/
2171
+ proposalCount: GenericStorageQuery<Rv, () => number>;
2172
+
2173
+ /**
2174
+ * Proposals that have been made.
2175
+ *
2176
+ * @param {number} arg
2177
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
2178
+ **/
2179
+ proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
2180
+
2181
+ /**
2182
+ * The amount which has been reported as inactive to Currency.
2183
+ *
2184
+ * @param {Callback<bigint> =} callback
2185
+ **/
2186
+ deactivated: GenericStorageQuery<Rv, () => bigint>;
2187
+
2188
+ /**
2189
+ * Proposal indices that have been approved but not yet awarded.
2190
+ *
2191
+ * @param {Callback<Array<number>> =} callback
2192
+ **/
2193
+ approvals: GenericStorageQuery<Rv, () => Array<number>>;
2194
+
2195
+ /**
2196
+ * The count of spends that have been made.
2197
+ *
2198
+ * @param {Callback<number> =} callback
2199
+ **/
2200
+ spendCount: GenericStorageQuery<Rv, () => number>;
2201
+
2202
+ /**
2203
+ * Spends that have been approved and being processed.
2204
+ *
2205
+ * @param {number} arg
2206
+ * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
2207
+ **/
2208
+ spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
2209
+
2210
+ /**
2211
+ * Generic pallet storage query
2212
+ **/
2213
+ [storage: string]: GenericStorageQuery<Rv>;
2214
+ };
2215
+ /**
2216
+ * Pallet `DelegatedStaking`'s storage queries
2217
+ **/
2218
+ delegatedStaking: {
2219
+ /**
2220
+ * Map of Delegators to their `Delegation`.
2221
+ *
2222
+ * Implementation note: We are not using a double map with `delegator` and `agent` account
2223
+ * as keys since we want to restrict delegators to delegate only to one account at a time.
2224
+ *
2225
+ * @param {AccountId32Like} arg
2226
+ * @param {Callback<PalletDelegatedStakingDelegation | undefined> =} callback
2227
+ **/
2228
+ delegators: GenericStorageQuery<
2229
+ Rv,
2230
+ (arg: AccountId32Like) => PalletDelegatedStakingDelegation | undefined,
2231
+ AccountId32
2232
+ >;
2233
+
2234
+ /**
2235
+ * Counter for the related counted storage map
2236
+ *
2237
+ * @param {Callback<number> =} callback
2238
+ **/
2239
+ counterForDelegators: GenericStorageQuery<Rv, () => number>;
2240
+
2241
+ /**
2242
+ * Map of `Agent` to their `Ledger`.
2243
+ *
2244
+ * @param {AccountId32Like} arg
2245
+ * @param {Callback<PalletDelegatedStakingAgentLedger | undefined> =} callback
2246
+ **/
2247
+ agents: GenericStorageQuery<
2248
+ Rv,
2249
+ (arg: AccountId32Like) => PalletDelegatedStakingAgentLedger | undefined,
2250
+ AccountId32
2251
+ >;
2252
+
2253
+ /**
2254
+ * Counter for the related counted storage map
2255
+ *
2256
+ * @param {Callback<number> =} callback
2257
+ **/
2258
+ counterForAgents: GenericStorageQuery<Rv, () => number>;
2259
+
2260
+ /**
2261
+ * Generic pallet storage query
2262
+ **/
2263
+ [storage: string]: GenericStorageQuery<Rv>;
2264
+ };
2265
+ /**
2266
+ * Pallet `Configuration`'s storage queries
2267
+ **/
2268
+ configuration: {
2269
+ /**
2270
+ * The active configuration for the current session.
2271
+ *
2272
+ * @param {Callback<PolkadotRuntimeParachainsConfigurationHostConfiguration> =} callback
2273
+ **/
2274
+ activeConfig: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsConfigurationHostConfiguration>;
2275
+
2276
+ /**
2277
+ * Pending configuration changes.
2278
+ *
2279
+ * This is a list of configuration changes, each with a session index at which it should
2280
+ * be applied.
2281
+ *
2282
+ * The list is sorted ascending by session index. Also, this list can only contain at most
2283
+ * 2 items: for the next session and for the `scheduled_session`.
2284
+ *
2285
+ * @param {Callback<Array<[number, PolkadotRuntimeParachainsConfigurationHostConfiguration]>> =} callback
2286
+ **/
2287
+ pendingConfigs: GenericStorageQuery<
2288
+ Rv,
2289
+ () => Array<[number, PolkadotRuntimeParachainsConfigurationHostConfiguration]>
2290
+ >;
2291
+
2292
+ /**
2293
+ * If this is set, then the configuration setters will bypass the consistency checks. This
2294
+ * is meant to be used only as the last resort.
2295
+ *
2296
+ * @param {Callback<boolean> =} callback
2297
+ **/
2298
+ bypassConsistencyCheck: GenericStorageQuery<Rv, () => boolean>;
2299
+
2300
+ /**
2301
+ * Generic pallet storage query
2302
+ **/
2303
+ [storage: string]: GenericStorageQuery<Rv>;
2304
+ };
2305
+ /**
2306
+ * Pallet `ParasShared`'s storage queries
2307
+ **/
2308
+ parasShared: {
2309
+ /**
2310
+ * The current session index.
2311
+ *
2312
+ * @param {Callback<number> =} callback
2313
+ **/
2314
+ currentSessionIndex: GenericStorageQuery<Rv, () => number>;
2315
+
2316
+ /**
2317
+ * All the validators actively participating in parachain consensus.
2318
+ * Indices are into the broader validator set.
2319
+ *
2320
+ * @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex>> =} callback
2321
+ **/
2322
+ activeValidatorIndices: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorIndex>>;
2323
+
2324
+ /**
2325
+ * The parachain attestation keys of the validators actively participating in parachain
2326
+ * consensus. This should be the same length as `ActiveValidatorIndices`.
2327
+ *
2328
+ * @param {Callback<Array<PolkadotPrimitivesV7ValidatorAppPublic>> =} callback
2329
+ **/
2330
+ activeValidatorKeys: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorAppPublic>>;
2331
+
2332
+ /**
2333
+ * All allowed relay-parents.
2334
+ *
2335
+ * @param {Callback<PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker> =} callback
2336
+ **/
2337
+ allowedRelayParents: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker>;
2338
+
2339
+ /**
2340
+ * Generic pallet storage query
2341
+ **/
2342
+ [storage: string]: GenericStorageQuery<Rv>;
2343
+ };
2344
+ /**
2345
+ * Pallet `ParaInclusion`'s storage queries
2346
+ **/
2347
+ paraInclusion: {
2348
+ /**
2349
+ * Candidates pending availability by `ParaId`. They form a chain starting from the latest
2350
+ * included head of the para.
2351
+ * Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage
2352
+ * would otherwise have the exact same prefix which could cause undefined behaviour when doing
2353
+ * the migration.
2354
+ *
2355
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2356
+ * @param {Callback<Array<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability> | undefined> =} callback
2357
+ **/
2358
+ v1: GenericStorageQuery<
2359
+ Rv,
2360
+ (
2361
+ arg: PolkadotParachainPrimitivesPrimitivesId,
2362
+ ) => Array<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability> | undefined,
2363
+ PolkadotParachainPrimitivesPrimitivesId
2364
+ >;
2365
+
2366
+ /**
2367
+ * Generic pallet storage query
2368
+ **/
2369
+ [storage: string]: GenericStorageQuery<Rv>;
2370
+ };
2371
+ /**
2372
+ * Pallet `ParaInherent`'s storage queries
2373
+ **/
2374
+ paraInherent: {
2375
+ /**
2376
+ * Whether the paras inherent was included within this block.
2377
+ *
2378
+ * The `Option<()>` is effectively a `bool`, but it never hits storage in the `None` variant
2379
+ * due to the guarantees of FRAME's storage APIs.
2380
+ *
2381
+ * If this is `None` at the end of the block, we panic and render the block invalid.
2382
+ *
2383
+ * @param {Callback<[] | undefined> =} callback
2384
+ **/
2385
+ included: GenericStorageQuery<Rv, () => [] | undefined>;
2386
+
2387
+ /**
2388
+ * Scraped on chain data for extracting resolved disputes as well as backing votes.
2389
+ *
2390
+ * @param {Callback<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined> =} callback
2391
+ **/
2392
+ onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>;
2393
+
2394
+ /**
2395
+ * Generic pallet storage query
2396
+ **/
2397
+ [storage: string]: GenericStorageQuery<Rv>;
2398
+ };
2399
+ /**
2400
+ * Pallet `ParaScheduler`'s storage queries
2401
+ **/
2402
+ paraScheduler: {
2403
+ /**
2404
+ * All the validator groups. One for each core. Indices are into `ActiveValidators` - not the
2405
+ * broader set of Polkadot validators, but instead just the subset used for parachains during
2406
+ * this session.
2407
+ *
2408
+ * Bound: The number of cores is the sum of the numbers of parachains and parathread
2409
+ * multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
2410
+ * upper bound at 10k.
2411
+ *
2412
+ * @param {Callback<Array<Array<PolkadotPrimitivesV7ValidatorIndex>>> =} callback
2413
+ **/
2414
+ validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
2415
+
2416
+ /**
2417
+ * One entry for each availability core. The i'th parachain belongs to the i'th core, with the
2418
+ * remaining cores all being on demand parachain multiplexers.
2419
+ *
2420
+ * Bounded by the maximum of either of these two values:
2421
+ * * The number of parachains and parathread multiplexers
2422
+ * * The number of validators divided by `configuration.max_validators_per_core`.
2423
+ *
2424
+ * @param {Callback<Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>> =} callback
2425
+ **/
2426
+ availabilityCores: GenericStorageQuery<Rv, () => Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>;
2427
+
2428
+ /**
2429
+ * The block number where the session start occurred. Used to track how many group rotations
2430
+ * have occurred.
2431
+ *
2432
+ * Note that in the context of parachains modules the session change is signaled during
2433
+ * the block and enacted at the end of the block (at the finalization stage, to be exact).
2434
+ * Thus for all intents and purposes the effect of the session change is observed at the
2435
+ * block following the session change, block number of which we save in this storage value.
2436
+ *
2437
+ * @param {Callback<number> =} callback
2438
+ **/
2439
+ sessionStartBlock: GenericStorageQuery<Rv, () => number>;
2440
+
2441
+ /**
2442
+ * One entry for each availability core. The `VecDeque` represents the assignments to be
2443
+ * scheduled on that core. The value contained here will not be valid after the end of
2444
+ * a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
2445
+ *
2446
+ * @param {Callback<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2447
+ **/
2448
+ claimQueue: GenericStorageQuery<
2449
+ Rv,
2450
+ () => Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2451
+ >;
2452
+
2453
+ /**
2454
+ * Generic pallet storage query
2455
+ **/
2456
+ [storage: string]: GenericStorageQuery<Rv>;
2457
+ };
2458
+ /**
2459
+ * Pallet `Paras`'s storage queries
2460
+ **/
2461
+ paras: {
2462
+ /**
2463
+ * All currently active PVF pre-checking votes.
2464
+ *
2465
+ * Invariant:
2466
+ * - There are no PVF pre-checking votes that exists in list but not in the set and vice versa.
2467
+ *
2468
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
2469
+ * @param {Callback<PolkadotRuntimeParachainsParasPvfCheckActiveVoteState | undefined> =} callback
2470
+ **/
2471
+ pvfActiveVoteMap: GenericStorageQuery<
2472
+ Rv,
2473
+ (
2474
+ arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
2475
+ ) => PolkadotRuntimeParachainsParasPvfCheckActiveVoteState | undefined,
2476
+ PolkadotParachainPrimitivesPrimitivesValidationCodeHash
2477
+ >;
2478
+
2479
+ /**
2480
+ * The list of all currently active PVF votes. Auxiliary to `PvfActiveVoteMap`.
2481
+ *
2482
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>> =} callback
2483
+ **/
2484
+ pvfActiveVoteList: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>>;
2485
+
2486
+ /**
2487
+ * All lease holding parachains. Ordered ascending by `ParaId`. On demand parachains are not
2488
+ * included.
2489
+ *
2490
+ * Consider using the [`ParachainsCache`] type of modifying.
2491
+ *
2492
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2493
+ **/
2494
+ parachains: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
2495
+
2496
+ /**
2497
+ * The current lifecycle of a all known Para IDs.
2498
+ *
2499
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2500
+ * @param {Callback<PolkadotRuntimeParachainsParasParaLifecycle | undefined> =} callback
2501
+ **/
2502
+ paraLifecycles: GenericStorageQuery<
2503
+ Rv,
2504
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaLifecycle | undefined,
2505
+ PolkadotParachainPrimitivesPrimitivesId
2506
+ >;
2507
+
2508
+ /**
2509
+ * The head-data of every registered para.
2510
+ *
2511
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2512
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesHeadData | undefined> =} callback
2513
+ **/
2514
+ heads: GenericStorageQuery<
2515
+ Rv,
2516
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotParachainPrimitivesPrimitivesHeadData | undefined,
2517
+ PolkadotParachainPrimitivesPrimitivesId
2518
+ >;
2519
+
2520
+ /**
2521
+ * The context (relay-chain block number) of the most recent parachain head.
2522
+ *
2523
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2524
+ * @param {Callback<number | undefined> =} callback
2525
+ **/
2526
+ mostRecentContext: GenericStorageQuery<
2527
+ Rv,
2528
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined,
2529
+ PolkadotParachainPrimitivesPrimitivesId
2530
+ >;
2531
+
2532
+ /**
2533
+ * The validation code hash of every live para.
2534
+ *
2535
+ * Corresponding code can be retrieved with [`CodeByHash`].
2536
+ *
2537
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2538
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
2539
+ **/
2540
+ currentCodeHash: GenericStorageQuery<
2541
+ Rv,
2542
+ (
2543
+ arg: PolkadotParachainPrimitivesPrimitivesId,
2544
+ ) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined,
2545
+ PolkadotParachainPrimitivesPrimitivesId
2546
+ >;
2547
+
2548
+ /**
2549
+ * Actual past code hash, indicated by the para id as well as the block number at which it
2550
+ * became outdated.
2551
+ *
2552
+ * Corresponding code can be retrieved with [`CodeByHash`].
2553
+ *
2554
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
2555
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
2556
+ **/
2557
+ pastCodeHash: GenericStorageQuery<
2558
+ Rv,
2559
+ (
2560
+ arg: [PolkadotParachainPrimitivesPrimitivesId, number],
2561
+ ) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined,
2562
+ [PolkadotParachainPrimitivesPrimitivesId, number]
2563
+ >;
2564
+
2565
+ /**
2566
+ * Past code of parachains. The parachains themselves may not be registered anymore,
2567
+ * but we also keep their code on-chain for the same amount of time as outdated code
2568
+ * to keep it available for approval checkers.
2569
+ *
2570
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2571
+ * @param {Callback<PolkadotRuntimeParachainsParasParaPastCodeMeta> =} callback
2572
+ **/
2573
+ pastCodeMeta: GenericStorageQuery<
2574
+ Rv,
2575
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaPastCodeMeta,
2576
+ PolkadotParachainPrimitivesPrimitivesId
2577
+ >;
2578
+
2579
+ /**
2580
+ * Which paras have past code that needs pruning and the relay-chain block at which the code
2581
+ * was replaced. Note that this is the actual height of the included block, not the expected
2582
+ * height at which the code upgrade would be applied, although they may be equal.
2583
+ * This is to ensure the entire acceptance period is covered, not an offset acceptance period
2584
+ * starting from the time at which the parachain perceives a code upgrade as having occurred.
2585
+ * Multiple entries for a single para are permitted. Ordered ascending by block number.
2586
+ *
2587
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
2588
+ **/
2589
+ pastCodePruning: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2590
+
2591
+ /**
2592
+ * The block number at which the planned code change is expected for a parachain.
2593
+ *
2594
+ * The change will be applied after the first parablock for this ID included which executes
2595
+ * in the context of a relay chain block with a number >= `expected_at`.
2596
+ *
2597
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2598
+ * @param {Callback<number | undefined> =} callback
2599
+ **/
2600
+ futureCodeUpgrades: GenericStorageQuery<
2601
+ Rv,
2602
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined,
2603
+ PolkadotParachainPrimitivesPrimitivesId
2604
+ >;
2605
+
2606
+ /**
2607
+ * The list of upcoming future code upgrades.
2608
+ *
2609
+ * Each item is a pair of the parachain and the expected block at which the upgrade should be
2610
+ * applied. The upgrade will be applied at the given relay chain block. In contrast to
2611
+ * [`FutureCodeUpgrades`] this code upgrade will be applied regardless the parachain making any
2612
+ * progress or not.
2613
+ *
2614
+ * Ordered ascending by block number.
2615
+ *
2616
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
2617
+ **/
2618
+ futureCodeUpgradesAt: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2619
+
2620
+ /**
2621
+ * The actual future code hash of a para.
2622
+ *
2623
+ * Corresponding code can be retrieved with [`CodeByHash`].
2624
+ *
2625
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2626
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
2627
+ **/
2628
+ futureCodeHash: GenericStorageQuery<
2629
+ Rv,
2630
+ (
2631
+ arg: PolkadotParachainPrimitivesPrimitivesId,
2632
+ ) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined,
2633
+ PolkadotParachainPrimitivesPrimitivesId
2634
+ >;
2635
+
2636
+ /**
2637
+ * This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade
2638
+ * procedure.
2639
+ *
2640
+ * This value is absent when there are no upgrades scheduled or during the time the relay chain
2641
+ * performs the checks. It is set at the first relay-chain block when the corresponding
2642
+ * parachain can switch its upgrade function. As soon as the parachain's block is included, the
2643
+ * value gets reset to `None`.
2644
+ *
2645
+ * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
2646
+ * the format will require migration of parachains.
2647
+ *
2648
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2649
+ * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
2650
+ **/
2651
+ upgradeGoAheadSignal: GenericStorageQuery<
2652
+ Rv,
2653
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeGoAhead | undefined,
2654
+ PolkadotParachainPrimitivesPrimitivesId
2655
+ >;
2656
+
2657
+ /**
2658
+ * This is used by the relay-chain to communicate that there are restrictions for performing
2659
+ * an upgrade for this parachain.
2660
+ *
2661
+ * This may be a because the parachain waits for the upgrade cooldown to expire. Another
2662
+ * potential use case is when we want to perform some maintenance (such as storage migration)
2663
+ * we could restrict upgrades to make the process simpler.
2664
+ *
2665
+ * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
2666
+ * the format will require migration of parachains.
2667
+ *
2668
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2669
+ * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
2670
+ **/
2671
+ upgradeRestrictionSignal: GenericStorageQuery<
2672
+ Rv,
2673
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeRestriction | undefined,
2674
+ PolkadotParachainPrimitivesPrimitivesId
2675
+ >;
2676
+
2677
+ /**
2678
+ * The list of parachains that are awaiting for their upgrade restriction to cooldown.
2679
+ *
2680
+ * Ordered ascending by block number.
2681
+ *
2682
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
2683
+ **/
2684
+ upgradeCooldowns: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2685
+
2686
+ /**
2687
+ * The list of upcoming code upgrades.
2688
+ *
2689
+ * Each item is a pair of which para performs a code upgrade and at which relay-chain block it
2690
+ * is expected at.
2691
+ *
2692
+ * Ordered ascending by block number.
2693
+ *
2694
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
2695
+ **/
2696
+ upcomingUpgrades: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2697
+
2698
+ /**
2699
+ * The actions to perform during the start of a specific session index.
2700
+ *
2701
+ * @param {number} arg
2702
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2703
+ **/
2704
+ actionsQueue: GenericStorageQuery<Rv, (arg: number) => Array<PolkadotParachainPrimitivesPrimitivesId>, number>;
2705
+
2706
+ /**
2707
+ * Upcoming paras instantiation arguments.
2708
+ *
2709
+ * NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set
2710
+ * to empty. Instead, the code will be saved into the storage right away via `CodeByHash`.
2711
+ *
2712
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2713
+ * @param {Callback<PolkadotRuntimeParachainsParasParaGenesisArgs | undefined> =} callback
2714
+ **/
2715
+ upcomingParasGenesis: GenericStorageQuery<
2716
+ Rv,
2717
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaGenesisArgs | undefined,
2718
+ PolkadotParachainPrimitivesPrimitivesId
2719
+ >;
2720
+
2721
+ /**
2722
+ * The number of reference on the validation code in [`CodeByHash`] storage.
2723
+ *
2724
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
2725
+ * @param {Callback<number> =} callback
2726
+ **/
2727
+ codeByHashRefs: GenericStorageQuery<
2728
+ Rv,
2729
+ (arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash) => number,
2730
+ PolkadotParachainPrimitivesPrimitivesValidationCodeHash
2731
+ >;
2732
+
2733
+ /**
2734
+ * Validation code stored by its hash.
2735
+ *
2736
+ * This storage is consistent with [`FutureCodeHash`], [`CurrentCodeHash`] and
2737
+ * [`PastCodeHash`].
2738
+ *
2739
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
2740
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined> =} callback
2741
+ **/
2742
+ codeByHash: GenericStorageQuery<
2743
+ Rv,
2744
+ (
2745
+ arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
2746
+ ) => PolkadotParachainPrimitivesPrimitivesValidationCode | undefined,
2747
+ PolkadotParachainPrimitivesPrimitivesValidationCodeHash
2748
+ >;
2749
+
2750
+ /**
2751
+ * Generic pallet storage query
2752
+ **/
2753
+ [storage: string]: GenericStorageQuery<Rv>;
2754
+ };
2755
+ /**
2756
+ * Pallet `Initializer`'s storage queries
2757
+ **/
2758
+ initializer: {
2759
+ /**
2760
+ * Whether the parachains modules have been initialized within this block.
2761
+ *
2762
+ * Semantically a `bool`, but this guarantees it should never hit the trie,
2763
+ * as this is cleared in `on_finalize` and Frame optimizes `None` values to be empty values.
2764
+ *
2765
+ * As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one
2766
+ * of them writes to the trie and one does not. This confusion makes `Option<()>` more suitable
2767
+ * for the semantics of this variable.
2768
+ *
2769
+ * @param {Callback<[] | undefined> =} callback
2770
+ **/
2771
+ hasInitialized: GenericStorageQuery<Rv, () => [] | undefined>;
2772
+
2773
+ /**
2774
+ * Buffered session changes along with the block number at which they should be applied.
2775
+ *
2776
+ * Typically this will be empty or one element long. Apart from that this item never hits
2777
+ * the storage.
2778
+ *
2779
+ * However this is a `Vec` regardless to handle various edge cases that may occur at runtime
2780
+ * upgrade boundaries or if governance intervenes.
2781
+ *
2782
+ * @param {Callback<Array<PolkadotRuntimeParachainsInitializerBufferedSessionChange>> =} callback
2783
+ **/
2784
+ bufferedSessionChanges: GenericStorageQuery<
2785
+ Rv,
2786
+ () => Array<PolkadotRuntimeParachainsInitializerBufferedSessionChange>
2787
+ >;
2788
+
2789
+ /**
2790
+ * Generic pallet storage query
2791
+ **/
2792
+ [storage: string]: GenericStorageQuery<Rv>;
2793
+ };
2794
+ /**
2795
+ * Pallet `Dmp`'s storage queries
2796
+ **/
2797
+ dmp: {
2798
+ /**
2799
+ * The downward messages addressed for a certain para.
2800
+ *
2801
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2802
+ * @param {Callback<Array<PolkadotCorePrimitivesInboundDownwardMessage>> =} callback
2803
+ **/
2804
+ downwardMessageQueues: GenericStorageQuery<
2805
+ Rv,
2806
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotCorePrimitivesInboundDownwardMessage>,
2807
+ PolkadotParachainPrimitivesPrimitivesId
2808
+ >;
2809
+
2810
+ /**
2811
+ * A mapping that stores the downward message queue MQC head for each para.
2812
+ *
2813
+ * Each link in this chain has a form:
2814
+ * `(prev_head, B, H(M))`, where
2815
+ * - `prev_head`: is the previous head hash or zero if none.
2816
+ * - `B`: is the relay-chain block number in which a message was appended.
2817
+ * - `H(M)`: is the hash of the message being appended.
2818
+ *
2819
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2820
+ * @param {Callback<H256> =} callback
2821
+ **/
2822
+ downwardMessageQueueHeads: GenericStorageQuery<
2823
+ Rv,
2824
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => H256,
2825
+ PolkadotParachainPrimitivesPrimitivesId
2826
+ >;
2827
+
2828
+ /**
2829
+ * The factor to multiply the base delivery fee by.
2830
+ *
2831
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2832
+ * @param {Callback<FixedU128> =} callback
2833
+ **/
2834
+ deliveryFeeFactor: GenericStorageQuery<
2835
+ Rv,
2836
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
2837
+ PolkadotParachainPrimitivesPrimitivesId
2838
+ >;
2839
+
2840
+ /**
2841
+ * Generic pallet storage query
2842
+ **/
2843
+ [storage: string]: GenericStorageQuery<Rv>;
2844
+ };
2845
+ /**
2846
+ * Pallet `Hrmp`'s storage queries
2847
+ **/
2848
+ hrmp: {
2849
+ /**
2850
+ * The set of pending HRMP open channel requests.
2851
+ *
2852
+ * The set is accompanied by a list for iteration.
2853
+ *
2854
+ * Invariant:
2855
+ * - There are no channels that exists in list but not in the set and vice versa.
2856
+ *
2857
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
2858
+ * @param {Callback<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest | undefined> =} callback
2859
+ **/
2860
+ hrmpOpenChannelRequests: GenericStorageQuery<
2861
+ Rv,
2862
+ (
2863
+ arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
2864
+ ) => PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest | undefined,
2865
+ PolkadotParachainPrimitivesPrimitivesHrmpChannelId
2866
+ >;
2867
+
2868
+ /**
2869
+ *
2870
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>> =} callback
2871
+ **/
2872
+ hrmpOpenChannelRequestsList: GenericStorageQuery<
2873
+ Rv,
2874
+ () => Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>
2875
+ >;
2876
+
2877
+ /**
2878
+ * This mapping tracks how many open channel requests are initiated by a given sender para.
2879
+ * Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has
2880
+ * `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`.
2881
+ *
2882
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2883
+ * @param {Callback<number> =} callback
2884
+ **/
2885
+ hrmpOpenChannelRequestCount: GenericStorageQuery<
2886
+ Rv,
2887
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => number,
2888
+ PolkadotParachainPrimitivesPrimitivesId
2889
+ >;
2890
+
2891
+ /**
2892
+ * This mapping tracks how many open channel requests were accepted by a given recipient para.
2893
+ * Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with
2894
+ * `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`.
2895
+ *
2896
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2897
+ * @param {Callback<number> =} callback
2898
+ **/
2899
+ hrmpAcceptedChannelRequestCount: GenericStorageQuery<
2900
+ Rv,
2901
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => number,
2902
+ PolkadotParachainPrimitivesPrimitivesId
2903
+ >;
2904
+
2905
+ /**
2906
+ * A set of pending HRMP close channel requests that are going to be closed during the session
2907
+ * change. Used for checking if a given channel is registered for closure.
2908
+ *
2909
+ * The set is accompanied by a list for iteration.
2910
+ *
2911
+ * Invariant:
2912
+ * - There are no channels that exists in list but not in the set and vice versa.
2913
+ *
2914
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
2915
+ * @param {Callback<[] | undefined> =} callback
2916
+ **/
2917
+ hrmpCloseChannelRequests: GenericStorageQuery<
2918
+ Rv,
2919
+ (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => [] | undefined,
2920
+ PolkadotParachainPrimitivesPrimitivesHrmpChannelId
2921
+ >;
2922
+
2923
+ /**
2924
+ *
2925
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>> =} callback
2926
+ **/
2927
+ hrmpCloseChannelRequestsList: GenericStorageQuery<
2928
+ Rv,
2929
+ () => Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>
2930
+ >;
2931
+
2932
+ /**
2933
+ * The HRMP watermark associated with each para.
2934
+ * Invariant:
2935
+ * - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a
2936
+ * session.
2937
+ *
2938
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2939
+ * @param {Callback<number | undefined> =} callback
2940
+ **/
2941
+ hrmpWatermarks: GenericStorageQuery<
2942
+ Rv,
2943
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined,
2944
+ PolkadotParachainPrimitivesPrimitivesId
2945
+ >;
2946
+
2947
+ /**
2948
+ * HRMP channel data associated with each para.
2949
+ * Invariant:
2950
+ * - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session.
2951
+ *
2952
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
2953
+ * @param {Callback<PolkadotRuntimeParachainsHrmpHrmpChannel | undefined> =} callback
2954
+ **/
2955
+ hrmpChannels: GenericStorageQuery<
2956
+ Rv,
2957
+ (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => PolkadotRuntimeParachainsHrmpHrmpChannel | undefined,
2958
+ PolkadotParachainPrimitivesPrimitivesHrmpChannelId
2959
+ >;
2960
+
2961
+ /**
2962
+ * Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
2963
+ * I.e.
2964
+ *
2965
+ * (a) ingress index allows to find all the senders for a given recipient.
2966
+ * (b) egress index allows to find all the recipients for a given sender.
2967
+ *
2968
+ * Invariants:
2969
+ * - for each ingress index entry for `P` each item `I` in the index should present in
2970
+ * `HrmpChannels` as `(I, P)`.
2971
+ * - for each egress index entry for `P` each item `E` in the index should present in
2972
+ * `HrmpChannels` as `(P, E)`.
2973
+ * - there should be no other dangling channels in `HrmpChannels`.
2974
+ * - the vectors are sorted.
2975
+ *
2976
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2977
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2978
+ **/
2979
+ hrmpIngressChannelsIndex: GenericStorageQuery<
2980
+ Rv,
2981
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotParachainPrimitivesPrimitivesId>,
2982
+ PolkadotParachainPrimitivesPrimitivesId
2983
+ >;
2984
+
2985
+ /**
2986
+ *
2987
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2988
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2989
+ **/
2990
+ hrmpEgressChannelsIndex: GenericStorageQuery<
2991
+ Rv,
2992
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotParachainPrimitivesPrimitivesId>,
2993
+ PolkadotParachainPrimitivesPrimitivesId
2994
+ >;
2995
+
2996
+ /**
2997
+ * Storage for the messages for each channel.
2998
+ * Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`.
2999
+ *
3000
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
3001
+ * @param {Callback<Array<PolkadotCorePrimitivesInboundHrmpMessage>> =} callback
3002
+ **/
3003
+ hrmpChannelContents: GenericStorageQuery<
3004
+ Rv,
3005
+ (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => Array<PolkadotCorePrimitivesInboundHrmpMessage>,
3006
+ PolkadotParachainPrimitivesPrimitivesHrmpChannelId
3007
+ >;
3008
+
3009
+ /**
3010
+ * Maintains a mapping that can be used to answer the question: What paras sent a message at
3011
+ * the given block number for a given receiver. Invariants:
3012
+ * - The inner `Vec<ParaId>` is never empty.
3013
+ * - The inner `Vec<ParaId>` cannot store two same `ParaId`.
3014
+ * - The outer vector is sorted ascending by block number and cannot store two items with the
3015
+ * same block number.
3016
+ *
3017
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3018
+ * @param {Callback<Array<[number, Array<PolkadotParachainPrimitivesPrimitivesId>]>> =} callback
3019
+ **/
3020
+ hrmpChannelDigests: GenericStorageQuery<
3021
+ Rv,
3022
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Array<[number, Array<PolkadotParachainPrimitivesPrimitivesId>]>,
3023
+ PolkadotParachainPrimitivesPrimitivesId
3024
+ >;
3025
+
3026
+ /**
3027
+ * Generic pallet storage query
3028
+ **/
3029
+ [storage: string]: GenericStorageQuery<Rv>;
3030
+ };
3031
+ /**
3032
+ * Pallet `ParaSessionInfo`'s storage queries
3033
+ **/
3034
+ paraSessionInfo: {
3035
+ /**
3036
+ * Assignment keys for the current session.
3037
+ * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
3038
+ * When in doubt, use `Sessions` API instead.
3039
+ *
3040
+ * @param {Callback<Array<PolkadotPrimitivesV7AssignmentAppPublic>> =} callback
3041
+ **/
3042
+ assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7AssignmentAppPublic>>;
3043
+
3044
+ /**
3045
+ * The earliest session for which previous session info is stored.
3046
+ *
3047
+ * @param {Callback<number> =} callback
3048
+ **/
3049
+ earliestStoredSession: GenericStorageQuery<Rv, () => number>;
3050
+
3051
+ /**
3052
+ * Session information in a rolling window.
3053
+ * Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
3054
+ * Does not have any entries before the session index in the first session change notification.
3055
+ *
3056
+ * @param {number} arg
3057
+ * @param {Callback<PolkadotPrimitivesV7SessionInfo | undefined> =} callback
3058
+ **/
3059
+ sessions: GenericStorageQuery<Rv, (arg: number) => PolkadotPrimitivesV7SessionInfo | undefined, number>;
3060
+
3061
+ /**
3062
+ * The validator account keys of the validators actively participating in parachain consensus.
3063
+ *
3064
+ * @param {number} arg
3065
+ * @param {Callback<Array<AccountId32> | undefined> =} callback
3066
+ **/
3067
+ accountKeys: GenericStorageQuery<Rv, (arg: number) => Array<AccountId32> | undefined, number>;
3068
+
3069
+ /**
3070
+ * Executor parameter set for a given session index
3071
+ *
3072
+ * @param {number} arg
3073
+ * @param {Callback<PolkadotPrimitivesV7ExecutorParams | undefined> =} callback
3074
+ **/
3075
+ sessionExecutorParams: GenericStorageQuery<
3076
+ Rv,
3077
+ (arg: number) => PolkadotPrimitivesV7ExecutorParams | undefined,
3078
+ number
3079
+ >;
3080
+
3081
+ /**
3082
+ * Generic pallet storage query
3083
+ **/
3084
+ [storage: string]: GenericStorageQuery<Rv>;
3085
+ };
3086
+ /**
3087
+ * Pallet `ParasDisputes`'s storage queries
3088
+ **/
3089
+ parasDisputes: {
3090
+ /**
3091
+ * The last pruned session, if any. All data stored by this module
3092
+ * references sessions.
3093
+ *
3094
+ * @param {Callback<number | undefined> =} callback
3095
+ **/
3096
+ lastPrunedSession: GenericStorageQuery<Rv, () => number | undefined>;
3097
+
3098
+ /**
3099
+ * All ongoing or concluded disputes for the last several sessions.
3100
+ *
3101
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3102
+ * @param {Callback<PolkadotPrimitivesV7DisputeState | undefined> =} callback
3103
+ **/
3104
+ disputes: GenericStorageQuery<
3105
+ Rv,
3106
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7DisputeState | undefined,
3107
+ [number, PolkadotCorePrimitivesCandidateHash]
3108
+ >;
3109
+
3110
+ /**
3111
+ * Backing votes stored for each dispute.
3112
+ * This storage is used for slashing.
3113
+ *
3114
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3115
+ * @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex> | undefined> =} callback
3116
+ **/
3117
+ backersOnDisputes: GenericStorageQuery<
3118
+ Rv,
3119
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV7ValidatorIndex> | undefined,
3120
+ [number, PolkadotCorePrimitivesCandidateHash]
3121
+ >;
3122
+
3123
+ /**
3124
+ * All included blocks on the chain, as well as the block number in this chain that
3125
+ * should be reverted back to if the candidate is disputed and determined to be invalid.
3126
+ *
3127
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3128
+ * @param {Callback<number | undefined> =} callback
3129
+ **/
3130
+ included: GenericStorageQuery<
3131
+ Rv,
3132
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => number | undefined,
3133
+ [number, PolkadotCorePrimitivesCandidateHash]
3134
+ >;
3135
+
3136
+ /**
3137
+ * Whether the chain is frozen. Starts as `None`. When this is `Some`,
3138
+ * the chain will not accept any new parachain blocks for backing or inclusion,
3139
+ * and its value indicates the last valid block number in the chain.
3140
+ * It can only be set back to `None` by governance intervention.
3141
+ *
3142
+ * @param {Callback<number | undefined> =} callback
3143
+ **/
3144
+ frozen: GenericStorageQuery<Rv, () => number | undefined>;
3145
+
3146
+ /**
3147
+ * Generic pallet storage query
3148
+ **/
3149
+ [storage: string]: GenericStorageQuery<Rv>;
3150
+ };
3151
+ /**
3152
+ * Pallet `ParasSlashing`'s storage queries
3153
+ **/
3154
+ parasSlashing: {
3155
+ /**
3156
+ * Validators pending dispute slashes.
3157
+ *
3158
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3159
+ * @param {Callback<PolkadotPrimitivesV7SlashingPendingSlashes | undefined> =} callback
3160
+ **/
3161
+ unappliedSlashes: GenericStorageQuery<
3162
+ Rv,
3163
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7SlashingPendingSlashes | undefined,
3164
+ [number, PolkadotCorePrimitivesCandidateHash]
3165
+ >;
3166
+
3167
+ /**
3168
+ * `ValidatorSetCount` per session.
3169
+ *
3170
+ * @param {number} arg
3171
+ * @param {Callback<number | undefined> =} callback
3172
+ **/
3173
+ validatorSetCounts: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
3174
+
3175
+ /**
3176
+ * Generic pallet storage query
3177
+ **/
3178
+ [storage: string]: GenericStorageQuery<Rv>;
3179
+ };
3180
+ /**
3181
+ * Pallet `OnDemandAssignmentProvider`'s storage queries
3182
+ **/
3183
+ onDemandAssignmentProvider: {
3184
+ /**
3185
+ * Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
3186
+ * it's lookahead. Keeping track of this affinity prevents parallel execution of the same
3187
+ * `ParaId` on two or more `CoreIndex`es.
3188
+ *
3189
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3190
+ * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined> =} callback
3191
+ **/
3192
+ paraIdAffinity: GenericStorageQuery<
3193
+ Rv,
3194
+ (
3195
+ arg: PolkadotParachainPrimitivesPrimitivesId,
3196
+ ) => PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined,
3197
+ PolkadotParachainPrimitivesPrimitivesId
3198
+ >;
3199
+
3200
+ /**
3201
+ * Overall status of queue (both free + affinity entries)
3202
+ *
3203
+ * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType> =} callback
3204
+ **/
3205
+ queueStatus: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>;
3206
+
3207
+ /**
3208
+ * Priority queue for all orders which don't yet (or not any more) have any core affinity.
3209
+ *
3210
+ * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3211
+ **/
3212
+ freeEntries: GenericStorageQuery<Rv, () => BinaryHeapEnqueuedOrder>;
3213
+
3214
+ /**
3215
+ * Queue entries that are currently bound to a particular core due to core affinity.
3216
+ *
3217
+ * @param {PolkadotPrimitivesV7CoreIndex} arg
3218
+ * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3219
+ **/
3220
+ affinityEntries: GenericStorageQuery<
3221
+ Rv,
3222
+ (arg: PolkadotPrimitivesV7CoreIndex) => BinaryHeapEnqueuedOrder,
3223
+ PolkadotPrimitivesV7CoreIndex
3224
+ >;
3225
+
3226
+ /**
3227
+ * Keeps track of accumulated revenue from on demand order sales.
3228
+ *
3229
+ * @param {Callback<Array<bigint>> =} callback
3230
+ **/
3231
+ revenue: GenericStorageQuery<Rv, () => Array<bigint>>;
3232
+
3233
+ /**
3234
+ * Generic pallet storage query
3235
+ **/
3236
+ [storage: string]: GenericStorageQuery<Rv>;
3237
+ };
3238
+ /**
3239
+ * Pallet `CoretimeAssignmentProvider`'s storage queries
3240
+ **/
3241
+ coretimeAssignmentProvider: {
3242
+ /**
3243
+ * Scheduled assignment sets.
3244
+ *
3245
+ * Assignments as of the given block number. They will go into state once the block number is
3246
+ * reached (and replace whatever was in there before).
3247
+ *
3248
+ * @param {[number, PolkadotPrimitivesV7CoreIndex]} arg
3249
+ * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
3250
+ **/
3251
+ coreSchedules: GenericStorageQuery<
3252
+ Rv,
3253
+ (arg: [number, PolkadotPrimitivesV7CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3254
+ [number, PolkadotPrimitivesV7CoreIndex]
3255
+ >;
3256
+
3257
+ /**
3258
+ * Assignments which are currently active.
3259
+ *
3260
+ * They will be picked from `PendingAssignments` once we reach the scheduled block number in
3261
+ * `PendingAssignments`.
3262
+ *
3263
+ * @param {PolkadotPrimitivesV7CoreIndex} arg
3264
+ * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
3265
+ **/
3266
+ coreDescriptors: GenericStorageQuery<
3267
+ Rv,
3268
+ (arg: PolkadotPrimitivesV7CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3269
+ PolkadotPrimitivesV7CoreIndex
3270
+ >;
3271
+
3272
+ /**
3273
+ * Generic pallet storage query
3274
+ **/
3275
+ [storage: string]: GenericStorageQuery<Rv>;
3276
+ };
3277
+ /**
3278
+ * Pallet `Registrar`'s storage queries
3279
+ **/
3280
+ registrar: {
3281
+ /**
3282
+ * Pending swap operations.
3283
+ *
3284
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3285
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId | undefined> =} callback
3286
+ **/
3287
+ pendingSwap: GenericStorageQuery<
3288
+ Rv,
3289
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotParachainPrimitivesPrimitivesId | undefined,
3290
+ PolkadotParachainPrimitivesPrimitivesId
3291
+ >;
3292
+
3293
+ /**
3294
+ * Amount held on deposit for each para and the original depositor.
3295
+ *
3296
+ * The given account ID is responsible for registering the code and initial head data, but may
3297
+ * only do so if it isn't yet registered. (After that, it's up to governance to do so.)
3298
+ *
3299
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3300
+ * @param {Callback<PolkadotRuntimeCommonParasRegistrarParaInfo | undefined> =} callback
3301
+ **/
3302
+ paras: GenericStorageQuery<
3303
+ Rv,
3304
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeCommonParasRegistrarParaInfo | undefined,
3305
+ PolkadotParachainPrimitivesPrimitivesId
3306
+ >;
3307
+
3308
+ /**
3309
+ * The next free `ParaId`.
3310
+ *
3311
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
3312
+ **/
3313
+ nextFreeParaId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
3314
+
3315
+ /**
3316
+ * Generic pallet storage query
3317
+ **/
3318
+ [storage: string]: GenericStorageQuery<Rv>;
3319
+ };
3320
+ /**
3321
+ * Pallet `Slots`'s storage queries
3322
+ **/
3323
+ slots: {
3324
+ /**
3325
+ * Amounts held on deposit for each (possibly future) leased parachain.
3326
+ *
3327
+ * The actual amount locked on its behalf by any account at any time is the maximum of the
3328
+ * second values of the items in this list whose first value is the account.
3329
+ *
3330
+ * The first item in the list is the amount locked for the current Lease Period. Following
3331
+ * items are for the subsequent lease periods.
3332
+ *
3333
+ * The default value (an empty list) implies that the parachain no longer exists (or never
3334
+ * existed) as far as this pallet is concerned.
3335
+ *
3336
+ * If a parachain doesn't exist *yet* but is scheduled to exist in the future, then it
3337
+ * will be left-padded with one or more `None`s to denote the fact that nothing is held on
3338
+ * deposit for the non-existent chain currently, but is held at some point in the future.
3339
+ *
3340
+ * It is illegal for a `None` value to trail in the list.
3341
+ *
3342
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3343
+ * @param {Callback<Array<[AccountId32, bigint] | undefined>> =} callback
3344
+ **/
3345
+ leases: GenericStorageQuery<
3346
+ Rv,
3347
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Array<[AccountId32, bigint] | undefined>,
3348
+ PolkadotParachainPrimitivesPrimitivesId
3349
+ >;
3350
+
3351
+ /**
3352
+ * Generic pallet storage query
3353
+ **/
3354
+ [storage: string]: GenericStorageQuery<Rv>;
3355
+ };
3356
+ /**
3357
+ * Pallet `Auctions`'s storage queries
3358
+ **/
3359
+ auctions: {
3360
+ /**
3361
+ * Number of auctions started so far.
3362
+ *
3363
+ * @param {Callback<number> =} callback
3364
+ **/
3365
+ auctionCounter: GenericStorageQuery<Rv, () => number>;
3366
+
3367
+ /**
3368
+ * Information relating to the current auction, if there is one.
3369
+ *
3370
+ * The first item in the tuple is the lease period index that the first of the four
3371
+ * contiguous lease periods on auction is for. The second is the block number when the
3372
+ * auction will "begin to end", i.e. the first block of the Ending Period of the auction.
3373
+ *
3374
+ * @param {Callback<[number, number] | undefined> =} callback
3375
+ **/
3376
+ auctionInfo: GenericStorageQuery<Rv, () => [number, number] | undefined>;
3377
+
3378
+ /**
3379
+ * Amounts currently reserved in the accounts of the bidders currently winning
3380
+ * (sub-)ranges.
3381
+ *
3382
+ * @param {[AccountId32Like, PolkadotParachainPrimitivesPrimitivesId]} arg
3383
+ * @param {Callback<bigint | undefined> =} callback
3384
+ **/
3385
+ reservedAmounts: GenericStorageQuery<
3386
+ Rv,
3387
+ (arg: [AccountId32Like, PolkadotParachainPrimitivesPrimitivesId]) => bigint | undefined,
3388
+ [AccountId32, PolkadotParachainPrimitivesPrimitivesId]
3389
+ >;
3390
+
3391
+ /**
3392
+ * The winning bids for each of the 10 ranges at each sample in the final Ending Period of
3393
+ * the current auction. The map's key is the 0-based index into the Sample Size. The
3394
+ * first sample of the ending period is 0; the last is `Sample Size - 1`.
3395
+ *
3396
+ * @param {number} arg
3397
+ * @param {Callback<FixedArray<[AccountId32, PolkadotParachainPrimitivesPrimitivesId, bigint] | undefined, 36> | undefined> =} callback
3398
+ **/
3399
+ winning: GenericStorageQuery<
3400
+ Rv,
3401
+ (
3402
+ arg: number,
3403
+ ) => FixedArray<[AccountId32, PolkadotParachainPrimitivesPrimitivesId, bigint] | undefined, 36> | undefined,
3404
+ number
3405
+ >;
3406
+
3407
+ /**
3408
+ * Generic pallet storage query
3409
+ **/
3410
+ [storage: string]: GenericStorageQuery<Rv>;
3411
+ };
3412
+ /**
3413
+ * Pallet `Crowdloan`'s storage queries
3414
+ **/
3415
+ crowdloan: {
3416
+ /**
3417
+ * Info on all of the funds.
3418
+ *
3419
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3420
+ * @param {Callback<PolkadotRuntimeCommonCrowdloanFundInfo | undefined> =} callback
3421
+ **/
3422
+ funds: GenericStorageQuery<
3423
+ Rv,
3424
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeCommonCrowdloanFundInfo | undefined,
3425
+ PolkadotParachainPrimitivesPrimitivesId
3426
+ >;
3427
+
3428
+ /**
3429
+ * The funds that have had additional contributions during the last block. This is used
3430
+ * in order to determine which funds should submit new or updated bids.
3431
+ *
3432
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
3433
+ **/
3434
+ newRaise: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
3435
+
3436
+ /**
3437
+ * The number of auctions that have entered into their ending period so far.
3438
+ *
3439
+ * @param {Callback<number> =} callback
3440
+ **/
3441
+ endingsCount: GenericStorageQuery<Rv, () => number>;
3442
+
3443
+ /**
3444
+ * Tracker for the next available fund index
3445
+ *
3446
+ * @param {Callback<number> =} callback
3447
+ **/
3448
+ nextFundIndex: GenericStorageQuery<Rv, () => number>;
3449
+
3450
+ /**
3451
+ * Generic pallet storage query
3452
+ **/
3453
+ [storage: string]: GenericStorageQuery<Rv>;
3454
+ };
3455
+ /**
3456
+ * Pallet `AssignedSlots`'s storage queries
3457
+ **/
3458
+ assignedSlots: {
3459
+ /**
3460
+ * Assigned permanent slots, with their start lease period, and duration.
3461
+ *
3462
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3463
+ * @param {Callback<[number, number] | undefined> =} callback
3464
+ **/
3465
+ permanentSlots: GenericStorageQuery<
3466
+ Rv,
3467
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => [number, number] | undefined,
3468
+ PolkadotParachainPrimitivesPrimitivesId
3469
+ >;
3470
+
3471
+ /**
3472
+ * Number of assigned (and active) permanent slots.
3473
+ *
3474
+ * @param {Callback<number> =} callback
3475
+ **/
3476
+ permanentSlotCount: GenericStorageQuery<Rv, () => number>;
3477
+
3478
+ /**
3479
+ * Assigned temporary slots.
3480
+ *
3481
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3482
+ * @param {Callback<PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot | undefined> =} callback
3483
+ **/
3484
+ temporarySlots: GenericStorageQuery<
3485
+ Rv,
3486
+ (
3487
+ arg: PolkadotParachainPrimitivesPrimitivesId,
3488
+ ) => PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot | undefined,
3489
+ PolkadotParachainPrimitivesPrimitivesId
3490
+ >;
3491
+
3492
+ /**
3493
+ * Number of assigned temporary slots.
3494
+ *
3495
+ * @param {Callback<number> =} callback
3496
+ **/
3497
+ temporarySlotCount: GenericStorageQuery<Rv, () => number>;
3498
+
3499
+ /**
3500
+ * Number of active temporary slots in current slot lease period.
3501
+ *
3502
+ * @param {Callback<number> =} callback
3503
+ **/
3504
+ activeTemporarySlotCount: GenericStorageQuery<Rv, () => number>;
3505
+
3506
+ /**
3507
+ * The max number of temporary slots that can be assigned.
3508
+ *
3509
+ * @param {Callback<number> =} callback
3510
+ **/
3511
+ maxTemporarySlots: GenericStorageQuery<Rv, () => number>;
3512
+
3513
+ /**
3514
+ * The max number of permanent slots that can be assigned.
3515
+ *
3516
+ * @param {Callback<number> =} callback
3517
+ **/
3518
+ maxPermanentSlots: GenericStorageQuery<Rv, () => number>;
3519
+
3520
+ /**
3521
+ * Generic pallet storage query
3522
+ **/
3523
+ [storage: string]: GenericStorageQuery<Rv>;
3524
+ };
3525
+ /**
3526
+ * Pallet `XcmPallet`'s storage queries
3527
+ **/
3528
+ xcmPallet: {
3529
+ /**
3530
+ * The latest available query index.
3531
+ *
3532
+ * @param {Callback<bigint> =} callback
3533
+ **/
3534
+ queryCounter: GenericStorageQuery<Rv, () => bigint>;
3535
+
3536
+ /**
3537
+ * The ongoing queries.
3538
+ *
3539
+ * @param {bigint} arg
3540
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
3541
+ **/
3542
+ queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
3543
+
3544
+ /**
3545
+ * The existing asset traps.
3546
+ *
3547
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
3548
+ * times this pair has been trapped (usually just 1 if it exists at all).
3549
+ *
3550
+ * @param {H256} arg
3551
+ * @param {Callback<number> =} callback
3552
+ **/
3553
+ assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
3554
+
3555
+ /**
3556
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
3557
+ * then the destinations whose XCM version is unknown are considered unreachable.
3558
+ *
3559
+ * @param {Callback<number | undefined> =} callback
3560
+ **/
3561
+ safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
3562
+
3563
+ /**
3564
+ * The Latest versions that we know various locations support.
3565
+ *
3566
+ * @param {[number, XcmVersionedLocation]} arg
3567
+ * @param {Callback<number | undefined> =} callback
3568
+ **/
3569
+ supportedVersion: GenericStorageQuery<
3570
+ Rv,
3571
+ (arg: [number, XcmVersionedLocation]) => number | undefined,
3572
+ [number, XcmVersionedLocation]
3573
+ >;
3574
+
3575
+ /**
3576
+ * All locations that we have requested version notifications from.
3577
+ *
3578
+ * @param {[number, XcmVersionedLocation]} arg
3579
+ * @param {Callback<bigint | undefined> =} callback
3580
+ **/
3581
+ versionNotifiers: GenericStorageQuery<
3582
+ Rv,
3583
+ (arg: [number, XcmVersionedLocation]) => bigint | undefined,
3584
+ [number, XcmVersionedLocation]
3585
+ >;
3586
+
3587
+ /**
3588
+ * The target locations that are subscribed to our version changes, as well as the most recent
3589
+ * of our versions we informed them of.
3590
+ *
3591
+ * @param {[number, XcmVersionedLocation]} arg
3592
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
3593
+ **/
3594
+ versionNotifyTargets: GenericStorageQuery<
3595
+ Rv,
3596
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
3597
+ [number, XcmVersionedLocation]
3598
+ >;
3599
+
3600
+ /**
3601
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
3602
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
3603
+ * which is used as a prioritization.
3604
+ *
3605
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
3606
+ **/
3607
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
3608
+
3609
+ /**
3610
+ * The current migration's stage, if any.
3611
+ *
3612
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
3613
+ **/
3614
+ currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
3615
+
3616
+ /**
3617
+ * Fungible assets which we know are locked on a remote chain.
3618
+ *
3619
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
3620
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
3621
+ **/
3622
+ remoteLockedFungibles: GenericStorageQuery<
3623
+ Rv,
3624
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
3625
+ [number, AccountId32, XcmVersionedAssetId]
3626
+ >;
3627
+
3628
+ /**
3629
+ * Fungible assets which we know are locked on this chain.
3630
+ *
3631
+ * @param {AccountId32Like} arg
3632
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
3633
+ **/
3634
+ lockedFungibles: GenericStorageQuery<
3635
+ Rv,
3636
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
3637
+ AccountId32
3638
+ >;
3639
+
3640
+ /**
3641
+ * Global suspension state of the XCM executor.
3642
+ *
3643
+ * @param {Callback<boolean> =} callback
3644
+ **/
3645
+ xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
3646
+
3647
+ /**
3648
+ * Whether or not incoming XCMs (both executed locally and received) should be recorded.
3649
+ * Only one XCM program will be recorded at a time.
3650
+ * This is meant to be used in runtime APIs, and it's advised it stays false
3651
+ * for all other use cases, so as to not degrade regular performance.
3652
+ *
3653
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
3654
+ * implementation in the XCM executor configuration.
3655
+ *
3656
+ * @param {Callback<boolean> =} callback
3657
+ **/
3658
+ shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
3659
+
3660
+ /**
3661
+ * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
3662
+ * will be stored here.
3663
+ * Runtime APIs can fetch the XCM that was executed by accessing this value.
3664
+ *
3665
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
3666
+ * implementation in the XCM executor configuration.
3667
+ *
3668
+ * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
3669
+ **/
3670
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
3671
+
3672
+ /**
3673
+ * Generic pallet storage query
3674
+ **/
3675
+ [storage: string]: GenericStorageQuery<Rv>;
3676
+ };
3677
+ /**
3678
+ * Pallet `MessageQueue`'s storage queries
3679
+ **/
3680
+ messageQueue: {
3681
+ /**
3682
+ * The index of the first and last (non-empty) pages.
3683
+ *
3684
+ * @param {PolkadotRuntimeParachainsInclusionAggregateMessageOrigin} arg
3685
+ * @param {Callback<PalletMessageQueueBookState> =} callback
3686
+ **/
3687
+ bookStateFor: GenericStorageQuery<
3688
+ Rv,
3689
+ (arg: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin) => PalletMessageQueueBookState,
3690
+ PolkadotRuntimeParachainsInclusionAggregateMessageOrigin
3691
+ >;
3692
+
3693
+ /**
3694
+ * The origin at which we should begin servicing.
3695
+ *
3696
+ * @param {Callback<PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | undefined> =} callback
3697
+ **/
3698
+ serviceHead: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | undefined>;
3699
+
3700
+ /**
3701
+ * The map of page indices to pages.
3702
+ *
3703
+ * @param {[PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, number]} arg
3704
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
3705
+ **/
3706
+ pages: GenericStorageQuery<
3707
+ Rv,
3708
+ (arg: [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
3709
+ [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, number]
3710
+ >;
3711
+
3712
+ /**
3713
+ * Generic pallet storage query
3714
+ **/
3715
+ [storage: string]: GenericStorageQuery<Rv>;
3716
+ };
3717
+ /**
3718
+ * Pallet `AssetRate`'s storage queries
3719
+ **/
3720
+ assetRate: {
3721
+ /**
3722
+ * Maps an asset to its fixed point representation in the native balance.
3723
+ *
3724
+ * E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
3725
+ *
3726
+ * @param {PolkadotRuntimeCommonImplsVersionedLocatableAsset} arg
3727
+ * @param {Callback<FixedU128 | undefined> =} callback
3728
+ **/
3729
+ conversionRateToNative: GenericStorageQuery<
3730
+ Rv,
3731
+ (arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset) => FixedU128 | undefined,
3732
+ PolkadotRuntimeCommonImplsVersionedLocatableAsset
3733
+ >;
3734
+
3735
+ /**
3736
+ * Generic pallet storage query
3737
+ **/
3738
+ [storage: string]: GenericStorageQuery<Rv>;
3739
+ };
3740
+ /**
3741
+ * Pallet `Beefy`'s storage queries
3742
+ **/
3743
+ beefy: {
3744
+ /**
3745
+ * The current authorities set
3746
+ *
3747
+ * @param {Callback<Array<SpConsensusBeefyEcdsaCryptoPublic>> =} callback
3748
+ **/
3749
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusBeefyEcdsaCryptoPublic>>;
3750
+
3751
+ /**
3752
+ * The current validator set id
3753
+ *
3754
+ * @param {Callback<bigint> =} callback
3755
+ **/
3756
+ validatorSetId: GenericStorageQuery<Rv, () => bigint>;
3757
+
3758
+ /**
3759
+ * Authorities set scheduled to be used with the next session
3760
+ *
3761
+ * @param {Callback<Array<SpConsensusBeefyEcdsaCryptoPublic>> =} callback
3762
+ **/
3763
+ nextAuthorities: GenericStorageQuery<Rv, () => Array<SpConsensusBeefyEcdsaCryptoPublic>>;
3764
+
3765
+ /**
3766
+ * A mapping from BEEFY set ID to the index of the *most recent* session for which its
3767
+ * members were responsible.
3768
+ *
3769
+ * This is only used for validating equivocation proofs. An equivocation proof must
3770
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
3771
+ * together sessions and BEEFY set ids, i.e. we need to validate that a validator
3772
+ * was the owner of a given key on a given session, and what the active set ID was
3773
+ * during that session.
3774
+ *
3775
+ * TWOX-NOTE: `ValidatorSetId` is not under user control.
3776
+ *
3777
+ * @param {bigint} arg
3778
+ * @param {Callback<number | undefined> =} callback
3779
+ **/
3780
+ setIdSession: GenericStorageQuery<Rv, (arg: bigint) => number | undefined, bigint>;
3781
+
3782
+ /**
3783
+ * Block number where BEEFY consensus is enabled/started.
3784
+ * By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
3785
+ * restarted from the newly set block number.
3786
+ *
3787
+ * @param {Callback<number | undefined> =} callback
3788
+ **/
3789
+ genesisBlock: GenericStorageQuery<Rv, () => number | undefined>;
3790
+
3791
+ /**
3792
+ * Generic pallet storage query
3793
+ **/
3794
+ [storage: string]: GenericStorageQuery<Rv>;
3795
+ };
3796
+ /**
3797
+ * Pallet `Mmr`'s storage queries
3798
+ **/
3799
+ mmr: {
3800
+ /**
3801
+ * Latest MMR Root hash.
3802
+ *
3803
+ * @param {Callback<H256> =} callback
3804
+ **/
3805
+ rootHash: GenericStorageQuery<Rv, () => H256>;
3806
+
3807
+ /**
3808
+ * Current size of the MMR (number of leaves).
3809
+ *
3810
+ * @param {Callback<bigint> =} callback
3811
+ **/
3812
+ numberOfLeaves: GenericStorageQuery<Rv, () => bigint>;
3813
+
3814
+ /**
3815
+ * Hashes of the nodes in the MMR.
3816
+ *
3817
+ * Note this collection only contains MMR peaks, the inner nodes (and leaves)
3818
+ * are pruned and only stored in the Offchain DB.
3819
+ *
3820
+ * @param {bigint} arg
3821
+ * @param {Callback<H256 | undefined> =} callback
3822
+ **/
3823
+ nodes: GenericStorageQuery<Rv, (arg: bigint) => H256 | undefined, bigint>;
3824
+
3825
+ /**
3826
+ * Generic pallet storage query
3827
+ **/
3828
+ [storage: string]: GenericStorageQuery<Rv>;
3829
+ };
3830
+ /**
3831
+ * Pallet `BeefyMmrLeaf`'s storage queries
3832
+ **/
3833
+ beefyMmrLeaf: {
3834
+ /**
3835
+ * Details of current BEEFY authority set.
3836
+ *
3837
+ * @param {Callback<SpConsensusBeefyMmrBeefyAuthoritySet> =} callback
3838
+ **/
3839
+ beefyAuthorities: GenericStorageQuery<Rv, () => SpConsensusBeefyMmrBeefyAuthoritySet>;
3840
+
3841
+ /**
3842
+ * Details of next BEEFY authority set.
3843
+ *
3844
+ * This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
3845
+ *
3846
+ * @param {Callback<SpConsensusBeefyMmrBeefyAuthoritySet> =} callback
3847
+ **/
3848
+ beefyNextAuthorities: GenericStorageQuery<Rv, () => SpConsensusBeefyMmrBeefyAuthoritySet>;
3849
+
3850
+ /**
3851
+ * Generic pallet storage query
3852
+ **/
3853
+ [storage: string]: GenericStorageQuery<Rv>;
3854
+ };
3855
+ }