@dedot/chaintypes 0.0.1-alpha.25 → 0.0.1-alpha.26

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