@dedot/chaintypes 0.99.0 → 0.100.0

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,3256 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types';
4
+ import type {
5
+ AccountId32,
6
+ AccountId32Like,
7
+ H256,
8
+ Bytes,
9
+ Digest,
10
+ Phase,
11
+ FixedU128,
12
+ Data,
13
+ BytesLike,
14
+ FixedBytes,
15
+ H160,
16
+ U256,
17
+ } from 'dedot/codecs';
18
+ import type {
19
+ FrameSystemAccountInfo,
20
+ FrameSupportDispatchPerDispatchClass,
21
+ FrameSystemEventRecord,
22
+ FrameSystemLastRuntimeUpgradeInfo,
23
+ FrameSystemCodeUpgradeAuthorization,
24
+ PalletBalancesAccountData,
25
+ PalletBalancesBalanceLock,
26
+ PalletBalancesReserveData,
27
+ FrameSupportTokensMiscIdAmount,
28
+ FrameSupportTokensMiscIdAmount002,
29
+ PalletTransactionPaymentReleases,
30
+ PalletTreasuryProposal,
31
+ PalletTreasurySpendStatus,
32
+ PalletPreimageOldRequestStatus,
33
+ PalletPreimageRequestStatus,
34
+ PalletIdentityRegistration,
35
+ PalletIdentityRegistrarInfo,
36
+ PalletIdentityAuthorityProperties,
37
+ FrameSupportPreimagesBounded,
38
+ PalletDemocracyReferendumInfo,
39
+ PalletDemocracyVoteVoting,
40
+ PalletDemocracyVoteThreshold,
41
+ PalletDemocracyMetadataOwner,
42
+ PalletElectionsPhragmenSeatHolder,
43
+ PalletElectionsPhragmenVoter,
44
+ HydradxRuntimeRuntimeCall,
45
+ PalletCollectiveVotes,
46
+ PalletTipsOpenTip,
47
+ PalletProxyProxyDefinition,
48
+ PalletProxyAnnouncement,
49
+ PalletMultisigMultisig,
50
+ PalletUniquesCollectionDetails,
51
+ PalletUniquesItemDetails,
52
+ PalletUniquesCollectionMetadata,
53
+ PalletUniquesItemMetadata,
54
+ PalletStateTrieMigrationMigrationTask,
55
+ PalletStateTrieMigrationMigrationLimits,
56
+ PalletConvictionVotingVoteVoting,
57
+ PalletReferendaReferendumInfo,
58
+ PalletAssetRegistryAssetDetails,
59
+ HydradxRuntimeXcmAssetLocation,
60
+ PalletClaimsEthereumAddress,
61
+ PalletGenesisHistoryChain,
62
+ PalletOmnipoolAssetState,
63
+ PalletOmnipoolTradability,
64
+ PalletOmnipoolPosition,
65
+ PalletLiquidityMiningGlobalFarmData,
66
+ PalletLiquidityMiningYieldFarmData,
67
+ PalletLiquidityMiningDepositData,
68
+ PalletOtcOrder,
69
+ PalletCircuitBreakerTradeVolumeLimit,
70
+ PalletCircuitBreakerLiquidityLimit,
71
+ HydradxTraitsRouterTrade,
72
+ HydradxTraitsRouterAssetPair,
73
+ PalletDynamicFeesFeeEntry,
74
+ PalletStakingStakingData,
75
+ PalletStakingPosition,
76
+ PalletStakingVoting,
77
+ PalletStakingVote,
78
+ PalletStableswapPoolInfo,
79
+ PalletStableswapPoolPegInfo,
80
+ PalletStableswapTradability,
81
+ PalletLbpPool,
82
+ PalletReferralsLevel,
83
+ PalletReferralsFeeDistribution,
84
+ OrmlTokensBalanceLock,
85
+ OrmlTokensAccountData,
86
+ OrmlTokensReserveData,
87
+ OrmlVestingVestingSchedule,
88
+ PalletEvmCodeMetadata,
89
+ EthereumTransactionTransactionV2,
90
+ FpRpcTransactionStatus,
91
+ EthereumReceiptReceiptV3,
92
+ EthereumBlock,
93
+ PalletLiquidityMiningDepositData002,
94
+ PalletDcaSchedule,
95
+ PalletSchedulerScheduled,
96
+ PalletSchedulerRetryConfig,
97
+ CumulusPalletParachainSystemUnincludedSegmentAncestor,
98
+ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
99
+ PolkadotPrimitivesV8PersistedValidationData,
100
+ PolkadotPrimitivesV8UpgradeRestriction,
101
+ PolkadotPrimitivesV8UpgradeGoAhead,
102
+ SpTrieStorageProof,
103
+ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
104
+ PolkadotPrimitivesV8AbridgedHostConfiguration,
105
+ CumulusPrimitivesParachainInherentMessageQueueChain,
106
+ PolkadotParachainPrimitivesPrimitivesId,
107
+ PolkadotCorePrimitivesOutboundHrmpMessage,
108
+ SpWeightsWeightV2Weight,
109
+ PalletXcmQueryStatus,
110
+ XcmVersionedLocation,
111
+ PalletXcmVersionMigrationStage,
112
+ PalletXcmRemoteLockedFungibleRecord,
113
+ XcmVersionedAssetId,
114
+ StagingXcmV4Xcm,
115
+ CumulusPalletXcmpQueueOutboundChannelDetails,
116
+ CumulusPalletXcmpQueueQueueConfigData,
117
+ PalletMessageQueueBookState,
118
+ CumulusPrimitivesCoreAggregateMessageOrigin,
119
+ PalletMessageQueuePage,
120
+ StagingXcmV4Location,
121
+ PalletCollatorSelectionCandidateInfo,
122
+ HydradxRuntimeOpaqueSessionKeys,
123
+ SpCoreCryptoKeyTypeId,
124
+ SpConsensusAuraSr25519AppSr25519Public,
125
+ SpConsensusSlotsSlot,
126
+ PalletEmaOracleOracleEntry,
127
+ HydradxTraitsOracleOraclePeriod,
128
+ PalletBroadcastExecutionType,
129
+ } from './types.js';
130
+
131
+ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
132
+ /**
133
+ * Pallet `System`'s storage queries
134
+ **/
135
+ system: {
136
+ /**
137
+ * The full account information for a particular account ID.
138
+ *
139
+ * @param {AccountId32Like} arg
140
+ * @param {Callback<FrameSystemAccountInfo> =} callback
141
+ **/
142
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
143
+
144
+ /**
145
+ * Total extrinsics count for the current block.
146
+ *
147
+ * @param {Callback<number | undefined> =} callback
148
+ **/
149
+ extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
150
+
151
+ /**
152
+ * Whether all inherents have been applied.
153
+ *
154
+ * @param {Callback<boolean> =} callback
155
+ **/
156
+ inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
157
+
158
+ /**
159
+ * The current weight for the block.
160
+ *
161
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
162
+ **/
163
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
164
+
165
+ /**
166
+ * Total length (in bytes) for all extrinsics put together, for the current block.
167
+ *
168
+ * @param {Callback<number | undefined> =} callback
169
+ **/
170
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
171
+
172
+ /**
173
+ * Map of block numbers to block hashes.
174
+ *
175
+ * @param {number} arg
176
+ * @param {Callback<H256> =} callback
177
+ **/
178
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
179
+
180
+ /**
181
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
182
+ *
183
+ * @param {number} arg
184
+ * @param {Callback<Bytes> =} callback
185
+ **/
186
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
187
+
188
+ /**
189
+ * The current block number being processed. Set by `execute_block`.
190
+ *
191
+ * @param {Callback<number> =} callback
192
+ **/
193
+ number: GenericStorageQuery<Rv, () => number>;
194
+
195
+ /**
196
+ * Hash of the previous block.
197
+ *
198
+ * @param {Callback<H256> =} callback
199
+ **/
200
+ parentHash: GenericStorageQuery<Rv, () => H256>;
201
+
202
+ /**
203
+ * Digest of the current block, also part of the block header.
204
+ *
205
+ * @param {Callback<Digest> =} callback
206
+ **/
207
+ digest: GenericStorageQuery<Rv, () => Digest>;
208
+
209
+ /**
210
+ * Events deposited for the current block.
211
+ *
212
+ * NOTE: The item is unbound and should therefore never be read on chain.
213
+ * It could otherwise inflate the PoV size of a block.
214
+ *
215
+ * Events have a large in-memory size. Box the events to not go out-of-memory
216
+ * just in case someone still reads them from within the runtime.
217
+ *
218
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
219
+ **/
220
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
221
+
222
+ /**
223
+ * The number of events in the `Events<T>` list.
224
+ *
225
+ * @param {Callback<number> =} callback
226
+ **/
227
+ eventCount: GenericStorageQuery<Rv, () => number>;
228
+
229
+ /**
230
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
231
+ * of events in the `<Events<T>>` list.
232
+ *
233
+ * All topic vectors have deterministic storage locations depending on the topic. This
234
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
235
+ * in case of changes fetch the list of events of interest.
236
+ *
237
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
238
+ * the `EventIndex` then in case if the topic has the same contents on the next block
239
+ * no notification will be triggered thus the event might be lost.
240
+ *
241
+ * @param {H256} arg
242
+ * @param {Callback<Array<[number, number]>> =} callback
243
+ **/
244
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
245
+
246
+ /**
247
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
248
+ *
249
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
250
+ **/
251
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
252
+
253
+ /**
254
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
255
+ *
256
+ * @param {Callback<boolean> =} callback
257
+ **/
258
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
259
+
260
+ /**
261
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
262
+ * (default) if not.
263
+ *
264
+ * @param {Callback<boolean> =} callback
265
+ **/
266
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
267
+
268
+ /**
269
+ * The execution phase of the block.
270
+ *
271
+ * @param {Callback<Phase | undefined> =} callback
272
+ **/
273
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
274
+
275
+ /**
276
+ * `Some` if a code upgrade has been authorized.
277
+ *
278
+ * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
279
+ **/
280
+ authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
281
+
282
+ /**
283
+ * Generic pallet storage query
284
+ **/
285
+ [storage: string]: GenericStorageQuery<Rv>;
286
+ };
287
+ /**
288
+ * Pallet `Timestamp`'s storage queries
289
+ **/
290
+ timestamp: {
291
+ /**
292
+ * The current time for the current block.
293
+ *
294
+ * @param {Callback<bigint> =} callback
295
+ **/
296
+ now: GenericStorageQuery<Rv, () => bigint>;
297
+
298
+ /**
299
+ * Whether the timestamp has been updated in this block.
300
+ *
301
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
302
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
303
+ *
304
+ * @param {Callback<boolean> =} callback
305
+ **/
306
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
307
+
308
+ /**
309
+ * Generic pallet storage query
310
+ **/
311
+ [storage: string]: GenericStorageQuery<Rv>;
312
+ };
313
+ /**
314
+ * Pallet `Balances`'s storage queries
315
+ **/
316
+ balances: {
317
+ /**
318
+ * The total units issued in the system.
319
+ *
320
+ * @param {Callback<bigint> =} callback
321
+ **/
322
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
323
+
324
+ /**
325
+ * The total units of outstanding deactivated balance in the system.
326
+ *
327
+ * @param {Callback<bigint> =} callback
328
+ **/
329
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
330
+
331
+ /**
332
+ * The Balances pallet example of storing the balance of an account.
333
+ *
334
+ * # Example
335
+ *
336
+ * ```nocompile
337
+ * impl pallet_balances::Config for Runtime {
338
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
339
+ * }
340
+ * ```
341
+ *
342
+ * You can also store the balance of an account in the `System` pallet.
343
+ *
344
+ * # Example
345
+ *
346
+ * ```nocompile
347
+ * impl pallet_balances::Config for Runtime {
348
+ * type AccountStore = System
349
+ * }
350
+ * ```
351
+ *
352
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
353
+ * `frame_system` data alongside the account data contrary to storing account balances in the
354
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
355
+ * NOTE: This is only used in the case that this pallet is used to store balances.
356
+ *
357
+ * @param {AccountId32Like} arg
358
+ * @param {Callback<PalletBalancesAccountData> =} callback
359
+ **/
360
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
361
+
362
+ /**
363
+ * Any liquidity locks on some account balances.
364
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
365
+ *
366
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
367
+ *
368
+ * @param {AccountId32Like} arg
369
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
370
+ **/
371
+ locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
372
+
373
+ /**
374
+ * Named reserves on some account balances.
375
+ *
376
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
377
+ *
378
+ * @param {AccountId32Like} arg
379
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
380
+ **/
381
+ reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
382
+
383
+ /**
384
+ * Holds on account balances.
385
+ *
386
+ * @param {AccountId32Like} arg
387
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
388
+ **/
389
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
390
+
391
+ /**
392
+ * Freeze locks on account balances.
393
+ *
394
+ * @param {AccountId32Like} arg
395
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount002>> =} callback
396
+ **/
397
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount002>, AccountId32>;
398
+
399
+ /**
400
+ * Generic pallet storage query
401
+ **/
402
+ [storage: string]: GenericStorageQuery<Rv>;
403
+ };
404
+ /**
405
+ * Pallet `TransactionPayment`'s storage queries
406
+ **/
407
+ transactionPayment: {
408
+ /**
409
+ *
410
+ * @param {Callback<FixedU128> =} callback
411
+ **/
412
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
413
+
414
+ /**
415
+ *
416
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
417
+ **/
418
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
419
+
420
+ /**
421
+ * Generic pallet storage query
422
+ **/
423
+ [storage: string]: GenericStorageQuery<Rv>;
424
+ };
425
+ /**
426
+ * Pallet `MultiTransactionPayment`'s storage queries
427
+ **/
428
+ multiTransactionPayment: {
429
+ /**
430
+ * Account currency map
431
+ *
432
+ * @param {AccountId32Like} arg
433
+ * @param {Callback<number | undefined> =} callback
434
+ **/
435
+ accountCurrencyMap: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
436
+
437
+ /**
438
+ * Curated list of currencies which fees can be paid mapped to corresponding fallback price
439
+ *
440
+ * @param {number} arg
441
+ * @param {Callback<FixedU128 | undefined> =} callback
442
+ **/
443
+ acceptedCurrencies: GenericStorageQuery<Rv, (arg: number) => FixedU128 | undefined, number>;
444
+
445
+ /**
446
+ * Asset prices from the spot price provider or the fallback price if the price is not available. Updated at the beginning of every block.
447
+ *
448
+ * @param {number} arg
449
+ * @param {Callback<FixedU128 | undefined> =} callback
450
+ **/
451
+ acceptedCurrencyPrice: GenericStorageQuery<Rv, (arg: number) => FixedU128 | undefined, number>;
452
+
453
+ /**
454
+ *
455
+ * @param {AccountId32Like} arg
456
+ * @param {Callback<number | undefined> =} callback
457
+ **/
458
+ transactionCurrencyOverride: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
459
+
460
+ /**
461
+ * Generic pallet storage query
462
+ **/
463
+ [storage: string]: GenericStorageQuery<Rv>;
464
+ };
465
+ /**
466
+ * Pallet `Treasury`'s storage queries
467
+ **/
468
+ treasury: {
469
+ /**
470
+ * Number of proposals that have been made.
471
+ *
472
+ * @param {Callback<number> =} callback
473
+ **/
474
+ proposalCount: GenericStorageQuery<Rv, () => number>;
475
+
476
+ /**
477
+ * Proposals that have been made.
478
+ *
479
+ * @param {number} arg
480
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
481
+ **/
482
+ proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
483
+
484
+ /**
485
+ * The amount which has been reported as inactive to Currency.
486
+ *
487
+ * @param {Callback<bigint> =} callback
488
+ **/
489
+ deactivated: GenericStorageQuery<Rv, () => bigint>;
490
+
491
+ /**
492
+ * Proposal indices that have been approved but not yet awarded.
493
+ *
494
+ * @param {Callback<Array<number>> =} callback
495
+ **/
496
+ approvals: GenericStorageQuery<Rv, () => Array<number>>;
497
+
498
+ /**
499
+ * The count of spends that have been made.
500
+ *
501
+ * @param {Callback<number> =} callback
502
+ **/
503
+ spendCount: GenericStorageQuery<Rv, () => number>;
504
+
505
+ /**
506
+ * Spends that have been approved and being processed.
507
+ *
508
+ * @param {number} arg
509
+ * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
510
+ **/
511
+ spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
512
+
513
+ /**
514
+ * Generic pallet storage query
515
+ **/
516
+ [storage: string]: GenericStorageQuery<Rv>;
517
+ };
518
+ /**
519
+ * Pallet `Preimage`'s storage queries
520
+ **/
521
+ preimage: {
522
+ /**
523
+ * The request status of a given hash.
524
+ *
525
+ * @param {H256} arg
526
+ * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
527
+ **/
528
+ statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
529
+
530
+ /**
531
+ * The request status of a given hash.
532
+ *
533
+ * @param {H256} arg
534
+ * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
535
+ **/
536
+ requestStatusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
537
+
538
+ /**
539
+ *
540
+ * @param {[H256, number]} arg
541
+ * @param {Callback<Bytes | undefined> =} callback
542
+ **/
543
+ preimageFor: GenericStorageQuery<Rv, (arg: [H256, number]) => Bytes | undefined, [H256, number]>;
544
+
545
+ /**
546
+ * Generic pallet storage query
547
+ **/
548
+ [storage: string]: GenericStorageQuery<Rv>;
549
+ };
550
+ /**
551
+ * Pallet `Identity`'s storage queries
552
+ **/
553
+ identity: {
554
+ /**
555
+ * Information that is pertinent to identify the entity behind an account. First item is the
556
+ * registration, second is the account's primary username.
557
+ *
558
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
559
+ *
560
+ * @param {AccountId32Like} arg
561
+ * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
562
+ **/
563
+ identityOf: GenericStorageQuery<
564
+ Rv,
565
+ (arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
566
+ AccountId32
567
+ >;
568
+
569
+ /**
570
+ * The super-identity of an alternative "sub" identity together with its name, within that
571
+ * context. If the account is not some other account's sub-identity, then just `None`.
572
+ *
573
+ * @param {AccountId32Like} arg
574
+ * @param {Callback<[AccountId32, Data] | undefined> =} callback
575
+ **/
576
+ superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
577
+
578
+ /**
579
+ * Alternative "sub" identities of this account.
580
+ *
581
+ * The first item is the deposit, the second is a vector of the accounts.
582
+ *
583
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
584
+ *
585
+ * @param {AccountId32Like} arg
586
+ * @param {Callback<[bigint, Array<AccountId32>]> =} callback
587
+ **/
588
+ subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
589
+
590
+ /**
591
+ * The set of registrars. Not expected to get very big as can only be added through a
592
+ * special origin (likely a council motion).
593
+ *
594
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
595
+ *
596
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
597
+ **/
598
+ registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
599
+
600
+ /**
601
+ * A map of the accounts who are authorized to grant usernames.
602
+ *
603
+ * @param {AccountId32Like} arg
604
+ * @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
605
+ **/
606
+ usernameAuthorities: GenericStorageQuery<
607
+ Rv,
608
+ (arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
609
+ AccountId32
610
+ >;
611
+
612
+ /**
613
+ * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
614
+ * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
615
+ *
616
+ * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
617
+ * primary username.
618
+ *
619
+ * @param {BytesLike} arg
620
+ * @param {Callback<AccountId32 | undefined> =} callback
621
+ **/
622
+ accountOfUsername: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
623
+
624
+ /**
625
+ * Usernames that an authority has granted, but that the account controller has not confirmed
626
+ * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
627
+ * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
628
+ * [`Call::accept_username`].
629
+ *
630
+ * First tuple item is the account and second is the acceptance deadline.
631
+ *
632
+ * @param {BytesLike} arg
633
+ * @param {Callback<[AccountId32, number] | undefined> =} callback
634
+ **/
635
+ pendingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
636
+
637
+ /**
638
+ * Generic pallet storage query
639
+ **/
640
+ [storage: string]: GenericStorageQuery<Rv>;
641
+ };
642
+ /**
643
+ * Pallet `Democracy`'s storage queries
644
+ **/
645
+ democracy: {
646
+ /**
647
+ * The number of (public) proposals that have been made so far.
648
+ *
649
+ * @param {Callback<number> =} callback
650
+ **/
651
+ publicPropCount: GenericStorageQuery<Rv, () => number>;
652
+
653
+ /**
654
+ * The public proposals. Unsorted. The second item is the proposal.
655
+ *
656
+ * @param {Callback<Array<[number, FrameSupportPreimagesBounded, AccountId32]>> =} callback
657
+ **/
658
+ publicProps: GenericStorageQuery<Rv, () => Array<[number, FrameSupportPreimagesBounded, AccountId32]>>;
659
+
660
+ /**
661
+ * Those who have locked a deposit.
662
+ *
663
+ * TWOX-NOTE: Safe, as increasing integer keys are safe.
664
+ *
665
+ * @param {number} arg
666
+ * @param {Callback<[Array<AccountId32>, bigint] | undefined> =} callback
667
+ **/
668
+ depositOf: GenericStorageQuery<Rv, (arg: number) => [Array<AccountId32>, bigint] | undefined, number>;
669
+
670
+ /**
671
+ * The next free referendum index, aka the number of referenda started so far.
672
+ *
673
+ * @param {Callback<number> =} callback
674
+ **/
675
+ referendumCount: GenericStorageQuery<Rv, () => number>;
676
+
677
+ /**
678
+ * The lowest referendum index representing an unbaked referendum. Equal to
679
+ * `ReferendumCount` if there isn't a unbaked referendum.
680
+ *
681
+ * @param {Callback<number> =} callback
682
+ **/
683
+ lowestUnbaked: GenericStorageQuery<Rv, () => number>;
684
+
685
+ /**
686
+ * Information concerning any given referendum.
687
+ *
688
+ * TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
689
+ *
690
+ * @param {number} arg
691
+ * @param {Callback<PalletDemocracyReferendumInfo | undefined> =} callback
692
+ **/
693
+ referendumInfoOf: GenericStorageQuery<Rv, (arg: number) => PalletDemocracyReferendumInfo | undefined, number>;
694
+
695
+ /**
696
+ * All votes for a particular voter. We store the balance for the number of votes that we
697
+ * have recorded. The second item is the total amount of delegations, that will be added.
698
+ *
699
+ * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
700
+ *
701
+ * @param {AccountId32Like} arg
702
+ * @param {Callback<PalletDemocracyVoteVoting> =} callback
703
+ **/
704
+ votingOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletDemocracyVoteVoting, AccountId32>;
705
+
706
+ /**
707
+ * True if the last referendum tabled was submitted externally. False if it was a public
708
+ * proposal.
709
+ *
710
+ * @param {Callback<boolean> =} callback
711
+ **/
712
+ lastTabledWasExternal: GenericStorageQuery<Rv, () => boolean>;
713
+
714
+ /**
715
+ * The referendum to be tabled whenever it would be valid to table an external proposal.
716
+ * This happens when a referendum needs to be tabled and one of two conditions are met:
717
+ * - `LastTabledWasExternal` is `false`; or
718
+ * - `PublicProps` is empty.
719
+ *
720
+ * @param {Callback<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined> =} callback
721
+ **/
722
+ nextExternal: GenericStorageQuery<
723
+ Rv,
724
+ () => [FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined
725
+ >;
726
+
727
+ /**
728
+ * A record of who vetoed what. Maps proposal hash to a possible existent block number
729
+ * (until when it may not be resubmitted) and who vetoed it.
730
+ *
731
+ * @param {H256} arg
732
+ * @param {Callback<[number, Array<AccountId32>] | undefined> =} callback
733
+ **/
734
+ blacklist: GenericStorageQuery<Rv, (arg: H256) => [number, Array<AccountId32>] | undefined, H256>;
735
+
736
+ /**
737
+ * Record of all proposals that have been subject to emergency cancellation.
738
+ *
739
+ * @param {H256} arg
740
+ * @param {Callback<boolean> =} callback
741
+ **/
742
+ cancellations: GenericStorageQuery<Rv, (arg: H256) => boolean, H256>;
743
+
744
+ /**
745
+ * General information concerning any proposal or referendum.
746
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
747
+ * dump or IPFS hash of a JSON file.
748
+ *
749
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
750
+ * large preimages.
751
+ *
752
+ * @param {PalletDemocracyMetadataOwner} arg
753
+ * @param {Callback<H256 | undefined> =} callback
754
+ **/
755
+ metadataOf: GenericStorageQuery<
756
+ Rv,
757
+ (arg: PalletDemocracyMetadataOwner) => H256 | undefined,
758
+ PalletDemocracyMetadataOwner
759
+ >;
760
+
761
+ /**
762
+ * Generic pallet storage query
763
+ **/
764
+ [storage: string]: GenericStorageQuery<Rv>;
765
+ };
766
+ /**
767
+ * Pallet `Elections`'s storage queries
768
+ **/
769
+ elections: {
770
+ /**
771
+ * The current elected members.
772
+ *
773
+ * Invariant: Always sorted based on account id.
774
+ *
775
+ * @param {Callback<Array<PalletElectionsPhragmenSeatHolder>> =} callback
776
+ **/
777
+ members: GenericStorageQuery<Rv, () => Array<PalletElectionsPhragmenSeatHolder>>;
778
+
779
+ /**
780
+ * The current reserved runners-up.
781
+ *
782
+ * Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the
783
+ * last (i.e. _best_) runner-up will be replaced.
784
+ *
785
+ * @param {Callback<Array<PalletElectionsPhragmenSeatHolder>> =} callback
786
+ **/
787
+ runnersUp: GenericStorageQuery<Rv, () => Array<PalletElectionsPhragmenSeatHolder>>;
788
+
789
+ /**
790
+ * The present candidate list. A current member or runner-up can never enter this vector
791
+ * and is always implicitly assumed to be a candidate.
792
+ *
793
+ * Second element is the deposit.
794
+ *
795
+ * Invariant: Always sorted based on account id.
796
+ *
797
+ * @param {Callback<Array<[AccountId32, bigint]>> =} callback
798
+ **/
799
+ candidates: GenericStorageQuery<Rv, () => Array<[AccountId32, bigint]>>;
800
+
801
+ /**
802
+ * The total number of vote rounds that have happened, excluding the upcoming one.
803
+ *
804
+ * @param {Callback<number> =} callback
805
+ **/
806
+ electionRounds: GenericStorageQuery<Rv, () => number>;
807
+
808
+ /**
809
+ * Votes and locked stake of a particular voter.
810
+ *
811
+ * TWOX-NOTE: SAFE as `AccountId` is a crypto hash.
812
+ *
813
+ * @param {AccountId32Like} arg
814
+ * @param {Callback<PalletElectionsPhragmenVoter> =} callback
815
+ **/
816
+ voting: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletElectionsPhragmenVoter, AccountId32>;
817
+
818
+ /**
819
+ * Generic pallet storage query
820
+ **/
821
+ [storage: string]: GenericStorageQuery<Rv>;
822
+ };
823
+ /**
824
+ * Pallet `Council`'s storage queries
825
+ **/
826
+ council: {
827
+ /**
828
+ * The hashes of the active proposals.
829
+ *
830
+ * @param {Callback<Array<H256>> =} callback
831
+ **/
832
+ proposals: GenericStorageQuery<Rv, () => Array<H256>>;
833
+
834
+ /**
835
+ * Actual proposal for a given hash, if it's current.
836
+ *
837
+ * @param {H256} arg
838
+ * @param {Callback<HydradxRuntimeRuntimeCall | undefined> =} callback
839
+ **/
840
+ proposalOf: GenericStorageQuery<Rv, (arg: H256) => HydradxRuntimeRuntimeCall | undefined, H256>;
841
+
842
+ /**
843
+ * Votes on a given proposal, if it is ongoing.
844
+ *
845
+ * @param {H256} arg
846
+ * @param {Callback<PalletCollectiveVotes | undefined> =} callback
847
+ **/
848
+ voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
849
+
850
+ /**
851
+ * Proposals so far.
852
+ *
853
+ * @param {Callback<number> =} callback
854
+ **/
855
+ proposalCount: GenericStorageQuery<Rv, () => number>;
856
+
857
+ /**
858
+ * The current members of the collective. This is stored sorted (just by value).
859
+ *
860
+ * @param {Callback<Array<AccountId32>> =} callback
861
+ **/
862
+ members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
863
+
864
+ /**
865
+ * The prime member that helps determine the default vote behavior in case of abstentions.
866
+ *
867
+ * @param {Callback<AccountId32 | undefined> =} callback
868
+ **/
869
+ prime: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
870
+
871
+ /**
872
+ * Generic pallet storage query
873
+ **/
874
+ [storage: string]: GenericStorageQuery<Rv>;
875
+ };
876
+ /**
877
+ * Pallet `TechnicalCommittee`'s storage queries
878
+ **/
879
+ technicalCommittee: {
880
+ /**
881
+ * The hashes of the active proposals.
882
+ *
883
+ * @param {Callback<Array<H256>> =} callback
884
+ **/
885
+ proposals: GenericStorageQuery<Rv, () => Array<H256>>;
886
+
887
+ /**
888
+ * Actual proposal for a given hash, if it's current.
889
+ *
890
+ * @param {H256} arg
891
+ * @param {Callback<HydradxRuntimeRuntimeCall | undefined> =} callback
892
+ **/
893
+ proposalOf: GenericStorageQuery<Rv, (arg: H256) => HydradxRuntimeRuntimeCall | undefined, H256>;
894
+
895
+ /**
896
+ * Votes on a given proposal, if it is ongoing.
897
+ *
898
+ * @param {H256} arg
899
+ * @param {Callback<PalletCollectiveVotes | undefined> =} callback
900
+ **/
901
+ voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
902
+
903
+ /**
904
+ * Proposals so far.
905
+ *
906
+ * @param {Callback<number> =} callback
907
+ **/
908
+ proposalCount: GenericStorageQuery<Rv, () => number>;
909
+
910
+ /**
911
+ * The current members of the collective. This is stored sorted (just by value).
912
+ *
913
+ * @param {Callback<Array<AccountId32>> =} callback
914
+ **/
915
+ members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
916
+
917
+ /**
918
+ * The prime member that helps determine the default vote behavior in case of abstentions.
919
+ *
920
+ * @param {Callback<AccountId32 | undefined> =} callback
921
+ **/
922
+ prime: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
923
+
924
+ /**
925
+ * Generic pallet storage query
926
+ **/
927
+ [storage: string]: GenericStorageQuery<Rv>;
928
+ };
929
+ /**
930
+ * Pallet `Tips`'s storage queries
931
+ **/
932
+ tips: {
933
+ /**
934
+ * TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value.
935
+ * This has the insecure enumerable hash function since the key itself is already
936
+ * guaranteed to be a secure hash.
937
+ *
938
+ * @param {H256} arg
939
+ * @param {Callback<PalletTipsOpenTip | undefined> =} callback
940
+ **/
941
+ tips: GenericStorageQuery<Rv, (arg: H256) => PalletTipsOpenTip | undefined, H256>;
942
+
943
+ /**
944
+ * Simple preimage lookup from the reason's hash to the original data. Again, has an
945
+ * insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
946
+ *
947
+ * @param {H256} arg
948
+ * @param {Callback<Bytes | undefined> =} callback
949
+ **/
950
+ reasons: GenericStorageQuery<Rv, (arg: H256) => Bytes | undefined, H256>;
951
+
952
+ /**
953
+ * Generic pallet storage query
954
+ **/
955
+ [storage: string]: GenericStorageQuery<Rv>;
956
+ };
957
+ /**
958
+ * Pallet `Proxy`'s storage queries
959
+ **/
960
+ proxy: {
961
+ /**
962
+ * The set of account proxies. Maps the account which has delegated to the accounts
963
+ * which are being delegated to, together with the amount held on deposit.
964
+ *
965
+ * @param {AccountId32Like} arg
966
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
967
+ **/
968
+ proxies: GenericStorageQuery<
969
+ Rv,
970
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
971
+ AccountId32
972
+ >;
973
+
974
+ /**
975
+ * The announcements made by the proxy (key).
976
+ *
977
+ * @param {AccountId32Like} arg
978
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
979
+ **/
980
+ announcements: GenericStorageQuery<
981
+ Rv,
982
+ (arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
983
+ AccountId32
984
+ >;
985
+
986
+ /**
987
+ * Generic pallet storage query
988
+ **/
989
+ [storage: string]: GenericStorageQuery<Rv>;
990
+ };
991
+ /**
992
+ * Pallet `Multisig`'s storage queries
993
+ **/
994
+ multisig: {
995
+ /**
996
+ * The set of open multisig operations.
997
+ *
998
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
999
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1000
+ **/
1001
+ multisigs: GenericStorageQuery<
1002
+ Rv,
1003
+ (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1004
+ [AccountId32, FixedBytes<32>]
1005
+ >;
1006
+
1007
+ /**
1008
+ * Generic pallet storage query
1009
+ **/
1010
+ [storage: string]: GenericStorageQuery<Rv>;
1011
+ };
1012
+ /**
1013
+ * Pallet `Uniques`'s storage queries
1014
+ **/
1015
+ uniques: {
1016
+ /**
1017
+ * Details of a collection.
1018
+ *
1019
+ * @param {bigint} arg
1020
+ * @param {Callback<PalletUniquesCollectionDetails | undefined> =} callback
1021
+ **/
1022
+ class: GenericStorageQuery<Rv, (arg: bigint) => PalletUniquesCollectionDetails | undefined, bigint>;
1023
+
1024
+ /**
1025
+ * The collection, if any, of which an account is willing to take ownership.
1026
+ *
1027
+ * @param {AccountId32Like} arg
1028
+ * @param {Callback<bigint | undefined> =} callback
1029
+ **/
1030
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint | undefined, AccountId32>;
1031
+
1032
+ /**
1033
+ * The items held by any given account; set out this way so that items owned by a single
1034
+ * account can be enumerated.
1035
+ *
1036
+ * @param {[AccountId32Like, bigint, bigint]} arg
1037
+ * @param {Callback<[] | undefined> =} callback
1038
+ **/
1039
+ account: GenericStorageQuery<
1040
+ Rv,
1041
+ (arg: [AccountId32Like, bigint, bigint]) => [] | undefined,
1042
+ [AccountId32, bigint, bigint]
1043
+ >;
1044
+
1045
+ /**
1046
+ * The collections owned by any given account; set out this way so that collections owned by
1047
+ * a single account can be enumerated.
1048
+ *
1049
+ * @param {[AccountId32Like, bigint]} arg
1050
+ * @param {Callback<[] | undefined> =} callback
1051
+ **/
1052
+ classAccount: GenericStorageQuery<Rv, (arg: [AccountId32Like, bigint]) => [] | undefined, [AccountId32, bigint]>;
1053
+
1054
+ /**
1055
+ * The items in existence and their ownership details.
1056
+ *
1057
+ * @param {[bigint, bigint]} arg
1058
+ * @param {Callback<PalletUniquesItemDetails | undefined> =} callback
1059
+ **/
1060
+ asset: GenericStorageQuery<Rv, (arg: [bigint, bigint]) => PalletUniquesItemDetails | undefined, [bigint, bigint]>;
1061
+
1062
+ /**
1063
+ * Metadata of a collection.
1064
+ *
1065
+ * @param {bigint} arg
1066
+ * @param {Callback<PalletUniquesCollectionMetadata | undefined> =} callback
1067
+ **/
1068
+ classMetadataOf: GenericStorageQuery<Rv, (arg: bigint) => PalletUniquesCollectionMetadata | undefined, bigint>;
1069
+
1070
+ /**
1071
+ * Metadata of an item.
1072
+ *
1073
+ * @param {[bigint, bigint]} arg
1074
+ * @param {Callback<PalletUniquesItemMetadata | undefined> =} callback
1075
+ **/
1076
+ instanceMetadataOf: GenericStorageQuery<
1077
+ Rv,
1078
+ (arg: [bigint, bigint]) => PalletUniquesItemMetadata | undefined,
1079
+ [bigint, bigint]
1080
+ >;
1081
+
1082
+ /**
1083
+ * Attributes of a collection.
1084
+ *
1085
+ * @param {[bigint, bigint | undefined, BytesLike]} arg
1086
+ * @param {Callback<[Bytes, bigint] | undefined> =} callback
1087
+ **/
1088
+ attribute: GenericStorageQuery<
1089
+ Rv,
1090
+ (arg: [bigint, bigint | undefined, BytesLike]) => [Bytes, bigint] | undefined,
1091
+ [bigint, bigint | undefined, Bytes]
1092
+ >;
1093
+
1094
+ /**
1095
+ * Price of an asset instance.
1096
+ *
1097
+ * @param {[bigint, bigint]} arg
1098
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1099
+ **/
1100
+ itemPriceOf: GenericStorageQuery<
1101
+ Rv,
1102
+ (arg: [bigint, bigint]) => [bigint, AccountId32 | undefined] | undefined,
1103
+ [bigint, bigint]
1104
+ >;
1105
+
1106
+ /**
1107
+ * Keeps track of the number of items a collection might have.
1108
+ *
1109
+ * @param {bigint} arg
1110
+ * @param {Callback<number | undefined> =} callback
1111
+ **/
1112
+ collectionMaxSupply: GenericStorageQuery<Rv, (arg: bigint) => number | undefined, bigint>;
1113
+
1114
+ /**
1115
+ * Generic pallet storage query
1116
+ **/
1117
+ [storage: string]: GenericStorageQuery<Rv>;
1118
+ };
1119
+ /**
1120
+ * Pallet `StateTrieMigration`'s storage queries
1121
+ **/
1122
+ stateTrieMigration: {
1123
+ /**
1124
+ * Migration progress.
1125
+ *
1126
+ * This stores the snapshot of the last migrated keys. It can be set into motion and move
1127
+ * forward by any of the means provided by this pallet.
1128
+ *
1129
+ * @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
1130
+ **/
1131
+ migrationProcess: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationTask>;
1132
+
1133
+ /**
1134
+ * The limits that are imposed on automatic migrations.
1135
+ *
1136
+ * If set to None, then no automatic migration happens.
1137
+ *
1138
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
1139
+ **/
1140
+ autoLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
1141
+
1142
+ /**
1143
+ * The maximum limits that the signed migration could use.
1144
+ *
1145
+ * If not set, no signed submission is allowed.
1146
+ *
1147
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
1148
+ **/
1149
+ signedMigrationMaxLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
1150
+
1151
+ /**
1152
+ * Generic pallet storage query
1153
+ **/
1154
+ [storage: string]: GenericStorageQuery<Rv>;
1155
+ };
1156
+ /**
1157
+ * Pallet `ConvictionVoting`'s storage queries
1158
+ **/
1159
+ convictionVoting: {
1160
+ /**
1161
+ * All voting for a particular voter in a particular voting class. We store the balance for the
1162
+ * number of votes that we have recorded.
1163
+ *
1164
+ * @param {[AccountId32Like, number]} arg
1165
+ * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
1166
+ **/
1167
+ votingFor: GenericStorageQuery<
1168
+ Rv,
1169
+ (arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting,
1170
+ [AccountId32, number]
1171
+ >;
1172
+
1173
+ /**
1174
+ * The voting classes which have a non-zero lock requirement and the lock amounts which they
1175
+ * require. The actual amount locked on behalf of this pallet should always be the maximum of
1176
+ * this list.
1177
+ *
1178
+ * @param {AccountId32Like} arg
1179
+ * @param {Callback<Array<[number, bigint]>> =} callback
1180
+ **/
1181
+ classLocksFor: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<[number, bigint]>, AccountId32>;
1182
+
1183
+ /**
1184
+ * Generic pallet storage query
1185
+ **/
1186
+ [storage: string]: GenericStorageQuery<Rv>;
1187
+ };
1188
+ /**
1189
+ * Pallet `Referenda`'s storage queries
1190
+ **/
1191
+ referenda: {
1192
+ /**
1193
+ * The next free referendum index, aka the number of referenda started so far.
1194
+ *
1195
+ * @param {Callback<number> =} callback
1196
+ **/
1197
+ referendumCount: GenericStorageQuery<Rv, () => number>;
1198
+
1199
+ /**
1200
+ * Information concerning any given referendum.
1201
+ *
1202
+ * @param {number} arg
1203
+ * @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
1204
+ **/
1205
+ referendumInfoFor: GenericStorageQuery<Rv, (arg: number) => PalletReferendaReferendumInfo | undefined, number>;
1206
+
1207
+ /**
1208
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
1209
+ * conviction-weighted approvals.
1210
+ *
1211
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
1212
+ *
1213
+ * @param {number} arg
1214
+ * @param {Callback<Array<[number, bigint]>> =} callback
1215
+ **/
1216
+ trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, bigint]>, number>;
1217
+
1218
+ /**
1219
+ * The number of referenda being decided currently.
1220
+ *
1221
+ * @param {number} arg
1222
+ * @param {Callback<number> =} callback
1223
+ **/
1224
+ decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
1225
+
1226
+ /**
1227
+ * The metadata is a general information concerning the referendum.
1228
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
1229
+ * dump or IPFS hash of a JSON file.
1230
+ *
1231
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1232
+ * large preimages.
1233
+ *
1234
+ * @param {number} arg
1235
+ * @param {Callback<H256 | undefined> =} callback
1236
+ **/
1237
+ metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
1238
+
1239
+ /**
1240
+ * Generic pallet storage query
1241
+ **/
1242
+ [storage: string]: GenericStorageQuery<Rv>;
1243
+ };
1244
+ /**
1245
+ * Pallet `Whitelist`'s storage queries
1246
+ **/
1247
+ whitelist: {
1248
+ /**
1249
+ *
1250
+ * @param {H256} arg
1251
+ * @param {Callback<[] | undefined> =} callback
1252
+ **/
1253
+ whitelistedCall: GenericStorageQuery<Rv, (arg: H256) => [] | undefined, H256>;
1254
+
1255
+ /**
1256
+ * Generic pallet storage query
1257
+ **/
1258
+ [storage: string]: GenericStorageQuery<Rv>;
1259
+ };
1260
+ /**
1261
+ * Pallet `Dispatcher`'s storage queries
1262
+ **/
1263
+ dispatcher: {
1264
+ /**
1265
+ *
1266
+ * @param {Callback<AccountId32> =} callback
1267
+ **/
1268
+ aaveManagerAccount: GenericStorageQuery<Rv, () => AccountId32>;
1269
+
1270
+ /**
1271
+ *
1272
+ * @param {Callback<bigint> =} callback
1273
+ **/
1274
+ extraGas: GenericStorageQuery<Rv, () => bigint>;
1275
+
1276
+ /**
1277
+ * Generic pallet storage query
1278
+ **/
1279
+ [storage: string]: GenericStorageQuery<Rv>;
1280
+ };
1281
+ /**
1282
+ * Pallet `AssetRegistry`'s storage queries
1283
+ **/
1284
+ assetRegistry: {
1285
+ /**
1286
+ * Details of an asset.
1287
+ *
1288
+ * @param {number} arg
1289
+ * @param {Callback<PalletAssetRegistryAssetDetails | undefined> =} callback
1290
+ **/
1291
+ assets: GenericStorageQuery<Rv, (arg: number) => PalletAssetRegistryAssetDetails | undefined, number>;
1292
+
1293
+ /**
1294
+ * Next available asset id. This is sequential id assigned for each new registered asset.
1295
+ *
1296
+ * @param {Callback<number> =} callback
1297
+ **/
1298
+ nextAssetId: GenericStorageQuery<Rv, () => number>;
1299
+
1300
+ /**
1301
+ * Mapping between asset name and asset id.
1302
+ *
1303
+ * @param {BytesLike} arg
1304
+ * @param {Callback<number | undefined> =} callback
1305
+ **/
1306
+ assetIds: GenericStorageQuery<Rv, (arg: BytesLike) => number | undefined, Bytes>;
1307
+
1308
+ /**
1309
+ * Native location of an asset.
1310
+ *
1311
+ * @param {number} arg
1312
+ * @param {Callback<HydradxRuntimeXcmAssetLocation | undefined> =} callback
1313
+ **/
1314
+ assetLocations: GenericStorageQuery<Rv, (arg: number) => HydradxRuntimeXcmAssetLocation | undefined, number>;
1315
+
1316
+ /**
1317
+ * Non-native assets which transfer is banned.
1318
+ *
1319
+ * @param {number} arg
1320
+ * @param {Callback<[] | undefined> =} callback
1321
+ **/
1322
+ bannedAssets: GenericStorageQuery<Rv, (arg: number) => [] | undefined, number>;
1323
+
1324
+ /**
1325
+ * Local asset for native location.
1326
+ *
1327
+ * @param {HydradxRuntimeXcmAssetLocation} arg
1328
+ * @param {Callback<number | undefined> =} callback
1329
+ **/
1330
+ locationAssets: GenericStorageQuery<
1331
+ Rv,
1332
+ (arg: HydradxRuntimeXcmAssetLocation) => number | undefined,
1333
+ HydradxRuntimeXcmAssetLocation
1334
+ >;
1335
+
1336
+ /**
1337
+ * Number of accounts that paid existential deposits for insufficient assets.
1338
+ * This storage is used by `SufficiencyCheck`.
1339
+ *
1340
+ * @param {Callback<bigint> =} callback
1341
+ **/
1342
+ existentialDepositCounter: GenericStorageQuery<Rv, () => bigint>;
1343
+
1344
+ /**
1345
+ * Generic pallet storage query
1346
+ **/
1347
+ [storage: string]: GenericStorageQuery<Rv>;
1348
+ };
1349
+ /**
1350
+ * Pallet `Claims`'s storage queries
1351
+ **/
1352
+ claims: {
1353
+ /**
1354
+ * Asset id storage for each shared token
1355
+ *
1356
+ * @param {PalletClaimsEthereumAddress} arg
1357
+ * @param {Callback<bigint> =} callback
1358
+ **/
1359
+ claims: GenericStorageQuery<Rv, (arg: PalletClaimsEthereumAddress) => bigint, PalletClaimsEthereumAddress>;
1360
+
1361
+ /**
1362
+ * Generic pallet storage query
1363
+ **/
1364
+ [storage: string]: GenericStorageQuery<Rv>;
1365
+ };
1366
+ /**
1367
+ * Pallet `GenesisHistory`'s storage queries
1368
+ **/
1369
+ genesisHistory: {
1370
+ /**
1371
+ *
1372
+ * @param {Callback<PalletGenesisHistoryChain> =} callback
1373
+ **/
1374
+ previousChain: GenericStorageQuery<Rv, () => PalletGenesisHistoryChain>;
1375
+
1376
+ /**
1377
+ * Generic pallet storage query
1378
+ **/
1379
+ [storage: string]: GenericStorageQuery<Rv>;
1380
+ };
1381
+ /**
1382
+ * Pallet `CollatorRewards`'s storage queries
1383
+ **/
1384
+ collatorRewards: {
1385
+ /**
1386
+ * Stores the collators per session (index).
1387
+ *
1388
+ * @param {number} arg
1389
+ * @param {Callback<Array<AccountId32>> =} callback
1390
+ **/
1391
+ collators: GenericStorageQuery<Rv, (arg: number) => Array<AccountId32>, number>;
1392
+
1393
+ /**
1394
+ * Generic pallet storage query
1395
+ **/
1396
+ [storage: string]: GenericStorageQuery<Rv>;
1397
+ };
1398
+ /**
1399
+ * Pallet `Omnipool`'s storage queries
1400
+ **/
1401
+ omnipool: {
1402
+ /**
1403
+ * State of an asset in the omnipool
1404
+ *
1405
+ * @param {number} arg
1406
+ * @param {Callback<PalletOmnipoolAssetState | undefined> =} callback
1407
+ **/
1408
+ assets: GenericStorageQuery<Rv, (arg: number) => PalletOmnipoolAssetState | undefined, number>;
1409
+
1410
+ /**
1411
+ * Tradable state of hub asset.
1412
+ *
1413
+ * @param {Callback<PalletOmnipoolTradability> =} callback
1414
+ **/
1415
+ hubAssetTradability: GenericStorageQuery<Rv, () => PalletOmnipoolTradability>;
1416
+
1417
+ /**
1418
+ * LP positions. Maps NFT instance id to corresponding position
1419
+ *
1420
+ * @param {bigint} arg
1421
+ * @param {Callback<PalletOmnipoolPosition | undefined> =} callback
1422
+ **/
1423
+ positions: GenericStorageQuery<Rv, (arg: bigint) => PalletOmnipoolPosition | undefined, bigint>;
1424
+
1425
+ /**
1426
+ * Position ids sequencer
1427
+ *
1428
+ * @param {Callback<bigint> =} callback
1429
+ **/
1430
+ nextPositionId: GenericStorageQuery<Rv, () => bigint>;
1431
+
1432
+ /**
1433
+ * Generic pallet storage query
1434
+ **/
1435
+ [storage: string]: GenericStorageQuery<Rv>;
1436
+ };
1437
+ /**
1438
+ * Pallet `TransactionPause`'s storage queries
1439
+ **/
1440
+ transactionPause: {
1441
+ /**
1442
+ * The paused transaction map
1443
+ *
1444
+ * map (PalletNameBytes, FunctionNameBytes) => Option<()>
1445
+ *
1446
+ * @param {[BytesLike, BytesLike]} arg
1447
+ * @param {Callback<[] | undefined> =} callback
1448
+ **/
1449
+ pausedTransactions: GenericStorageQuery<Rv, (arg: [BytesLike, BytesLike]) => [] | undefined, [Bytes, Bytes]>;
1450
+
1451
+ /**
1452
+ * Generic pallet storage query
1453
+ **/
1454
+ [storage: string]: GenericStorageQuery<Rv>;
1455
+ };
1456
+ /**
1457
+ * Pallet `Duster`'s storage queries
1458
+ **/
1459
+ duster: {
1460
+ /**
1461
+ * Accounts excluded from dusting.
1462
+ *
1463
+ * @param {AccountId32Like} arg
1464
+ * @param {Callback<[] | undefined> =} callback
1465
+ **/
1466
+ accountBlacklist: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
1467
+
1468
+ /**
1469
+ * Account to take reward from.
1470
+ *
1471
+ * @param {Callback<AccountId32 | undefined> =} callback
1472
+ **/
1473
+ rewardAccount: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1474
+
1475
+ /**
1476
+ * Account to send dust to.
1477
+ *
1478
+ * @param {Callback<AccountId32 | undefined> =} callback
1479
+ **/
1480
+ dustAccount: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1481
+
1482
+ /**
1483
+ * Generic pallet storage query
1484
+ **/
1485
+ [storage: string]: GenericStorageQuery<Rv>;
1486
+ };
1487
+ /**
1488
+ * Pallet `OmnipoolWarehouseLM`'s storage queries
1489
+ **/
1490
+ omnipoolWarehouseLM: {
1491
+ /**
1492
+ * Id sequencer for `GlobalFarm` and `YieldFarm`.
1493
+ *
1494
+ * @param {Callback<number> =} callback
1495
+ **/
1496
+ farmSequencer: GenericStorageQuery<Rv, () => number>;
1497
+
1498
+ /**
1499
+ *
1500
+ * @param {Callback<bigint> =} callback
1501
+ **/
1502
+ depositSequencer: GenericStorageQuery<Rv, () => bigint>;
1503
+
1504
+ /**
1505
+ *
1506
+ * @param {number} arg
1507
+ * @param {Callback<PalletLiquidityMiningGlobalFarmData | undefined> =} callback
1508
+ **/
1509
+ globalFarm: GenericStorageQuery<Rv, (arg: number) => PalletLiquidityMiningGlobalFarmData | undefined, number>;
1510
+
1511
+ /**
1512
+ * Yield farm details.
1513
+ *
1514
+ * @param {[number, number, number]} arg
1515
+ * @param {Callback<PalletLiquidityMiningYieldFarmData | undefined> =} callback
1516
+ **/
1517
+ yieldFarm: GenericStorageQuery<
1518
+ Rv,
1519
+ (arg: [number, number, number]) => PalletLiquidityMiningYieldFarmData | undefined,
1520
+ [number, number, number]
1521
+ >;
1522
+
1523
+ /**
1524
+ * Deposit details.
1525
+ *
1526
+ * @param {bigint} arg
1527
+ * @param {Callback<PalletLiquidityMiningDepositData | undefined> =} callback
1528
+ **/
1529
+ deposit: GenericStorageQuery<Rv, (arg: bigint) => PalletLiquidityMiningDepositData | undefined, bigint>;
1530
+
1531
+ /**
1532
+ * Active(farms able to receive LP shares deposits) yield farms.
1533
+ *
1534
+ * @param {[number, number]} arg
1535
+ * @param {Callback<number | undefined> =} callback
1536
+ **/
1537
+ activeYieldFarm: GenericStorageQuery<Rv, (arg: [number, number]) => number | undefined, [number, number]>;
1538
+
1539
+ /**
1540
+ * Generic pallet storage query
1541
+ **/
1542
+ [storage: string]: GenericStorageQuery<Rv>;
1543
+ };
1544
+ /**
1545
+ * Pallet `OmnipoolLiquidityMining`'s storage queries
1546
+ **/
1547
+ omnipoolLiquidityMining: {
1548
+ /**
1549
+ * Map of omnipool position's ids to LM's deposit ids.
1550
+ *
1551
+ * @param {bigint} arg
1552
+ * @param {Callback<bigint | undefined> =} callback
1553
+ **/
1554
+ omniPositionId: GenericStorageQuery<Rv, (arg: bigint) => bigint | undefined, bigint>;
1555
+
1556
+ /**
1557
+ * Generic pallet storage query
1558
+ **/
1559
+ [storage: string]: GenericStorageQuery<Rv>;
1560
+ };
1561
+ /**
1562
+ * Pallet `OTC`'s storage queries
1563
+ **/
1564
+ otc: {
1565
+ /**
1566
+ * ID sequencer for Orders
1567
+ *
1568
+ * @param {Callback<number> =} callback
1569
+ **/
1570
+ nextOrderId: GenericStorageQuery<Rv, () => number>;
1571
+
1572
+ /**
1573
+ *
1574
+ * @param {number} arg
1575
+ * @param {Callback<PalletOtcOrder | undefined> =} callback
1576
+ **/
1577
+ orders: GenericStorageQuery<Rv, (arg: number) => PalletOtcOrder | undefined, number>;
1578
+
1579
+ /**
1580
+ * Generic pallet storage query
1581
+ **/
1582
+ [storage: string]: GenericStorageQuery<Rv>;
1583
+ };
1584
+ /**
1585
+ * Pallet `CircuitBreaker`'s storage queries
1586
+ **/
1587
+ circuitBreaker: {
1588
+ /**
1589
+ * Trade volume limits of assets set by set_trade_volume_limit.
1590
+ * If not set, returns the default limit.
1591
+ *
1592
+ * @param {number} arg
1593
+ * @param {Callback<[number, number]> =} callback
1594
+ **/
1595
+ tradeVolumeLimitPerAsset: GenericStorageQuery<Rv, (arg: number) => [number, number], number>;
1596
+
1597
+ /**
1598
+ * Trade volumes per asset
1599
+ *
1600
+ * @param {number} arg
1601
+ * @param {Callback<PalletCircuitBreakerTradeVolumeLimit | undefined> =} callback
1602
+ **/
1603
+ allowedTradeVolumeLimitPerAsset: GenericStorageQuery<
1604
+ Rv,
1605
+ (arg: number) => PalletCircuitBreakerTradeVolumeLimit | undefined,
1606
+ number
1607
+ >;
1608
+
1609
+ /**
1610
+ * Liquidity limits of assets for adding liquidity.
1611
+ * If not set, returns the default limit.
1612
+ *
1613
+ * @param {number} arg
1614
+ * @param {Callback<[number, number] | undefined> =} callback
1615
+ **/
1616
+ liquidityAddLimitPerAsset: GenericStorageQuery<Rv, (arg: number) => [number, number] | undefined, number>;
1617
+
1618
+ /**
1619
+ * Add liquidity volumes per asset
1620
+ *
1621
+ * @param {number} arg
1622
+ * @param {Callback<PalletCircuitBreakerLiquidityLimit | undefined> =} callback
1623
+ **/
1624
+ allowedAddLiquidityAmountPerAsset: GenericStorageQuery<
1625
+ Rv,
1626
+ (arg: number) => PalletCircuitBreakerLiquidityLimit | undefined,
1627
+ number
1628
+ >;
1629
+
1630
+ /**
1631
+ * Liquidity limits of assets for removing liquidity.
1632
+ * If not set, returns the default limit.
1633
+ *
1634
+ * @param {number} arg
1635
+ * @param {Callback<[number, number] | undefined> =} callback
1636
+ **/
1637
+ liquidityRemoveLimitPerAsset: GenericStorageQuery<Rv, (arg: number) => [number, number] | undefined, number>;
1638
+
1639
+ /**
1640
+ * Remove liquidity volumes per asset
1641
+ *
1642
+ * @param {number} arg
1643
+ * @param {Callback<PalletCircuitBreakerLiquidityLimit | undefined> =} callback
1644
+ **/
1645
+ allowedRemoveLiquidityAmountPerAsset: GenericStorageQuery<
1646
+ Rv,
1647
+ (arg: number) => PalletCircuitBreakerLiquidityLimit | undefined,
1648
+ number
1649
+ >;
1650
+
1651
+ /**
1652
+ * Generic pallet storage query
1653
+ **/
1654
+ [storage: string]: GenericStorageQuery<Rv>;
1655
+ };
1656
+ /**
1657
+ * Pallet `Router`'s storage queries
1658
+ **/
1659
+ router: {
1660
+ /**
1661
+ * Storing routes for asset pairs
1662
+ *
1663
+ * @param {HydradxTraitsRouterAssetPair} arg
1664
+ * @param {Callback<Array<HydradxTraitsRouterTrade> | undefined> =} callback
1665
+ **/
1666
+ routes: GenericStorageQuery<
1667
+ Rv,
1668
+ (arg: HydradxTraitsRouterAssetPair) => Array<HydradxTraitsRouterTrade> | undefined,
1669
+ HydradxTraitsRouterAssetPair
1670
+ >;
1671
+
1672
+ /**
1673
+ * Generic pallet storage query
1674
+ **/
1675
+ [storage: string]: GenericStorageQuery<Rv>;
1676
+ };
1677
+ /**
1678
+ * Pallet `DynamicFees`'s storage queries
1679
+ **/
1680
+ dynamicFees: {
1681
+ /**
1682
+ * Stores last calculated fee of an asset and block number in which it was changed..
1683
+ * Stored as (Asset fee, Protocol fee, Block number)
1684
+ *
1685
+ * @param {number} arg
1686
+ * @param {Callback<PalletDynamicFeesFeeEntry | undefined> =} callback
1687
+ **/
1688
+ assetFee: GenericStorageQuery<Rv, (arg: number) => PalletDynamicFeesFeeEntry | undefined, number>;
1689
+
1690
+ /**
1691
+ * Generic pallet storage query
1692
+ **/
1693
+ [storage: string]: GenericStorageQuery<Rv>;
1694
+ };
1695
+ /**
1696
+ * Pallet `Staking`'s storage queries
1697
+ **/
1698
+ staking: {
1699
+ /**
1700
+ * Global staking state.
1701
+ *
1702
+ * @param {Callback<PalletStakingStakingData> =} callback
1703
+ **/
1704
+ staking: GenericStorageQuery<Rv, () => PalletStakingStakingData>;
1705
+
1706
+ /**
1707
+ * User's position state.
1708
+ *
1709
+ * @param {bigint} arg
1710
+ * @param {Callback<PalletStakingPosition | undefined> =} callback
1711
+ **/
1712
+ positions: GenericStorageQuery<Rv, (arg: bigint) => PalletStakingPosition | undefined, bigint>;
1713
+
1714
+ /**
1715
+ * Position ids sequencer.
1716
+ *
1717
+ * @param {Callback<bigint> =} callback
1718
+ **/
1719
+ nextPositionId: GenericStorageQuery<Rv, () => bigint>;
1720
+
1721
+ /**
1722
+ * List of position votes.
1723
+ *
1724
+ * @param {bigint} arg
1725
+ * @param {Callback<PalletStakingVoting> =} callback
1726
+ **/
1727
+ votes: GenericStorageQuery<Rv, (arg: bigint) => PalletStakingVoting, bigint>;
1728
+
1729
+ /**
1730
+ * List of processed vote. Used to determine if the vote should be locked in case of voting not in favor.
1731
+ *
1732
+ * @param {[AccountId32Like, number]} arg
1733
+ * @param {Callback<PalletStakingVote | undefined> =} callback
1734
+ **/
1735
+ votesRewarded: GenericStorageQuery<
1736
+ Rv,
1737
+ (arg: [AccountId32Like, number]) => PalletStakingVote | undefined,
1738
+ [AccountId32, number]
1739
+ >;
1740
+
1741
+ /**
1742
+ * Legacy storage! - Used to handle democracy votes until democracy pallet is fully removed.
1743
+ *
1744
+ * @param {bigint} arg
1745
+ * @param {Callback<PalletStakingVoting> =} callback
1746
+ **/
1747
+ positionVotes: GenericStorageQuery<Rv, (arg: bigint) => PalletStakingVoting, bigint>;
1748
+
1749
+ /**
1750
+ * Legacy storage! - Used to handle democracy processed votes until democracy pallet is fully removed.
1751
+ *
1752
+ * @param {[AccountId32Like, number]} arg
1753
+ * @param {Callback<PalletStakingVote | undefined> =} callback
1754
+ **/
1755
+ processedVotes: GenericStorageQuery<
1756
+ Rv,
1757
+ (arg: [AccountId32Like, number]) => PalletStakingVote | undefined,
1758
+ [AccountId32, number]
1759
+ >;
1760
+
1761
+ /**
1762
+ * Block number when we switched to 6 sec. blocks.
1763
+ *
1764
+ * @param {Callback<number> =} callback
1765
+ **/
1766
+ sixSecBlocksSince: GenericStorageQuery<Rv, () => number>;
1767
+
1768
+ /**
1769
+ * Generic pallet storage query
1770
+ **/
1771
+ [storage: string]: GenericStorageQuery<Rv>;
1772
+ };
1773
+ /**
1774
+ * Pallet `Stableswap`'s storage queries
1775
+ **/
1776
+ stableswap: {
1777
+ /**
1778
+ * Existing pools
1779
+ *
1780
+ * @param {number} arg
1781
+ * @param {Callback<PalletStableswapPoolInfo | undefined> =} callback
1782
+ **/
1783
+ pools: GenericStorageQuery<Rv, (arg: number) => PalletStableswapPoolInfo | undefined, number>;
1784
+
1785
+ /**
1786
+ * Pool peg info.
1787
+ *
1788
+ * @param {number} arg
1789
+ * @param {Callback<PalletStableswapPoolPegInfo | undefined> =} callback
1790
+ **/
1791
+ poolPegs: GenericStorageQuery<Rv, (arg: number) => PalletStableswapPoolPegInfo | undefined, number>;
1792
+
1793
+ /**
1794
+ * Tradability state of pool assets.
1795
+ *
1796
+ * @param {[number, number]} arg
1797
+ * @param {Callback<PalletStableswapTradability> =} callback
1798
+ **/
1799
+ assetTradability: GenericStorageQuery<Rv, (arg: [number, number]) => PalletStableswapTradability, [number, number]>;
1800
+
1801
+ /**
1802
+ * Generic pallet storage query
1803
+ **/
1804
+ [storage: string]: GenericStorageQuery<Rv>;
1805
+ };
1806
+ /**
1807
+ * Pallet `Bonds`'s storage queries
1808
+ **/
1809
+ bonds: {
1810
+ /**
1811
+ * Registered bond ids.
1812
+ * Maps (underlying asset ID, maturity) -> bond ID
1813
+ *
1814
+ * @param {[number, bigint]} arg
1815
+ * @param {Callback<number | undefined> =} callback
1816
+ **/
1817
+ bondIds: GenericStorageQuery<Rv, (arg: [number, bigint]) => number | undefined, [number, bigint]>;
1818
+
1819
+ /**
1820
+ * Registered bonds.
1821
+ * Maps bond ID -> (underlying asset ID, maturity)
1822
+ *
1823
+ * @param {number} arg
1824
+ * @param {Callback<[number, bigint] | undefined> =} callback
1825
+ **/
1826
+ bonds: GenericStorageQuery<Rv, (arg: number) => [number, bigint] | undefined, number>;
1827
+
1828
+ /**
1829
+ * Generic pallet storage query
1830
+ **/
1831
+ [storage: string]: GenericStorageQuery<Rv>;
1832
+ };
1833
+ /**
1834
+ * Pallet `LBP`'s storage queries
1835
+ **/
1836
+ lbp: {
1837
+ /**
1838
+ * Details of a pool.
1839
+ *
1840
+ * @param {AccountId32Like} arg
1841
+ * @param {Callback<PalletLbpPool | undefined> =} callback
1842
+ **/
1843
+ poolData: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletLbpPool | undefined, AccountId32>;
1844
+
1845
+ /**
1846
+ * Storage used for tracking existing fee collectors
1847
+ * Not more than one fee collector per asset possible
1848
+ *
1849
+ * @param {[AccountId32Like, number]} arg
1850
+ * @param {Callback<boolean> =} callback
1851
+ **/
1852
+ feeCollectorWithAsset: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => boolean, [AccountId32, number]>;
1853
+
1854
+ /**
1855
+ * Generic pallet storage query
1856
+ **/
1857
+ [storage: string]: GenericStorageQuery<Rv>;
1858
+ };
1859
+ /**
1860
+ * Pallet `XYK`'s storage queries
1861
+ **/
1862
+ xyk: {
1863
+ /**
1864
+ * Asset id storage for shared pool tokens
1865
+ *
1866
+ * @param {AccountId32Like} arg
1867
+ * @param {Callback<number> =} callback
1868
+ **/
1869
+ shareToken: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
1870
+
1871
+ /**
1872
+ * Total liquidity in a pool.
1873
+ *
1874
+ * @param {AccountId32Like} arg
1875
+ * @param {Callback<bigint> =} callback
1876
+ **/
1877
+ totalLiquidity: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint, AccountId32>;
1878
+
1879
+ /**
1880
+ * Asset pair in a pool.
1881
+ *
1882
+ * @param {AccountId32Like} arg
1883
+ * @param {Callback<[number, number] | undefined> =} callback
1884
+ **/
1885
+ poolAssets: GenericStorageQuery<Rv, (arg: AccountId32Like) => [number, number] | undefined, AccountId32>;
1886
+
1887
+ /**
1888
+ * Generic pallet storage query
1889
+ **/
1890
+ [storage: string]: GenericStorageQuery<Rv>;
1891
+ };
1892
+ /**
1893
+ * Pallet `Referrals`'s storage queries
1894
+ **/
1895
+ referrals: {
1896
+ /**
1897
+ * Referral codes
1898
+ * Maps a referral code to an account.
1899
+ *
1900
+ * @param {BytesLike} arg
1901
+ * @param {Callback<AccountId32 | undefined> =} callback
1902
+ **/
1903
+ referralCodes: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
1904
+
1905
+ /**
1906
+ * Referral accounts
1907
+ * Maps an account to a referral code.
1908
+ *
1909
+ * @param {AccountId32Like} arg
1910
+ * @param {Callback<Bytes | undefined> =} callback
1911
+ **/
1912
+ referralAccounts: GenericStorageQuery<Rv, (arg: AccountId32Like) => Bytes | undefined, AccountId32>;
1913
+
1914
+ /**
1915
+ * Linked accounts.
1916
+ * Maps an account to a referral account.
1917
+ *
1918
+ * @param {AccountId32Like} arg
1919
+ * @param {Callback<AccountId32 | undefined> =} callback
1920
+ **/
1921
+ linkedAccounts: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
1922
+
1923
+ /**
1924
+ * Shares of a referral account
1925
+ *
1926
+ * @param {AccountId32Like} arg
1927
+ * @param {Callback<bigint> =} callback
1928
+ **/
1929
+ referrerShares: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint, AccountId32>;
1930
+
1931
+ /**
1932
+ * Shares of a trader account
1933
+ *
1934
+ * @param {AccountId32Like} arg
1935
+ * @param {Callback<bigint> =} callback
1936
+ **/
1937
+ traderShares: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint, AccountId32>;
1938
+
1939
+ /**
1940
+ * Total share issuance.
1941
+ *
1942
+ * @param {Callback<bigint> =} callback
1943
+ **/
1944
+ totalShares: GenericStorageQuery<Rv, () => bigint>;
1945
+
1946
+ /**
1947
+ * Referer level and total accumulated rewards over time.
1948
+ * Maps referrer account to (Level, Balance). Level indicates current rewards and Balance is used to unlock next level.
1949
+ * Dev note: we use OptionQuery here because this helps to easily determine that an account if referrer account.
1950
+ *
1951
+ * @param {AccountId32Like} arg
1952
+ * @param {Callback<[PalletReferralsLevel, bigint] | undefined> =} callback
1953
+ **/
1954
+ referrer: GenericStorageQuery<
1955
+ Rv,
1956
+ (arg: AccountId32Like) => [PalletReferralsLevel, bigint] | undefined,
1957
+ AccountId32
1958
+ >;
1959
+
1960
+ /**
1961
+ * Asset fee distribution rewards information.
1962
+ * Maps (asset_id, level) to asset reward percentages.
1963
+ *
1964
+ * @param {[number, PalletReferralsLevel]} arg
1965
+ * @param {Callback<PalletReferralsFeeDistribution | undefined> =} callback
1966
+ **/
1967
+ assetRewards: GenericStorageQuery<
1968
+ Rv,
1969
+ (arg: [number, PalletReferralsLevel]) => PalletReferralsFeeDistribution | undefined,
1970
+ [number, PalletReferralsLevel]
1971
+ >;
1972
+
1973
+ /**
1974
+ * Information about assets that are currently in the rewards pot.
1975
+ * Used to easily determine list of assets that need to be converted.
1976
+ *
1977
+ * @param {number} arg
1978
+ * @param {Callback<[] | undefined> =} callback
1979
+ **/
1980
+ pendingConversions: GenericStorageQuery<Rv, (arg: number) => [] | undefined, number>;
1981
+
1982
+ /**
1983
+ * Counter for the related counted storage map
1984
+ *
1985
+ * @param {Callback<number> =} callback
1986
+ **/
1987
+ counterForPendingConversions: GenericStorageQuery<Rv, () => number>;
1988
+
1989
+ /**
1990
+ * Generic pallet storage query
1991
+ **/
1992
+ [storage: string]: GenericStorageQuery<Rv>;
1993
+ };
1994
+ /**
1995
+ * Pallet `Liquidation`'s storage queries
1996
+ **/
1997
+ liquidation: {
1998
+ /**
1999
+ * Borrowing market contract address
2000
+ *
2001
+ * @param {Callback<H160> =} callback
2002
+ **/
2003
+ borrowingContract: GenericStorageQuery<Rv, () => H160>;
2004
+
2005
+ /**
2006
+ * Generic pallet storage query
2007
+ **/
2008
+ [storage: string]: GenericStorageQuery<Rv>;
2009
+ };
2010
+ /**
2011
+ * Pallet `Tokens`'s storage queries
2012
+ **/
2013
+ tokens: {
2014
+ /**
2015
+ * The total issuance of a token type.
2016
+ *
2017
+ * @param {number} arg
2018
+ * @param {Callback<bigint> =} callback
2019
+ **/
2020
+ totalIssuance: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
2021
+
2022
+ /**
2023
+ * Any liquidity locks of a token type under an account.
2024
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
2025
+ *
2026
+ * @param {[AccountId32Like, number]} arg
2027
+ * @param {Callback<Array<OrmlTokensBalanceLock>> =} callback
2028
+ **/
2029
+ locks: GenericStorageQuery<
2030
+ Rv,
2031
+ (arg: [AccountId32Like, number]) => Array<OrmlTokensBalanceLock>,
2032
+ [AccountId32, number]
2033
+ >;
2034
+
2035
+ /**
2036
+ * The balance of a token type under an account.
2037
+ *
2038
+ * NOTE: If the total is ever zero, decrease account ref account.
2039
+ *
2040
+ * NOTE: This is only used in the case that this module is used to store
2041
+ * balances.
2042
+ *
2043
+ * @param {[AccountId32Like, number]} arg
2044
+ * @param {Callback<OrmlTokensAccountData> =} callback
2045
+ **/
2046
+ accounts: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => OrmlTokensAccountData, [AccountId32, number]>;
2047
+
2048
+ /**
2049
+ * Named reserves on some account balances.
2050
+ *
2051
+ * @param {[AccountId32Like, number]} arg
2052
+ * @param {Callback<Array<OrmlTokensReserveData>> =} callback
2053
+ **/
2054
+ reserves: GenericStorageQuery<
2055
+ Rv,
2056
+ (arg: [AccountId32Like, number]) => Array<OrmlTokensReserveData>,
2057
+ [AccountId32, number]
2058
+ >;
2059
+
2060
+ /**
2061
+ * Generic pallet storage query
2062
+ **/
2063
+ [storage: string]: GenericStorageQuery<Rv>;
2064
+ };
2065
+ /**
2066
+ * Pallet `Vesting`'s storage queries
2067
+ **/
2068
+ vesting: {
2069
+ /**
2070
+ * Vesting schedules of an account.
2071
+ *
2072
+ * VestingSchedules: map AccountId => Vec<VestingSchedule>
2073
+ *
2074
+ * @param {AccountId32Like} arg
2075
+ * @param {Callback<Array<OrmlVestingVestingSchedule>> =} callback
2076
+ **/
2077
+ vestingSchedules: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<OrmlVestingVestingSchedule>, AccountId32>;
2078
+
2079
+ /**
2080
+ * Generic pallet storage query
2081
+ **/
2082
+ [storage: string]: GenericStorageQuery<Rv>;
2083
+ };
2084
+ /**
2085
+ * Pallet `EVM`'s storage queries
2086
+ **/
2087
+ evm: {
2088
+ /**
2089
+ *
2090
+ * @param {H160} arg
2091
+ * @param {Callback<Bytes> =} callback
2092
+ **/
2093
+ accountCodes: GenericStorageQuery<Rv, (arg: H160) => Bytes, H160>;
2094
+
2095
+ /**
2096
+ *
2097
+ * @param {H160} arg
2098
+ * @param {Callback<PalletEvmCodeMetadata | undefined> =} callback
2099
+ **/
2100
+ accountCodesMetadata: GenericStorageQuery<Rv, (arg: H160) => PalletEvmCodeMetadata | undefined, H160>;
2101
+
2102
+ /**
2103
+ *
2104
+ * @param {[H160, H256]} arg
2105
+ * @param {Callback<H256> =} callback
2106
+ **/
2107
+ accountStorages: GenericStorageQuery<Rv, (arg: [H160, H256]) => H256, [H160, H256]>;
2108
+
2109
+ /**
2110
+ *
2111
+ * @param {H160} arg
2112
+ * @param {Callback<[] | undefined> =} callback
2113
+ **/
2114
+ suicided: GenericStorageQuery<Rv, (arg: H160) => [] | undefined, H160>;
2115
+
2116
+ /**
2117
+ * Generic pallet storage query
2118
+ **/
2119
+ [storage: string]: GenericStorageQuery<Rv>;
2120
+ };
2121
+ /**
2122
+ * Pallet `EVMChainId`'s storage queries
2123
+ **/
2124
+ evmChainId: {
2125
+ /**
2126
+ * The EVM chain ID.
2127
+ *
2128
+ * @param {Callback<bigint> =} callback
2129
+ **/
2130
+ chainId: GenericStorageQuery<Rv, () => bigint>;
2131
+
2132
+ /**
2133
+ * Generic pallet storage query
2134
+ **/
2135
+ [storage: string]: GenericStorageQuery<Rv>;
2136
+ };
2137
+ /**
2138
+ * Pallet `Ethereum`'s storage queries
2139
+ **/
2140
+ ethereum: {
2141
+ /**
2142
+ * Current building block's transactions and receipts.
2143
+ *
2144
+ * @param {Callback<Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>> =} callback
2145
+ **/
2146
+ pending: GenericStorageQuery<
2147
+ Rv,
2148
+ () => Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>
2149
+ >;
2150
+
2151
+ /**
2152
+ * The current Ethereum block.
2153
+ *
2154
+ * @param {Callback<EthereumBlock | undefined> =} callback
2155
+ **/
2156
+ currentBlock: GenericStorageQuery<Rv, () => EthereumBlock | undefined>;
2157
+
2158
+ /**
2159
+ * The current Ethereum receipts.
2160
+ *
2161
+ * @param {Callback<Array<EthereumReceiptReceiptV3> | undefined> =} callback
2162
+ **/
2163
+ currentReceipts: GenericStorageQuery<Rv, () => Array<EthereumReceiptReceiptV3> | undefined>;
2164
+
2165
+ /**
2166
+ * The current transaction statuses.
2167
+ *
2168
+ * @param {Callback<Array<FpRpcTransactionStatus> | undefined> =} callback
2169
+ **/
2170
+ currentTransactionStatuses: GenericStorageQuery<Rv, () => Array<FpRpcTransactionStatus> | undefined>;
2171
+
2172
+ /**
2173
+ *
2174
+ * @param {U256} arg
2175
+ * @param {Callback<H256> =} callback
2176
+ **/
2177
+ blockHash: GenericStorageQuery<Rv, (arg: U256) => H256, U256>;
2178
+
2179
+ /**
2180
+ * Generic pallet storage query
2181
+ **/
2182
+ [storage: string]: GenericStorageQuery<Rv>;
2183
+ };
2184
+ /**
2185
+ * Pallet `EVMAccounts`'s storage queries
2186
+ **/
2187
+ evmAccounts: {
2188
+ /**
2189
+ * Maps an EVM address to the last 12 bytes of a substrate account.
2190
+ *
2191
+ * @param {H160} arg
2192
+ * @param {Callback<FixedBytes<12> | undefined> =} callback
2193
+ **/
2194
+ accountExtension: GenericStorageQuery<Rv, (arg: H160) => FixedBytes<12> | undefined, H160>;
2195
+
2196
+ /**
2197
+ * Whitelisted addresses that are allowed to deploy smart contracts.
2198
+ *
2199
+ * @param {H160} arg
2200
+ * @param {Callback<[] | undefined> =} callback
2201
+ **/
2202
+ contractDeployer: GenericStorageQuery<Rv, (arg: H160) => [] | undefined, H160>;
2203
+
2204
+ /**
2205
+ * Whitelisted contracts that are allowed to manage balances and tokens.
2206
+ *
2207
+ * @param {H160} arg
2208
+ * @param {Callback<[] | undefined> =} callback
2209
+ **/
2210
+ approvedContract: GenericStorageQuery<Rv, (arg: H160) => [] | undefined, H160>;
2211
+
2212
+ /**
2213
+ * Generic pallet storage query
2214
+ **/
2215
+ [storage: string]: GenericStorageQuery<Rv>;
2216
+ };
2217
+ /**
2218
+ * Pallet `DynamicEvmFee`'s storage queries
2219
+ **/
2220
+ dynamicEvmFee: {
2221
+ /**
2222
+ * Base fee per gas
2223
+ *
2224
+ * @param {Callback<U256> =} callback
2225
+ **/
2226
+ baseFeePerGas: GenericStorageQuery<Rv, () => U256>;
2227
+
2228
+ /**
2229
+ * Generic pallet storage query
2230
+ **/
2231
+ [storage: string]: GenericStorageQuery<Rv>;
2232
+ };
2233
+ /**
2234
+ * Pallet `XYKWarehouseLM`'s storage queries
2235
+ **/
2236
+ xykWarehouseLM: {
2237
+ /**
2238
+ * Id sequencer for `GlobalFarm` and `YieldFarm`.
2239
+ *
2240
+ * @param {Callback<number> =} callback
2241
+ **/
2242
+ farmSequencer: GenericStorageQuery<Rv, () => number>;
2243
+
2244
+ /**
2245
+ *
2246
+ * @param {Callback<bigint> =} callback
2247
+ **/
2248
+ depositSequencer: GenericStorageQuery<Rv, () => bigint>;
2249
+
2250
+ /**
2251
+ *
2252
+ * @param {number} arg
2253
+ * @param {Callback<PalletLiquidityMiningGlobalFarmData | undefined> =} callback
2254
+ **/
2255
+ globalFarm: GenericStorageQuery<Rv, (arg: number) => PalletLiquidityMiningGlobalFarmData | undefined, number>;
2256
+
2257
+ /**
2258
+ * Yield farm details.
2259
+ *
2260
+ * @param {[AccountId32Like, number, number]} arg
2261
+ * @param {Callback<PalletLiquidityMiningYieldFarmData | undefined> =} callback
2262
+ **/
2263
+ yieldFarm: GenericStorageQuery<
2264
+ Rv,
2265
+ (arg: [AccountId32Like, number, number]) => PalletLiquidityMiningYieldFarmData | undefined,
2266
+ [AccountId32, number, number]
2267
+ >;
2268
+
2269
+ /**
2270
+ * Deposit details.
2271
+ *
2272
+ * @param {bigint} arg
2273
+ * @param {Callback<PalletLiquidityMiningDepositData002 | undefined> =} callback
2274
+ **/
2275
+ deposit: GenericStorageQuery<Rv, (arg: bigint) => PalletLiquidityMiningDepositData002 | undefined, bigint>;
2276
+
2277
+ /**
2278
+ * Active(farms able to receive LP shares deposits) yield farms.
2279
+ *
2280
+ * @param {[AccountId32Like, number]} arg
2281
+ * @param {Callback<number | undefined> =} callback
2282
+ **/
2283
+ activeYieldFarm: GenericStorageQuery<
2284
+ Rv,
2285
+ (arg: [AccountId32Like, number]) => number | undefined,
2286
+ [AccountId32, number]
2287
+ >;
2288
+
2289
+ /**
2290
+ * Generic pallet storage query
2291
+ **/
2292
+ [storage: string]: GenericStorageQuery<Rv>;
2293
+ };
2294
+ /**
2295
+ * Pallet `DCA`'s storage queries
2296
+ **/
2297
+ dca: {
2298
+ /**
2299
+ * Id sequencer for schedules
2300
+ *
2301
+ * @param {Callback<number> =} callback
2302
+ **/
2303
+ scheduleIdSequencer: GenericStorageQuery<Rv, () => number>;
2304
+
2305
+ /**
2306
+ * Storing schedule details
2307
+ *
2308
+ * @param {number} arg
2309
+ * @param {Callback<PalletDcaSchedule | undefined> =} callback
2310
+ **/
2311
+ schedules: GenericStorageQuery<Rv, (arg: number) => PalletDcaSchedule | undefined, number>;
2312
+
2313
+ /**
2314
+ * Storing schedule ownership
2315
+ *
2316
+ * @param {[AccountId32Like, number]} arg
2317
+ * @param {Callback<[] | undefined> =} callback
2318
+ **/
2319
+ scheduleOwnership: GenericStorageQuery<
2320
+ Rv,
2321
+ (arg: [AccountId32Like, number]) => [] | undefined,
2322
+ [AccountId32, number]
2323
+ >;
2324
+
2325
+ /**
2326
+ * Keep tracking the remaining amounts to spend for DCA schedules
2327
+ *
2328
+ * @param {number} arg
2329
+ * @param {Callback<bigint | undefined> =} callback
2330
+ **/
2331
+ remainingAmounts: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
2332
+
2333
+ /**
2334
+ * Keep tracking the retry on error flag for DCA schedules
2335
+ *
2336
+ * @param {number} arg
2337
+ * @param {Callback<number> =} callback
2338
+ **/
2339
+ retriesOnError: GenericStorageQuery<Rv, (arg: number) => number, number>;
2340
+
2341
+ /**
2342
+ * Keep tracking the blocknumber when the schedule is planned to be executed
2343
+ *
2344
+ * @param {number} arg
2345
+ * @param {Callback<number | undefined> =} callback
2346
+ **/
2347
+ scheduleExecutionBlock: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
2348
+
2349
+ /**
2350
+ * Keep tracking of the schedule ids to be executed in the block
2351
+ *
2352
+ * @param {number} arg
2353
+ * @param {Callback<Array<number>> =} callback
2354
+ **/
2355
+ scheduleIdsPerBlock: GenericStorageQuery<Rv, (arg: number) => Array<number>, number>;
2356
+
2357
+ /**
2358
+ * Generic pallet storage query
2359
+ **/
2360
+ [storage: string]: GenericStorageQuery<Rv>;
2361
+ };
2362
+ /**
2363
+ * Pallet `Scheduler`'s storage queries
2364
+ **/
2365
+ scheduler: {
2366
+ /**
2367
+ *
2368
+ * @param {Callback<number | undefined> =} callback
2369
+ **/
2370
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
2371
+
2372
+ /**
2373
+ * Items to be executed, indexed by the block number that they should be executed on.
2374
+ *
2375
+ * @param {number} arg
2376
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
2377
+ **/
2378
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
2379
+
2380
+ /**
2381
+ * Retry configurations for items to be executed, indexed by task address.
2382
+ *
2383
+ * @param {[number, number]} arg
2384
+ * @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
2385
+ **/
2386
+ retries: GenericStorageQuery<
2387
+ Rv,
2388
+ (arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
2389
+ [number, number]
2390
+ >;
2391
+
2392
+ /**
2393
+ * Lookup from a name to the block number and index of the task.
2394
+ *
2395
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
2396
+ * identities.
2397
+ *
2398
+ * @param {FixedBytes<32>} arg
2399
+ * @param {Callback<[number, number] | undefined> =} callback
2400
+ **/
2401
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
2402
+
2403
+ /**
2404
+ * Generic pallet storage query
2405
+ **/
2406
+ [storage: string]: GenericStorageQuery<Rv>;
2407
+ };
2408
+ /**
2409
+ * Pallet `ParachainSystem`'s storage queries
2410
+ **/
2411
+ parachainSystem: {
2412
+ /**
2413
+ * Latest included block descendants the runtime accepted. In other words, these are
2414
+ * ancestors of the currently executing block which have not been included in the observed
2415
+ * relay-chain state.
2416
+ *
2417
+ * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
2418
+ * in the pallet.
2419
+ *
2420
+ * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
2421
+ **/
2422
+ unincludedSegment: GenericStorageQuery<Rv, () => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
2423
+
2424
+ /**
2425
+ * Storage field that keeps track of bandwidth used by the unincluded segment along with the
2426
+ * latest HRMP watermark. Used for limiting the acceptance of new blocks with
2427
+ * respect to relay chain constraints.
2428
+ *
2429
+ * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
2430
+ **/
2431
+ aggregatedUnincludedSegment: GenericStorageQuery<
2432
+ Rv,
2433
+ () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
2434
+ >;
2435
+
2436
+ /**
2437
+ * In case of a scheduled upgrade, this storage field contains the validation code to be
2438
+ * applied.
2439
+ *
2440
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
2441
+ * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
2442
+ * with the new validation code. This concludes the upgrade process.
2443
+ *
2444
+ * @param {Callback<Bytes> =} callback
2445
+ **/
2446
+ pendingValidationCode: GenericStorageQuery<Rv, () => Bytes>;
2447
+
2448
+ /**
2449
+ * Validation code that is set by the parachain and is to be communicated to collator and
2450
+ * consequently the relay-chain.
2451
+ *
2452
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
2453
+ * the value.
2454
+ *
2455
+ * @param {Callback<Bytes | undefined> =} callback
2456
+ **/
2457
+ newValidationCode: GenericStorageQuery<Rv, () => Bytes | undefined>;
2458
+
2459
+ /**
2460
+ * The [`PersistedValidationData`] set for this block.
2461
+ * This value is expected to be set only once per block and it's never stored
2462
+ * in the trie.
2463
+ *
2464
+ * @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
2465
+ **/
2466
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8PersistedValidationData | undefined>;
2467
+
2468
+ /**
2469
+ * Were the validation data set to notify the relay chain?
2470
+ *
2471
+ * @param {Callback<boolean> =} callback
2472
+ **/
2473
+ didSetValidationCode: GenericStorageQuery<Rv, () => boolean>;
2474
+
2475
+ /**
2476
+ * The relay chain block number associated with the last parachain block.
2477
+ *
2478
+ * This is updated in `on_finalize`.
2479
+ *
2480
+ * @param {Callback<number> =} callback
2481
+ **/
2482
+ lastRelayChainBlockNumber: GenericStorageQuery<Rv, () => number>;
2483
+
2484
+ /**
2485
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
2486
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
2487
+ * candidate will be invalid.
2488
+ *
2489
+ * This storage item is a mirror of the corresponding value for the current parachain from the
2490
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
2491
+ * set after the inherent.
2492
+ *
2493
+ * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
2494
+ **/
2495
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
2496
+
2497
+ /**
2498
+ * Optional upgrade go-ahead signal from the relay-chain.
2499
+ *
2500
+ * This storage item is a mirror of the corresponding value for the current parachain from the
2501
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
2502
+ * set after the inherent.
2503
+ *
2504
+ * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
2505
+ **/
2506
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
2507
+
2508
+ /**
2509
+ * The state proof for the last relay parent block.
2510
+ *
2511
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
2512
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
2513
+ *
2514
+ * This data is also absent from the genesis.
2515
+ *
2516
+ * @param {Callback<SpTrieStorageProof | undefined> =} callback
2517
+ **/
2518
+ relayStateProof: GenericStorageQuery<Rv, () => SpTrieStorageProof | undefined>;
2519
+
2520
+ /**
2521
+ * The snapshot of some state related to messaging relevant to the current parachain as per
2522
+ * the relay parent.
2523
+ *
2524
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
2525
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
2526
+ *
2527
+ * This data is also absent from the genesis.
2528
+ *
2529
+ * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
2530
+ **/
2531
+ relevantMessagingState: GenericStorageQuery<
2532
+ Rv,
2533
+ () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
2534
+ >;
2535
+
2536
+ /**
2537
+ * The parachain host configuration that was obtained from the relay parent.
2538
+ *
2539
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
2540
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
2541
+ *
2542
+ * This data is also absent from the genesis.
2543
+ *
2544
+ * @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
2545
+ **/
2546
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
2547
+
2548
+ /**
2549
+ * The last downward message queue chain head we have observed.
2550
+ *
2551
+ * This value is loaded before and saved after processing inbound downward messages carried
2552
+ * by the system inherent.
2553
+ *
2554
+ * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
2555
+ **/
2556
+ lastDmqMqcHead: GenericStorageQuery<Rv, () => CumulusPrimitivesParachainInherentMessageQueueChain>;
2557
+
2558
+ /**
2559
+ * The message queue chain heads we have observed per each channel incoming channel.
2560
+ *
2561
+ * This value is loaded before and saved after processing inbound downward messages carried
2562
+ * by the system inherent.
2563
+ *
2564
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
2565
+ **/
2566
+ lastHrmpMqcHeads: GenericStorageQuery<
2567
+ Rv,
2568
+ () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
2569
+ >;
2570
+
2571
+ /**
2572
+ * Number of downward messages processed in a block.
2573
+ *
2574
+ * This will be cleared in `on_initialize` of each new block.
2575
+ *
2576
+ * @param {Callback<number> =} callback
2577
+ **/
2578
+ processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
2579
+
2580
+ /**
2581
+ * HRMP watermark that was set in a block.
2582
+ *
2583
+ * This will be cleared in `on_initialize` of each new block.
2584
+ *
2585
+ * @param {Callback<number> =} callback
2586
+ **/
2587
+ hrmpWatermark: GenericStorageQuery<Rv, () => number>;
2588
+
2589
+ /**
2590
+ * HRMP messages that were sent in a block.
2591
+ *
2592
+ * This will be cleared in `on_initialize` of each new block.
2593
+ *
2594
+ * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
2595
+ **/
2596
+ hrmpOutboundMessages: GenericStorageQuery<Rv, () => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
2597
+
2598
+ /**
2599
+ * Upward messages that were sent in a block.
2600
+ *
2601
+ * This will be cleared in `on_initialize` of each new block.
2602
+ *
2603
+ * @param {Callback<Array<Bytes>> =} callback
2604
+ **/
2605
+ upwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
2606
+
2607
+ /**
2608
+ * Upward messages that are still pending and not yet send to the relay chain.
2609
+ *
2610
+ * @param {Callback<Array<Bytes>> =} callback
2611
+ **/
2612
+ pendingUpwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
2613
+
2614
+ /**
2615
+ * The factor to multiply the base delivery fee by for UMP.
2616
+ *
2617
+ * @param {Callback<FixedU128> =} callback
2618
+ **/
2619
+ upwardDeliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
2620
+
2621
+ /**
2622
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
2623
+ * announcing the weight of `on_initialize` and `on_finalize`.
2624
+ *
2625
+ * @param {Callback<number> =} callback
2626
+ **/
2627
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<Rv, () => number>;
2628
+
2629
+ /**
2630
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
2631
+ * overrides the amount set in the Config trait.
2632
+ *
2633
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
2634
+ **/
2635
+ reservedXcmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
2636
+
2637
+ /**
2638
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
2639
+ * overrides the amount set in the Config trait.
2640
+ *
2641
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
2642
+ **/
2643
+ reservedDmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
2644
+
2645
+ /**
2646
+ * A custom head data that should be returned as result of `validate_block`.
2647
+ *
2648
+ * See `Pallet::set_custom_validation_head_data` for more information.
2649
+ *
2650
+ * @param {Callback<Bytes | undefined> =} callback
2651
+ **/
2652
+ customValidationHeadData: GenericStorageQuery<Rv, () => Bytes | undefined>;
2653
+
2654
+ /**
2655
+ * Generic pallet storage query
2656
+ **/
2657
+ [storage: string]: GenericStorageQuery<Rv>;
2658
+ };
2659
+ /**
2660
+ * Pallet `ParachainInfo`'s storage queries
2661
+ **/
2662
+ parachainInfo: {
2663
+ /**
2664
+ *
2665
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
2666
+ **/
2667
+ parachainId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
2668
+
2669
+ /**
2670
+ * Generic pallet storage query
2671
+ **/
2672
+ [storage: string]: GenericStorageQuery<Rv>;
2673
+ };
2674
+ /**
2675
+ * Pallet `PolkadotXcm`'s storage queries
2676
+ **/
2677
+ polkadotXcm: {
2678
+ /**
2679
+ * The latest available query index.
2680
+ *
2681
+ * @param {Callback<bigint> =} callback
2682
+ **/
2683
+ queryCounter: GenericStorageQuery<Rv, () => bigint>;
2684
+
2685
+ /**
2686
+ * The ongoing queries.
2687
+ *
2688
+ * @param {bigint} arg
2689
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
2690
+ **/
2691
+ queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
2692
+
2693
+ /**
2694
+ * The existing asset traps.
2695
+ *
2696
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
2697
+ * times this pair has been trapped (usually just 1 if it exists at all).
2698
+ *
2699
+ * @param {H256} arg
2700
+ * @param {Callback<number> =} callback
2701
+ **/
2702
+ assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
2703
+
2704
+ /**
2705
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
2706
+ * then the destinations whose XCM version is unknown are considered unreachable.
2707
+ *
2708
+ * @param {Callback<number | undefined> =} callback
2709
+ **/
2710
+ safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
2711
+
2712
+ /**
2713
+ * The Latest versions that we know various locations support.
2714
+ *
2715
+ * @param {[number, XcmVersionedLocation]} arg
2716
+ * @param {Callback<number | undefined> =} callback
2717
+ **/
2718
+ supportedVersion: GenericStorageQuery<
2719
+ Rv,
2720
+ (arg: [number, XcmVersionedLocation]) => number | undefined,
2721
+ [number, XcmVersionedLocation]
2722
+ >;
2723
+
2724
+ /**
2725
+ * All locations that we have requested version notifications from.
2726
+ *
2727
+ * @param {[number, XcmVersionedLocation]} arg
2728
+ * @param {Callback<bigint | undefined> =} callback
2729
+ **/
2730
+ versionNotifiers: GenericStorageQuery<
2731
+ Rv,
2732
+ (arg: [number, XcmVersionedLocation]) => bigint | undefined,
2733
+ [number, XcmVersionedLocation]
2734
+ >;
2735
+
2736
+ /**
2737
+ * The target locations that are subscribed to our version changes, as well as the most recent
2738
+ * of our versions we informed them of.
2739
+ *
2740
+ * @param {[number, XcmVersionedLocation]} arg
2741
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
2742
+ **/
2743
+ versionNotifyTargets: GenericStorageQuery<
2744
+ Rv,
2745
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
2746
+ [number, XcmVersionedLocation]
2747
+ >;
2748
+
2749
+ /**
2750
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
2751
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
2752
+ * which is used as a prioritization.
2753
+ *
2754
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
2755
+ **/
2756
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
2757
+
2758
+ /**
2759
+ * The current migration's stage, if any.
2760
+ *
2761
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
2762
+ **/
2763
+ currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
2764
+
2765
+ /**
2766
+ * Fungible assets which we know are locked on a remote chain.
2767
+ *
2768
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
2769
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
2770
+ **/
2771
+ remoteLockedFungibles: GenericStorageQuery<
2772
+ Rv,
2773
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
2774
+ [number, AccountId32, XcmVersionedAssetId]
2775
+ >;
2776
+
2777
+ /**
2778
+ * Fungible assets which we know are locked on this chain.
2779
+ *
2780
+ * @param {AccountId32Like} arg
2781
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
2782
+ **/
2783
+ lockedFungibles: GenericStorageQuery<
2784
+ Rv,
2785
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
2786
+ AccountId32
2787
+ >;
2788
+
2789
+ /**
2790
+ * Global suspension state of the XCM executor.
2791
+ *
2792
+ * @param {Callback<boolean> =} callback
2793
+ **/
2794
+ xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
2795
+
2796
+ /**
2797
+ * Whether or not incoming XCMs (both executed locally and received) should be recorded.
2798
+ * Only one XCM program will be recorded at a time.
2799
+ * This is meant to be used in runtime APIs, and it's advised it stays false
2800
+ * for all other use cases, so as to not degrade regular performance.
2801
+ *
2802
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
2803
+ * implementation in the XCM executor configuration.
2804
+ *
2805
+ * @param {Callback<boolean> =} callback
2806
+ **/
2807
+ shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
2808
+
2809
+ /**
2810
+ * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
2811
+ * will be stored here.
2812
+ * Runtime APIs can fetch the XCM that was executed by accessing this value.
2813
+ *
2814
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
2815
+ * implementation in the XCM executor configuration.
2816
+ *
2817
+ * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
2818
+ **/
2819
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
2820
+
2821
+ /**
2822
+ * Generic pallet storage query
2823
+ **/
2824
+ [storage: string]: GenericStorageQuery<Rv>;
2825
+ };
2826
+ /**
2827
+ * Pallet `XcmpQueue`'s storage queries
2828
+ **/
2829
+ xcmpQueue: {
2830
+ /**
2831
+ * The suspended inbound XCMP channels. All others are not suspended.
2832
+ *
2833
+ * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
2834
+ * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
2835
+ * within the block and therefore only included once in the proof size.
2836
+ *
2837
+ * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
2838
+ * will be smaller.
2839
+ *
2840
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2841
+ **/
2842
+ inboundXcmpSuspended: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
2843
+
2844
+ /**
2845
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
2846
+ * and last outbound message. If the two indices are equal, then it indicates an empty
2847
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
2848
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
2849
+ * case of the need to send a high-priority signal message this block.
2850
+ * The bool is true if there is a signal message waiting to be sent.
2851
+ *
2852
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
2853
+ **/
2854
+ outboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
2855
+
2856
+ /**
2857
+ * The messages outbound in a given XCMP channel.
2858
+ *
2859
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
2860
+ * @param {Callback<Bytes> =} callback
2861
+ **/
2862
+ outboundXcmpMessages: GenericStorageQuery<
2863
+ Rv,
2864
+ (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
2865
+ [PolkadotParachainPrimitivesPrimitivesId, number]
2866
+ >;
2867
+
2868
+ /**
2869
+ * Any signal messages waiting to be sent.
2870
+ *
2871
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2872
+ * @param {Callback<Bytes> =} callback
2873
+ **/
2874
+ signalMessages: GenericStorageQuery<
2875
+ Rv,
2876
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes,
2877
+ PolkadotParachainPrimitivesPrimitivesId
2878
+ >;
2879
+
2880
+ /**
2881
+ * The configuration which controls the dynamics of the outbound queue.
2882
+ *
2883
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
2884
+ **/
2885
+ queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
2886
+
2887
+ /**
2888
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
2889
+ *
2890
+ * @param {Callback<boolean> =} callback
2891
+ **/
2892
+ queueSuspended: GenericStorageQuery<Rv, () => boolean>;
2893
+
2894
+ /**
2895
+ * The factor to multiply the base delivery fee by.
2896
+ *
2897
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2898
+ * @param {Callback<FixedU128> =} callback
2899
+ **/
2900
+ deliveryFeeFactor: GenericStorageQuery<
2901
+ Rv,
2902
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
2903
+ PolkadotParachainPrimitivesPrimitivesId
2904
+ >;
2905
+
2906
+ /**
2907
+ * Generic pallet storage query
2908
+ **/
2909
+ [storage: string]: GenericStorageQuery<Rv>;
2910
+ };
2911
+ /**
2912
+ * Pallet `MessageQueue`'s storage queries
2913
+ **/
2914
+ messageQueue: {
2915
+ /**
2916
+ * The index of the first and last (non-empty) pages.
2917
+ *
2918
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg
2919
+ * @param {Callback<PalletMessageQueueBookState> =} callback
2920
+ **/
2921
+ bookStateFor: GenericStorageQuery<
2922
+ Rv,
2923
+ (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState,
2924
+ CumulusPrimitivesCoreAggregateMessageOrigin
2925
+ >;
2926
+
2927
+ /**
2928
+ * The origin at which we should begin servicing.
2929
+ *
2930
+ * @param {Callback<CumulusPrimitivesCoreAggregateMessageOrigin | undefined> =} callback
2931
+ **/
2932
+ serviceHead: GenericStorageQuery<Rv, () => CumulusPrimitivesCoreAggregateMessageOrigin | undefined>;
2933
+
2934
+ /**
2935
+ * The map of page indices to pages.
2936
+ *
2937
+ * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg
2938
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
2939
+ **/
2940
+ pages: GenericStorageQuery<
2941
+ Rv,
2942
+ (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
2943
+ [CumulusPrimitivesCoreAggregateMessageOrigin, number]
2944
+ >;
2945
+
2946
+ /**
2947
+ * Generic pallet storage query
2948
+ **/
2949
+ [storage: string]: GenericStorageQuery<Rv>;
2950
+ };
2951
+ /**
2952
+ * Pallet `UnknownTokens`'s storage queries
2953
+ **/
2954
+ unknownTokens: {
2955
+ /**
2956
+ * Concrete fungible balances under a given location and a concrete
2957
+ * fungible id.
2958
+ *
2959
+ * double_map: who, asset_id => u128
2960
+ *
2961
+ * @param {[StagingXcmV4Location, StagingXcmV4Location]} arg
2962
+ * @param {Callback<bigint> =} callback
2963
+ **/
2964
+ concreteFungibleBalances: GenericStorageQuery<
2965
+ Rv,
2966
+ (arg: [StagingXcmV4Location, StagingXcmV4Location]) => bigint,
2967
+ [StagingXcmV4Location, StagingXcmV4Location]
2968
+ >;
2969
+
2970
+ /**
2971
+ * Abstract fungible balances under a given location and a abstract
2972
+ * fungible id.
2973
+ *
2974
+ * double_map: who, asset_id => u128
2975
+ *
2976
+ * @param {[StagingXcmV4Location, BytesLike]} arg
2977
+ * @param {Callback<bigint> =} callback
2978
+ **/
2979
+ abstractFungibleBalances: GenericStorageQuery<
2980
+ Rv,
2981
+ (arg: [StagingXcmV4Location, BytesLike]) => bigint,
2982
+ [StagingXcmV4Location, Bytes]
2983
+ >;
2984
+
2985
+ /**
2986
+ * Generic pallet storage query
2987
+ **/
2988
+ [storage: string]: GenericStorageQuery<Rv>;
2989
+ };
2990
+ /**
2991
+ * Pallet `Authorship`'s storage queries
2992
+ **/
2993
+ authorship: {
2994
+ /**
2995
+ * Author of current block.
2996
+ *
2997
+ * @param {Callback<AccountId32 | undefined> =} callback
2998
+ **/
2999
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
3000
+
3001
+ /**
3002
+ * Generic pallet storage query
3003
+ **/
3004
+ [storage: string]: GenericStorageQuery<Rv>;
3005
+ };
3006
+ /**
3007
+ * Pallet `CollatorSelection`'s storage queries
3008
+ **/
3009
+ collatorSelection: {
3010
+ /**
3011
+ * The invulnerable, permissioned collators. This list must be sorted.
3012
+ *
3013
+ * @param {Callback<Array<AccountId32>> =} callback
3014
+ **/
3015
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
3016
+
3017
+ /**
3018
+ * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
3019
+ * mutually exclusive.
3020
+ *
3021
+ * This list is sorted in ascending order by deposit and when the deposits are equal, the least
3022
+ * recently updated is considered greater.
3023
+ *
3024
+ * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
3025
+ **/
3026
+ candidateList: GenericStorageQuery<Rv, () => Array<PalletCollatorSelectionCandidateInfo>>;
3027
+
3028
+ /**
3029
+ * Last block authored by collator.
3030
+ *
3031
+ * @param {AccountId32Like} arg
3032
+ * @param {Callback<number> =} callback
3033
+ **/
3034
+ lastAuthoredBlock: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
3035
+
3036
+ /**
3037
+ * Desired number of candidates.
3038
+ *
3039
+ * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
3040
+ *
3041
+ * @param {Callback<number> =} callback
3042
+ **/
3043
+ desiredCandidates: GenericStorageQuery<Rv, () => number>;
3044
+
3045
+ /**
3046
+ * Fixed amount to deposit to become a collator.
3047
+ *
3048
+ * When a collator calls `leave_intent` they immediately receive the deposit back.
3049
+ *
3050
+ * @param {Callback<bigint> =} callback
3051
+ **/
3052
+ candidacyBond: GenericStorageQuery<Rv, () => bigint>;
3053
+
3054
+ /**
3055
+ * Generic pallet storage query
3056
+ **/
3057
+ [storage: string]: GenericStorageQuery<Rv>;
3058
+ };
3059
+ /**
3060
+ * Pallet `Session`'s storage queries
3061
+ **/
3062
+ session: {
3063
+ /**
3064
+ * The current set of validators.
3065
+ *
3066
+ * @param {Callback<Array<AccountId32>> =} callback
3067
+ **/
3068
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
3069
+
3070
+ /**
3071
+ * Current index of the session.
3072
+ *
3073
+ * @param {Callback<number> =} callback
3074
+ **/
3075
+ currentIndex: GenericStorageQuery<Rv, () => number>;
3076
+
3077
+ /**
3078
+ * True if the underlying economic identities or weighting behind the validators
3079
+ * has changed in the queued validator set.
3080
+ *
3081
+ * @param {Callback<boolean> =} callback
3082
+ **/
3083
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
3084
+
3085
+ /**
3086
+ * The queued keys for the next session. When the next session begins, these keys
3087
+ * will be used to determine the validator's session keys.
3088
+ *
3089
+ * @param {Callback<Array<[AccountId32, HydradxRuntimeOpaqueSessionKeys]>> =} callback
3090
+ **/
3091
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, HydradxRuntimeOpaqueSessionKeys]>>;
3092
+
3093
+ /**
3094
+ * Indices of disabled validators.
3095
+ *
3096
+ * The vec is always kept sorted so that we can find whether a given validator is
3097
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
3098
+ * a new set of identities.
3099
+ *
3100
+ * @param {Callback<Array<number>> =} callback
3101
+ **/
3102
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
3103
+
3104
+ /**
3105
+ * The next session keys for a validator.
3106
+ *
3107
+ * @param {AccountId32Like} arg
3108
+ * @param {Callback<HydradxRuntimeOpaqueSessionKeys | undefined> =} callback
3109
+ **/
3110
+ nextKeys: GenericStorageQuery<
3111
+ Rv,
3112
+ (arg: AccountId32Like) => HydradxRuntimeOpaqueSessionKeys | undefined,
3113
+ AccountId32
3114
+ >;
3115
+
3116
+ /**
3117
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
3118
+ *
3119
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
3120
+ * @param {Callback<AccountId32 | undefined> =} callback
3121
+ **/
3122
+ keyOwner: GenericStorageQuery<
3123
+ Rv,
3124
+ (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
3125
+ [SpCoreCryptoKeyTypeId, Bytes]
3126
+ >;
3127
+
3128
+ /**
3129
+ * Generic pallet storage query
3130
+ **/
3131
+ [storage: string]: GenericStorageQuery<Rv>;
3132
+ };
3133
+ /**
3134
+ * Pallet `Aura`'s storage queries
3135
+ **/
3136
+ aura: {
3137
+ /**
3138
+ * The current authority set.
3139
+ *
3140
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
3141
+ **/
3142
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
3143
+
3144
+ /**
3145
+ * The current slot of this block.
3146
+ *
3147
+ * This will be set in `on_initialize`.
3148
+ *
3149
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
3150
+ **/
3151
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
3152
+
3153
+ /**
3154
+ * Generic pallet storage query
3155
+ **/
3156
+ [storage: string]: GenericStorageQuery<Rv>;
3157
+ };
3158
+ /**
3159
+ * Pallet `AuraExt`'s storage queries
3160
+ **/
3161
+ auraExt: {
3162
+ /**
3163
+ * Serves as cache for the authorities.
3164
+ *
3165
+ * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
3166
+ * but we require the old authorities to verify the seal when validating a PoV. This will
3167
+ * always be updated to the latest AuRa authorities in `on_finalize`.
3168
+ *
3169
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
3170
+ **/
3171
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
3172
+
3173
+ /**
3174
+ * Current slot paired with a number of authored blocks.
3175
+ *
3176
+ * Updated on each block initialization.
3177
+ *
3178
+ * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
3179
+ **/
3180
+ slotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
3181
+
3182
+ /**
3183
+ * Generic pallet storage query
3184
+ **/
3185
+ [storage: string]: GenericStorageQuery<Rv>;
3186
+ };
3187
+ /**
3188
+ * Pallet `EmaOracle`'s storage queries
3189
+ **/
3190
+ emaOracle: {
3191
+ /**
3192
+ * Accumulator for oracle data in current block that will be recorded at the end of the block.
3193
+ *
3194
+ * @param {Callback<Array<[[FixedBytes<8>, [number, number]], PalletEmaOracleOracleEntry]>> =} callback
3195
+ **/
3196
+ accumulator: GenericStorageQuery<Rv, () => Array<[[FixedBytes<8>, [number, number]], PalletEmaOracleOracleEntry]>>;
3197
+
3198
+ /**
3199
+ * Oracle storage keyed by data source, involved asset ids and the period length of the oracle.
3200
+ *
3201
+ * Stores the data entry as well as the block number when the oracle was first initialized.
3202
+ *
3203
+ * @param {[FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod]} arg
3204
+ * @param {Callback<[PalletEmaOracleOracleEntry, number] | undefined> =} callback
3205
+ **/
3206
+ oracles: GenericStorageQuery<
3207
+ Rv,
3208
+ (
3209
+ arg: [FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod],
3210
+ ) => [PalletEmaOracleOracleEntry, number] | undefined,
3211
+ [FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod]
3212
+ >;
3213
+
3214
+ /**
3215
+ * Assets that are whitelisted and tracked by the pallet.
3216
+ *
3217
+ * @param {Callback<Array<[FixedBytes<8>, [number, number]]>> =} callback
3218
+ **/
3219
+ whitelistedAssets: GenericStorageQuery<Rv, () => Array<[FixedBytes<8>, [number, number]]>>;
3220
+
3221
+ /**
3222
+ * Generic pallet storage query
3223
+ **/
3224
+ [storage: string]: GenericStorageQuery<Rv>;
3225
+ };
3226
+ /**
3227
+ * Pallet `Broadcast`'s storage queries
3228
+ **/
3229
+ broadcast: {
3230
+ /**
3231
+ * Next available incremental ID
3232
+ *
3233
+ * @param {Callback<number> =} callback
3234
+ **/
3235
+ incrementalId: GenericStorageQuery<Rv, () => number>;
3236
+
3237
+ /**
3238
+ * Execution context to figure out where the trade is originated from
3239
+ *
3240
+ * @param {Callback<Array<PalletBroadcastExecutionType>> =} callback
3241
+ **/
3242
+ executionContext: GenericStorageQuery<Rv, () => Array<PalletBroadcastExecutionType>>;
3243
+
3244
+ /**
3245
+ * If filled, we overwrite the original swapper. Mainly used in router to not to use temporary trade account
3246
+ *
3247
+ * @param {Callback<AccountId32 | undefined> =} callback
3248
+ **/
3249
+ swapper: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
3250
+
3251
+ /**
3252
+ * Generic pallet storage query
3253
+ **/
3254
+ [storage: string]: GenericStorageQuery<Rv>;
3255
+ };
3256
+ }