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

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