@dedot/chaintypes 0.0.1-alpha.100

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