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