@dedot/chaintypes 0.0.1-alpha.100

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