@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,2380 @@
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
+ BytesLike,
13
+ Data,
14
+ FixedBytes,
15
+ } from 'dedot/codecs';
16
+ import type {
17
+ FrameSystemAccountInfo,
18
+ FrameSupportDispatchPerDispatchClass,
19
+ FrameSystemEventRecord,
20
+ FrameSystemLastRuntimeUpgradeInfo,
21
+ FrameSystemCodeUpgradeAuthorization,
22
+ PalletBalancesAccountData,
23
+ PalletBalancesBalanceLock,
24
+ PalletBalancesReserveData,
25
+ FrameSupportTokensMiscIdAmount,
26
+ FrameSupportTokensMiscIdAmount002,
27
+ PalletTransactionPaymentReleases,
28
+ PalletTreasuryProposal,
29
+ PalletTreasurySpendStatus,
30
+ FrameSupportPreimagesBounded,
31
+ PalletDemocracyReferendumInfo,
32
+ PalletDemocracyVoteVoting,
33
+ PalletDemocracyVoteThreshold,
34
+ PalletDemocracyMetadataOwner,
35
+ BasiliskRuntimeRuntimeCall,
36
+ PalletCollectiveVotes,
37
+ OrmlVestingVestingSchedule,
38
+ PalletProxyProxyDefinition,
39
+ PalletProxyAnnouncement,
40
+ PalletCollatorSelectionCandidateInfo,
41
+ BasiliskRuntimeOpaqueSessionKeys,
42
+ SpCoreCryptoKeyTypeId,
43
+ SpConsensusAuraSr25519AppSr25519Public,
44
+ SpConsensusSlotsSlot,
45
+ PalletPreimageOldRequestStatus,
46
+ PalletPreimageRequestStatus,
47
+ PalletUniquesCollectionDetails,
48
+ PalletUniquesItemDetails,
49
+ PalletUniquesCollectionMetadata,
50
+ PalletUniquesItemMetadata,
51
+ PalletIdentityRegistration,
52
+ PalletIdentityRegistrarInfo,
53
+ PalletIdentityAuthorityProperties,
54
+ PalletMultisigMultisig,
55
+ PalletStateTrieMigrationMigrationTask,
56
+ PalletStateTrieMigrationMigrationLimits,
57
+ PalletConvictionVotingVoteVoting,
58
+ PalletReferendaReferendumInfo,
59
+ PalletSchedulerScheduled,
60
+ PalletSchedulerRetryConfig,
61
+ CumulusPalletParachainSystemUnincludedSegmentAncestor,
62
+ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
63
+ PolkadotPrimitivesV8PersistedValidationData,
64
+ PolkadotPrimitivesV8UpgradeRestriction,
65
+ PolkadotPrimitivesV8UpgradeGoAhead,
66
+ SpTrieStorageProof,
67
+ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
68
+ PolkadotPrimitivesV8AbridgedHostConfiguration,
69
+ CumulusPrimitivesParachainInherentMessageQueueChain,
70
+ PolkadotParachainPrimitivesPrimitivesId,
71
+ PolkadotCorePrimitivesOutboundHrmpMessage,
72
+ SpWeightsWeightV2Weight,
73
+ PalletXcmQueryStatus,
74
+ XcmVersionedLocation,
75
+ PalletXcmVersionMigrationStage,
76
+ PalletXcmRemoteLockedFungibleRecord,
77
+ XcmVersionedAssetId,
78
+ StagingXcmV4Xcm,
79
+ CumulusPalletXcmpQueueOutboundChannelDetails,
80
+ CumulusPalletXcmpQueueQueueConfigData,
81
+ PalletMessageQueueBookState,
82
+ CumulusPrimitivesCoreAggregateMessageOrigin,
83
+ PalletMessageQueuePage,
84
+ PalletAssetRegistryAssetDetails,
85
+ BasiliskRuntimeXcmAssetLocation,
86
+ PalletAssetRegistryAssetMetadata,
87
+ PalletLbpPool,
88
+ PalletNftCollectionInfo,
89
+ PalletNftItemInfo,
90
+ PalletMarketplaceOffer,
91
+ PalletMarketplaceRoyalty,
92
+ PalletRouteExecutorSkipEd,
93
+ HydradxTraitsRouterTrade,
94
+ HydradxTraitsRouterAssetPair,
95
+ PalletLiquidityMiningGlobalFarmData,
96
+ PalletLiquidityMiningYieldFarmData,
97
+ PalletLiquidityMiningDepositData,
98
+ PalletBroadcastExecutionType,
99
+ PalletEmaOracleOracleEntry,
100
+ HydradxTraitsOracleOraclePeriod,
101
+ OrmlTokensBalanceLock,
102
+ OrmlTokensAccountData,
103
+ OrmlTokensReserveData,
104
+ StagingXcmV4Location,
105
+ } from './types.js';
106
+
107
+ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
108
+ /**
109
+ * Pallet `System`'s storage queries
110
+ **/
111
+ system: {
112
+ /**
113
+ * The full account information for a particular account ID.
114
+ *
115
+ * @param {AccountId32Like} arg
116
+ * @param {Callback<FrameSystemAccountInfo> =} callback
117
+ **/
118
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
119
+
120
+ /**
121
+ * Total extrinsics count for the current block.
122
+ *
123
+ * @param {Callback<number | undefined> =} callback
124
+ **/
125
+ extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
126
+
127
+ /**
128
+ * Whether all inherents have been applied.
129
+ *
130
+ * @param {Callback<boolean> =} callback
131
+ **/
132
+ inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
133
+
134
+ /**
135
+ * The current weight for the block.
136
+ *
137
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
138
+ **/
139
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
140
+
141
+ /**
142
+ * Total length (in bytes) for all extrinsics put together, for the current block.
143
+ *
144
+ * @param {Callback<number | undefined> =} callback
145
+ **/
146
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
147
+
148
+ /**
149
+ * Map of block numbers to block hashes.
150
+ *
151
+ * @param {number} arg
152
+ * @param {Callback<H256> =} callback
153
+ **/
154
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
155
+
156
+ /**
157
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
158
+ *
159
+ * @param {number} arg
160
+ * @param {Callback<Bytes> =} callback
161
+ **/
162
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
163
+
164
+ /**
165
+ * The current block number being processed. Set by `execute_block`.
166
+ *
167
+ * @param {Callback<number> =} callback
168
+ **/
169
+ number: GenericStorageQuery<Rv, () => number>;
170
+
171
+ /**
172
+ * Hash of the previous block.
173
+ *
174
+ * @param {Callback<H256> =} callback
175
+ **/
176
+ parentHash: GenericStorageQuery<Rv, () => H256>;
177
+
178
+ /**
179
+ * Digest of the current block, also part of the block header.
180
+ *
181
+ * @param {Callback<Digest> =} callback
182
+ **/
183
+ digest: GenericStorageQuery<Rv, () => Digest>;
184
+
185
+ /**
186
+ * Events deposited for the current block.
187
+ *
188
+ * NOTE: The item is unbound and should therefore never be read on chain.
189
+ * It could otherwise inflate the PoV size of a block.
190
+ *
191
+ * Events have a large in-memory size. Box the events to not go out-of-memory
192
+ * just in case someone still reads them from within the runtime.
193
+ *
194
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
195
+ **/
196
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
197
+
198
+ /**
199
+ * The number of events in the `Events<T>` list.
200
+ *
201
+ * @param {Callback<number> =} callback
202
+ **/
203
+ eventCount: GenericStorageQuery<Rv, () => number>;
204
+
205
+ /**
206
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
207
+ * of events in the `<Events<T>>` list.
208
+ *
209
+ * All topic vectors have deterministic storage locations depending on the topic. This
210
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
211
+ * in case of changes fetch the list of events of interest.
212
+ *
213
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
214
+ * the `EventIndex` then in case if the topic has the same contents on the next block
215
+ * no notification will be triggered thus the event might be lost.
216
+ *
217
+ * @param {H256} arg
218
+ * @param {Callback<Array<[number, number]>> =} callback
219
+ **/
220
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
221
+
222
+ /**
223
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
224
+ *
225
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
226
+ **/
227
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
228
+
229
+ /**
230
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
231
+ *
232
+ * @param {Callback<boolean> =} callback
233
+ **/
234
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
235
+
236
+ /**
237
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
238
+ * (default) if not.
239
+ *
240
+ * @param {Callback<boolean> =} callback
241
+ **/
242
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
243
+
244
+ /**
245
+ * The execution phase of the block.
246
+ *
247
+ * @param {Callback<Phase | undefined> =} callback
248
+ **/
249
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
250
+
251
+ /**
252
+ * `Some` if a code upgrade has been authorized.
253
+ *
254
+ * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
255
+ **/
256
+ authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
257
+
258
+ /**
259
+ * Generic pallet storage query
260
+ **/
261
+ [storage: string]: GenericStorageQuery<Rv>;
262
+ };
263
+ /**
264
+ * Pallet `Timestamp`'s storage queries
265
+ **/
266
+ timestamp: {
267
+ /**
268
+ * The current time for the current block.
269
+ *
270
+ * @param {Callback<bigint> =} callback
271
+ **/
272
+ now: GenericStorageQuery<Rv, () => bigint>;
273
+
274
+ /**
275
+ * Whether the timestamp has been updated in this block.
276
+ *
277
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
278
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
279
+ *
280
+ * @param {Callback<boolean> =} callback
281
+ **/
282
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
283
+
284
+ /**
285
+ * Generic pallet storage query
286
+ **/
287
+ [storage: string]: GenericStorageQuery<Rv>;
288
+ };
289
+ /**
290
+ * Pallet `Balances`'s storage queries
291
+ **/
292
+ balances: {
293
+ /**
294
+ * The total units issued in the system.
295
+ *
296
+ * @param {Callback<bigint> =} callback
297
+ **/
298
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
299
+
300
+ /**
301
+ * The total units of outstanding deactivated balance in the system.
302
+ *
303
+ * @param {Callback<bigint> =} callback
304
+ **/
305
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
306
+
307
+ /**
308
+ * The Balances pallet example of storing the balance of an account.
309
+ *
310
+ * # Example
311
+ *
312
+ * ```nocompile
313
+ * impl pallet_balances::Config for Runtime {
314
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
315
+ * }
316
+ * ```
317
+ *
318
+ * You can also store the balance of an account in the `System` pallet.
319
+ *
320
+ * # Example
321
+ *
322
+ * ```nocompile
323
+ * impl pallet_balances::Config for Runtime {
324
+ * type AccountStore = System
325
+ * }
326
+ * ```
327
+ *
328
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
329
+ * `frame_system` data alongside the account data contrary to storing account balances in the
330
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
331
+ * NOTE: This is only used in the case that this pallet is used to store balances.
332
+ *
333
+ * @param {AccountId32Like} arg
334
+ * @param {Callback<PalletBalancesAccountData> =} callback
335
+ **/
336
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
337
+
338
+ /**
339
+ * Any liquidity locks on some account balances.
340
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
341
+ *
342
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
343
+ *
344
+ * @param {AccountId32Like} arg
345
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
346
+ **/
347
+ locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
348
+
349
+ /**
350
+ * Named reserves on some account balances.
351
+ *
352
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
353
+ *
354
+ * @param {AccountId32Like} arg
355
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
356
+ **/
357
+ reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
358
+
359
+ /**
360
+ * Holds on account balances.
361
+ *
362
+ * @param {AccountId32Like} arg
363
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
364
+ **/
365
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
366
+
367
+ /**
368
+ * Freeze locks on account balances.
369
+ *
370
+ * @param {AccountId32Like} arg
371
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount002>> =} callback
372
+ **/
373
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount002>, AccountId32>;
374
+
375
+ /**
376
+ * Generic pallet storage query
377
+ **/
378
+ [storage: string]: GenericStorageQuery<Rv>;
379
+ };
380
+ /**
381
+ * Pallet `TransactionPayment`'s storage queries
382
+ **/
383
+ transactionPayment: {
384
+ /**
385
+ *
386
+ * @param {Callback<FixedU128> =} callback
387
+ **/
388
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
389
+
390
+ /**
391
+ *
392
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
393
+ **/
394
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
395
+
396
+ /**
397
+ * Generic pallet storage query
398
+ **/
399
+ [storage: string]: GenericStorageQuery<Rv>;
400
+ };
401
+ /**
402
+ * Pallet `MultiTransactionPayment`'s storage queries
403
+ **/
404
+ multiTransactionPayment: {
405
+ /**
406
+ * Account currency map
407
+ *
408
+ * @param {AccountId32Like} arg
409
+ * @param {Callback<number | undefined> =} callback
410
+ **/
411
+ accountCurrencyMap: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
412
+
413
+ /**
414
+ * Curated list of currencies which fees can be paid mapped to corresponding fallback price
415
+ *
416
+ * @param {number} arg
417
+ * @param {Callback<FixedU128 | undefined> =} callback
418
+ **/
419
+ acceptedCurrencies: GenericStorageQuery<Rv, (arg: number) => FixedU128 | undefined, number>;
420
+
421
+ /**
422
+ * Asset prices from the spot price provider or the fallback price if the price is not available. Updated at the beginning of every block.
423
+ *
424
+ * @param {number} arg
425
+ * @param {Callback<FixedU128 | undefined> =} callback
426
+ **/
427
+ acceptedCurrencyPrice: GenericStorageQuery<Rv, (arg: number) => FixedU128 | undefined, number>;
428
+
429
+ /**
430
+ *
431
+ * @param {AccountId32Like} arg
432
+ * @param {Callback<number | undefined> =} callback
433
+ **/
434
+ transactionCurrencyOverride: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
435
+
436
+ /**
437
+ * Generic pallet storage query
438
+ **/
439
+ [storage: string]: GenericStorageQuery<Rv>;
440
+ };
441
+ /**
442
+ * Pallet `Treasury`'s storage queries
443
+ **/
444
+ treasury: {
445
+ /**
446
+ * Number of proposals that have been made.
447
+ *
448
+ * @param {Callback<number> =} callback
449
+ **/
450
+ proposalCount: GenericStorageQuery<Rv, () => number>;
451
+
452
+ /**
453
+ * Proposals that have been made.
454
+ *
455
+ * @param {number} arg
456
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
457
+ **/
458
+ proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
459
+
460
+ /**
461
+ * The amount which has been reported as inactive to Currency.
462
+ *
463
+ * @param {Callback<bigint> =} callback
464
+ **/
465
+ deactivated: GenericStorageQuery<Rv, () => bigint>;
466
+
467
+ /**
468
+ * Proposal indices that have been approved but not yet awarded.
469
+ *
470
+ * @param {Callback<Array<number>> =} callback
471
+ **/
472
+ approvals: GenericStorageQuery<Rv, () => Array<number>>;
473
+
474
+ /**
475
+ * The count of spends that have been made.
476
+ *
477
+ * @param {Callback<number> =} callback
478
+ **/
479
+ spendCount: GenericStorageQuery<Rv, () => number>;
480
+
481
+ /**
482
+ * Spends that have been approved and being processed.
483
+ *
484
+ * @param {number} arg
485
+ * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
486
+ **/
487
+ spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
488
+
489
+ /**
490
+ * Generic pallet storage query
491
+ **/
492
+ [storage: string]: GenericStorageQuery<Rv>;
493
+ };
494
+ /**
495
+ * Pallet `Democracy`'s storage queries
496
+ **/
497
+ democracy: {
498
+ /**
499
+ * The number of (public) proposals that have been made so far.
500
+ *
501
+ * @param {Callback<number> =} callback
502
+ **/
503
+ publicPropCount: GenericStorageQuery<Rv, () => number>;
504
+
505
+ /**
506
+ * The public proposals. Unsorted. The second item is the proposal.
507
+ *
508
+ * @param {Callback<Array<[number, FrameSupportPreimagesBounded, AccountId32]>> =} callback
509
+ **/
510
+ publicProps: GenericStorageQuery<Rv, () => Array<[number, FrameSupportPreimagesBounded, AccountId32]>>;
511
+
512
+ /**
513
+ * Those who have locked a deposit.
514
+ *
515
+ * TWOX-NOTE: Safe, as increasing integer keys are safe.
516
+ *
517
+ * @param {number} arg
518
+ * @param {Callback<[Array<AccountId32>, bigint] | undefined> =} callback
519
+ **/
520
+ depositOf: GenericStorageQuery<Rv, (arg: number) => [Array<AccountId32>, bigint] | undefined, number>;
521
+
522
+ /**
523
+ * The next free referendum index, aka the number of referenda started so far.
524
+ *
525
+ * @param {Callback<number> =} callback
526
+ **/
527
+ referendumCount: GenericStorageQuery<Rv, () => number>;
528
+
529
+ /**
530
+ * The lowest referendum index representing an unbaked referendum. Equal to
531
+ * `ReferendumCount` if there isn't a unbaked referendum.
532
+ *
533
+ * @param {Callback<number> =} callback
534
+ **/
535
+ lowestUnbaked: GenericStorageQuery<Rv, () => number>;
536
+
537
+ /**
538
+ * Information concerning any given referendum.
539
+ *
540
+ * TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
541
+ *
542
+ * @param {number} arg
543
+ * @param {Callback<PalletDemocracyReferendumInfo | undefined> =} callback
544
+ **/
545
+ referendumInfoOf: GenericStorageQuery<Rv, (arg: number) => PalletDemocracyReferendumInfo | undefined, number>;
546
+
547
+ /**
548
+ * All votes for a particular voter. We store the balance for the number of votes that we
549
+ * have recorded. The second item is the total amount of delegations, that will be added.
550
+ *
551
+ * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
552
+ *
553
+ * @param {AccountId32Like} arg
554
+ * @param {Callback<PalletDemocracyVoteVoting> =} callback
555
+ **/
556
+ votingOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletDemocracyVoteVoting, AccountId32>;
557
+
558
+ /**
559
+ * True if the last referendum tabled was submitted externally. False if it was a public
560
+ * proposal.
561
+ *
562
+ * @param {Callback<boolean> =} callback
563
+ **/
564
+ lastTabledWasExternal: GenericStorageQuery<Rv, () => boolean>;
565
+
566
+ /**
567
+ * The referendum to be tabled whenever it would be valid to table an external proposal.
568
+ * This happens when a referendum needs to be tabled and one of two conditions are met:
569
+ * - `LastTabledWasExternal` is `false`; or
570
+ * - `PublicProps` is empty.
571
+ *
572
+ * @param {Callback<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined> =} callback
573
+ **/
574
+ nextExternal: GenericStorageQuery<
575
+ Rv,
576
+ () => [FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined
577
+ >;
578
+
579
+ /**
580
+ * A record of who vetoed what. Maps proposal hash to a possible existent block number
581
+ * (until when it may not be resubmitted) and who vetoed it.
582
+ *
583
+ * @param {H256} arg
584
+ * @param {Callback<[number, Array<AccountId32>] | undefined> =} callback
585
+ **/
586
+ blacklist: GenericStorageQuery<Rv, (arg: H256) => [number, Array<AccountId32>] | undefined, H256>;
587
+
588
+ /**
589
+ * Record of all proposals that have been subject to emergency cancellation.
590
+ *
591
+ * @param {H256} arg
592
+ * @param {Callback<boolean> =} callback
593
+ **/
594
+ cancellations: GenericStorageQuery<Rv, (arg: H256) => boolean, H256>;
595
+
596
+ /**
597
+ * General information concerning any proposal or referendum.
598
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
599
+ * dump or IPFS hash of a JSON file.
600
+ *
601
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
602
+ * large preimages.
603
+ *
604
+ * @param {PalletDemocracyMetadataOwner} arg
605
+ * @param {Callback<H256 | undefined> =} callback
606
+ **/
607
+ metadataOf: GenericStorageQuery<
608
+ Rv,
609
+ (arg: PalletDemocracyMetadataOwner) => H256 | undefined,
610
+ PalletDemocracyMetadataOwner
611
+ >;
612
+
613
+ /**
614
+ * Generic pallet storage query
615
+ **/
616
+ [storage: string]: GenericStorageQuery<Rv>;
617
+ };
618
+ /**
619
+ * Pallet `TechnicalCommittee`'s storage queries
620
+ **/
621
+ technicalCommittee: {
622
+ /**
623
+ * The hashes of the active proposals.
624
+ *
625
+ * @param {Callback<Array<H256>> =} callback
626
+ **/
627
+ proposals: GenericStorageQuery<Rv, () => Array<H256>>;
628
+
629
+ /**
630
+ * Actual proposal for a given hash, if it's current.
631
+ *
632
+ * @param {H256} arg
633
+ * @param {Callback<BasiliskRuntimeRuntimeCall | undefined> =} callback
634
+ **/
635
+ proposalOf: GenericStorageQuery<Rv, (arg: H256) => BasiliskRuntimeRuntimeCall | undefined, H256>;
636
+
637
+ /**
638
+ * Votes on a given proposal, if it is ongoing.
639
+ *
640
+ * @param {H256} arg
641
+ * @param {Callback<PalletCollectiveVotes | undefined> =} callback
642
+ **/
643
+ voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
644
+
645
+ /**
646
+ * Proposals so far.
647
+ *
648
+ * @param {Callback<number> =} callback
649
+ **/
650
+ proposalCount: GenericStorageQuery<Rv, () => number>;
651
+
652
+ /**
653
+ * The current members of the collective. This is stored sorted (just by value).
654
+ *
655
+ * @param {Callback<Array<AccountId32>> =} callback
656
+ **/
657
+ members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
658
+
659
+ /**
660
+ * The prime member that helps determine the default vote behavior in case of abstentions.
661
+ *
662
+ * @param {Callback<AccountId32 | undefined> =} callback
663
+ **/
664
+ prime: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
665
+
666
+ /**
667
+ * Generic pallet storage query
668
+ **/
669
+ [storage: string]: GenericStorageQuery<Rv>;
670
+ };
671
+ /**
672
+ * Pallet `Vesting`'s storage queries
673
+ **/
674
+ vesting: {
675
+ /**
676
+ * Vesting schedules of an account.
677
+ *
678
+ * VestingSchedules: map AccountId => Vec<VestingSchedule>
679
+ *
680
+ * @param {AccountId32Like} arg
681
+ * @param {Callback<Array<OrmlVestingVestingSchedule>> =} callback
682
+ **/
683
+ vestingSchedules: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<OrmlVestingVestingSchedule>, AccountId32>;
684
+
685
+ /**
686
+ * Generic pallet storage query
687
+ **/
688
+ [storage: string]: GenericStorageQuery<Rv>;
689
+ };
690
+ /**
691
+ * Pallet `Proxy`'s storage queries
692
+ **/
693
+ proxy: {
694
+ /**
695
+ * The set of account proxies. Maps the account which has delegated to the accounts
696
+ * which are being delegated to, together with the amount held on deposit.
697
+ *
698
+ * @param {AccountId32Like} arg
699
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
700
+ **/
701
+ proxies: GenericStorageQuery<
702
+ Rv,
703
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
704
+ AccountId32
705
+ >;
706
+
707
+ /**
708
+ * The announcements made by the proxy (key).
709
+ *
710
+ * @param {AccountId32Like} arg
711
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
712
+ **/
713
+ announcements: GenericStorageQuery<
714
+ Rv,
715
+ (arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
716
+ AccountId32
717
+ >;
718
+
719
+ /**
720
+ * Generic pallet storage query
721
+ **/
722
+ [storage: string]: GenericStorageQuery<Rv>;
723
+ };
724
+ /**
725
+ * Pallet `Authorship`'s storage queries
726
+ **/
727
+ authorship: {
728
+ /**
729
+ * Author of current block.
730
+ *
731
+ * @param {Callback<AccountId32 | undefined> =} callback
732
+ **/
733
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
734
+
735
+ /**
736
+ * Generic pallet storage query
737
+ **/
738
+ [storage: string]: GenericStorageQuery<Rv>;
739
+ };
740
+ /**
741
+ * Pallet `CollatorSelection`'s storage queries
742
+ **/
743
+ collatorSelection: {
744
+ /**
745
+ * The invulnerable, permissioned collators. This list must be sorted.
746
+ *
747
+ * @param {Callback<Array<AccountId32>> =} callback
748
+ **/
749
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
750
+
751
+ /**
752
+ * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
753
+ * mutually exclusive.
754
+ *
755
+ * This list is sorted in ascending order by deposit and when the deposits are equal, the least
756
+ * recently updated is considered greater.
757
+ *
758
+ * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
759
+ **/
760
+ candidateList: GenericStorageQuery<Rv, () => Array<PalletCollatorSelectionCandidateInfo>>;
761
+
762
+ /**
763
+ * Last block authored by collator.
764
+ *
765
+ * @param {AccountId32Like} arg
766
+ * @param {Callback<number> =} callback
767
+ **/
768
+ lastAuthoredBlock: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
769
+
770
+ /**
771
+ * Desired number of candidates.
772
+ *
773
+ * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
774
+ *
775
+ * @param {Callback<number> =} callback
776
+ **/
777
+ desiredCandidates: GenericStorageQuery<Rv, () => number>;
778
+
779
+ /**
780
+ * Fixed amount to deposit to become a collator.
781
+ *
782
+ * When a collator calls `leave_intent` they immediately receive the deposit back.
783
+ *
784
+ * @param {Callback<bigint> =} callback
785
+ **/
786
+ candidacyBond: GenericStorageQuery<Rv, () => bigint>;
787
+
788
+ /**
789
+ * Generic pallet storage query
790
+ **/
791
+ [storage: string]: GenericStorageQuery<Rv>;
792
+ };
793
+ /**
794
+ * Pallet `Session`'s storage queries
795
+ **/
796
+ session: {
797
+ /**
798
+ * The current set of validators.
799
+ *
800
+ * @param {Callback<Array<AccountId32>> =} callback
801
+ **/
802
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
803
+
804
+ /**
805
+ * Current index of the session.
806
+ *
807
+ * @param {Callback<number> =} callback
808
+ **/
809
+ currentIndex: GenericStorageQuery<Rv, () => number>;
810
+
811
+ /**
812
+ * True if the underlying economic identities or weighting behind the validators
813
+ * has changed in the queued validator set.
814
+ *
815
+ * @param {Callback<boolean> =} callback
816
+ **/
817
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
818
+
819
+ /**
820
+ * The queued keys for the next session. When the next session begins, these keys
821
+ * will be used to determine the validator's session keys.
822
+ *
823
+ * @param {Callback<Array<[AccountId32, BasiliskRuntimeOpaqueSessionKeys]>> =} callback
824
+ **/
825
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, BasiliskRuntimeOpaqueSessionKeys]>>;
826
+
827
+ /**
828
+ * Indices of disabled validators.
829
+ *
830
+ * The vec is always kept sorted so that we can find whether a given validator is
831
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
832
+ * a new set of identities.
833
+ *
834
+ * @param {Callback<Array<number>> =} callback
835
+ **/
836
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
837
+
838
+ /**
839
+ * The next session keys for a validator.
840
+ *
841
+ * @param {AccountId32Like} arg
842
+ * @param {Callback<BasiliskRuntimeOpaqueSessionKeys | undefined> =} callback
843
+ **/
844
+ nextKeys: GenericStorageQuery<
845
+ Rv,
846
+ (arg: AccountId32Like) => BasiliskRuntimeOpaqueSessionKeys | undefined,
847
+ AccountId32
848
+ >;
849
+
850
+ /**
851
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
852
+ *
853
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
854
+ * @param {Callback<AccountId32 | undefined> =} callback
855
+ **/
856
+ keyOwner: GenericStorageQuery<
857
+ Rv,
858
+ (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
859
+ [SpCoreCryptoKeyTypeId, Bytes]
860
+ >;
861
+
862
+ /**
863
+ * Generic pallet storage query
864
+ **/
865
+ [storage: string]: GenericStorageQuery<Rv>;
866
+ };
867
+ /**
868
+ * Pallet `Aura`'s storage queries
869
+ **/
870
+ aura: {
871
+ /**
872
+ * The current authority set.
873
+ *
874
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
875
+ **/
876
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
877
+
878
+ /**
879
+ * The current slot of this block.
880
+ *
881
+ * This will be set in `on_initialize`.
882
+ *
883
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
884
+ **/
885
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
886
+
887
+ /**
888
+ * Generic pallet storage query
889
+ **/
890
+ [storage: string]: GenericStorageQuery<Rv>;
891
+ };
892
+ /**
893
+ * Pallet `Preimage`'s storage queries
894
+ **/
895
+ preimage: {
896
+ /**
897
+ * The request status of a given hash.
898
+ *
899
+ * @param {H256} arg
900
+ * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
901
+ **/
902
+ statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
903
+
904
+ /**
905
+ * The request status of a given hash.
906
+ *
907
+ * @param {H256} arg
908
+ * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
909
+ **/
910
+ requestStatusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
911
+
912
+ /**
913
+ *
914
+ * @param {[H256, number]} arg
915
+ * @param {Callback<Bytes | undefined> =} callback
916
+ **/
917
+ preimageFor: GenericStorageQuery<Rv, (arg: [H256, number]) => Bytes | undefined, [H256, number]>;
918
+
919
+ /**
920
+ * Generic pallet storage query
921
+ **/
922
+ [storage: string]: GenericStorageQuery<Rv>;
923
+ };
924
+ /**
925
+ * Pallet `Uniques`'s storage queries
926
+ **/
927
+ uniques: {
928
+ /**
929
+ * Details of a collection.
930
+ *
931
+ * @param {bigint} arg
932
+ * @param {Callback<PalletUniquesCollectionDetails | undefined> =} callback
933
+ **/
934
+ class: GenericStorageQuery<Rv, (arg: bigint) => PalletUniquesCollectionDetails | undefined, bigint>;
935
+
936
+ /**
937
+ * The collection, if any, of which an account is willing to take ownership.
938
+ *
939
+ * @param {AccountId32Like} arg
940
+ * @param {Callback<bigint | undefined> =} callback
941
+ **/
942
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint | undefined, AccountId32>;
943
+
944
+ /**
945
+ * The items held by any given account; set out this way so that items owned by a single
946
+ * account can be enumerated.
947
+ *
948
+ * @param {[AccountId32Like, bigint, bigint]} arg
949
+ * @param {Callback<[] | undefined> =} callback
950
+ **/
951
+ account: GenericStorageQuery<
952
+ Rv,
953
+ (arg: [AccountId32Like, bigint, bigint]) => [] | undefined,
954
+ [AccountId32, bigint, bigint]
955
+ >;
956
+
957
+ /**
958
+ * The collections owned by any given account; set out this way so that collections owned by
959
+ * a single account can be enumerated.
960
+ *
961
+ * @param {[AccountId32Like, bigint]} arg
962
+ * @param {Callback<[] | undefined> =} callback
963
+ **/
964
+ classAccount: GenericStorageQuery<Rv, (arg: [AccountId32Like, bigint]) => [] | undefined, [AccountId32, bigint]>;
965
+
966
+ /**
967
+ * The items in existence and their ownership details.
968
+ *
969
+ * @param {[bigint, bigint]} arg
970
+ * @param {Callback<PalletUniquesItemDetails | undefined> =} callback
971
+ **/
972
+ asset: GenericStorageQuery<Rv, (arg: [bigint, bigint]) => PalletUniquesItemDetails | undefined, [bigint, bigint]>;
973
+
974
+ /**
975
+ * Metadata of a collection.
976
+ *
977
+ * @param {bigint} arg
978
+ * @param {Callback<PalletUniquesCollectionMetadata | undefined> =} callback
979
+ **/
980
+ classMetadataOf: GenericStorageQuery<Rv, (arg: bigint) => PalletUniquesCollectionMetadata | undefined, bigint>;
981
+
982
+ /**
983
+ * Metadata of an item.
984
+ *
985
+ * @param {[bigint, bigint]} arg
986
+ * @param {Callback<PalletUniquesItemMetadata | undefined> =} callback
987
+ **/
988
+ instanceMetadataOf: GenericStorageQuery<
989
+ Rv,
990
+ (arg: [bigint, bigint]) => PalletUniquesItemMetadata | undefined,
991
+ [bigint, bigint]
992
+ >;
993
+
994
+ /**
995
+ * Attributes of a collection.
996
+ *
997
+ * @param {[bigint, bigint | undefined, BytesLike]} arg
998
+ * @param {Callback<[Bytes, bigint] | undefined> =} callback
999
+ **/
1000
+ attribute: GenericStorageQuery<
1001
+ Rv,
1002
+ (arg: [bigint, bigint | undefined, BytesLike]) => [Bytes, bigint] | undefined,
1003
+ [bigint, bigint | undefined, Bytes]
1004
+ >;
1005
+
1006
+ /**
1007
+ * Price of an asset instance.
1008
+ *
1009
+ * @param {[bigint, bigint]} arg
1010
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1011
+ **/
1012
+ itemPriceOf: GenericStorageQuery<
1013
+ Rv,
1014
+ (arg: [bigint, bigint]) => [bigint, AccountId32 | undefined] | undefined,
1015
+ [bigint, bigint]
1016
+ >;
1017
+
1018
+ /**
1019
+ * Keeps track of the number of items a collection might have.
1020
+ *
1021
+ * @param {bigint} arg
1022
+ * @param {Callback<number | undefined> =} callback
1023
+ **/
1024
+ collectionMaxSupply: GenericStorageQuery<Rv, (arg: bigint) => number | undefined, bigint>;
1025
+
1026
+ /**
1027
+ * Generic pallet storage query
1028
+ **/
1029
+ [storage: string]: GenericStorageQuery<Rv>;
1030
+ };
1031
+ /**
1032
+ * Pallet `Identity`'s storage queries
1033
+ **/
1034
+ identity: {
1035
+ /**
1036
+ * Information that is pertinent to identify the entity behind an account. First item is the
1037
+ * registration, second is the account's primary username.
1038
+ *
1039
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1040
+ *
1041
+ * @param {AccountId32Like} arg
1042
+ * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
1043
+ **/
1044
+ identityOf: GenericStorageQuery<
1045
+ Rv,
1046
+ (arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
1047
+ AccountId32
1048
+ >;
1049
+
1050
+ /**
1051
+ * The super-identity of an alternative "sub" identity together with its name, within that
1052
+ * context. If the account is not some other account's sub-identity, then just `None`.
1053
+ *
1054
+ * @param {AccountId32Like} arg
1055
+ * @param {Callback<[AccountId32, Data] | undefined> =} callback
1056
+ **/
1057
+ superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
1058
+
1059
+ /**
1060
+ * Alternative "sub" identities of this account.
1061
+ *
1062
+ * The first item is the deposit, the second is a vector of the accounts.
1063
+ *
1064
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1065
+ *
1066
+ * @param {AccountId32Like} arg
1067
+ * @param {Callback<[bigint, Array<AccountId32>]> =} callback
1068
+ **/
1069
+ subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
1070
+
1071
+ /**
1072
+ * The set of registrars. Not expected to get very big as can only be added through a
1073
+ * special origin (likely a council motion).
1074
+ *
1075
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
1076
+ *
1077
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1078
+ **/
1079
+ registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
1080
+
1081
+ /**
1082
+ * A map of the accounts who are authorized to grant usernames.
1083
+ *
1084
+ * @param {AccountId32Like} arg
1085
+ * @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
1086
+ **/
1087
+ usernameAuthorities: GenericStorageQuery<
1088
+ Rv,
1089
+ (arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
1090
+ AccountId32
1091
+ >;
1092
+
1093
+ /**
1094
+ * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
1095
+ * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
1096
+ *
1097
+ * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
1098
+ * primary username.
1099
+ *
1100
+ * @param {BytesLike} arg
1101
+ * @param {Callback<AccountId32 | undefined> =} callback
1102
+ **/
1103
+ accountOfUsername: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
1104
+
1105
+ /**
1106
+ * Usernames that an authority has granted, but that the account controller has not confirmed
1107
+ * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
1108
+ * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
1109
+ * [`Call::accept_username`].
1110
+ *
1111
+ * First tuple item is the account and second is the acceptance deadline.
1112
+ *
1113
+ * @param {BytesLike} arg
1114
+ * @param {Callback<[AccountId32, number] | undefined> =} callback
1115
+ **/
1116
+ pendingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
1117
+
1118
+ /**
1119
+ * Generic pallet storage query
1120
+ **/
1121
+ [storage: string]: GenericStorageQuery<Rv>;
1122
+ };
1123
+ /**
1124
+ * Pallet `Multisig`'s storage queries
1125
+ **/
1126
+ multisig: {
1127
+ /**
1128
+ * The set of open multisig operations.
1129
+ *
1130
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
1131
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1132
+ **/
1133
+ multisigs: GenericStorageQuery<
1134
+ Rv,
1135
+ (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1136
+ [AccountId32, FixedBytes<32>]
1137
+ >;
1138
+
1139
+ /**
1140
+ * Generic pallet storage query
1141
+ **/
1142
+ [storage: string]: GenericStorageQuery<Rv>;
1143
+ };
1144
+ /**
1145
+ * Pallet `StateTrieMigration`'s storage queries
1146
+ **/
1147
+ stateTrieMigration: {
1148
+ /**
1149
+ * Migration progress.
1150
+ *
1151
+ * This stores the snapshot of the last migrated keys. It can be set into motion and move
1152
+ * forward by any of the means provided by this pallet.
1153
+ *
1154
+ * @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
1155
+ **/
1156
+ migrationProcess: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationTask>;
1157
+
1158
+ /**
1159
+ * The limits that are imposed on automatic migrations.
1160
+ *
1161
+ * If set to None, then no automatic migration happens.
1162
+ *
1163
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
1164
+ **/
1165
+ autoLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
1166
+
1167
+ /**
1168
+ * The maximum limits that the signed migration could use.
1169
+ *
1170
+ * If not set, no signed submission is allowed.
1171
+ *
1172
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
1173
+ **/
1174
+ signedMigrationMaxLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
1175
+
1176
+ /**
1177
+ * Generic pallet storage query
1178
+ **/
1179
+ [storage: string]: GenericStorageQuery<Rv>;
1180
+ };
1181
+ /**
1182
+ * Pallet `ConvictionVoting`'s storage queries
1183
+ **/
1184
+ convictionVoting: {
1185
+ /**
1186
+ * All voting for a particular voter in a particular voting class. We store the balance for the
1187
+ * number of votes that we have recorded.
1188
+ *
1189
+ * @param {[AccountId32Like, number]} arg
1190
+ * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
1191
+ **/
1192
+ votingFor: GenericStorageQuery<
1193
+ Rv,
1194
+ (arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting,
1195
+ [AccountId32, number]
1196
+ >;
1197
+
1198
+ /**
1199
+ * The voting classes which have a non-zero lock requirement and the lock amounts which they
1200
+ * require. The actual amount locked on behalf of this pallet should always be the maximum of
1201
+ * this list.
1202
+ *
1203
+ * @param {AccountId32Like} arg
1204
+ * @param {Callback<Array<[number, bigint]>> =} callback
1205
+ **/
1206
+ classLocksFor: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<[number, bigint]>, AccountId32>;
1207
+
1208
+ /**
1209
+ * Generic pallet storage query
1210
+ **/
1211
+ [storage: string]: GenericStorageQuery<Rv>;
1212
+ };
1213
+ /**
1214
+ * Pallet `Referenda`'s storage queries
1215
+ **/
1216
+ referenda: {
1217
+ /**
1218
+ * The next free referendum index, aka the number of referenda started so far.
1219
+ *
1220
+ * @param {Callback<number> =} callback
1221
+ **/
1222
+ referendumCount: GenericStorageQuery<Rv, () => number>;
1223
+
1224
+ /**
1225
+ * Information concerning any given referendum.
1226
+ *
1227
+ * @param {number} arg
1228
+ * @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
1229
+ **/
1230
+ referendumInfoFor: GenericStorageQuery<Rv, (arg: number) => PalletReferendaReferendumInfo | undefined, number>;
1231
+
1232
+ /**
1233
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
1234
+ * conviction-weighted approvals.
1235
+ *
1236
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
1237
+ *
1238
+ * @param {number} arg
1239
+ * @param {Callback<Array<[number, bigint]>> =} callback
1240
+ **/
1241
+ trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, bigint]>, number>;
1242
+
1243
+ /**
1244
+ * The number of referenda being decided currently.
1245
+ *
1246
+ * @param {number} arg
1247
+ * @param {Callback<number> =} callback
1248
+ **/
1249
+ decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
1250
+
1251
+ /**
1252
+ * The metadata is a general information concerning the referendum.
1253
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
1254
+ * dump or IPFS hash of a JSON file.
1255
+ *
1256
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1257
+ * large preimages.
1258
+ *
1259
+ * @param {number} arg
1260
+ * @param {Callback<H256 | undefined> =} callback
1261
+ **/
1262
+ metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
1263
+
1264
+ /**
1265
+ * Generic pallet storage query
1266
+ **/
1267
+ [storage: string]: GenericStorageQuery<Rv>;
1268
+ };
1269
+ /**
1270
+ * Pallet `Whitelist`'s storage queries
1271
+ **/
1272
+ whitelist: {
1273
+ /**
1274
+ *
1275
+ * @param {H256} arg
1276
+ * @param {Callback<[] | undefined> =} callback
1277
+ **/
1278
+ whitelistedCall: GenericStorageQuery<Rv, (arg: H256) => [] | undefined, H256>;
1279
+
1280
+ /**
1281
+ * Generic pallet storage query
1282
+ **/
1283
+ [storage: string]: GenericStorageQuery<Rv>;
1284
+ };
1285
+ /**
1286
+ * Pallet `Scheduler`'s storage queries
1287
+ **/
1288
+ scheduler: {
1289
+ /**
1290
+ *
1291
+ * @param {Callback<number | undefined> =} callback
1292
+ **/
1293
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
1294
+
1295
+ /**
1296
+ * Items to be executed, indexed by the block number that they should be executed on.
1297
+ *
1298
+ * @param {number} arg
1299
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
1300
+ **/
1301
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
1302
+
1303
+ /**
1304
+ * Retry configurations for items to be executed, indexed by task address.
1305
+ *
1306
+ * @param {[number, number]} arg
1307
+ * @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
1308
+ **/
1309
+ retries: GenericStorageQuery<
1310
+ Rv,
1311
+ (arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
1312
+ [number, number]
1313
+ >;
1314
+
1315
+ /**
1316
+ * Lookup from a name to the block number and index of the task.
1317
+ *
1318
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
1319
+ * identities.
1320
+ *
1321
+ * @param {FixedBytes<32>} arg
1322
+ * @param {Callback<[number, number] | undefined> =} callback
1323
+ **/
1324
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
1325
+
1326
+ /**
1327
+ * Generic pallet storage query
1328
+ **/
1329
+ [storage: string]: GenericStorageQuery<Rv>;
1330
+ };
1331
+ /**
1332
+ * Pallet `ParachainSystem`'s storage queries
1333
+ **/
1334
+ parachainSystem: {
1335
+ /**
1336
+ * Latest included block descendants the runtime accepted. In other words, these are
1337
+ * ancestors of the currently executing block which have not been included in the observed
1338
+ * relay-chain state.
1339
+ *
1340
+ * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
1341
+ * in the pallet.
1342
+ *
1343
+ * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
1344
+ **/
1345
+ unincludedSegment: GenericStorageQuery<Rv, () => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
1346
+
1347
+ /**
1348
+ * Storage field that keeps track of bandwidth used by the unincluded segment along with the
1349
+ * latest HRMP watermark. Used for limiting the acceptance of new blocks with
1350
+ * respect to relay chain constraints.
1351
+ *
1352
+ * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
1353
+ **/
1354
+ aggregatedUnincludedSegment: GenericStorageQuery<
1355
+ Rv,
1356
+ () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
1357
+ >;
1358
+
1359
+ /**
1360
+ * In case of a scheduled upgrade, this storage field contains the validation code to be
1361
+ * applied.
1362
+ *
1363
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
1364
+ * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
1365
+ * with the new validation code. This concludes the upgrade process.
1366
+ *
1367
+ * @param {Callback<Bytes> =} callback
1368
+ **/
1369
+ pendingValidationCode: GenericStorageQuery<Rv, () => Bytes>;
1370
+
1371
+ /**
1372
+ * Validation code that is set by the parachain and is to be communicated to collator and
1373
+ * consequently the relay-chain.
1374
+ *
1375
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
1376
+ * the value.
1377
+ *
1378
+ * @param {Callback<Bytes | undefined> =} callback
1379
+ **/
1380
+ newValidationCode: GenericStorageQuery<Rv, () => Bytes | undefined>;
1381
+
1382
+ /**
1383
+ * The [`PersistedValidationData`] set for this block.
1384
+ * This value is expected to be set only once per block and it's never stored
1385
+ * in the trie.
1386
+ *
1387
+ * @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
1388
+ **/
1389
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8PersistedValidationData | undefined>;
1390
+
1391
+ /**
1392
+ * Were the validation data set to notify the relay chain?
1393
+ *
1394
+ * @param {Callback<boolean> =} callback
1395
+ **/
1396
+ didSetValidationCode: GenericStorageQuery<Rv, () => boolean>;
1397
+
1398
+ /**
1399
+ * The relay chain block number associated with the last parachain block.
1400
+ *
1401
+ * This is updated in `on_finalize`.
1402
+ *
1403
+ * @param {Callback<number> =} callback
1404
+ **/
1405
+ lastRelayChainBlockNumber: GenericStorageQuery<Rv, () => number>;
1406
+
1407
+ /**
1408
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
1409
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
1410
+ * candidate will be invalid.
1411
+ *
1412
+ * This storage item is a mirror of the corresponding value for the current parachain from the
1413
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
1414
+ * set after the inherent.
1415
+ *
1416
+ * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
1417
+ **/
1418
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
1419
+
1420
+ /**
1421
+ * Optional upgrade go-ahead signal from the relay-chain.
1422
+ *
1423
+ * This storage item is a mirror of the corresponding value for the current parachain from the
1424
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
1425
+ * set after the inherent.
1426
+ *
1427
+ * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
1428
+ **/
1429
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
1430
+
1431
+ /**
1432
+ * The state proof for the last relay parent block.
1433
+ *
1434
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
1435
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
1436
+ *
1437
+ * This data is also absent from the genesis.
1438
+ *
1439
+ * @param {Callback<SpTrieStorageProof | undefined> =} callback
1440
+ **/
1441
+ relayStateProof: GenericStorageQuery<Rv, () => SpTrieStorageProof | undefined>;
1442
+
1443
+ /**
1444
+ * The snapshot of some state related to messaging relevant to the current parachain as per
1445
+ * the relay parent.
1446
+ *
1447
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
1448
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
1449
+ *
1450
+ * This data is also absent from the genesis.
1451
+ *
1452
+ * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
1453
+ **/
1454
+ relevantMessagingState: GenericStorageQuery<
1455
+ Rv,
1456
+ () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
1457
+ >;
1458
+
1459
+ /**
1460
+ * The parachain host configuration that was obtained from the relay parent.
1461
+ *
1462
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
1463
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
1464
+ *
1465
+ * This data is also absent from the genesis.
1466
+ *
1467
+ * @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
1468
+ **/
1469
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
1470
+
1471
+ /**
1472
+ * The last downward message queue chain head we have observed.
1473
+ *
1474
+ * This value is loaded before and saved after processing inbound downward messages carried
1475
+ * by the system inherent.
1476
+ *
1477
+ * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
1478
+ **/
1479
+ lastDmqMqcHead: GenericStorageQuery<Rv, () => CumulusPrimitivesParachainInherentMessageQueueChain>;
1480
+
1481
+ /**
1482
+ * The message queue chain heads we have observed per each channel incoming channel.
1483
+ *
1484
+ * This value is loaded before and saved after processing inbound downward messages carried
1485
+ * by the system inherent.
1486
+ *
1487
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
1488
+ **/
1489
+ lastHrmpMqcHeads: GenericStorageQuery<
1490
+ Rv,
1491
+ () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
1492
+ >;
1493
+
1494
+ /**
1495
+ * Number of downward messages processed in a block.
1496
+ *
1497
+ * This will be cleared in `on_initialize` of each new block.
1498
+ *
1499
+ * @param {Callback<number> =} callback
1500
+ **/
1501
+ processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
1502
+
1503
+ /**
1504
+ * HRMP watermark that was set in a block.
1505
+ *
1506
+ * This will be cleared in `on_initialize` of each new block.
1507
+ *
1508
+ * @param {Callback<number> =} callback
1509
+ **/
1510
+ hrmpWatermark: GenericStorageQuery<Rv, () => number>;
1511
+
1512
+ /**
1513
+ * HRMP messages that were sent in a block.
1514
+ *
1515
+ * This will be cleared in `on_initialize` of each new block.
1516
+ *
1517
+ * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
1518
+ **/
1519
+ hrmpOutboundMessages: GenericStorageQuery<Rv, () => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
1520
+
1521
+ /**
1522
+ * Upward messages that were sent in a block.
1523
+ *
1524
+ * This will be cleared in `on_initialize` of each new block.
1525
+ *
1526
+ * @param {Callback<Array<Bytes>> =} callback
1527
+ **/
1528
+ upwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
1529
+
1530
+ /**
1531
+ * Upward messages that are still pending and not yet send to the relay chain.
1532
+ *
1533
+ * @param {Callback<Array<Bytes>> =} callback
1534
+ **/
1535
+ pendingUpwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
1536
+
1537
+ /**
1538
+ * The factor to multiply the base delivery fee by for UMP.
1539
+ *
1540
+ * @param {Callback<FixedU128> =} callback
1541
+ **/
1542
+ upwardDeliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
1543
+
1544
+ /**
1545
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
1546
+ * announcing the weight of `on_initialize` and `on_finalize`.
1547
+ *
1548
+ * @param {Callback<number> =} callback
1549
+ **/
1550
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<Rv, () => number>;
1551
+
1552
+ /**
1553
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
1554
+ * overrides the amount set in the Config trait.
1555
+ *
1556
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
1557
+ **/
1558
+ reservedXcmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
1559
+
1560
+ /**
1561
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
1562
+ * overrides the amount set in the Config trait.
1563
+ *
1564
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
1565
+ **/
1566
+ reservedDmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
1567
+
1568
+ /**
1569
+ * A custom head data that should be returned as result of `validate_block`.
1570
+ *
1571
+ * See `Pallet::set_custom_validation_head_data` for more information.
1572
+ *
1573
+ * @param {Callback<Bytes | undefined> =} callback
1574
+ **/
1575
+ customValidationHeadData: GenericStorageQuery<Rv, () => Bytes | undefined>;
1576
+
1577
+ /**
1578
+ * Generic pallet storage query
1579
+ **/
1580
+ [storage: string]: GenericStorageQuery<Rv>;
1581
+ };
1582
+ /**
1583
+ * Pallet `ParachainInfo`'s storage queries
1584
+ **/
1585
+ parachainInfo: {
1586
+ /**
1587
+ *
1588
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
1589
+ **/
1590
+ parachainId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
1591
+
1592
+ /**
1593
+ * Generic pallet storage query
1594
+ **/
1595
+ [storage: string]: GenericStorageQuery<Rv>;
1596
+ };
1597
+ /**
1598
+ * Pallet `PolkadotXcm`'s storage queries
1599
+ **/
1600
+ polkadotXcm: {
1601
+ /**
1602
+ * The latest available query index.
1603
+ *
1604
+ * @param {Callback<bigint> =} callback
1605
+ **/
1606
+ queryCounter: GenericStorageQuery<Rv, () => bigint>;
1607
+
1608
+ /**
1609
+ * The ongoing queries.
1610
+ *
1611
+ * @param {bigint} arg
1612
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
1613
+ **/
1614
+ queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
1615
+
1616
+ /**
1617
+ * The existing asset traps.
1618
+ *
1619
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
1620
+ * times this pair has been trapped (usually just 1 if it exists at all).
1621
+ *
1622
+ * @param {H256} arg
1623
+ * @param {Callback<number> =} callback
1624
+ **/
1625
+ assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
1626
+
1627
+ /**
1628
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
1629
+ * then the destinations whose XCM version is unknown are considered unreachable.
1630
+ *
1631
+ * @param {Callback<number | undefined> =} callback
1632
+ **/
1633
+ safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
1634
+
1635
+ /**
1636
+ * The Latest versions that we know various locations support.
1637
+ *
1638
+ * @param {[number, XcmVersionedLocation]} arg
1639
+ * @param {Callback<number | undefined> =} callback
1640
+ **/
1641
+ supportedVersion: GenericStorageQuery<
1642
+ Rv,
1643
+ (arg: [number, XcmVersionedLocation]) => number | undefined,
1644
+ [number, XcmVersionedLocation]
1645
+ >;
1646
+
1647
+ /**
1648
+ * All locations that we have requested version notifications from.
1649
+ *
1650
+ * @param {[number, XcmVersionedLocation]} arg
1651
+ * @param {Callback<bigint | undefined> =} callback
1652
+ **/
1653
+ versionNotifiers: GenericStorageQuery<
1654
+ Rv,
1655
+ (arg: [number, XcmVersionedLocation]) => bigint | undefined,
1656
+ [number, XcmVersionedLocation]
1657
+ >;
1658
+
1659
+ /**
1660
+ * The target locations that are subscribed to our version changes, as well as the most recent
1661
+ * of our versions we informed them of.
1662
+ *
1663
+ * @param {[number, XcmVersionedLocation]} arg
1664
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
1665
+ **/
1666
+ versionNotifyTargets: GenericStorageQuery<
1667
+ Rv,
1668
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
1669
+ [number, XcmVersionedLocation]
1670
+ >;
1671
+
1672
+ /**
1673
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
1674
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
1675
+ * which is used as a prioritization.
1676
+ *
1677
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
1678
+ **/
1679
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
1680
+
1681
+ /**
1682
+ * The current migration's stage, if any.
1683
+ *
1684
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
1685
+ **/
1686
+ currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
1687
+
1688
+ /**
1689
+ * Fungible assets which we know are locked on a remote chain.
1690
+ *
1691
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
1692
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1693
+ **/
1694
+ remoteLockedFungibles: GenericStorageQuery<
1695
+ Rv,
1696
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
1697
+ [number, AccountId32, XcmVersionedAssetId]
1698
+ >;
1699
+
1700
+ /**
1701
+ * Fungible assets which we know are locked on this chain.
1702
+ *
1703
+ * @param {AccountId32Like} arg
1704
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
1705
+ **/
1706
+ lockedFungibles: GenericStorageQuery<
1707
+ Rv,
1708
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
1709
+ AccountId32
1710
+ >;
1711
+
1712
+ /**
1713
+ * Global suspension state of the XCM executor.
1714
+ *
1715
+ * @param {Callback<boolean> =} callback
1716
+ **/
1717
+ xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
1718
+
1719
+ /**
1720
+ * Whether or not incoming XCMs (both executed locally and received) should be recorded.
1721
+ * Only one XCM program will be recorded at a time.
1722
+ * This is meant to be used in runtime APIs, and it's advised it stays false
1723
+ * for all other use cases, so as to not degrade regular performance.
1724
+ *
1725
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1726
+ * implementation in the XCM executor configuration.
1727
+ *
1728
+ * @param {Callback<boolean> =} callback
1729
+ **/
1730
+ shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
1731
+
1732
+ /**
1733
+ * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
1734
+ * will be stored here.
1735
+ * Runtime APIs can fetch the XCM that was executed by accessing this value.
1736
+ *
1737
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1738
+ * implementation in the XCM executor configuration.
1739
+ *
1740
+ * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
1741
+ **/
1742
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
1743
+
1744
+ /**
1745
+ * Generic pallet storage query
1746
+ **/
1747
+ [storage: string]: GenericStorageQuery<Rv>;
1748
+ };
1749
+ /**
1750
+ * Pallet `XcmpQueue`'s storage queries
1751
+ **/
1752
+ xcmpQueue: {
1753
+ /**
1754
+ * The suspended inbound XCMP channels. All others are not suspended.
1755
+ *
1756
+ * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
1757
+ * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
1758
+ * within the block and therefore only included once in the proof size.
1759
+ *
1760
+ * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
1761
+ * will be smaller.
1762
+ *
1763
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
1764
+ **/
1765
+ inboundXcmpSuspended: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
1766
+
1767
+ /**
1768
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
1769
+ * and last outbound message. If the two indices are equal, then it indicates an empty
1770
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
1771
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
1772
+ * case of the need to send a high-priority signal message this block.
1773
+ * The bool is true if there is a signal message waiting to be sent.
1774
+ *
1775
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
1776
+ **/
1777
+ outboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
1778
+
1779
+ /**
1780
+ * The messages outbound in a given XCMP channel.
1781
+ *
1782
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
1783
+ * @param {Callback<Bytes> =} callback
1784
+ **/
1785
+ outboundXcmpMessages: GenericStorageQuery<
1786
+ Rv,
1787
+ (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
1788
+ [PolkadotParachainPrimitivesPrimitivesId, number]
1789
+ >;
1790
+
1791
+ /**
1792
+ * Any signal messages waiting to be sent.
1793
+ *
1794
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1795
+ * @param {Callback<Bytes> =} callback
1796
+ **/
1797
+ signalMessages: GenericStorageQuery<
1798
+ Rv,
1799
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes,
1800
+ PolkadotParachainPrimitivesPrimitivesId
1801
+ >;
1802
+
1803
+ /**
1804
+ * The configuration which controls the dynamics of the outbound queue.
1805
+ *
1806
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
1807
+ **/
1808
+ queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
1809
+
1810
+ /**
1811
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
1812
+ *
1813
+ * @param {Callback<boolean> =} callback
1814
+ **/
1815
+ queueSuspended: GenericStorageQuery<Rv, () => boolean>;
1816
+
1817
+ /**
1818
+ * The factor to multiply the base delivery fee by.
1819
+ *
1820
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1821
+ * @param {Callback<FixedU128> =} callback
1822
+ **/
1823
+ deliveryFeeFactor: GenericStorageQuery<
1824
+ Rv,
1825
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
1826
+ PolkadotParachainPrimitivesPrimitivesId
1827
+ >;
1828
+
1829
+ /**
1830
+ * Generic pallet storage query
1831
+ **/
1832
+ [storage: string]: GenericStorageQuery<Rv>;
1833
+ };
1834
+ /**
1835
+ * Pallet `MessageQueue`'s storage queries
1836
+ **/
1837
+ messageQueue: {
1838
+ /**
1839
+ * The index of the first and last (non-empty) pages.
1840
+ *
1841
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg
1842
+ * @param {Callback<PalletMessageQueueBookState> =} callback
1843
+ **/
1844
+ bookStateFor: GenericStorageQuery<
1845
+ Rv,
1846
+ (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState,
1847
+ CumulusPrimitivesCoreAggregateMessageOrigin
1848
+ >;
1849
+
1850
+ /**
1851
+ * The origin at which we should begin servicing.
1852
+ *
1853
+ * @param {Callback<CumulusPrimitivesCoreAggregateMessageOrigin | undefined> =} callback
1854
+ **/
1855
+ serviceHead: GenericStorageQuery<Rv, () => CumulusPrimitivesCoreAggregateMessageOrigin | undefined>;
1856
+
1857
+ /**
1858
+ * The map of page indices to pages.
1859
+ *
1860
+ * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg
1861
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
1862
+ **/
1863
+ pages: GenericStorageQuery<
1864
+ Rv,
1865
+ (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
1866
+ [CumulusPrimitivesCoreAggregateMessageOrigin, number]
1867
+ >;
1868
+
1869
+ /**
1870
+ * Generic pallet storage query
1871
+ **/
1872
+ [storage: string]: GenericStorageQuery<Rv>;
1873
+ };
1874
+ /**
1875
+ * Pallet `AssetRegistry`'s storage queries
1876
+ **/
1877
+ assetRegistry: {
1878
+ /**
1879
+ * Details of an asset.
1880
+ *
1881
+ * @param {number} arg
1882
+ * @param {Callback<PalletAssetRegistryAssetDetails | undefined> =} callback
1883
+ **/
1884
+ assets: GenericStorageQuery<Rv, (arg: number) => PalletAssetRegistryAssetDetails | undefined, number>;
1885
+
1886
+ /**
1887
+ * Next available asset id. This is sequential id assigned for each new registered asset.
1888
+ *
1889
+ * @param {Callback<number> =} callback
1890
+ **/
1891
+ nextAssetId: GenericStorageQuery<Rv, () => number>;
1892
+
1893
+ /**
1894
+ * Mapping between asset name and asset id.
1895
+ *
1896
+ * @param {BytesLike} arg
1897
+ * @param {Callback<number | undefined> =} callback
1898
+ **/
1899
+ assetIds: GenericStorageQuery<Rv, (arg: BytesLike) => number | undefined, Bytes>;
1900
+
1901
+ /**
1902
+ * Native location of an asset.
1903
+ *
1904
+ * @param {number} arg
1905
+ * @param {Callback<BasiliskRuntimeXcmAssetLocation | undefined> =} callback
1906
+ **/
1907
+ assetLocations: GenericStorageQuery<Rv, (arg: number) => BasiliskRuntimeXcmAssetLocation | undefined, number>;
1908
+
1909
+ /**
1910
+ * Local asset for native location.
1911
+ *
1912
+ * @param {BasiliskRuntimeXcmAssetLocation} arg
1913
+ * @param {Callback<number | undefined> =} callback
1914
+ **/
1915
+ locationAssets: GenericStorageQuery<
1916
+ Rv,
1917
+ (arg: BasiliskRuntimeXcmAssetLocation) => number | undefined,
1918
+ BasiliskRuntimeXcmAssetLocation
1919
+ >;
1920
+
1921
+ /**
1922
+ * Metadata of an asset.
1923
+ *
1924
+ * @param {number} arg
1925
+ * @param {Callback<PalletAssetRegistryAssetMetadata | undefined> =} callback
1926
+ **/
1927
+ assetMetadataMap: GenericStorageQuery<Rv, (arg: number) => PalletAssetRegistryAssetMetadata | undefined, number>;
1928
+
1929
+ /**
1930
+ * Generic pallet storage query
1931
+ **/
1932
+ [storage: string]: GenericStorageQuery<Rv>;
1933
+ };
1934
+ /**
1935
+ * Pallet `XYK`'s storage queries
1936
+ **/
1937
+ xyk: {
1938
+ /**
1939
+ * Asset id storage for shared pool tokens
1940
+ *
1941
+ * @param {AccountId32Like} arg
1942
+ * @param {Callback<number> =} callback
1943
+ **/
1944
+ shareToken: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
1945
+
1946
+ /**
1947
+ * Total liquidity in a pool.
1948
+ *
1949
+ * @param {AccountId32Like} arg
1950
+ * @param {Callback<bigint> =} callback
1951
+ **/
1952
+ totalLiquidity: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint, AccountId32>;
1953
+
1954
+ /**
1955
+ * Asset pair in a pool.
1956
+ *
1957
+ * @param {AccountId32Like} arg
1958
+ * @param {Callback<[number, number] | undefined> =} callback
1959
+ **/
1960
+ poolAssets: GenericStorageQuery<Rv, (arg: AccountId32Like) => [number, number] | undefined, AccountId32>;
1961
+
1962
+ /**
1963
+ * Generic pallet storage query
1964
+ **/
1965
+ [storage: string]: GenericStorageQuery<Rv>;
1966
+ };
1967
+ /**
1968
+ * Pallet `Duster`'s storage queries
1969
+ **/
1970
+ duster: {
1971
+ /**
1972
+ * Accounts excluded from dusting.
1973
+ *
1974
+ * @param {AccountId32Like} arg
1975
+ * @param {Callback<[] | undefined> =} callback
1976
+ **/
1977
+ accountBlacklist: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
1978
+
1979
+ /**
1980
+ * Account to take reward from.
1981
+ *
1982
+ * @param {Callback<AccountId32 | undefined> =} callback
1983
+ **/
1984
+ rewardAccount: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1985
+
1986
+ /**
1987
+ * Account to send dust to.
1988
+ *
1989
+ * @param {Callback<AccountId32 | undefined> =} callback
1990
+ **/
1991
+ dustAccount: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1992
+
1993
+ /**
1994
+ * Generic pallet storage query
1995
+ **/
1996
+ [storage: string]: GenericStorageQuery<Rv>;
1997
+ };
1998
+ /**
1999
+ * Pallet `LBP`'s storage queries
2000
+ **/
2001
+ lbp: {
2002
+ /**
2003
+ * Details of a pool.
2004
+ *
2005
+ * @param {AccountId32Like} arg
2006
+ * @param {Callback<PalletLbpPool | undefined> =} callback
2007
+ **/
2008
+ poolData: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletLbpPool | undefined, AccountId32>;
2009
+
2010
+ /**
2011
+ * Storage used for tracking existing fee collectors
2012
+ * Not more than one fee collector per asset possible
2013
+ *
2014
+ * @param {[AccountId32Like, number]} arg
2015
+ * @param {Callback<boolean> =} callback
2016
+ **/
2017
+ feeCollectorWithAsset: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => boolean, [AccountId32, number]>;
2018
+
2019
+ /**
2020
+ * Generic pallet storage query
2021
+ **/
2022
+ [storage: string]: GenericStorageQuery<Rv>;
2023
+ };
2024
+ /**
2025
+ * Pallet `NFT`'s storage queries
2026
+ **/
2027
+ nft: {
2028
+ /**
2029
+ * Stores collection info
2030
+ *
2031
+ * @param {bigint} arg
2032
+ * @param {Callback<PalletNftCollectionInfo | undefined> =} callback
2033
+ **/
2034
+ collections: GenericStorageQuery<Rv, (arg: bigint) => PalletNftCollectionInfo | undefined, bigint>;
2035
+
2036
+ /**
2037
+ * Stores item info
2038
+ *
2039
+ * @param {[bigint, bigint]} arg
2040
+ * @param {Callback<PalletNftItemInfo | undefined> =} callback
2041
+ **/
2042
+ items: GenericStorageQuery<Rv, (arg: [bigint, bigint]) => PalletNftItemInfo | undefined, [bigint, bigint]>;
2043
+
2044
+ /**
2045
+ * Generic pallet storage query
2046
+ **/
2047
+ [storage: string]: GenericStorageQuery<Rv>;
2048
+ };
2049
+ /**
2050
+ * Pallet `Marketplace`'s storage queries
2051
+ **/
2052
+ marketplace: {
2053
+ /**
2054
+ * Stores token info
2055
+ *
2056
+ * @param {[bigint, bigint]} arg
2057
+ * @param {Callback<bigint | undefined> =} callback
2058
+ **/
2059
+ prices: GenericStorageQuery<Rv, (arg: [bigint, bigint]) => bigint | undefined, [bigint, bigint]>;
2060
+
2061
+ /**
2062
+ * Stores offer info
2063
+ *
2064
+ * @param {[[bigint, bigint], AccountId32Like]} arg
2065
+ * @param {Callback<PalletMarketplaceOffer | undefined> =} callback
2066
+ **/
2067
+ offers: GenericStorageQuery<
2068
+ Rv,
2069
+ (arg: [[bigint, bigint], AccountId32Like]) => PalletMarketplaceOffer | undefined,
2070
+ [[bigint, bigint], AccountId32]
2071
+ >;
2072
+
2073
+ /**
2074
+ * Stores Marketplace info
2075
+ *
2076
+ * @param {[bigint, bigint]} arg
2077
+ * @param {Callback<PalletMarketplaceRoyalty | undefined> =} callback
2078
+ **/
2079
+ marketplaceItems: GenericStorageQuery<
2080
+ Rv,
2081
+ (arg: [bigint, bigint]) => PalletMarketplaceRoyalty | undefined,
2082
+ [bigint, bigint]
2083
+ >;
2084
+
2085
+ /**
2086
+ * Generic pallet storage query
2087
+ **/
2088
+ [storage: string]: GenericStorageQuery<Rv>;
2089
+ };
2090
+ /**
2091
+ * Pallet `TransactionPause`'s storage queries
2092
+ **/
2093
+ transactionPause: {
2094
+ /**
2095
+ * The paused transaction map
2096
+ *
2097
+ * map (PalletNameBytes, FunctionNameBytes) => Option<()>
2098
+ *
2099
+ * @param {[BytesLike, BytesLike]} arg
2100
+ * @param {Callback<[] | undefined> =} callback
2101
+ **/
2102
+ pausedTransactions: GenericStorageQuery<Rv, (arg: [BytesLike, BytesLike]) => [] | undefined, [Bytes, Bytes]>;
2103
+
2104
+ /**
2105
+ * Generic pallet storage query
2106
+ **/
2107
+ [storage: string]: GenericStorageQuery<Rv>;
2108
+ };
2109
+ /**
2110
+ * Pallet `Router`'s storage queries
2111
+ **/
2112
+ router: {
2113
+ /**
2114
+ * Flag to indicate when to skip ED handling
2115
+ *
2116
+ * @param {Callback<PalletRouteExecutorSkipEd | undefined> =} callback
2117
+ **/
2118
+ skipEd: GenericStorageQuery<Rv, () => PalletRouteExecutorSkipEd | undefined>;
2119
+
2120
+ /**
2121
+ * Storing routes for asset pairs
2122
+ *
2123
+ * @param {HydradxTraitsRouterAssetPair} arg
2124
+ * @param {Callback<Array<HydradxTraitsRouterTrade> | undefined> =} callback
2125
+ **/
2126
+ routes: GenericStorageQuery<
2127
+ Rv,
2128
+ (arg: HydradxTraitsRouterAssetPair) => Array<HydradxTraitsRouterTrade> | undefined,
2129
+ HydradxTraitsRouterAssetPair
2130
+ >;
2131
+
2132
+ /**
2133
+ * Generic pallet storage query
2134
+ **/
2135
+ [storage: string]: GenericStorageQuery<Rv>;
2136
+ };
2137
+ /**
2138
+ * Pallet `XYKWarehouseLM`'s storage queries
2139
+ **/
2140
+ xykWarehouseLM: {
2141
+ /**
2142
+ * Id sequencer for `GlobalFarm` and `YieldFarm`.
2143
+ *
2144
+ * @param {Callback<number> =} callback
2145
+ **/
2146
+ farmSequencer: GenericStorageQuery<Rv, () => number>;
2147
+
2148
+ /**
2149
+ *
2150
+ * @param {Callback<bigint> =} callback
2151
+ **/
2152
+ depositSequencer: GenericStorageQuery<Rv, () => bigint>;
2153
+
2154
+ /**
2155
+ *
2156
+ * @param {number} arg
2157
+ * @param {Callback<PalletLiquidityMiningGlobalFarmData | undefined> =} callback
2158
+ **/
2159
+ globalFarm: GenericStorageQuery<Rv, (arg: number) => PalletLiquidityMiningGlobalFarmData | undefined, number>;
2160
+
2161
+ /**
2162
+ * Yield farm details.
2163
+ *
2164
+ * @param {[AccountId32Like, number, number]} arg
2165
+ * @param {Callback<PalletLiquidityMiningYieldFarmData | undefined> =} callback
2166
+ **/
2167
+ yieldFarm: GenericStorageQuery<
2168
+ Rv,
2169
+ (arg: [AccountId32Like, number, number]) => PalletLiquidityMiningYieldFarmData | undefined,
2170
+ [AccountId32, number, number]
2171
+ >;
2172
+
2173
+ /**
2174
+ * Deposit details.
2175
+ *
2176
+ * @param {bigint} arg
2177
+ * @param {Callback<PalletLiquidityMiningDepositData | undefined> =} callback
2178
+ **/
2179
+ deposit: GenericStorageQuery<Rv, (arg: bigint) => PalletLiquidityMiningDepositData | undefined, bigint>;
2180
+
2181
+ /**
2182
+ * Active(farms able to receive LP shares deposits) yield farms.
2183
+ *
2184
+ * @param {[AccountId32Like, number]} arg
2185
+ * @param {Callback<number | undefined> =} callback
2186
+ **/
2187
+ activeYieldFarm: GenericStorageQuery<
2188
+ Rv,
2189
+ (arg: [AccountId32Like, number]) => number | undefined,
2190
+ [AccountId32, number]
2191
+ >;
2192
+
2193
+ /**
2194
+ * Generic pallet storage query
2195
+ **/
2196
+ [storage: string]: GenericStorageQuery<Rv>;
2197
+ };
2198
+ /**
2199
+ * Pallet `CollatorRewards`'s storage queries
2200
+ **/
2201
+ collatorRewards: {
2202
+ /**
2203
+ * Stores the collators per session (index).
2204
+ *
2205
+ * @param {number} arg
2206
+ * @param {Callback<Array<AccountId32>> =} callback
2207
+ **/
2208
+ collators: GenericStorageQuery<Rv, (arg: number) => Array<AccountId32>, number>;
2209
+
2210
+ /**
2211
+ * Generic pallet storage query
2212
+ **/
2213
+ [storage: string]: GenericStorageQuery<Rv>;
2214
+ };
2215
+ /**
2216
+ * Pallet `Broadcast`'s storage queries
2217
+ **/
2218
+ broadcast: {
2219
+ /**
2220
+ * Next available incremental ID
2221
+ *
2222
+ * @param {Callback<number> =} callback
2223
+ **/
2224
+ incrementalId: GenericStorageQuery<Rv, () => number>;
2225
+
2226
+ /**
2227
+ * Execution context to figure out where the trade is originated from
2228
+ *
2229
+ * @param {Callback<Array<PalletBroadcastExecutionType>> =} callback
2230
+ **/
2231
+ executionContext: GenericStorageQuery<Rv, () => Array<PalletBroadcastExecutionType>>;
2232
+
2233
+ /**
2234
+ * To handle the overflow of increasing the execution context.
2235
+ * After the stack is full, we start to increase the overflow count,
2236
+ * so we how many times we can ignore the removal from the context.
2237
+ *
2238
+ * @param {Callback<number> =} callback
2239
+ **/
2240
+ overflowCount: GenericStorageQuery<Rv, () => number>;
2241
+
2242
+ /**
2243
+ * Generic pallet storage query
2244
+ **/
2245
+ [storage: string]: GenericStorageQuery<Rv>;
2246
+ };
2247
+ /**
2248
+ * Pallet `EmaOracle`'s storage queries
2249
+ **/
2250
+ emaOracle: {
2251
+ /**
2252
+ * Accumulator for oracle data in current block that will be recorded at the end of the block.
2253
+ *
2254
+ * @param {Callback<Array<[[FixedBytes<8>, [number, number]], PalletEmaOracleOracleEntry]>> =} callback
2255
+ **/
2256
+ accumulator: GenericStorageQuery<Rv, () => Array<[[FixedBytes<8>, [number, number]], PalletEmaOracleOracleEntry]>>;
2257
+
2258
+ /**
2259
+ * Oracle storage keyed by data source, involved asset ids and the period length of the oracle.
2260
+ *
2261
+ * Stores the data entry as well as the block number when the oracle was first initialized.
2262
+ *
2263
+ * @param {[FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod]} arg
2264
+ * @param {Callback<[PalletEmaOracleOracleEntry, number] | undefined> =} callback
2265
+ **/
2266
+ oracles: GenericStorageQuery<
2267
+ Rv,
2268
+ (
2269
+ arg: [FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod],
2270
+ ) => [PalletEmaOracleOracleEntry, number] | undefined,
2271
+ [FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod]
2272
+ >;
2273
+
2274
+ /**
2275
+ * Assets that are whitelisted and tracked by the pallet.
2276
+ *
2277
+ * @param {Callback<Array<[FixedBytes<8>, [number, number]]>> =} callback
2278
+ **/
2279
+ whitelistedAssets: GenericStorageQuery<Rv, () => Array<[FixedBytes<8>, [number, number]]>>;
2280
+
2281
+ /**
2282
+ * Generic pallet storage query
2283
+ **/
2284
+ [storage: string]: GenericStorageQuery<Rv>;
2285
+ };
2286
+ /**
2287
+ * Pallet `Tokens`'s storage queries
2288
+ **/
2289
+ tokens: {
2290
+ /**
2291
+ * The total issuance of a token type.
2292
+ *
2293
+ * @param {number} arg
2294
+ * @param {Callback<bigint> =} callback
2295
+ **/
2296
+ totalIssuance: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
2297
+
2298
+ /**
2299
+ * Any liquidity locks of a token type under an account.
2300
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
2301
+ *
2302
+ * @param {[AccountId32Like, number]} arg
2303
+ * @param {Callback<Array<OrmlTokensBalanceLock>> =} callback
2304
+ **/
2305
+ locks: GenericStorageQuery<
2306
+ Rv,
2307
+ (arg: [AccountId32Like, number]) => Array<OrmlTokensBalanceLock>,
2308
+ [AccountId32, number]
2309
+ >;
2310
+
2311
+ /**
2312
+ * The balance of a token type under an account.
2313
+ *
2314
+ * NOTE: If the total is ever zero, decrease account ref account.
2315
+ *
2316
+ * NOTE: This is only used in the case that this module is used to store
2317
+ * balances.
2318
+ *
2319
+ * @param {[AccountId32Like, number]} arg
2320
+ * @param {Callback<OrmlTokensAccountData> =} callback
2321
+ **/
2322
+ accounts: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => OrmlTokensAccountData, [AccountId32, number]>;
2323
+
2324
+ /**
2325
+ * Named reserves on some account balances.
2326
+ *
2327
+ * @param {[AccountId32Like, number]} arg
2328
+ * @param {Callback<Array<OrmlTokensReserveData>> =} callback
2329
+ **/
2330
+ reserves: GenericStorageQuery<
2331
+ Rv,
2332
+ (arg: [AccountId32Like, number]) => Array<OrmlTokensReserveData>,
2333
+ [AccountId32, number]
2334
+ >;
2335
+
2336
+ /**
2337
+ * Generic pallet storage query
2338
+ **/
2339
+ [storage: string]: GenericStorageQuery<Rv>;
2340
+ };
2341
+ /**
2342
+ * Pallet `UnknownTokens`'s storage queries
2343
+ **/
2344
+ unknownTokens: {
2345
+ /**
2346
+ * Concrete fungible balances under a given location and a concrete
2347
+ * fungible id.
2348
+ *
2349
+ * double_map: who, asset_id => u128
2350
+ *
2351
+ * @param {[StagingXcmV4Location, StagingXcmV4Location]} arg
2352
+ * @param {Callback<bigint> =} callback
2353
+ **/
2354
+ concreteFungibleBalances: GenericStorageQuery<
2355
+ Rv,
2356
+ (arg: [StagingXcmV4Location, StagingXcmV4Location]) => bigint,
2357
+ [StagingXcmV4Location, StagingXcmV4Location]
2358
+ >;
2359
+
2360
+ /**
2361
+ * Abstract fungible balances under a given location and a abstract
2362
+ * fungible id.
2363
+ *
2364
+ * double_map: who, asset_id => u128
2365
+ *
2366
+ * @param {[StagingXcmV4Location, BytesLike]} arg
2367
+ * @param {Callback<bigint> =} callback
2368
+ **/
2369
+ abstractFungibleBalances: GenericStorageQuery<
2370
+ Rv,
2371
+ (arg: [StagingXcmV4Location, BytesLike]) => bigint,
2372
+ [StagingXcmV4Location, Bytes]
2373
+ >;
2374
+
2375
+ /**
2376
+ * Generic pallet storage query
2377
+ **/
2378
+ [storage: string]: GenericStorageQuery<Rv>;
2379
+ };
2380
+ }