@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,3243 @@
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
+ * Generic pallet storage query
1272
+ **/
1273
+ [storage: string]: GenericStorageQuery<Rv>;
1274
+ };
1275
+ /**
1276
+ * Pallet `AssetRegistry`'s storage queries
1277
+ **/
1278
+ assetRegistry: {
1279
+ /**
1280
+ * Details of an asset.
1281
+ *
1282
+ * @param {number} arg
1283
+ * @param {Callback<PalletAssetRegistryAssetDetails | undefined> =} callback
1284
+ **/
1285
+ assets: GenericStorageQuery<Rv, (arg: number) => PalletAssetRegistryAssetDetails | undefined, number>;
1286
+
1287
+ /**
1288
+ * Next available asset id. This is sequential id assigned for each new registered asset.
1289
+ *
1290
+ * @param {Callback<number> =} callback
1291
+ **/
1292
+ nextAssetId: GenericStorageQuery<Rv, () => number>;
1293
+
1294
+ /**
1295
+ * Mapping between asset name and asset id.
1296
+ *
1297
+ * @param {BytesLike} arg
1298
+ * @param {Callback<number | undefined> =} callback
1299
+ **/
1300
+ assetIds: GenericStorageQuery<Rv, (arg: BytesLike) => number | undefined, Bytes>;
1301
+
1302
+ /**
1303
+ * Native location of an asset.
1304
+ *
1305
+ * @param {number} arg
1306
+ * @param {Callback<HydradxRuntimeXcmAssetLocation | undefined> =} callback
1307
+ **/
1308
+ assetLocations: GenericStorageQuery<Rv, (arg: number) => HydradxRuntimeXcmAssetLocation | undefined, number>;
1309
+
1310
+ /**
1311
+ * Non-native assets which transfer is banned.
1312
+ *
1313
+ * @param {number} arg
1314
+ * @param {Callback<[] | undefined> =} callback
1315
+ **/
1316
+ bannedAssets: GenericStorageQuery<Rv, (arg: number) => [] | undefined, number>;
1317
+
1318
+ /**
1319
+ * Local asset for native location.
1320
+ *
1321
+ * @param {HydradxRuntimeXcmAssetLocation} arg
1322
+ * @param {Callback<number | undefined> =} callback
1323
+ **/
1324
+ locationAssets: GenericStorageQuery<
1325
+ Rv,
1326
+ (arg: HydradxRuntimeXcmAssetLocation) => number | undefined,
1327
+ HydradxRuntimeXcmAssetLocation
1328
+ >;
1329
+
1330
+ /**
1331
+ * Number of accounts that paid existential deposits for insufficient assets.
1332
+ * This storage is used by `SufficiencyCheck`.
1333
+ *
1334
+ * @param {Callback<bigint> =} callback
1335
+ **/
1336
+ existentialDepositCounter: GenericStorageQuery<Rv, () => bigint>;
1337
+
1338
+ /**
1339
+ * Generic pallet storage query
1340
+ **/
1341
+ [storage: string]: GenericStorageQuery<Rv>;
1342
+ };
1343
+ /**
1344
+ * Pallet `Claims`'s storage queries
1345
+ **/
1346
+ claims: {
1347
+ /**
1348
+ * Asset id storage for each shared token
1349
+ *
1350
+ * @param {PalletClaimsEthereumAddress} arg
1351
+ * @param {Callback<bigint> =} callback
1352
+ **/
1353
+ claims: GenericStorageQuery<Rv, (arg: PalletClaimsEthereumAddress) => bigint, PalletClaimsEthereumAddress>;
1354
+
1355
+ /**
1356
+ * Generic pallet storage query
1357
+ **/
1358
+ [storage: string]: GenericStorageQuery<Rv>;
1359
+ };
1360
+ /**
1361
+ * Pallet `GenesisHistory`'s storage queries
1362
+ **/
1363
+ genesisHistory: {
1364
+ /**
1365
+ *
1366
+ * @param {Callback<PalletGenesisHistoryChain> =} callback
1367
+ **/
1368
+ previousChain: GenericStorageQuery<Rv, () => PalletGenesisHistoryChain>;
1369
+
1370
+ /**
1371
+ * Generic pallet storage query
1372
+ **/
1373
+ [storage: string]: GenericStorageQuery<Rv>;
1374
+ };
1375
+ /**
1376
+ * Pallet `CollatorRewards`'s storage queries
1377
+ **/
1378
+ collatorRewards: {
1379
+ /**
1380
+ * Stores the collators per session (index).
1381
+ *
1382
+ * @param {number} arg
1383
+ * @param {Callback<Array<AccountId32>> =} callback
1384
+ **/
1385
+ collators: GenericStorageQuery<Rv, (arg: number) => Array<AccountId32>, number>;
1386
+
1387
+ /**
1388
+ * Generic pallet storage query
1389
+ **/
1390
+ [storage: string]: GenericStorageQuery<Rv>;
1391
+ };
1392
+ /**
1393
+ * Pallet `Omnipool`'s storage queries
1394
+ **/
1395
+ omnipool: {
1396
+ /**
1397
+ * State of an asset in the omnipool
1398
+ *
1399
+ * @param {number} arg
1400
+ * @param {Callback<PalletOmnipoolAssetState | undefined> =} callback
1401
+ **/
1402
+ assets: GenericStorageQuery<Rv, (arg: number) => PalletOmnipoolAssetState | undefined, number>;
1403
+
1404
+ /**
1405
+ * Tradable state of hub asset.
1406
+ *
1407
+ * @param {Callback<PalletOmnipoolTradability> =} callback
1408
+ **/
1409
+ hubAssetTradability: GenericStorageQuery<Rv, () => PalletOmnipoolTradability>;
1410
+
1411
+ /**
1412
+ * LP positions. Maps NFT instance id to corresponding position
1413
+ *
1414
+ * @param {bigint} arg
1415
+ * @param {Callback<PalletOmnipoolPosition | undefined> =} callback
1416
+ **/
1417
+ positions: GenericStorageQuery<Rv, (arg: bigint) => PalletOmnipoolPosition | undefined, bigint>;
1418
+
1419
+ /**
1420
+ * Position ids sequencer
1421
+ *
1422
+ * @param {Callback<bigint> =} callback
1423
+ **/
1424
+ nextPositionId: GenericStorageQuery<Rv, () => bigint>;
1425
+
1426
+ /**
1427
+ * Generic pallet storage query
1428
+ **/
1429
+ [storage: string]: GenericStorageQuery<Rv>;
1430
+ };
1431
+ /**
1432
+ * Pallet `TransactionPause`'s storage queries
1433
+ **/
1434
+ transactionPause: {
1435
+ /**
1436
+ * The paused transaction map
1437
+ *
1438
+ * map (PalletNameBytes, FunctionNameBytes) => Option<()>
1439
+ *
1440
+ * @param {[BytesLike, BytesLike]} arg
1441
+ * @param {Callback<[] | undefined> =} callback
1442
+ **/
1443
+ pausedTransactions: GenericStorageQuery<Rv, (arg: [BytesLike, BytesLike]) => [] | undefined, [Bytes, Bytes]>;
1444
+
1445
+ /**
1446
+ * Generic pallet storage query
1447
+ **/
1448
+ [storage: string]: GenericStorageQuery<Rv>;
1449
+ };
1450
+ /**
1451
+ * Pallet `Duster`'s storage queries
1452
+ **/
1453
+ duster: {
1454
+ /**
1455
+ * Accounts excluded from dusting.
1456
+ *
1457
+ * @param {AccountId32Like} arg
1458
+ * @param {Callback<[] | undefined> =} callback
1459
+ **/
1460
+ accountBlacklist: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
1461
+
1462
+ /**
1463
+ * Account to take reward from.
1464
+ *
1465
+ * @param {Callback<AccountId32 | undefined> =} callback
1466
+ **/
1467
+ rewardAccount: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1468
+
1469
+ /**
1470
+ * Account to send dust to.
1471
+ *
1472
+ * @param {Callback<AccountId32 | undefined> =} callback
1473
+ **/
1474
+ dustAccount: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1475
+
1476
+ /**
1477
+ * Generic pallet storage query
1478
+ **/
1479
+ [storage: string]: GenericStorageQuery<Rv>;
1480
+ };
1481
+ /**
1482
+ * Pallet `OmnipoolWarehouseLM`'s storage queries
1483
+ **/
1484
+ omnipoolWarehouseLM: {
1485
+ /**
1486
+ * Id sequencer for `GlobalFarm` and `YieldFarm`.
1487
+ *
1488
+ * @param {Callback<number> =} callback
1489
+ **/
1490
+ farmSequencer: GenericStorageQuery<Rv, () => number>;
1491
+
1492
+ /**
1493
+ *
1494
+ * @param {Callback<bigint> =} callback
1495
+ **/
1496
+ depositSequencer: GenericStorageQuery<Rv, () => bigint>;
1497
+
1498
+ /**
1499
+ *
1500
+ * @param {number} arg
1501
+ * @param {Callback<PalletLiquidityMiningGlobalFarmData | undefined> =} callback
1502
+ **/
1503
+ globalFarm: GenericStorageQuery<Rv, (arg: number) => PalletLiquidityMiningGlobalFarmData | undefined, number>;
1504
+
1505
+ /**
1506
+ * Yield farm details.
1507
+ *
1508
+ * @param {[number, number, number]} arg
1509
+ * @param {Callback<PalletLiquidityMiningYieldFarmData | undefined> =} callback
1510
+ **/
1511
+ yieldFarm: GenericStorageQuery<
1512
+ Rv,
1513
+ (arg: [number, number, number]) => PalletLiquidityMiningYieldFarmData | undefined,
1514
+ [number, number, number]
1515
+ >;
1516
+
1517
+ /**
1518
+ * Deposit details.
1519
+ *
1520
+ * @param {bigint} arg
1521
+ * @param {Callback<PalletLiquidityMiningDepositData | undefined> =} callback
1522
+ **/
1523
+ deposit: GenericStorageQuery<Rv, (arg: bigint) => PalletLiquidityMiningDepositData | undefined, bigint>;
1524
+
1525
+ /**
1526
+ * Active(farms able to receive LP shares deposits) yield farms.
1527
+ *
1528
+ * @param {[number, number]} arg
1529
+ * @param {Callback<number | undefined> =} callback
1530
+ **/
1531
+ activeYieldFarm: GenericStorageQuery<Rv, (arg: [number, number]) => number | undefined, [number, number]>;
1532
+
1533
+ /**
1534
+ * Generic pallet storage query
1535
+ **/
1536
+ [storage: string]: GenericStorageQuery<Rv>;
1537
+ };
1538
+ /**
1539
+ * Pallet `OmnipoolLiquidityMining`'s storage queries
1540
+ **/
1541
+ omnipoolLiquidityMining: {
1542
+ /**
1543
+ * Map of omnipool position's ids to LM's deposit ids.
1544
+ *
1545
+ * @param {bigint} arg
1546
+ * @param {Callback<bigint | undefined> =} callback
1547
+ **/
1548
+ omniPositionId: GenericStorageQuery<Rv, (arg: bigint) => bigint | undefined, bigint>;
1549
+
1550
+ /**
1551
+ * Generic pallet storage query
1552
+ **/
1553
+ [storage: string]: GenericStorageQuery<Rv>;
1554
+ };
1555
+ /**
1556
+ * Pallet `OTC`'s storage queries
1557
+ **/
1558
+ otc: {
1559
+ /**
1560
+ * ID sequencer for Orders
1561
+ *
1562
+ * @param {Callback<number> =} callback
1563
+ **/
1564
+ nextOrderId: GenericStorageQuery<Rv, () => number>;
1565
+
1566
+ /**
1567
+ *
1568
+ * @param {number} arg
1569
+ * @param {Callback<PalletOtcOrder | undefined> =} callback
1570
+ **/
1571
+ orders: GenericStorageQuery<Rv, (arg: number) => PalletOtcOrder | undefined, number>;
1572
+
1573
+ /**
1574
+ * Generic pallet storage query
1575
+ **/
1576
+ [storage: string]: GenericStorageQuery<Rv>;
1577
+ };
1578
+ /**
1579
+ * Pallet `CircuitBreaker`'s storage queries
1580
+ **/
1581
+ circuitBreaker: {
1582
+ /**
1583
+ * Trade volume limits of assets set by set_trade_volume_limit.
1584
+ * If not set, returns the default limit.
1585
+ *
1586
+ * @param {number} arg
1587
+ * @param {Callback<[number, number]> =} callback
1588
+ **/
1589
+ tradeVolumeLimitPerAsset: GenericStorageQuery<Rv, (arg: number) => [number, number], number>;
1590
+
1591
+ /**
1592
+ * Trade volumes per asset
1593
+ *
1594
+ * @param {number} arg
1595
+ * @param {Callback<PalletCircuitBreakerTradeVolumeLimit | undefined> =} callback
1596
+ **/
1597
+ allowedTradeVolumeLimitPerAsset: GenericStorageQuery<
1598
+ Rv,
1599
+ (arg: number) => PalletCircuitBreakerTradeVolumeLimit | undefined,
1600
+ number
1601
+ >;
1602
+
1603
+ /**
1604
+ * Liquidity limits of assets for adding liquidity.
1605
+ * If not set, returns the default limit.
1606
+ *
1607
+ * @param {number} arg
1608
+ * @param {Callback<[number, number] | undefined> =} callback
1609
+ **/
1610
+ liquidityAddLimitPerAsset: GenericStorageQuery<Rv, (arg: number) => [number, number] | undefined, number>;
1611
+
1612
+ /**
1613
+ * Add liquidity volumes per asset
1614
+ *
1615
+ * @param {number} arg
1616
+ * @param {Callback<PalletCircuitBreakerLiquidityLimit | undefined> =} callback
1617
+ **/
1618
+ allowedAddLiquidityAmountPerAsset: GenericStorageQuery<
1619
+ Rv,
1620
+ (arg: number) => PalletCircuitBreakerLiquidityLimit | undefined,
1621
+ number
1622
+ >;
1623
+
1624
+ /**
1625
+ * Liquidity limits of assets for removing liquidity.
1626
+ * If not set, returns the default limit.
1627
+ *
1628
+ * @param {number} arg
1629
+ * @param {Callback<[number, number] | undefined> =} callback
1630
+ **/
1631
+ liquidityRemoveLimitPerAsset: GenericStorageQuery<Rv, (arg: number) => [number, number] | undefined, number>;
1632
+
1633
+ /**
1634
+ * Remove liquidity volumes per asset
1635
+ *
1636
+ * @param {number} arg
1637
+ * @param {Callback<PalletCircuitBreakerLiquidityLimit | undefined> =} callback
1638
+ **/
1639
+ allowedRemoveLiquidityAmountPerAsset: GenericStorageQuery<
1640
+ Rv,
1641
+ (arg: number) => PalletCircuitBreakerLiquidityLimit | undefined,
1642
+ number
1643
+ >;
1644
+
1645
+ /**
1646
+ * Generic pallet storage query
1647
+ **/
1648
+ [storage: string]: GenericStorageQuery<Rv>;
1649
+ };
1650
+ /**
1651
+ * Pallet `Router`'s storage queries
1652
+ **/
1653
+ router: {
1654
+ /**
1655
+ * Storing routes for asset pairs
1656
+ *
1657
+ * @param {HydradxTraitsRouterAssetPair} arg
1658
+ * @param {Callback<Array<HydradxTraitsRouterTrade> | undefined> =} callback
1659
+ **/
1660
+ routes: GenericStorageQuery<
1661
+ Rv,
1662
+ (arg: HydradxTraitsRouterAssetPair) => Array<HydradxTraitsRouterTrade> | undefined,
1663
+ HydradxTraitsRouterAssetPair
1664
+ >;
1665
+
1666
+ /**
1667
+ * Generic pallet storage query
1668
+ **/
1669
+ [storage: string]: GenericStorageQuery<Rv>;
1670
+ };
1671
+ /**
1672
+ * Pallet `DynamicFees`'s storage queries
1673
+ **/
1674
+ dynamicFees: {
1675
+ /**
1676
+ * Stores last calculated fee of an asset and block number in which it was changed..
1677
+ * Stored as (Asset fee, Protocol fee, Block number)
1678
+ *
1679
+ * @param {number} arg
1680
+ * @param {Callback<PalletDynamicFeesFeeEntry | undefined> =} callback
1681
+ **/
1682
+ assetFee: GenericStorageQuery<Rv, (arg: number) => PalletDynamicFeesFeeEntry | undefined, number>;
1683
+
1684
+ /**
1685
+ * Generic pallet storage query
1686
+ **/
1687
+ [storage: string]: GenericStorageQuery<Rv>;
1688
+ };
1689
+ /**
1690
+ * Pallet `Staking`'s storage queries
1691
+ **/
1692
+ staking: {
1693
+ /**
1694
+ * Global staking state.
1695
+ *
1696
+ * @param {Callback<PalletStakingStakingData> =} callback
1697
+ **/
1698
+ staking: GenericStorageQuery<Rv, () => PalletStakingStakingData>;
1699
+
1700
+ /**
1701
+ * User's position state.
1702
+ *
1703
+ * @param {bigint} arg
1704
+ * @param {Callback<PalletStakingPosition | undefined> =} callback
1705
+ **/
1706
+ positions: GenericStorageQuery<Rv, (arg: bigint) => PalletStakingPosition | undefined, bigint>;
1707
+
1708
+ /**
1709
+ * Position ids sequencer.
1710
+ *
1711
+ * @param {Callback<bigint> =} callback
1712
+ **/
1713
+ nextPositionId: GenericStorageQuery<Rv, () => bigint>;
1714
+
1715
+ /**
1716
+ * List of position votes.
1717
+ *
1718
+ * @param {bigint} arg
1719
+ * @param {Callback<PalletStakingVoting> =} callback
1720
+ **/
1721
+ votes: GenericStorageQuery<Rv, (arg: bigint) => PalletStakingVoting, bigint>;
1722
+
1723
+ /**
1724
+ * List of processed vote. Used to determine if the vote should be locked in case of voting not in favor.
1725
+ *
1726
+ * @param {[AccountId32Like, number]} arg
1727
+ * @param {Callback<PalletStakingVote | undefined> =} callback
1728
+ **/
1729
+ votesRewarded: GenericStorageQuery<
1730
+ Rv,
1731
+ (arg: [AccountId32Like, number]) => PalletStakingVote | undefined,
1732
+ [AccountId32, number]
1733
+ >;
1734
+
1735
+ /**
1736
+ * Legacy storage! - Used to handle democracy votes until democracy pallet is fully removed.
1737
+ *
1738
+ * @param {bigint} arg
1739
+ * @param {Callback<PalletStakingVoting> =} callback
1740
+ **/
1741
+ positionVotes: GenericStorageQuery<Rv, (arg: bigint) => PalletStakingVoting, bigint>;
1742
+
1743
+ /**
1744
+ * Legacy storage! - Used to handle democracy processed votes until democracy pallet is fully removed.
1745
+ *
1746
+ * @param {[AccountId32Like, number]} arg
1747
+ * @param {Callback<PalletStakingVote | undefined> =} callback
1748
+ **/
1749
+ processedVotes: GenericStorageQuery<
1750
+ Rv,
1751
+ (arg: [AccountId32Like, number]) => PalletStakingVote | undefined,
1752
+ [AccountId32, number]
1753
+ >;
1754
+
1755
+ /**
1756
+ * Generic pallet storage query
1757
+ **/
1758
+ [storage: string]: GenericStorageQuery<Rv>;
1759
+ };
1760
+ /**
1761
+ * Pallet `Stableswap`'s storage queries
1762
+ **/
1763
+ stableswap: {
1764
+ /**
1765
+ * Existing pools
1766
+ *
1767
+ * @param {number} arg
1768
+ * @param {Callback<PalletStableswapPoolInfo | undefined> =} callback
1769
+ **/
1770
+ pools: GenericStorageQuery<Rv, (arg: number) => PalletStableswapPoolInfo | undefined, number>;
1771
+
1772
+ /**
1773
+ * Pool peg info.
1774
+ *
1775
+ * @param {number} arg
1776
+ * @param {Callback<PalletStableswapPoolPegInfo | undefined> =} callback
1777
+ **/
1778
+ poolPegs: GenericStorageQuery<Rv, (arg: number) => PalletStableswapPoolPegInfo | undefined, number>;
1779
+
1780
+ /**
1781
+ * Tradability state of pool assets.
1782
+ *
1783
+ * @param {[number, number]} arg
1784
+ * @param {Callback<PalletStableswapTradability> =} callback
1785
+ **/
1786
+ assetTradability: GenericStorageQuery<Rv, (arg: [number, number]) => PalletStableswapTradability, [number, number]>;
1787
+
1788
+ /**
1789
+ * Generic pallet storage query
1790
+ **/
1791
+ [storage: string]: GenericStorageQuery<Rv>;
1792
+ };
1793
+ /**
1794
+ * Pallet `Bonds`'s storage queries
1795
+ **/
1796
+ bonds: {
1797
+ /**
1798
+ * Registered bond ids.
1799
+ * Maps (underlying asset ID, maturity) -> bond ID
1800
+ *
1801
+ * @param {[number, bigint]} arg
1802
+ * @param {Callback<number | undefined> =} callback
1803
+ **/
1804
+ bondIds: GenericStorageQuery<Rv, (arg: [number, bigint]) => number | undefined, [number, bigint]>;
1805
+
1806
+ /**
1807
+ * Registered bonds.
1808
+ * Maps bond ID -> (underlying asset ID, maturity)
1809
+ *
1810
+ * @param {number} arg
1811
+ * @param {Callback<[number, bigint] | undefined> =} callback
1812
+ **/
1813
+ bonds: GenericStorageQuery<Rv, (arg: number) => [number, bigint] | undefined, number>;
1814
+
1815
+ /**
1816
+ * Generic pallet storage query
1817
+ **/
1818
+ [storage: string]: GenericStorageQuery<Rv>;
1819
+ };
1820
+ /**
1821
+ * Pallet `LBP`'s storage queries
1822
+ **/
1823
+ lbp: {
1824
+ /**
1825
+ * Details of a pool.
1826
+ *
1827
+ * @param {AccountId32Like} arg
1828
+ * @param {Callback<PalletLbpPool | undefined> =} callback
1829
+ **/
1830
+ poolData: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletLbpPool | undefined, AccountId32>;
1831
+
1832
+ /**
1833
+ * Storage used for tracking existing fee collectors
1834
+ * Not more than one fee collector per asset possible
1835
+ *
1836
+ * @param {[AccountId32Like, number]} arg
1837
+ * @param {Callback<boolean> =} callback
1838
+ **/
1839
+ feeCollectorWithAsset: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => boolean, [AccountId32, number]>;
1840
+
1841
+ /**
1842
+ * Generic pallet storage query
1843
+ **/
1844
+ [storage: string]: GenericStorageQuery<Rv>;
1845
+ };
1846
+ /**
1847
+ * Pallet `XYK`'s storage queries
1848
+ **/
1849
+ xyk: {
1850
+ /**
1851
+ * Asset id storage for shared pool tokens
1852
+ *
1853
+ * @param {AccountId32Like} arg
1854
+ * @param {Callback<number> =} callback
1855
+ **/
1856
+ shareToken: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
1857
+
1858
+ /**
1859
+ * Total liquidity in a pool.
1860
+ *
1861
+ * @param {AccountId32Like} arg
1862
+ * @param {Callback<bigint> =} callback
1863
+ **/
1864
+ totalLiquidity: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint, AccountId32>;
1865
+
1866
+ /**
1867
+ * Asset pair in a pool.
1868
+ *
1869
+ * @param {AccountId32Like} arg
1870
+ * @param {Callback<[number, number] | undefined> =} callback
1871
+ **/
1872
+ poolAssets: GenericStorageQuery<Rv, (arg: AccountId32Like) => [number, number] | undefined, AccountId32>;
1873
+
1874
+ /**
1875
+ * Generic pallet storage query
1876
+ **/
1877
+ [storage: string]: GenericStorageQuery<Rv>;
1878
+ };
1879
+ /**
1880
+ * Pallet `Referrals`'s storage queries
1881
+ **/
1882
+ referrals: {
1883
+ /**
1884
+ * Referral codes
1885
+ * Maps a referral code to an account.
1886
+ *
1887
+ * @param {BytesLike} arg
1888
+ * @param {Callback<AccountId32 | undefined> =} callback
1889
+ **/
1890
+ referralCodes: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
1891
+
1892
+ /**
1893
+ * Referral accounts
1894
+ * Maps an account to a referral code.
1895
+ *
1896
+ * @param {AccountId32Like} arg
1897
+ * @param {Callback<Bytes | undefined> =} callback
1898
+ **/
1899
+ referralAccounts: GenericStorageQuery<Rv, (arg: AccountId32Like) => Bytes | undefined, AccountId32>;
1900
+
1901
+ /**
1902
+ * Linked accounts.
1903
+ * Maps an account to a referral account.
1904
+ *
1905
+ * @param {AccountId32Like} arg
1906
+ * @param {Callback<AccountId32 | undefined> =} callback
1907
+ **/
1908
+ linkedAccounts: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
1909
+
1910
+ /**
1911
+ * Shares of a referral account
1912
+ *
1913
+ * @param {AccountId32Like} arg
1914
+ * @param {Callback<bigint> =} callback
1915
+ **/
1916
+ referrerShares: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint, AccountId32>;
1917
+
1918
+ /**
1919
+ * Shares of a trader account
1920
+ *
1921
+ * @param {AccountId32Like} arg
1922
+ * @param {Callback<bigint> =} callback
1923
+ **/
1924
+ traderShares: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint, AccountId32>;
1925
+
1926
+ /**
1927
+ * Total share issuance.
1928
+ *
1929
+ * @param {Callback<bigint> =} callback
1930
+ **/
1931
+ totalShares: GenericStorageQuery<Rv, () => bigint>;
1932
+
1933
+ /**
1934
+ * Referer level and total accumulated rewards over time.
1935
+ * Maps referrer account to (Level, Balance). Level indicates current rewards and Balance is used to unlock next level.
1936
+ * Dev note: we use OptionQuery here because this helps to easily determine that an account if referrer account.
1937
+ *
1938
+ * @param {AccountId32Like} arg
1939
+ * @param {Callback<[PalletReferralsLevel, bigint] | undefined> =} callback
1940
+ **/
1941
+ referrer: GenericStorageQuery<
1942
+ Rv,
1943
+ (arg: AccountId32Like) => [PalletReferralsLevel, bigint] | undefined,
1944
+ AccountId32
1945
+ >;
1946
+
1947
+ /**
1948
+ * Asset fee distribution rewards information.
1949
+ * Maps (asset_id, level) to asset reward percentages.
1950
+ *
1951
+ * @param {[number, PalletReferralsLevel]} arg
1952
+ * @param {Callback<PalletReferralsFeeDistribution | undefined> =} callback
1953
+ **/
1954
+ assetRewards: GenericStorageQuery<
1955
+ Rv,
1956
+ (arg: [number, PalletReferralsLevel]) => PalletReferralsFeeDistribution | undefined,
1957
+ [number, PalletReferralsLevel]
1958
+ >;
1959
+
1960
+ /**
1961
+ * Information about assets that are currently in the rewards pot.
1962
+ * Used to easily determine list of assets that need to be converted.
1963
+ *
1964
+ * @param {number} arg
1965
+ * @param {Callback<[] | undefined> =} callback
1966
+ **/
1967
+ pendingConversions: GenericStorageQuery<Rv, (arg: number) => [] | undefined, number>;
1968
+
1969
+ /**
1970
+ * Counter for the related counted storage map
1971
+ *
1972
+ * @param {Callback<number> =} callback
1973
+ **/
1974
+ counterForPendingConversions: GenericStorageQuery<Rv, () => number>;
1975
+
1976
+ /**
1977
+ * Generic pallet storage query
1978
+ **/
1979
+ [storage: string]: GenericStorageQuery<Rv>;
1980
+ };
1981
+ /**
1982
+ * Pallet `Liquidation`'s storage queries
1983
+ **/
1984
+ liquidation: {
1985
+ /**
1986
+ * Borrowing market contract address
1987
+ *
1988
+ * @param {Callback<H160> =} callback
1989
+ **/
1990
+ borrowingContract: GenericStorageQuery<Rv, () => H160>;
1991
+
1992
+ /**
1993
+ * Generic pallet storage query
1994
+ **/
1995
+ [storage: string]: GenericStorageQuery<Rv>;
1996
+ };
1997
+ /**
1998
+ * Pallet `Tokens`'s storage queries
1999
+ **/
2000
+ tokens: {
2001
+ /**
2002
+ * The total issuance of a token type.
2003
+ *
2004
+ * @param {number} arg
2005
+ * @param {Callback<bigint> =} callback
2006
+ **/
2007
+ totalIssuance: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
2008
+
2009
+ /**
2010
+ * Any liquidity locks of a token type under an account.
2011
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
2012
+ *
2013
+ * @param {[AccountId32Like, number]} arg
2014
+ * @param {Callback<Array<OrmlTokensBalanceLock>> =} callback
2015
+ **/
2016
+ locks: GenericStorageQuery<
2017
+ Rv,
2018
+ (arg: [AccountId32Like, number]) => Array<OrmlTokensBalanceLock>,
2019
+ [AccountId32, number]
2020
+ >;
2021
+
2022
+ /**
2023
+ * The balance of a token type under an account.
2024
+ *
2025
+ * NOTE: If the total is ever zero, decrease account ref account.
2026
+ *
2027
+ * NOTE: This is only used in the case that this module is used to store
2028
+ * balances.
2029
+ *
2030
+ * @param {[AccountId32Like, number]} arg
2031
+ * @param {Callback<OrmlTokensAccountData> =} callback
2032
+ **/
2033
+ accounts: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => OrmlTokensAccountData, [AccountId32, number]>;
2034
+
2035
+ /**
2036
+ * Named reserves on some account balances.
2037
+ *
2038
+ * @param {[AccountId32Like, number]} arg
2039
+ * @param {Callback<Array<OrmlTokensReserveData>> =} callback
2040
+ **/
2041
+ reserves: GenericStorageQuery<
2042
+ Rv,
2043
+ (arg: [AccountId32Like, number]) => Array<OrmlTokensReserveData>,
2044
+ [AccountId32, number]
2045
+ >;
2046
+
2047
+ /**
2048
+ * Generic pallet storage query
2049
+ **/
2050
+ [storage: string]: GenericStorageQuery<Rv>;
2051
+ };
2052
+ /**
2053
+ * Pallet `Vesting`'s storage queries
2054
+ **/
2055
+ vesting: {
2056
+ /**
2057
+ * Vesting schedules of an account.
2058
+ *
2059
+ * VestingSchedules: map AccountId => Vec<VestingSchedule>
2060
+ *
2061
+ * @param {AccountId32Like} arg
2062
+ * @param {Callback<Array<OrmlVestingVestingSchedule>> =} callback
2063
+ **/
2064
+ vestingSchedules: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<OrmlVestingVestingSchedule>, AccountId32>;
2065
+
2066
+ /**
2067
+ * Generic pallet storage query
2068
+ **/
2069
+ [storage: string]: GenericStorageQuery<Rv>;
2070
+ };
2071
+ /**
2072
+ * Pallet `EVM`'s storage queries
2073
+ **/
2074
+ evm: {
2075
+ /**
2076
+ *
2077
+ * @param {H160} arg
2078
+ * @param {Callback<Bytes> =} callback
2079
+ **/
2080
+ accountCodes: GenericStorageQuery<Rv, (arg: H160) => Bytes, H160>;
2081
+
2082
+ /**
2083
+ *
2084
+ * @param {H160} arg
2085
+ * @param {Callback<PalletEvmCodeMetadata | undefined> =} callback
2086
+ **/
2087
+ accountCodesMetadata: GenericStorageQuery<Rv, (arg: H160) => PalletEvmCodeMetadata | undefined, H160>;
2088
+
2089
+ /**
2090
+ *
2091
+ * @param {[H160, H256]} arg
2092
+ * @param {Callback<H256> =} callback
2093
+ **/
2094
+ accountStorages: GenericStorageQuery<Rv, (arg: [H160, H256]) => H256, [H160, H256]>;
2095
+
2096
+ /**
2097
+ *
2098
+ * @param {H160} arg
2099
+ * @param {Callback<[] | undefined> =} callback
2100
+ **/
2101
+ suicided: GenericStorageQuery<Rv, (arg: H160) => [] | undefined, H160>;
2102
+
2103
+ /**
2104
+ * Generic pallet storage query
2105
+ **/
2106
+ [storage: string]: GenericStorageQuery<Rv>;
2107
+ };
2108
+ /**
2109
+ * Pallet `EVMChainId`'s storage queries
2110
+ **/
2111
+ evmChainId: {
2112
+ /**
2113
+ * The EVM chain ID.
2114
+ *
2115
+ * @param {Callback<bigint> =} callback
2116
+ **/
2117
+ chainId: GenericStorageQuery<Rv, () => bigint>;
2118
+
2119
+ /**
2120
+ * Generic pallet storage query
2121
+ **/
2122
+ [storage: string]: GenericStorageQuery<Rv>;
2123
+ };
2124
+ /**
2125
+ * Pallet `Ethereum`'s storage queries
2126
+ **/
2127
+ ethereum: {
2128
+ /**
2129
+ * Current building block's transactions and receipts.
2130
+ *
2131
+ * @param {Callback<Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>> =} callback
2132
+ **/
2133
+ pending: GenericStorageQuery<
2134
+ Rv,
2135
+ () => Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>
2136
+ >;
2137
+
2138
+ /**
2139
+ * The current Ethereum block.
2140
+ *
2141
+ * @param {Callback<EthereumBlock | undefined> =} callback
2142
+ **/
2143
+ currentBlock: GenericStorageQuery<Rv, () => EthereumBlock | undefined>;
2144
+
2145
+ /**
2146
+ * The current Ethereum receipts.
2147
+ *
2148
+ * @param {Callback<Array<EthereumReceiptReceiptV3> | undefined> =} callback
2149
+ **/
2150
+ currentReceipts: GenericStorageQuery<Rv, () => Array<EthereumReceiptReceiptV3> | undefined>;
2151
+
2152
+ /**
2153
+ * The current transaction statuses.
2154
+ *
2155
+ * @param {Callback<Array<FpRpcTransactionStatus> | undefined> =} callback
2156
+ **/
2157
+ currentTransactionStatuses: GenericStorageQuery<Rv, () => Array<FpRpcTransactionStatus> | undefined>;
2158
+
2159
+ /**
2160
+ *
2161
+ * @param {U256} arg
2162
+ * @param {Callback<H256> =} callback
2163
+ **/
2164
+ blockHash: GenericStorageQuery<Rv, (arg: U256) => H256, U256>;
2165
+
2166
+ /**
2167
+ * Generic pallet storage query
2168
+ **/
2169
+ [storage: string]: GenericStorageQuery<Rv>;
2170
+ };
2171
+ /**
2172
+ * Pallet `EVMAccounts`'s storage queries
2173
+ **/
2174
+ evmAccounts: {
2175
+ /**
2176
+ * Maps an EVM address to the last 12 bytes of a substrate account.
2177
+ *
2178
+ * @param {H160} arg
2179
+ * @param {Callback<FixedBytes<12> | undefined> =} callback
2180
+ **/
2181
+ accountExtension: GenericStorageQuery<Rv, (arg: H160) => FixedBytes<12> | undefined, H160>;
2182
+
2183
+ /**
2184
+ * Whitelisted addresses that are allowed to deploy smart contracts.
2185
+ *
2186
+ * @param {H160} arg
2187
+ * @param {Callback<[] | undefined> =} callback
2188
+ **/
2189
+ contractDeployer: GenericStorageQuery<Rv, (arg: H160) => [] | undefined, H160>;
2190
+
2191
+ /**
2192
+ * Whitelisted contracts that are allowed to manage balances and tokens.
2193
+ *
2194
+ * @param {H160} arg
2195
+ * @param {Callback<[] | undefined> =} callback
2196
+ **/
2197
+ approvedContract: GenericStorageQuery<Rv, (arg: H160) => [] | undefined, H160>;
2198
+
2199
+ /**
2200
+ * Generic pallet storage query
2201
+ **/
2202
+ [storage: string]: GenericStorageQuery<Rv>;
2203
+ };
2204
+ /**
2205
+ * Pallet `DynamicEvmFee`'s storage queries
2206
+ **/
2207
+ dynamicEvmFee: {
2208
+ /**
2209
+ * Base fee per gas
2210
+ *
2211
+ * @param {Callback<U256> =} callback
2212
+ **/
2213
+ baseFeePerGas: GenericStorageQuery<Rv, () => U256>;
2214
+
2215
+ /**
2216
+ * Generic pallet storage query
2217
+ **/
2218
+ [storage: string]: GenericStorageQuery<Rv>;
2219
+ };
2220
+ /**
2221
+ * Pallet `XYKWarehouseLM`'s storage queries
2222
+ **/
2223
+ xykWarehouseLM: {
2224
+ /**
2225
+ * Id sequencer for `GlobalFarm` and `YieldFarm`.
2226
+ *
2227
+ * @param {Callback<number> =} callback
2228
+ **/
2229
+ farmSequencer: GenericStorageQuery<Rv, () => number>;
2230
+
2231
+ /**
2232
+ *
2233
+ * @param {Callback<bigint> =} callback
2234
+ **/
2235
+ depositSequencer: GenericStorageQuery<Rv, () => bigint>;
2236
+
2237
+ /**
2238
+ *
2239
+ * @param {number} arg
2240
+ * @param {Callback<PalletLiquidityMiningGlobalFarmData | undefined> =} callback
2241
+ **/
2242
+ globalFarm: GenericStorageQuery<Rv, (arg: number) => PalletLiquidityMiningGlobalFarmData | undefined, number>;
2243
+
2244
+ /**
2245
+ * Yield farm details.
2246
+ *
2247
+ * @param {[AccountId32Like, number, number]} arg
2248
+ * @param {Callback<PalletLiquidityMiningYieldFarmData | undefined> =} callback
2249
+ **/
2250
+ yieldFarm: GenericStorageQuery<
2251
+ Rv,
2252
+ (arg: [AccountId32Like, number, number]) => PalletLiquidityMiningYieldFarmData | undefined,
2253
+ [AccountId32, number, number]
2254
+ >;
2255
+
2256
+ /**
2257
+ * Deposit details.
2258
+ *
2259
+ * @param {bigint} arg
2260
+ * @param {Callback<PalletLiquidityMiningDepositData002 | undefined> =} callback
2261
+ **/
2262
+ deposit: GenericStorageQuery<Rv, (arg: bigint) => PalletLiquidityMiningDepositData002 | undefined, bigint>;
2263
+
2264
+ /**
2265
+ * Active(farms able to receive LP shares deposits) yield farms.
2266
+ *
2267
+ * @param {[AccountId32Like, number]} arg
2268
+ * @param {Callback<number | undefined> =} callback
2269
+ **/
2270
+ activeYieldFarm: GenericStorageQuery<
2271
+ Rv,
2272
+ (arg: [AccountId32Like, number]) => number | undefined,
2273
+ [AccountId32, number]
2274
+ >;
2275
+
2276
+ /**
2277
+ * Generic pallet storage query
2278
+ **/
2279
+ [storage: string]: GenericStorageQuery<Rv>;
2280
+ };
2281
+ /**
2282
+ * Pallet `DCA`'s storage queries
2283
+ **/
2284
+ dca: {
2285
+ /**
2286
+ * Id sequencer for schedules
2287
+ *
2288
+ * @param {Callback<number> =} callback
2289
+ **/
2290
+ scheduleIdSequencer: GenericStorageQuery<Rv, () => number>;
2291
+
2292
+ /**
2293
+ * Storing schedule details
2294
+ *
2295
+ * @param {number} arg
2296
+ * @param {Callback<PalletDcaSchedule | undefined> =} callback
2297
+ **/
2298
+ schedules: GenericStorageQuery<Rv, (arg: number) => PalletDcaSchedule | undefined, number>;
2299
+
2300
+ /**
2301
+ * Storing schedule ownership
2302
+ *
2303
+ * @param {[AccountId32Like, number]} arg
2304
+ * @param {Callback<[] | undefined> =} callback
2305
+ **/
2306
+ scheduleOwnership: GenericStorageQuery<
2307
+ Rv,
2308
+ (arg: [AccountId32Like, number]) => [] | undefined,
2309
+ [AccountId32, number]
2310
+ >;
2311
+
2312
+ /**
2313
+ * Keep tracking the remaining amounts to spend for DCA schedules
2314
+ *
2315
+ * @param {number} arg
2316
+ * @param {Callback<bigint | undefined> =} callback
2317
+ **/
2318
+ remainingAmounts: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
2319
+
2320
+ /**
2321
+ * Keep tracking the retry on error flag for DCA schedules
2322
+ *
2323
+ * @param {number} arg
2324
+ * @param {Callback<number> =} callback
2325
+ **/
2326
+ retriesOnError: GenericStorageQuery<Rv, (arg: number) => number, number>;
2327
+
2328
+ /**
2329
+ * Keep tracking the blocknumber when the schedule is planned to be executed
2330
+ *
2331
+ * @param {number} arg
2332
+ * @param {Callback<number | undefined> =} callback
2333
+ **/
2334
+ scheduleExecutionBlock: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
2335
+
2336
+ /**
2337
+ * Keep tracking of the schedule ids to be executed in the block
2338
+ *
2339
+ * @param {number} arg
2340
+ * @param {Callback<Array<number>> =} callback
2341
+ **/
2342
+ scheduleIdsPerBlock: GenericStorageQuery<Rv, (arg: number) => Array<number>, number>;
2343
+
2344
+ /**
2345
+ * Generic pallet storage query
2346
+ **/
2347
+ [storage: string]: GenericStorageQuery<Rv>;
2348
+ };
2349
+ /**
2350
+ * Pallet `Scheduler`'s storage queries
2351
+ **/
2352
+ scheduler: {
2353
+ /**
2354
+ *
2355
+ * @param {Callback<number | undefined> =} callback
2356
+ **/
2357
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
2358
+
2359
+ /**
2360
+ * Items to be executed, indexed by the block number that they should be executed on.
2361
+ *
2362
+ * @param {number} arg
2363
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
2364
+ **/
2365
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
2366
+
2367
+ /**
2368
+ * Retry configurations for items to be executed, indexed by task address.
2369
+ *
2370
+ * @param {[number, number]} arg
2371
+ * @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
2372
+ **/
2373
+ retries: GenericStorageQuery<
2374
+ Rv,
2375
+ (arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
2376
+ [number, number]
2377
+ >;
2378
+
2379
+ /**
2380
+ * Lookup from a name to the block number and index of the task.
2381
+ *
2382
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
2383
+ * identities.
2384
+ *
2385
+ * @param {FixedBytes<32>} arg
2386
+ * @param {Callback<[number, number] | undefined> =} callback
2387
+ **/
2388
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
2389
+
2390
+ /**
2391
+ * Generic pallet storage query
2392
+ **/
2393
+ [storage: string]: GenericStorageQuery<Rv>;
2394
+ };
2395
+ /**
2396
+ * Pallet `ParachainSystem`'s storage queries
2397
+ **/
2398
+ parachainSystem: {
2399
+ /**
2400
+ * Latest included block descendants the runtime accepted. In other words, these are
2401
+ * ancestors of the currently executing block which have not been included in the observed
2402
+ * relay-chain state.
2403
+ *
2404
+ * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
2405
+ * in the pallet.
2406
+ *
2407
+ * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
2408
+ **/
2409
+ unincludedSegment: GenericStorageQuery<Rv, () => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
2410
+
2411
+ /**
2412
+ * Storage field that keeps track of bandwidth used by the unincluded segment along with the
2413
+ * latest HRMP watermark. Used for limiting the acceptance of new blocks with
2414
+ * respect to relay chain constraints.
2415
+ *
2416
+ * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
2417
+ **/
2418
+ aggregatedUnincludedSegment: GenericStorageQuery<
2419
+ Rv,
2420
+ () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
2421
+ >;
2422
+
2423
+ /**
2424
+ * In case of a scheduled upgrade, this storage field contains the validation code to be
2425
+ * applied.
2426
+ *
2427
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
2428
+ * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
2429
+ * with the new validation code. This concludes the upgrade process.
2430
+ *
2431
+ * @param {Callback<Bytes> =} callback
2432
+ **/
2433
+ pendingValidationCode: GenericStorageQuery<Rv, () => Bytes>;
2434
+
2435
+ /**
2436
+ * Validation code that is set by the parachain and is to be communicated to collator and
2437
+ * consequently the relay-chain.
2438
+ *
2439
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
2440
+ * the value.
2441
+ *
2442
+ * @param {Callback<Bytes | undefined> =} callback
2443
+ **/
2444
+ newValidationCode: GenericStorageQuery<Rv, () => Bytes | undefined>;
2445
+
2446
+ /**
2447
+ * The [`PersistedValidationData`] set for this block.
2448
+ * This value is expected to be set only once per block and it's never stored
2449
+ * in the trie.
2450
+ *
2451
+ * @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
2452
+ **/
2453
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8PersistedValidationData | undefined>;
2454
+
2455
+ /**
2456
+ * Were the validation data set to notify the relay chain?
2457
+ *
2458
+ * @param {Callback<boolean> =} callback
2459
+ **/
2460
+ didSetValidationCode: GenericStorageQuery<Rv, () => boolean>;
2461
+
2462
+ /**
2463
+ * The relay chain block number associated with the last parachain block.
2464
+ *
2465
+ * This is updated in `on_finalize`.
2466
+ *
2467
+ * @param {Callback<number> =} callback
2468
+ **/
2469
+ lastRelayChainBlockNumber: GenericStorageQuery<Rv, () => number>;
2470
+
2471
+ /**
2472
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
2473
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
2474
+ * candidate will be invalid.
2475
+ *
2476
+ * This storage item is a mirror of the corresponding value for the current parachain from the
2477
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
2478
+ * set after the inherent.
2479
+ *
2480
+ * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
2481
+ **/
2482
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
2483
+
2484
+ /**
2485
+ * Optional upgrade go-ahead signal from the relay-chain.
2486
+ *
2487
+ * This storage item is a mirror of the corresponding value for the current parachain from the
2488
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
2489
+ * set after the inherent.
2490
+ *
2491
+ * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
2492
+ **/
2493
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
2494
+
2495
+ /**
2496
+ * The state proof for the last relay parent block.
2497
+ *
2498
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
2499
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
2500
+ *
2501
+ * This data is also absent from the genesis.
2502
+ *
2503
+ * @param {Callback<SpTrieStorageProof | undefined> =} callback
2504
+ **/
2505
+ relayStateProof: GenericStorageQuery<Rv, () => SpTrieStorageProof | undefined>;
2506
+
2507
+ /**
2508
+ * The snapshot of some state related to messaging relevant to the current parachain as per
2509
+ * the relay parent.
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<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
2517
+ **/
2518
+ relevantMessagingState: GenericStorageQuery<
2519
+ Rv,
2520
+ () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
2521
+ >;
2522
+
2523
+ /**
2524
+ * The parachain host configuration that was obtained from the relay parent.
2525
+ *
2526
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
2527
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
2528
+ *
2529
+ * This data is also absent from the genesis.
2530
+ *
2531
+ * @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
2532
+ **/
2533
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
2534
+
2535
+ /**
2536
+ * The last downward message queue chain head we have observed.
2537
+ *
2538
+ * This value is loaded before and saved after processing inbound downward messages carried
2539
+ * by the system inherent.
2540
+ *
2541
+ * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
2542
+ **/
2543
+ lastDmqMqcHead: GenericStorageQuery<Rv, () => CumulusPrimitivesParachainInherentMessageQueueChain>;
2544
+
2545
+ /**
2546
+ * The message queue chain heads we have observed per each channel incoming channel.
2547
+ *
2548
+ * This value is loaded before and saved after processing inbound downward messages carried
2549
+ * by the system inherent.
2550
+ *
2551
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
2552
+ **/
2553
+ lastHrmpMqcHeads: GenericStorageQuery<
2554
+ Rv,
2555
+ () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
2556
+ >;
2557
+
2558
+ /**
2559
+ * Number of downward messages processed in a block.
2560
+ *
2561
+ * This will be cleared in `on_initialize` of each new block.
2562
+ *
2563
+ * @param {Callback<number> =} callback
2564
+ **/
2565
+ processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
2566
+
2567
+ /**
2568
+ * HRMP watermark that was set in a block.
2569
+ *
2570
+ * This will be cleared in `on_initialize` of each new block.
2571
+ *
2572
+ * @param {Callback<number> =} callback
2573
+ **/
2574
+ hrmpWatermark: GenericStorageQuery<Rv, () => number>;
2575
+
2576
+ /**
2577
+ * HRMP messages that were sent in a block.
2578
+ *
2579
+ * This will be cleared in `on_initialize` of each new block.
2580
+ *
2581
+ * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
2582
+ **/
2583
+ hrmpOutboundMessages: GenericStorageQuery<Rv, () => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
2584
+
2585
+ /**
2586
+ * Upward messages that were sent in a block.
2587
+ *
2588
+ * This will be cleared in `on_initialize` of each new block.
2589
+ *
2590
+ * @param {Callback<Array<Bytes>> =} callback
2591
+ **/
2592
+ upwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
2593
+
2594
+ /**
2595
+ * Upward messages that are still pending and not yet send to the relay chain.
2596
+ *
2597
+ * @param {Callback<Array<Bytes>> =} callback
2598
+ **/
2599
+ pendingUpwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
2600
+
2601
+ /**
2602
+ * The factor to multiply the base delivery fee by for UMP.
2603
+ *
2604
+ * @param {Callback<FixedU128> =} callback
2605
+ **/
2606
+ upwardDeliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
2607
+
2608
+ /**
2609
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
2610
+ * announcing the weight of `on_initialize` and `on_finalize`.
2611
+ *
2612
+ * @param {Callback<number> =} callback
2613
+ **/
2614
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<Rv, () => number>;
2615
+
2616
+ /**
2617
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
2618
+ * overrides the amount set in the Config trait.
2619
+ *
2620
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
2621
+ **/
2622
+ reservedXcmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
2623
+
2624
+ /**
2625
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
2626
+ * overrides the amount set in the Config trait.
2627
+ *
2628
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
2629
+ **/
2630
+ reservedDmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
2631
+
2632
+ /**
2633
+ * A custom head data that should be returned as result of `validate_block`.
2634
+ *
2635
+ * See `Pallet::set_custom_validation_head_data` for more information.
2636
+ *
2637
+ * @param {Callback<Bytes | undefined> =} callback
2638
+ **/
2639
+ customValidationHeadData: GenericStorageQuery<Rv, () => Bytes | undefined>;
2640
+
2641
+ /**
2642
+ * Generic pallet storage query
2643
+ **/
2644
+ [storage: string]: GenericStorageQuery<Rv>;
2645
+ };
2646
+ /**
2647
+ * Pallet `ParachainInfo`'s storage queries
2648
+ **/
2649
+ parachainInfo: {
2650
+ /**
2651
+ *
2652
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
2653
+ **/
2654
+ parachainId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
2655
+
2656
+ /**
2657
+ * Generic pallet storage query
2658
+ **/
2659
+ [storage: string]: GenericStorageQuery<Rv>;
2660
+ };
2661
+ /**
2662
+ * Pallet `PolkadotXcm`'s storage queries
2663
+ **/
2664
+ polkadotXcm: {
2665
+ /**
2666
+ * The latest available query index.
2667
+ *
2668
+ * @param {Callback<bigint> =} callback
2669
+ **/
2670
+ queryCounter: GenericStorageQuery<Rv, () => bigint>;
2671
+
2672
+ /**
2673
+ * The ongoing queries.
2674
+ *
2675
+ * @param {bigint} arg
2676
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
2677
+ **/
2678
+ queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
2679
+
2680
+ /**
2681
+ * The existing asset traps.
2682
+ *
2683
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
2684
+ * times this pair has been trapped (usually just 1 if it exists at all).
2685
+ *
2686
+ * @param {H256} arg
2687
+ * @param {Callback<number> =} callback
2688
+ **/
2689
+ assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
2690
+
2691
+ /**
2692
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
2693
+ * then the destinations whose XCM version is unknown are considered unreachable.
2694
+ *
2695
+ * @param {Callback<number | undefined> =} callback
2696
+ **/
2697
+ safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
2698
+
2699
+ /**
2700
+ * The Latest versions that we know various locations support.
2701
+ *
2702
+ * @param {[number, XcmVersionedLocation]} arg
2703
+ * @param {Callback<number | undefined> =} callback
2704
+ **/
2705
+ supportedVersion: GenericStorageQuery<
2706
+ Rv,
2707
+ (arg: [number, XcmVersionedLocation]) => number | undefined,
2708
+ [number, XcmVersionedLocation]
2709
+ >;
2710
+
2711
+ /**
2712
+ * All locations that we have requested version notifications from.
2713
+ *
2714
+ * @param {[number, XcmVersionedLocation]} arg
2715
+ * @param {Callback<bigint | undefined> =} callback
2716
+ **/
2717
+ versionNotifiers: GenericStorageQuery<
2718
+ Rv,
2719
+ (arg: [number, XcmVersionedLocation]) => bigint | undefined,
2720
+ [number, XcmVersionedLocation]
2721
+ >;
2722
+
2723
+ /**
2724
+ * The target locations that are subscribed to our version changes, as well as the most recent
2725
+ * of our versions we informed them of.
2726
+ *
2727
+ * @param {[number, XcmVersionedLocation]} arg
2728
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
2729
+ **/
2730
+ versionNotifyTargets: GenericStorageQuery<
2731
+ Rv,
2732
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
2733
+ [number, XcmVersionedLocation]
2734
+ >;
2735
+
2736
+ /**
2737
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
2738
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
2739
+ * which is used as a prioritization.
2740
+ *
2741
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
2742
+ **/
2743
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
2744
+
2745
+ /**
2746
+ * The current migration's stage, if any.
2747
+ *
2748
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
2749
+ **/
2750
+ currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
2751
+
2752
+ /**
2753
+ * Fungible assets which we know are locked on a remote chain.
2754
+ *
2755
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
2756
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
2757
+ **/
2758
+ remoteLockedFungibles: GenericStorageQuery<
2759
+ Rv,
2760
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
2761
+ [number, AccountId32, XcmVersionedAssetId]
2762
+ >;
2763
+
2764
+ /**
2765
+ * Fungible assets which we know are locked on this chain.
2766
+ *
2767
+ * @param {AccountId32Like} arg
2768
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
2769
+ **/
2770
+ lockedFungibles: GenericStorageQuery<
2771
+ Rv,
2772
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
2773
+ AccountId32
2774
+ >;
2775
+
2776
+ /**
2777
+ * Global suspension state of the XCM executor.
2778
+ *
2779
+ * @param {Callback<boolean> =} callback
2780
+ **/
2781
+ xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
2782
+
2783
+ /**
2784
+ * Whether or not incoming XCMs (both executed locally and received) should be recorded.
2785
+ * Only one XCM program will be recorded at a time.
2786
+ * This is meant to be used in runtime APIs, and it's advised it stays false
2787
+ * for all other use cases, so as to not degrade regular performance.
2788
+ *
2789
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
2790
+ * implementation in the XCM executor configuration.
2791
+ *
2792
+ * @param {Callback<boolean> =} callback
2793
+ **/
2794
+ shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
2795
+
2796
+ /**
2797
+ * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
2798
+ * will be stored here.
2799
+ * Runtime APIs can fetch the XCM that was executed by accessing this value.
2800
+ *
2801
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
2802
+ * implementation in the XCM executor configuration.
2803
+ *
2804
+ * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
2805
+ **/
2806
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
2807
+
2808
+ /**
2809
+ * Generic pallet storage query
2810
+ **/
2811
+ [storage: string]: GenericStorageQuery<Rv>;
2812
+ };
2813
+ /**
2814
+ * Pallet `XcmpQueue`'s storage queries
2815
+ **/
2816
+ xcmpQueue: {
2817
+ /**
2818
+ * The suspended inbound XCMP channels. All others are not suspended.
2819
+ *
2820
+ * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
2821
+ * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
2822
+ * within the block and therefore only included once in the proof size.
2823
+ *
2824
+ * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
2825
+ * will be smaller.
2826
+ *
2827
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2828
+ **/
2829
+ inboundXcmpSuspended: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
2830
+
2831
+ /**
2832
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
2833
+ * and last outbound message. If the two indices are equal, then it indicates an empty
2834
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
2835
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
2836
+ * case of the need to send a high-priority signal message this block.
2837
+ * The bool is true if there is a signal message waiting to be sent.
2838
+ *
2839
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
2840
+ **/
2841
+ outboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
2842
+
2843
+ /**
2844
+ * The messages outbound in a given XCMP channel.
2845
+ *
2846
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
2847
+ * @param {Callback<Bytes> =} callback
2848
+ **/
2849
+ outboundXcmpMessages: GenericStorageQuery<
2850
+ Rv,
2851
+ (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
2852
+ [PolkadotParachainPrimitivesPrimitivesId, number]
2853
+ >;
2854
+
2855
+ /**
2856
+ * Any signal messages waiting to be sent.
2857
+ *
2858
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2859
+ * @param {Callback<Bytes> =} callback
2860
+ **/
2861
+ signalMessages: GenericStorageQuery<
2862
+ Rv,
2863
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes,
2864
+ PolkadotParachainPrimitivesPrimitivesId
2865
+ >;
2866
+
2867
+ /**
2868
+ * The configuration which controls the dynamics of the outbound queue.
2869
+ *
2870
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
2871
+ **/
2872
+ queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
2873
+
2874
+ /**
2875
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
2876
+ *
2877
+ * @param {Callback<boolean> =} callback
2878
+ **/
2879
+ queueSuspended: GenericStorageQuery<Rv, () => boolean>;
2880
+
2881
+ /**
2882
+ * The factor to multiply the base delivery fee by.
2883
+ *
2884
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2885
+ * @param {Callback<FixedU128> =} callback
2886
+ **/
2887
+ deliveryFeeFactor: GenericStorageQuery<
2888
+ Rv,
2889
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
2890
+ PolkadotParachainPrimitivesPrimitivesId
2891
+ >;
2892
+
2893
+ /**
2894
+ * Generic pallet storage query
2895
+ **/
2896
+ [storage: string]: GenericStorageQuery<Rv>;
2897
+ };
2898
+ /**
2899
+ * Pallet `MessageQueue`'s storage queries
2900
+ **/
2901
+ messageQueue: {
2902
+ /**
2903
+ * The index of the first and last (non-empty) pages.
2904
+ *
2905
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg
2906
+ * @param {Callback<PalletMessageQueueBookState> =} callback
2907
+ **/
2908
+ bookStateFor: GenericStorageQuery<
2909
+ Rv,
2910
+ (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState,
2911
+ CumulusPrimitivesCoreAggregateMessageOrigin
2912
+ >;
2913
+
2914
+ /**
2915
+ * The origin at which we should begin servicing.
2916
+ *
2917
+ * @param {Callback<CumulusPrimitivesCoreAggregateMessageOrigin | undefined> =} callback
2918
+ **/
2919
+ serviceHead: GenericStorageQuery<Rv, () => CumulusPrimitivesCoreAggregateMessageOrigin | undefined>;
2920
+
2921
+ /**
2922
+ * The map of page indices to pages.
2923
+ *
2924
+ * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg
2925
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
2926
+ **/
2927
+ pages: GenericStorageQuery<
2928
+ Rv,
2929
+ (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
2930
+ [CumulusPrimitivesCoreAggregateMessageOrigin, number]
2931
+ >;
2932
+
2933
+ /**
2934
+ * Generic pallet storage query
2935
+ **/
2936
+ [storage: string]: GenericStorageQuery<Rv>;
2937
+ };
2938
+ /**
2939
+ * Pallet `UnknownTokens`'s storage queries
2940
+ **/
2941
+ unknownTokens: {
2942
+ /**
2943
+ * Concrete fungible balances under a given location and a concrete
2944
+ * fungible id.
2945
+ *
2946
+ * double_map: who, asset_id => u128
2947
+ *
2948
+ * @param {[StagingXcmV4Location, StagingXcmV4Location]} arg
2949
+ * @param {Callback<bigint> =} callback
2950
+ **/
2951
+ concreteFungibleBalances: GenericStorageQuery<
2952
+ Rv,
2953
+ (arg: [StagingXcmV4Location, StagingXcmV4Location]) => bigint,
2954
+ [StagingXcmV4Location, StagingXcmV4Location]
2955
+ >;
2956
+
2957
+ /**
2958
+ * Abstract fungible balances under a given location and a abstract
2959
+ * fungible id.
2960
+ *
2961
+ * double_map: who, asset_id => u128
2962
+ *
2963
+ * @param {[StagingXcmV4Location, BytesLike]} arg
2964
+ * @param {Callback<bigint> =} callback
2965
+ **/
2966
+ abstractFungibleBalances: GenericStorageQuery<
2967
+ Rv,
2968
+ (arg: [StagingXcmV4Location, BytesLike]) => bigint,
2969
+ [StagingXcmV4Location, Bytes]
2970
+ >;
2971
+
2972
+ /**
2973
+ * Generic pallet storage query
2974
+ **/
2975
+ [storage: string]: GenericStorageQuery<Rv>;
2976
+ };
2977
+ /**
2978
+ * Pallet `Authorship`'s storage queries
2979
+ **/
2980
+ authorship: {
2981
+ /**
2982
+ * Author of current block.
2983
+ *
2984
+ * @param {Callback<AccountId32 | undefined> =} callback
2985
+ **/
2986
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
2987
+
2988
+ /**
2989
+ * Generic pallet storage query
2990
+ **/
2991
+ [storage: string]: GenericStorageQuery<Rv>;
2992
+ };
2993
+ /**
2994
+ * Pallet `CollatorSelection`'s storage queries
2995
+ **/
2996
+ collatorSelection: {
2997
+ /**
2998
+ * The invulnerable, permissioned collators. This list must be sorted.
2999
+ *
3000
+ * @param {Callback<Array<AccountId32>> =} callback
3001
+ **/
3002
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
3003
+
3004
+ /**
3005
+ * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
3006
+ * mutually exclusive.
3007
+ *
3008
+ * This list is sorted in ascending order by deposit and when the deposits are equal, the least
3009
+ * recently updated is considered greater.
3010
+ *
3011
+ * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
3012
+ **/
3013
+ candidateList: GenericStorageQuery<Rv, () => Array<PalletCollatorSelectionCandidateInfo>>;
3014
+
3015
+ /**
3016
+ * Last block authored by collator.
3017
+ *
3018
+ * @param {AccountId32Like} arg
3019
+ * @param {Callback<number> =} callback
3020
+ **/
3021
+ lastAuthoredBlock: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
3022
+
3023
+ /**
3024
+ * Desired number of candidates.
3025
+ *
3026
+ * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
3027
+ *
3028
+ * @param {Callback<number> =} callback
3029
+ **/
3030
+ desiredCandidates: GenericStorageQuery<Rv, () => number>;
3031
+
3032
+ /**
3033
+ * Fixed amount to deposit to become a collator.
3034
+ *
3035
+ * When a collator calls `leave_intent` they immediately receive the deposit back.
3036
+ *
3037
+ * @param {Callback<bigint> =} callback
3038
+ **/
3039
+ candidacyBond: GenericStorageQuery<Rv, () => bigint>;
3040
+
3041
+ /**
3042
+ * Generic pallet storage query
3043
+ **/
3044
+ [storage: string]: GenericStorageQuery<Rv>;
3045
+ };
3046
+ /**
3047
+ * Pallet `Session`'s storage queries
3048
+ **/
3049
+ session: {
3050
+ /**
3051
+ * The current set of validators.
3052
+ *
3053
+ * @param {Callback<Array<AccountId32>> =} callback
3054
+ **/
3055
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
3056
+
3057
+ /**
3058
+ * Current index of the session.
3059
+ *
3060
+ * @param {Callback<number> =} callback
3061
+ **/
3062
+ currentIndex: GenericStorageQuery<Rv, () => number>;
3063
+
3064
+ /**
3065
+ * True if the underlying economic identities or weighting behind the validators
3066
+ * has changed in the queued validator set.
3067
+ *
3068
+ * @param {Callback<boolean> =} callback
3069
+ **/
3070
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
3071
+
3072
+ /**
3073
+ * The queued keys for the next session. When the next session begins, these keys
3074
+ * will be used to determine the validator's session keys.
3075
+ *
3076
+ * @param {Callback<Array<[AccountId32, HydradxRuntimeOpaqueSessionKeys]>> =} callback
3077
+ **/
3078
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, HydradxRuntimeOpaqueSessionKeys]>>;
3079
+
3080
+ /**
3081
+ * Indices of disabled validators.
3082
+ *
3083
+ * The vec is always kept sorted so that we can find whether a given validator is
3084
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
3085
+ * a new set of identities.
3086
+ *
3087
+ * @param {Callback<Array<number>> =} callback
3088
+ **/
3089
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
3090
+
3091
+ /**
3092
+ * The next session keys for a validator.
3093
+ *
3094
+ * @param {AccountId32Like} arg
3095
+ * @param {Callback<HydradxRuntimeOpaqueSessionKeys | undefined> =} callback
3096
+ **/
3097
+ nextKeys: GenericStorageQuery<
3098
+ Rv,
3099
+ (arg: AccountId32Like) => HydradxRuntimeOpaqueSessionKeys | undefined,
3100
+ AccountId32
3101
+ >;
3102
+
3103
+ /**
3104
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
3105
+ *
3106
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
3107
+ * @param {Callback<AccountId32 | undefined> =} callback
3108
+ **/
3109
+ keyOwner: GenericStorageQuery<
3110
+ Rv,
3111
+ (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
3112
+ [SpCoreCryptoKeyTypeId, Bytes]
3113
+ >;
3114
+
3115
+ /**
3116
+ * Generic pallet storage query
3117
+ **/
3118
+ [storage: string]: GenericStorageQuery<Rv>;
3119
+ };
3120
+ /**
3121
+ * Pallet `Aura`'s storage queries
3122
+ **/
3123
+ aura: {
3124
+ /**
3125
+ * The current authority set.
3126
+ *
3127
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
3128
+ **/
3129
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
3130
+
3131
+ /**
3132
+ * The current slot of this block.
3133
+ *
3134
+ * This will be set in `on_initialize`.
3135
+ *
3136
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
3137
+ **/
3138
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
3139
+
3140
+ /**
3141
+ * Generic pallet storage query
3142
+ **/
3143
+ [storage: string]: GenericStorageQuery<Rv>;
3144
+ };
3145
+ /**
3146
+ * Pallet `AuraExt`'s storage queries
3147
+ **/
3148
+ auraExt: {
3149
+ /**
3150
+ * Serves as cache for the authorities.
3151
+ *
3152
+ * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
3153
+ * but we require the old authorities to verify the seal when validating a PoV. This will
3154
+ * always be updated to the latest AuRa authorities in `on_finalize`.
3155
+ *
3156
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
3157
+ **/
3158
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
3159
+
3160
+ /**
3161
+ * Current slot paired with a number of authored blocks.
3162
+ *
3163
+ * Updated on each block initialization.
3164
+ *
3165
+ * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
3166
+ **/
3167
+ slotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
3168
+
3169
+ /**
3170
+ * Generic pallet storage query
3171
+ **/
3172
+ [storage: string]: GenericStorageQuery<Rv>;
3173
+ };
3174
+ /**
3175
+ * Pallet `EmaOracle`'s storage queries
3176
+ **/
3177
+ emaOracle: {
3178
+ /**
3179
+ * Accumulator for oracle data in current block that will be recorded at the end of the block.
3180
+ *
3181
+ * @param {Callback<Array<[[FixedBytes<8>, [number, number]], PalletEmaOracleOracleEntry]>> =} callback
3182
+ **/
3183
+ accumulator: GenericStorageQuery<Rv, () => Array<[[FixedBytes<8>, [number, number]], PalletEmaOracleOracleEntry]>>;
3184
+
3185
+ /**
3186
+ * Oracle storage keyed by data source, involved asset ids and the period length of the oracle.
3187
+ *
3188
+ * Stores the data entry as well as the block number when the oracle was first initialized.
3189
+ *
3190
+ * @param {[FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod]} arg
3191
+ * @param {Callback<[PalletEmaOracleOracleEntry, number] | undefined> =} callback
3192
+ **/
3193
+ oracles: GenericStorageQuery<
3194
+ Rv,
3195
+ (
3196
+ arg: [FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod],
3197
+ ) => [PalletEmaOracleOracleEntry, number] | undefined,
3198
+ [FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod]
3199
+ >;
3200
+
3201
+ /**
3202
+ * Assets that are whitelisted and tracked by the pallet.
3203
+ *
3204
+ * @param {Callback<Array<[FixedBytes<8>, [number, number]]>> =} callback
3205
+ **/
3206
+ whitelistedAssets: GenericStorageQuery<Rv, () => Array<[FixedBytes<8>, [number, number]]>>;
3207
+
3208
+ /**
3209
+ * Generic pallet storage query
3210
+ **/
3211
+ [storage: string]: GenericStorageQuery<Rv>;
3212
+ };
3213
+ /**
3214
+ * Pallet `Broadcast`'s storage queries
3215
+ **/
3216
+ broadcast: {
3217
+ /**
3218
+ * Next available incremental ID
3219
+ *
3220
+ * @param {Callback<number> =} callback
3221
+ **/
3222
+ incrementalId: GenericStorageQuery<Rv, () => number>;
3223
+
3224
+ /**
3225
+ * Execution context to figure out where the trade is originated from
3226
+ *
3227
+ * @param {Callback<Array<PalletBroadcastExecutionType>> =} callback
3228
+ **/
3229
+ executionContext: GenericStorageQuery<Rv, () => Array<PalletBroadcastExecutionType>>;
3230
+
3231
+ /**
3232
+ * If filled, we overwrite the original swapper. Mainly used in router to not to use temporary trade account
3233
+ *
3234
+ * @param {Callback<AccountId32 | undefined> =} callback
3235
+ **/
3236
+ swapper: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
3237
+
3238
+ /**
3239
+ * Generic pallet storage query
3240
+ **/
3241
+ [storage: string]: GenericStorageQuery<Rv>;
3242
+ };
3243
+ }