@dedot/chaintypes 0.4.0 → 0.6.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.
Files changed (46) hide show
  1. package/kusama-asset-hub/consts.d.ts +765 -0
  2. package/kusama-asset-hub/errors.d.ts +1529 -0
  3. package/kusama-asset-hub/events.d.ts +2443 -0
  4. package/kusama-asset-hub/index.d.ts +27 -0
  5. package/kusama-asset-hub/json-rpc.d.ts +90 -0
  6. package/kusama-asset-hub/query.d.ts +1677 -0
  7. package/kusama-asset-hub/runtime.d.ts +555 -0
  8. package/kusama-asset-hub/tx.d.ts +6364 -0
  9. package/kusama-asset-hub/types.d.ts +6921 -0
  10. package/package.json +3 -3
  11. package/polkadot-asset-hub/consts.d.ts +730 -0
  12. package/polkadot-asset-hub/errors.d.ts +1500 -0
  13. package/polkadot-asset-hub/events.d.ts +2414 -0
  14. package/polkadot-asset-hub/index.d.ts +27 -0
  15. package/polkadot-asset-hub/json-rpc.d.ts +90 -0
  16. package/polkadot-asset-hub/query.d.ts +1655 -0
  17. package/polkadot-asset-hub/runtime.d.ts +558 -0
  18. package/polkadot-asset-hub/tx.d.ts +6293 -0
  19. package/polkadot-asset-hub/types.d.ts +6829 -0
  20. package/rococo-asset-hub/consts.d.ts +835 -0
  21. package/rococo-asset-hub/errors.d.ts +1590 -0
  22. package/rococo-asset-hub/events.d.ts +2573 -0
  23. package/rococo-asset-hub/index.d.ts +27 -0
  24. package/rococo-asset-hub/json-rpc.d.ts +90 -0
  25. package/rococo-asset-hub/query.d.ts +1829 -0
  26. package/rococo-asset-hub/runtime.d.ts +726 -0
  27. package/rococo-asset-hub/tx.d.ts +9011 -0
  28. package/rococo-asset-hub/types.d.ts +12431 -0
  29. package/westend-asset-hub/consts.d.ts +869 -0
  30. package/westend-asset-hub/errors.d.ts +1635 -0
  31. package/westend-asset-hub/events.d.ts +2610 -0
  32. package/westend-asset-hub/index.d.ts +27 -0
  33. package/westend-asset-hub/json-rpc.d.ts +90 -0
  34. package/westend-asset-hub/query.d.ts +1868 -0
  35. package/westend-asset-hub/runtime.d.ts +798 -0
  36. package/westend-asset-hub/tx.d.ts +9199 -0
  37. package/westend-asset-hub/types.d.ts +12661 -0
  38. package/westend-people/consts.d.ts +434 -0
  39. package/westend-people/errors.d.ts +769 -0
  40. package/westend-people/events.d.ts +1082 -0
  41. package/westend-people/index.d.ts +27 -0
  42. package/westend-people/json-rpc.d.ts +89 -0
  43. package/westend-people/query.d.ts +1209 -0
  44. package/westend-people/runtime.d.ts +636 -0
  45. package/westend-people/tx.d.ts +2891 -0
  46. package/westend-people/types.d.ts +4984 -0
@@ -0,0 +1,1829 @@
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
+ FixedBytes,
14
+ } from 'dedot/codecs';
15
+ import type {
16
+ FrameSystemAccountInfo,
17
+ FrameSupportDispatchPerDispatchClass,
18
+ FrameSystemEventRecord,
19
+ FrameSystemLastRuntimeUpgradeInfo,
20
+ FrameSystemCodeUpgradeAuthorization,
21
+ CumulusPalletParachainSystemUnincludedSegmentAncestor,
22
+ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
23
+ PolkadotPrimitivesV7PersistedValidationData,
24
+ PolkadotPrimitivesV7UpgradeRestriction,
25
+ PolkadotPrimitivesV7UpgradeGoAhead,
26
+ SpTrieStorageProof,
27
+ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
28
+ PolkadotPrimitivesV7AbridgedHostConfiguration,
29
+ CumulusPrimitivesParachainInherentMessageQueueChain,
30
+ PolkadotParachainPrimitivesPrimitivesId,
31
+ PolkadotCorePrimitivesOutboundHrmpMessage,
32
+ SpWeightsWeightV2Weight,
33
+ PalletBalancesAccountData,
34
+ PalletBalancesBalanceLock,
35
+ PalletBalancesReserveData,
36
+ FrameSupportTokensMiscIdAmount,
37
+ FrameSupportTokensMiscIdAmount002,
38
+ PalletTransactionPaymentReleases,
39
+ PalletCollatorSelectionCandidateInfo,
40
+ AssetHubRococoRuntimeSessionKeys,
41
+ SpCoreCryptoKeyTypeId,
42
+ SpConsensusAuraSr25519AppSr25519Public,
43
+ SpConsensusSlotsSlot,
44
+ CumulusPalletXcmpQueueOutboundChannelDetails,
45
+ CumulusPalletXcmpQueueQueueConfigData,
46
+ PalletXcmQueryStatus,
47
+ XcmVersionedLocation,
48
+ PalletXcmVersionMigrationStage,
49
+ PalletXcmRemoteLockedFungibleRecord,
50
+ XcmVersionedAssetId,
51
+ StagingXcmV4Xcm,
52
+ PalletMessageQueueBookState,
53
+ CumulusPrimitivesCoreAggregateMessageOrigin,
54
+ PalletMessageQueuePage,
55
+ PalletMultisigMultisig,
56
+ PalletProxyProxyDefinition,
57
+ PalletProxyAnnouncement,
58
+ BpXcmBridgeHubRouterBridgeState,
59
+ PalletAssetsAssetDetails,
60
+ PalletAssetsAssetAccount,
61
+ PalletAssetsApproval,
62
+ PalletAssetsAssetMetadata,
63
+ PalletUniquesCollectionDetails,
64
+ PalletUniquesItemDetails,
65
+ PalletUniquesCollectionMetadata,
66
+ PalletUniquesItemMetadata,
67
+ PalletNftsCollectionDetails,
68
+ PalletNftsBitFlagsCollectionRole,
69
+ PalletNftsItemDetails,
70
+ PalletNftsCollectionMetadata,
71
+ PalletNftsItemMetadata,
72
+ PalletNftsAttributeDeposit,
73
+ PalletNftsAttributeNamespace,
74
+ PalletNftsPendingSwap,
75
+ PalletNftsCollectionConfig,
76
+ PalletNftsItemConfig,
77
+ StagingXcmV3MultilocationMultiLocation,
78
+ PalletNftFractionalizationDetails,
79
+ PalletAssetConversionPoolInfo,
80
+ FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
81
+ } from './types';
82
+
83
+ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
84
+ /**
85
+ * Pallet `System`'s storage queries
86
+ **/
87
+ system: {
88
+ /**
89
+ * The full account information for a particular account ID.
90
+ *
91
+ * @param {AccountId32Like} arg
92
+ * @param {Callback<FrameSystemAccountInfo> =} callback
93
+ **/
94
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
95
+
96
+ /**
97
+ * Total extrinsics count for the current block.
98
+ *
99
+ * @param {Callback<number | undefined> =} callback
100
+ **/
101
+ extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
102
+
103
+ /**
104
+ * Whether all inherents have been applied.
105
+ *
106
+ * @param {Callback<boolean> =} callback
107
+ **/
108
+ inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
109
+
110
+ /**
111
+ * The current weight for the block.
112
+ *
113
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
114
+ **/
115
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
116
+
117
+ /**
118
+ * Total length (in bytes) for all extrinsics put together, for the current block.
119
+ *
120
+ * @param {Callback<number | undefined> =} callback
121
+ **/
122
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
123
+
124
+ /**
125
+ * Map of block numbers to block hashes.
126
+ *
127
+ * @param {number} arg
128
+ * @param {Callback<H256> =} callback
129
+ **/
130
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
131
+
132
+ /**
133
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
134
+ *
135
+ * @param {number} arg
136
+ * @param {Callback<Bytes> =} callback
137
+ **/
138
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
139
+
140
+ /**
141
+ * The current block number being processed. Set by `execute_block`.
142
+ *
143
+ * @param {Callback<number> =} callback
144
+ **/
145
+ number: GenericStorageQuery<Rv, () => number>;
146
+
147
+ /**
148
+ * Hash of the previous block.
149
+ *
150
+ * @param {Callback<H256> =} callback
151
+ **/
152
+ parentHash: GenericStorageQuery<Rv, () => H256>;
153
+
154
+ /**
155
+ * Digest of the current block, also part of the block header.
156
+ *
157
+ * @param {Callback<Digest> =} callback
158
+ **/
159
+ digest: GenericStorageQuery<Rv, () => Digest>;
160
+
161
+ /**
162
+ * Events deposited for the current block.
163
+ *
164
+ * NOTE: The item is unbound and should therefore never be read on chain.
165
+ * It could otherwise inflate the PoV size of a block.
166
+ *
167
+ * Events have a large in-memory size. Box the events to not go out-of-memory
168
+ * just in case someone still reads them from within the runtime.
169
+ *
170
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
171
+ **/
172
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
173
+
174
+ /**
175
+ * The number of events in the `Events<T>` list.
176
+ *
177
+ * @param {Callback<number> =} callback
178
+ **/
179
+ eventCount: GenericStorageQuery<Rv, () => number>;
180
+
181
+ /**
182
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
183
+ * of events in the `<Events<T>>` list.
184
+ *
185
+ * All topic vectors have deterministic storage locations depending on the topic. This
186
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
187
+ * in case of changes fetch the list of events of interest.
188
+ *
189
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
190
+ * the `EventIndex` then in case if the topic has the same contents on the next block
191
+ * no notification will be triggered thus the event might be lost.
192
+ *
193
+ * @param {H256} arg
194
+ * @param {Callback<Array<[number, number]>> =} callback
195
+ **/
196
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
197
+
198
+ /**
199
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
200
+ *
201
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
202
+ **/
203
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
204
+
205
+ /**
206
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
207
+ *
208
+ * @param {Callback<boolean> =} callback
209
+ **/
210
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
211
+
212
+ /**
213
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
214
+ * (default) if not.
215
+ *
216
+ * @param {Callback<boolean> =} callback
217
+ **/
218
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
219
+
220
+ /**
221
+ * The execution phase of the block.
222
+ *
223
+ * @param {Callback<Phase | undefined> =} callback
224
+ **/
225
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
226
+
227
+ /**
228
+ * `Some` if a code upgrade has been authorized.
229
+ *
230
+ * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
231
+ **/
232
+ authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
233
+
234
+ /**
235
+ * Generic pallet storage query
236
+ **/
237
+ [storage: string]: GenericStorageQuery<Rv>;
238
+ };
239
+ /**
240
+ * Pallet `ParachainSystem`'s storage queries
241
+ **/
242
+ parachainSystem: {
243
+ /**
244
+ * Latest included block descendants the runtime accepted. In other words, these are
245
+ * ancestors of the currently executing block which have not been included in the observed
246
+ * relay-chain state.
247
+ *
248
+ * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
249
+ * in the pallet.
250
+ *
251
+ * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
252
+ **/
253
+ unincludedSegment: GenericStorageQuery<Rv, () => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
254
+
255
+ /**
256
+ * Storage field that keeps track of bandwidth used by the unincluded segment along with the
257
+ * latest HRMP watermark. Used for limiting the acceptance of new blocks with
258
+ * respect to relay chain constraints.
259
+ *
260
+ * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
261
+ **/
262
+ aggregatedUnincludedSegment: GenericStorageQuery<
263
+ Rv,
264
+ () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
265
+ >;
266
+
267
+ /**
268
+ * In case of a scheduled upgrade, this storage field contains the validation code to be
269
+ * applied.
270
+ *
271
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
272
+ * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
273
+ * with the new validation code. This concludes the upgrade process.
274
+ *
275
+ * @param {Callback<Bytes> =} callback
276
+ **/
277
+ pendingValidationCode: GenericStorageQuery<Rv, () => Bytes>;
278
+
279
+ /**
280
+ * Validation code that is set by the parachain and is to be communicated to collator and
281
+ * consequently the relay-chain.
282
+ *
283
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
284
+ * the value.
285
+ *
286
+ * @param {Callback<Bytes | undefined> =} callback
287
+ **/
288
+ newValidationCode: GenericStorageQuery<Rv, () => Bytes | undefined>;
289
+
290
+ /**
291
+ * The [`PersistedValidationData`] set for this block.
292
+ * This value is expected to be set only once per block and it's never stored
293
+ * in the trie.
294
+ *
295
+ * @param {Callback<PolkadotPrimitivesV7PersistedValidationData | undefined> =} callback
296
+ **/
297
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7PersistedValidationData | undefined>;
298
+
299
+ /**
300
+ * Were the validation data set to notify the relay chain?
301
+ *
302
+ * @param {Callback<boolean> =} callback
303
+ **/
304
+ didSetValidationCode: GenericStorageQuery<Rv, () => boolean>;
305
+
306
+ /**
307
+ * The relay chain block number associated with the last parachain block.
308
+ *
309
+ * This is updated in `on_finalize`.
310
+ *
311
+ * @param {Callback<number> =} callback
312
+ **/
313
+ lastRelayChainBlockNumber: GenericStorageQuery<Rv, () => number>;
314
+
315
+ /**
316
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
317
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
318
+ * candidate will be invalid.
319
+ *
320
+ * This storage item is a mirror of the corresponding value for the current parachain from the
321
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
322
+ * set after the inherent.
323
+ *
324
+ * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
325
+ **/
326
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeRestriction | undefined>;
327
+
328
+ /**
329
+ * Optional upgrade go-ahead signal from the relay-chain.
330
+ *
331
+ * This storage item is a mirror of the corresponding value for the current parachain from the
332
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
333
+ * set after the inherent.
334
+ *
335
+ * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
336
+ **/
337
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeGoAhead | undefined>;
338
+
339
+ /**
340
+ * The state proof for the last relay parent block.
341
+ *
342
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
343
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
344
+ *
345
+ * This data is also absent from the genesis.
346
+ *
347
+ * @param {Callback<SpTrieStorageProof | undefined> =} callback
348
+ **/
349
+ relayStateProof: GenericStorageQuery<Rv, () => SpTrieStorageProof | undefined>;
350
+
351
+ /**
352
+ * The snapshot of some state related to messaging relevant to the current parachain as per
353
+ * the relay parent.
354
+ *
355
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
356
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
357
+ *
358
+ * This data is also absent from the genesis.
359
+ *
360
+ * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
361
+ **/
362
+ relevantMessagingState: GenericStorageQuery<
363
+ Rv,
364
+ () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
365
+ >;
366
+
367
+ /**
368
+ * The parachain host configuration that was obtained from the relay parent.
369
+ *
370
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
371
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
372
+ *
373
+ * This data is also absent from the genesis.
374
+ *
375
+ * @param {Callback<PolkadotPrimitivesV7AbridgedHostConfiguration | undefined> =} callback
376
+ **/
377
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>;
378
+
379
+ /**
380
+ * The last downward message queue chain head we have observed.
381
+ *
382
+ * This value is loaded before and saved after processing inbound downward messages carried
383
+ * by the system inherent.
384
+ *
385
+ * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
386
+ **/
387
+ lastDmqMqcHead: GenericStorageQuery<Rv, () => CumulusPrimitivesParachainInherentMessageQueueChain>;
388
+
389
+ /**
390
+ * The message queue chain heads we have observed per each channel incoming channel.
391
+ *
392
+ * This value is loaded before and saved after processing inbound downward messages carried
393
+ * by the system inherent.
394
+ *
395
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
396
+ **/
397
+ lastHrmpMqcHeads: GenericStorageQuery<
398
+ Rv,
399
+ () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
400
+ >;
401
+
402
+ /**
403
+ * Number of downward messages processed in a block.
404
+ *
405
+ * This will be cleared in `on_initialize` of each new block.
406
+ *
407
+ * @param {Callback<number> =} callback
408
+ **/
409
+ processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
410
+
411
+ /**
412
+ * HRMP watermark that was set in a block.
413
+ *
414
+ * This will be cleared in `on_initialize` of each new block.
415
+ *
416
+ * @param {Callback<number> =} callback
417
+ **/
418
+ hrmpWatermark: GenericStorageQuery<Rv, () => number>;
419
+
420
+ /**
421
+ * HRMP messages that were sent in a block.
422
+ *
423
+ * This will be cleared in `on_initialize` of each new block.
424
+ *
425
+ * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
426
+ **/
427
+ hrmpOutboundMessages: GenericStorageQuery<Rv, () => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
428
+
429
+ /**
430
+ * Upward messages that were sent in a block.
431
+ *
432
+ * This will be cleared in `on_initialize` of each new block.
433
+ *
434
+ * @param {Callback<Array<Bytes>> =} callback
435
+ **/
436
+ upwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
437
+
438
+ /**
439
+ * Upward messages that are still pending and not yet send to the relay chain.
440
+ *
441
+ * @param {Callback<Array<Bytes>> =} callback
442
+ **/
443
+ pendingUpwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
444
+
445
+ /**
446
+ * The factor to multiply the base delivery fee by for UMP.
447
+ *
448
+ * @param {Callback<FixedU128> =} callback
449
+ **/
450
+ upwardDeliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
451
+
452
+ /**
453
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
454
+ * announcing the weight of `on_initialize` and `on_finalize`.
455
+ *
456
+ * @param {Callback<number> =} callback
457
+ **/
458
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<Rv, () => number>;
459
+
460
+ /**
461
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
462
+ * overrides the amount set in the Config trait.
463
+ *
464
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
465
+ **/
466
+ reservedXcmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
467
+
468
+ /**
469
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
470
+ * overrides the amount set in the Config trait.
471
+ *
472
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
473
+ **/
474
+ reservedDmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
475
+
476
+ /**
477
+ * A custom head data that should be returned as result of `validate_block`.
478
+ *
479
+ * See `Pallet::set_custom_validation_head_data` for more information.
480
+ *
481
+ * @param {Callback<Bytes | undefined> =} callback
482
+ **/
483
+ customValidationHeadData: GenericStorageQuery<Rv, () => Bytes | undefined>;
484
+
485
+ /**
486
+ * Generic pallet storage query
487
+ **/
488
+ [storage: string]: GenericStorageQuery<Rv>;
489
+ };
490
+ /**
491
+ * Pallet `Timestamp`'s storage queries
492
+ **/
493
+ timestamp: {
494
+ /**
495
+ * The current time for the current block.
496
+ *
497
+ * @param {Callback<bigint> =} callback
498
+ **/
499
+ now: GenericStorageQuery<Rv, () => bigint>;
500
+
501
+ /**
502
+ * Whether the timestamp has been updated in this block.
503
+ *
504
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
505
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
506
+ *
507
+ * @param {Callback<boolean> =} callback
508
+ **/
509
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
510
+
511
+ /**
512
+ * Generic pallet storage query
513
+ **/
514
+ [storage: string]: GenericStorageQuery<Rv>;
515
+ };
516
+ /**
517
+ * Pallet `ParachainInfo`'s storage queries
518
+ **/
519
+ parachainInfo: {
520
+ /**
521
+ *
522
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
523
+ **/
524
+ parachainId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
525
+
526
+ /**
527
+ * Generic pallet storage query
528
+ **/
529
+ [storage: string]: GenericStorageQuery<Rv>;
530
+ };
531
+ /**
532
+ * Pallet `Balances`'s storage queries
533
+ **/
534
+ balances: {
535
+ /**
536
+ * The total units issued in the system.
537
+ *
538
+ * @param {Callback<bigint> =} callback
539
+ **/
540
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
541
+
542
+ /**
543
+ * The total units of outstanding deactivated balance in the system.
544
+ *
545
+ * @param {Callback<bigint> =} callback
546
+ **/
547
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
548
+
549
+ /**
550
+ * The Balances pallet example of storing the balance of an account.
551
+ *
552
+ * # Example
553
+ *
554
+ * ```nocompile
555
+ * impl pallet_balances::Config for Runtime {
556
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
557
+ * }
558
+ * ```
559
+ *
560
+ * You can also store the balance of an account in the `System` pallet.
561
+ *
562
+ * # Example
563
+ *
564
+ * ```nocompile
565
+ * impl pallet_balances::Config for Runtime {
566
+ * type AccountStore = System
567
+ * }
568
+ * ```
569
+ *
570
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
571
+ * `frame_system` data alongside the account data contrary to storing account balances in the
572
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
573
+ * NOTE: This is only used in the case that this pallet is used to store balances.
574
+ *
575
+ * @param {AccountId32Like} arg
576
+ * @param {Callback<PalletBalancesAccountData> =} callback
577
+ **/
578
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
579
+
580
+ /**
581
+ * Any liquidity locks on some account balances.
582
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
583
+ *
584
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
585
+ *
586
+ * @param {AccountId32Like} arg
587
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
588
+ **/
589
+ locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
590
+
591
+ /**
592
+ * Named reserves on some account balances.
593
+ *
594
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
595
+ *
596
+ * @param {AccountId32Like} arg
597
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
598
+ **/
599
+ reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
600
+
601
+ /**
602
+ * Holds on account balances.
603
+ *
604
+ * @param {AccountId32Like} arg
605
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
606
+ **/
607
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
608
+
609
+ /**
610
+ * Freeze locks on account balances.
611
+ *
612
+ * @param {AccountId32Like} arg
613
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount002>> =} callback
614
+ **/
615
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount002>, AccountId32>;
616
+
617
+ /**
618
+ * Generic pallet storage query
619
+ **/
620
+ [storage: string]: GenericStorageQuery<Rv>;
621
+ };
622
+ /**
623
+ * Pallet `TransactionPayment`'s storage queries
624
+ **/
625
+ transactionPayment: {
626
+ /**
627
+ *
628
+ * @param {Callback<FixedU128> =} callback
629
+ **/
630
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
631
+
632
+ /**
633
+ *
634
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
635
+ **/
636
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
637
+
638
+ /**
639
+ * Generic pallet storage query
640
+ **/
641
+ [storage: string]: GenericStorageQuery<Rv>;
642
+ };
643
+ /**
644
+ * Pallet `Authorship`'s storage queries
645
+ **/
646
+ authorship: {
647
+ /**
648
+ * Author of current block.
649
+ *
650
+ * @param {Callback<AccountId32 | undefined> =} callback
651
+ **/
652
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
653
+
654
+ /**
655
+ * Generic pallet storage query
656
+ **/
657
+ [storage: string]: GenericStorageQuery<Rv>;
658
+ };
659
+ /**
660
+ * Pallet `CollatorSelection`'s storage queries
661
+ **/
662
+ collatorSelection: {
663
+ /**
664
+ * The invulnerable, permissioned collators. This list must be sorted.
665
+ *
666
+ * @param {Callback<Array<AccountId32>> =} callback
667
+ **/
668
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
669
+
670
+ /**
671
+ * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
672
+ * mutually exclusive.
673
+ *
674
+ * This list is sorted in ascending order by deposit and when the deposits are equal, the least
675
+ * recently updated is considered greater.
676
+ *
677
+ * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
678
+ **/
679
+ candidateList: GenericStorageQuery<Rv, () => Array<PalletCollatorSelectionCandidateInfo>>;
680
+
681
+ /**
682
+ * Last block authored by collator.
683
+ *
684
+ * @param {AccountId32Like} arg
685
+ * @param {Callback<number> =} callback
686
+ **/
687
+ lastAuthoredBlock: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
688
+
689
+ /**
690
+ * Desired number of candidates.
691
+ *
692
+ * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
693
+ *
694
+ * @param {Callback<number> =} callback
695
+ **/
696
+ desiredCandidates: GenericStorageQuery<Rv, () => number>;
697
+
698
+ /**
699
+ * Fixed amount to deposit to become a collator.
700
+ *
701
+ * When a collator calls `leave_intent` they immediately receive the deposit back.
702
+ *
703
+ * @param {Callback<bigint> =} callback
704
+ **/
705
+ candidacyBond: GenericStorageQuery<Rv, () => bigint>;
706
+
707
+ /**
708
+ * Generic pallet storage query
709
+ **/
710
+ [storage: string]: GenericStorageQuery<Rv>;
711
+ };
712
+ /**
713
+ * Pallet `Session`'s storage queries
714
+ **/
715
+ session: {
716
+ /**
717
+ * The current set of validators.
718
+ *
719
+ * @param {Callback<Array<AccountId32>> =} callback
720
+ **/
721
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
722
+
723
+ /**
724
+ * Current index of the session.
725
+ *
726
+ * @param {Callback<number> =} callback
727
+ **/
728
+ currentIndex: GenericStorageQuery<Rv, () => number>;
729
+
730
+ /**
731
+ * True if the underlying economic identities or weighting behind the validators
732
+ * has changed in the queued validator set.
733
+ *
734
+ * @param {Callback<boolean> =} callback
735
+ **/
736
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
737
+
738
+ /**
739
+ * The queued keys for the next session. When the next session begins, these keys
740
+ * will be used to determine the validator's session keys.
741
+ *
742
+ * @param {Callback<Array<[AccountId32, AssetHubRococoRuntimeSessionKeys]>> =} callback
743
+ **/
744
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, AssetHubRococoRuntimeSessionKeys]>>;
745
+
746
+ /**
747
+ * Indices of disabled validators.
748
+ *
749
+ * The vec is always kept sorted so that we can find whether a given validator is
750
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
751
+ * a new set of identities.
752
+ *
753
+ * @param {Callback<Array<number>> =} callback
754
+ **/
755
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
756
+
757
+ /**
758
+ * The next session keys for a validator.
759
+ *
760
+ * @param {AccountId32Like} arg
761
+ * @param {Callback<AssetHubRococoRuntimeSessionKeys | undefined> =} callback
762
+ **/
763
+ nextKeys: GenericStorageQuery<
764
+ Rv,
765
+ (arg: AccountId32Like) => AssetHubRococoRuntimeSessionKeys | undefined,
766
+ AccountId32
767
+ >;
768
+
769
+ /**
770
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
771
+ *
772
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
773
+ * @param {Callback<AccountId32 | undefined> =} callback
774
+ **/
775
+ keyOwner: GenericStorageQuery<
776
+ Rv,
777
+ (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
778
+ [SpCoreCryptoKeyTypeId, Bytes]
779
+ >;
780
+
781
+ /**
782
+ * Generic pallet storage query
783
+ **/
784
+ [storage: string]: GenericStorageQuery<Rv>;
785
+ };
786
+ /**
787
+ * Pallet `Aura`'s storage queries
788
+ **/
789
+ aura: {
790
+ /**
791
+ * The current authority set.
792
+ *
793
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
794
+ **/
795
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
796
+
797
+ /**
798
+ * The current slot of this block.
799
+ *
800
+ * This will be set in `on_initialize`.
801
+ *
802
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
803
+ **/
804
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
805
+
806
+ /**
807
+ * Generic pallet storage query
808
+ **/
809
+ [storage: string]: GenericStorageQuery<Rv>;
810
+ };
811
+ /**
812
+ * Pallet `AuraExt`'s storage queries
813
+ **/
814
+ auraExt: {
815
+ /**
816
+ * Serves as cache for the authorities.
817
+ *
818
+ * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
819
+ * but we require the old authorities to verify the seal when validating a PoV. This will
820
+ * always be updated to the latest AuRa authorities in `on_finalize`.
821
+ *
822
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
823
+ **/
824
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
825
+
826
+ /**
827
+ * Current slot paired with a number of authored blocks.
828
+ *
829
+ * Updated on each block initialization.
830
+ *
831
+ * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
832
+ **/
833
+ slotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
834
+
835
+ /**
836
+ * Generic pallet storage query
837
+ **/
838
+ [storage: string]: GenericStorageQuery<Rv>;
839
+ };
840
+ /**
841
+ * Pallet `XcmpQueue`'s storage queries
842
+ **/
843
+ xcmpQueue: {
844
+ /**
845
+ * The suspended inbound XCMP channels. All others are not suspended.
846
+ *
847
+ * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
848
+ * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
849
+ * within the block and therefore only included once in the proof size.
850
+ *
851
+ * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
852
+ * will be smaller.
853
+ *
854
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
855
+ **/
856
+ inboundXcmpSuspended: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
857
+
858
+ /**
859
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
860
+ * and last outbound message. If the two indices are equal, then it indicates an empty
861
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
862
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
863
+ * case of the need to send a high-priority signal message this block.
864
+ * The bool is true if there is a signal message waiting to be sent.
865
+ *
866
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
867
+ **/
868
+ outboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
869
+
870
+ /**
871
+ * The messages outbound in a given XCMP channel.
872
+ *
873
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
874
+ * @param {Callback<Bytes> =} callback
875
+ **/
876
+ outboundXcmpMessages: GenericStorageQuery<
877
+ Rv,
878
+ (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
879
+ [PolkadotParachainPrimitivesPrimitivesId, number]
880
+ >;
881
+
882
+ /**
883
+ * Any signal messages waiting to be sent.
884
+ *
885
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
886
+ * @param {Callback<Bytes> =} callback
887
+ **/
888
+ signalMessages: GenericStorageQuery<
889
+ Rv,
890
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes,
891
+ PolkadotParachainPrimitivesPrimitivesId
892
+ >;
893
+
894
+ /**
895
+ * The configuration which controls the dynamics of the outbound queue.
896
+ *
897
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
898
+ **/
899
+ queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
900
+
901
+ /**
902
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
903
+ *
904
+ * @param {Callback<boolean> =} callback
905
+ **/
906
+ queueSuspended: GenericStorageQuery<Rv, () => boolean>;
907
+
908
+ /**
909
+ * The factor to multiply the base delivery fee by.
910
+ *
911
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
912
+ * @param {Callback<FixedU128> =} callback
913
+ **/
914
+ deliveryFeeFactor: GenericStorageQuery<
915
+ Rv,
916
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
917
+ PolkadotParachainPrimitivesPrimitivesId
918
+ >;
919
+
920
+ /**
921
+ * Generic pallet storage query
922
+ **/
923
+ [storage: string]: GenericStorageQuery<Rv>;
924
+ };
925
+ /**
926
+ * Pallet `PolkadotXcm`'s storage queries
927
+ **/
928
+ polkadotXcm: {
929
+ /**
930
+ * The latest available query index.
931
+ *
932
+ * @param {Callback<bigint> =} callback
933
+ **/
934
+ queryCounter: GenericStorageQuery<Rv, () => bigint>;
935
+
936
+ /**
937
+ * The ongoing queries.
938
+ *
939
+ * @param {bigint} arg
940
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
941
+ **/
942
+ queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
943
+
944
+ /**
945
+ * The existing asset traps.
946
+ *
947
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
948
+ * times this pair has been trapped (usually just 1 if it exists at all).
949
+ *
950
+ * @param {H256} arg
951
+ * @param {Callback<number> =} callback
952
+ **/
953
+ assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
954
+
955
+ /**
956
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
957
+ * then the destinations whose XCM version is unknown are considered unreachable.
958
+ *
959
+ * @param {Callback<number | undefined> =} callback
960
+ **/
961
+ safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
962
+
963
+ /**
964
+ * The Latest versions that we know various locations support.
965
+ *
966
+ * @param {[number, XcmVersionedLocation]} arg
967
+ * @param {Callback<number | undefined> =} callback
968
+ **/
969
+ supportedVersion: GenericStorageQuery<
970
+ Rv,
971
+ (arg: [number, XcmVersionedLocation]) => number | undefined,
972
+ [number, XcmVersionedLocation]
973
+ >;
974
+
975
+ /**
976
+ * All locations that we have requested version notifications from.
977
+ *
978
+ * @param {[number, XcmVersionedLocation]} arg
979
+ * @param {Callback<bigint | undefined> =} callback
980
+ **/
981
+ versionNotifiers: GenericStorageQuery<
982
+ Rv,
983
+ (arg: [number, XcmVersionedLocation]) => bigint | undefined,
984
+ [number, XcmVersionedLocation]
985
+ >;
986
+
987
+ /**
988
+ * The target locations that are subscribed to our version changes, as well as the most recent
989
+ * of our versions we informed them of.
990
+ *
991
+ * @param {[number, XcmVersionedLocation]} arg
992
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
993
+ **/
994
+ versionNotifyTargets: GenericStorageQuery<
995
+ Rv,
996
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
997
+ [number, XcmVersionedLocation]
998
+ >;
999
+
1000
+ /**
1001
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
1002
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
1003
+ * which is used as a prioritization.
1004
+ *
1005
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
1006
+ **/
1007
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
1008
+
1009
+ /**
1010
+ * The current migration's stage, if any.
1011
+ *
1012
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
1013
+ **/
1014
+ currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
1015
+
1016
+ /**
1017
+ * Fungible assets which we know are locked on a remote chain.
1018
+ *
1019
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
1020
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1021
+ **/
1022
+ remoteLockedFungibles: GenericStorageQuery<
1023
+ Rv,
1024
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
1025
+ [number, AccountId32, XcmVersionedAssetId]
1026
+ >;
1027
+
1028
+ /**
1029
+ * Fungible assets which we know are locked on this chain.
1030
+ *
1031
+ * @param {AccountId32Like} arg
1032
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
1033
+ **/
1034
+ lockedFungibles: GenericStorageQuery<
1035
+ Rv,
1036
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
1037
+ AccountId32
1038
+ >;
1039
+
1040
+ /**
1041
+ * Global suspension state of the XCM executor.
1042
+ *
1043
+ * @param {Callback<boolean> =} callback
1044
+ **/
1045
+ xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
1046
+
1047
+ /**
1048
+ * Whether or not incoming XCMs (both executed locally and received) should be recorded.
1049
+ * Only one XCM program will be recorded at a time.
1050
+ * This is meant to be used in runtime APIs, and it's advised it stays false
1051
+ * for all other use cases, so as to not degrade regular performance.
1052
+ *
1053
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1054
+ * implementation in the XCM executor configuration.
1055
+ *
1056
+ * @param {Callback<boolean> =} callback
1057
+ **/
1058
+ shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
1059
+
1060
+ /**
1061
+ * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
1062
+ * will be stored here.
1063
+ * Runtime APIs can fetch the XCM that was executed by accessing this value.
1064
+ *
1065
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1066
+ * implementation in the XCM executor configuration.
1067
+ *
1068
+ * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
1069
+ **/
1070
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
1071
+
1072
+ /**
1073
+ * Generic pallet storage query
1074
+ **/
1075
+ [storage: string]: GenericStorageQuery<Rv>;
1076
+ };
1077
+ /**
1078
+ * Pallet `MessageQueue`'s storage queries
1079
+ **/
1080
+ messageQueue: {
1081
+ /**
1082
+ * The index of the first and last (non-empty) pages.
1083
+ *
1084
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg
1085
+ * @param {Callback<PalletMessageQueueBookState> =} callback
1086
+ **/
1087
+ bookStateFor: GenericStorageQuery<
1088
+ Rv,
1089
+ (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState,
1090
+ CumulusPrimitivesCoreAggregateMessageOrigin
1091
+ >;
1092
+
1093
+ /**
1094
+ * The origin at which we should begin servicing.
1095
+ *
1096
+ * @param {Callback<CumulusPrimitivesCoreAggregateMessageOrigin | undefined> =} callback
1097
+ **/
1098
+ serviceHead: GenericStorageQuery<Rv, () => CumulusPrimitivesCoreAggregateMessageOrigin | undefined>;
1099
+
1100
+ /**
1101
+ * The map of page indices to pages.
1102
+ *
1103
+ * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg
1104
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
1105
+ **/
1106
+ pages: GenericStorageQuery<
1107
+ Rv,
1108
+ (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
1109
+ [CumulusPrimitivesCoreAggregateMessageOrigin, number]
1110
+ >;
1111
+
1112
+ /**
1113
+ * Generic pallet storage query
1114
+ **/
1115
+ [storage: string]: GenericStorageQuery<Rv>;
1116
+ };
1117
+ /**
1118
+ * Pallet `Multisig`'s storage queries
1119
+ **/
1120
+ multisig: {
1121
+ /**
1122
+ * The set of open multisig operations.
1123
+ *
1124
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
1125
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1126
+ **/
1127
+ multisigs: GenericStorageQuery<
1128
+ Rv,
1129
+ (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1130
+ [AccountId32, FixedBytes<32>]
1131
+ >;
1132
+
1133
+ /**
1134
+ * Generic pallet storage query
1135
+ **/
1136
+ [storage: string]: GenericStorageQuery<Rv>;
1137
+ };
1138
+ /**
1139
+ * Pallet `Proxy`'s storage queries
1140
+ **/
1141
+ proxy: {
1142
+ /**
1143
+ * The set of account proxies. Maps the account which has delegated to the accounts
1144
+ * which are being delegated to, together with the amount held on deposit.
1145
+ *
1146
+ * @param {AccountId32Like} arg
1147
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1148
+ **/
1149
+ proxies: GenericStorageQuery<
1150
+ Rv,
1151
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
1152
+ AccountId32
1153
+ >;
1154
+
1155
+ /**
1156
+ * The announcements made by the proxy (key).
1157
+ *
1158
+ * @param {AccountId32Like} arg
1159
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1160
+ **/
1161
+ announcements: GenericStorageQuery<
1162
+ Rv,
1163
+ (arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
1164
+ AccountId32
1165
+ >;
1166
+
1167
+ /**
1168
+ * Generic pallet storage query
1169
+ **/
1170
+ [storage: string]: GenericStorageQuery<Rv>;
1171
+ };
1172
+ /**
1173
+ * Pallet `ToWestendXcmRouter`'s storage queries
1174
+ **/
1175
+ toWestendXcmRouter: {
1176
+ /**
1177
+ * Bridge that we are using.
1178
+ *
1179
+ * **bridges-v1** assumptions: all outbound messages through this router are using single lane
1180
+ * and to single remote consensus. If there is some other remote consensus that uses the same
1181
+ * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required
1182
+ * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges
1183
+ * by the same pallet instance.
1184
+ *
1185
+ * @param {Callback<BpXcmBridgeHubRouterBridgeState> =} callback
1186
+ **/
1187
+ bridge: GenericStorageQuery<Rv, () => BpXcmBridgeHubRouterBridgeState>;
1188
+
1189
+ /**
1190
+ * Generic pallet storage query
1191
+ **/
1192
+ [storage: string]: GenericStorageQuery<Rv>;
1193
+ };
1194
+ /**
1195
+ * Pallet `Assets`'s storage queries
1196
+ **/
1197
+ assets: {
1198
+ /**
1199
+ * Details of an asset.
1200
+ *
1201
+ * @param {number} arg
1202
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1203
+ **/
1204
+ asset: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetDetails | undefined, number>;
1205
+
1206
+ /**
1207
+ * The holdings of a specific account for a specific asset.
1208
+ *
1209
+ * @param {[number, AccountId32Like]} arg
1210
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1211
+ **/
1212
+ account: GenericStorageQuery<
1213
+ Rv,
1214
+ (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1215
+ [number, AccountId32]
1216
+ >;
1217
+
1218
+ /**
1219
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1220
+ * is the amount of `T::Currency` reserved for storing this.
1221
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1222
+ *
1223
+ * @param {[number, AccountId32Like, AccountId32Like]} arg
1224
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1225
+ **/
1226
+ approvals: GenericStorageQuery<
1227
+ Rv,
1228
+ (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
1229
+ [number, AccountId32, AccountId32]
1230
+ >;
1231
+
1232
+ /**
1233
+ * Metadata of an asset.
1234
+ *
1235
+ * @param {number} arg
1236
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1237
+ **/
1238
+ metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
1239
+
1240
+ /**
1241
+ * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1242
+ * item has no effect.
1243
+ *
1244
+ * This can be useful for setting up constraints for IDs of the new assets. For example, by
1245
+ * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
1246
+ * auto-increment model can be applied to all new asset IDs.
1247
+ *
1248
+ * The initial next asset ID can be set using the [`GenesisConfig`] or the
1249
+ * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1250
+ *
1251
+ * @param {Callback<number | undefined> =} callback
1252
+ **/
1253
+ nextAssetId: GenericStorageQuery<Rv, () => number | undefined>;
1254
+
1255
+ /**
1256
+ * Generic pallet storage query
1257
+ **/
1258
+ [storage: string]: GenericStorageQuery<Rv>;
1259
+ };
1260
+ /**
1261
+ * Pallet `Uniques`'s storage queries
1262
+ **/
1263
+ uniques: {
1264
+ /**
1265
+ * Details of a collection.
1266
+ *
1267
+ * @param {number} arg
1268
+ * @param {Callback<PalletUniquesCollectionDetails | undefined> =} callback
1269
+ **/
1270
+ class: GenericStorageQuery<Rv, (arg: number) => PalletUniquesCollectionDetails | undefined, number>;
1271
+
1272
+ /**
1273
+ * The collection, if any, of which an account is willing to take ownership.
1274
+ *
1275
+ * @param {AccountId32Like} arg
1276
+ * @param {Callback<number | undefined> =} callback
1277
+ **/
1278
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
1279
+
1280
+ /**
1281
+ * The items held by any given account; set out this way so that items owned by a single
1282
+ * account can be enumerated.
1283
+ *
1284
+ * @param {[AccountId32Like, number, number]} arg
1285
+ * @param {Callback<[] | undefined> =} callback
1286
+ **/
1287
+ account: GenericStorageQuery<
1288
+ Rv,
1289
+ (arg: [AccountId32Like, number, number]) => [] | undefined,
1290
+ [AccountId32, number, number]
1291
+ >;
1292
+
1293
+ /**
1294
+ * The collections owned by any given account; set out this way so that collections owned by
1295
+ * a single account can be enumerated.
1296
+ *
1297
+ * @param {[AccountId32Like, number]} arg
1298
+ * @param {Callback<[] | undefined> =} callback
1299
+ **/
1300
+ classAccount: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => [] | undefined, [AccountId32, number]>;
1301
+
1302
+ /**
1303
+ * The items in existence and their ownership details.
1304
+ *
1305
+ * @param {[number, number]} arg
1306
+ * @param {Callback<PalletUniquesItemDetails | undefined> =} callback
1307
+ **/
1308
+ asset: GenericStorageQuery<Rv, (arg: [number, number]) => PalletUniquesItemDetails | undefined, [number, number]>;
1309
+
1310
+ /**
1311
+ * Metadata of a collection.
1312
+ *
1313
+ * @param {number} arg
1314
+ * @param {Callback<PalletUniquesCollectionMetadata | undefined> =} callback
1315
+ **/
1316
+ classMetadataOf: GenericStorageQuery<Rv, (arg: number) => PalletUniquesCollectionMetadata | undefined, number>;
1317
+
1318
+ /**
1319
+ * Metadata of an item.
1320
+ *
1321
+ * @param {[number, number]} arg
1322
+ * @param {Callback<PalletUniquesItemMetadata | undefined> =} callback
1323
+ **/
1324
+ instanceMetadataOf: GenericStorageQuery<
1325
+ Rv,
1326
+ (arg: [number, number]) => PalletUniquesItemMetadata | undefined,
1327
+ [number, number]
1328
+ >;
1329
+
1330
+ /**
1331
+ * Attributes of a collection.
1332
+ *
1333
+ * @param {[number, number | undefined, BytesLike]} arg
1334
+ * @param {Callback<[Bytes, bigint] | undefined> =} callback
1335
+ **/
1336
+ attribute: GenericStorageQuery<
1337
+ Rv,
1338
+ (arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined,
1339
+ [number, number | undefined, Bytes]
1340
+ >;
1341
+
1342
+ /**
1343
+ * Price of an asset instance.
1344
+ *
1345
+ * @param {[number, number]} arg
1346
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1347
+ **/
1348
+ itemPriceOf: GenericStorageQuery<
1349
+ Rv,
1350
+ (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined,
1351
+ [number, number]
1352
+ >;
1353
+
1354
+ /**
1355
+ * Keeps track of the number of items a collection might have.
1356
+ *
1357
+ * @param {number} arg
1358
+ * @param {Callback<number | undefined> =} callback
1359
+ **/
1360
+ collectionMaxSupply: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
1361
+
1362
+ /**
1363
+ * Generic pallet storage query
1364
+ **/
1365
+ [storage: string]: GenericStorageQuery<Rv>;
1366
+ };
1367
+ /**
1368
+ * Pallet `Nfts`'s storage queries
1369
+ **/
1370
+ nfts: {
1371
+ /**
1372
+ * Details of a collection.
1373
+ *
1374
+ * @param {number} arg
1375
+ * @param {Callback<PalletNftsCollectionDetails | undefined> =} callback
1376
+ **/
1377
+ collection: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionDetails | undefined, number>;
1378
+
1379
+ /**
1380
+ * The collection, if any, of which an account is willing to take ownership.
1381
+ *
1382
+ * @param {AccountId32Like} arg
1383
+ * @param {Callback<number | undefined> =} callback
1384
+ **/
1385
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
1386
+
1387
+ /**
1388
+ * The items held by any given account; set out this way so that items owned by a single
1389
+ * account can be enumerated.
1390
+ *
1391
+ * @param {[AccountId32Like, number, number]} arg
1392
+ * @param {Callback<[] | undefined> =} callback
1393
+ **/
1394
+ account: GenericStorageQuery<
1395
+ Rv,
1396
+ (arg: [AccountId32Like, number, number]) => [] | undefined,
1397
+ [AccountId32, number, number]
1398
+ >;
1399
+
1400
+ /**
1401
+ * The collections owned by any given account; set out this way so that collections owned by
1402
+ * a single account can be enumerated.
1403
+ *
1404
+ * @param {[AccountId32Like, number]} arg
1405
+ * @param {Callback<[] | undefined> =} callback
1406
+ **/
1407
+ collectionAccount: GenericStorageQuery<
1408
+ Rv,
1409
+ (arg: [AccountId32Like, number]) => [] | undefined,
1410
+ [AccountId32, number]
1411
+ >;
1412
+
1413
+ /**
1414
+ * The items in existence and their ownership details.
1415
+ * Stores collection roles as per account.
1416
+ *
1417
+ * @param {[number, AccountId32Like]} arg
1418
+ * @param {Callback<PalletNftsBitFlagsCollectionRole | undefined> =} callback
1419
+ **/
1420
+ collectionRoleOf: GenericStorageQuery<
1421
+ Rv,
1422
+ (arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined,
1423
+ [number, AccountId32]
1424
+ >;
1425
+
1426
+ /**
1427
+ * The items in existence and their ownership details.
1428
+ *
1429
+ * @param {[number, number]} arg
1430
+ * @param {Callback<PalletNftsItemDetails | undefined> =} callback
1431
+ **/
1432
+ item: GenericStorageQuery<Rv, (arg: [number, number]) => PalletNftsItemDetails | undefined, [number, number]>;
1433
+
1434
+ /**
1435
+ * Metadata of a collection.
1436
+ *
1437
+ * @param {number} arg
1438
+ * @param {Callback<PalletNftsCollectionMetadata | undefined> =} callback
1439
+ **/
1440
+ collectionMetadataOf: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionMetadata | undefined, number>;
1441
+
1442
+ /**
1443
+ * Metadata of an item.
1444
+ *
1445
+ * @param {[number, number]} arg
1446
+ * @param {Callback<PalletNftsItemMetadata | undefined> =} callback
1447
+ **/
1448
+ itemMetadataOf: GenericStorageQuery<
1449
+ Rv,
1450
+ (arg: [number, number]) => PalletNftsItemMetadata | undefined,
1451
+ [number, number]
1452
+ >;
1453
+
1454
+ /**
1455
+ * Attributes of a collection.
1456
+ *
1457
+ * @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg
1458
+ * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback
1459
+ **/
1460
+ attribute: GenericStorageQuery<
1461
+ Rv,
1462
+ (
1463
+ arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike],
1464
+ ) => [Bytes, PalletNftsAttributeDeposit] | undefined,
1465
+ [number, number | undefined, PalletNftsAttributeNamespace, Bytes]
1466
+ >;
1467
+
1468
+ /**
1469
+ * A price of an item.
1470
+ *
1471
+ * @param {[number, number]} arg
1472
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1473
+ **/
1474
+ itemPriceOf: GenericStorageQuery<
1475
+ Rv,
1476
+ (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined,
1477
+ [number, number]
1478
+ >;
1479
+
1480
+ /**
1481
+ * Item attribute approvals.
1482
+ *
1483
+ * @param {[number, number]} arg
1484
+ * @param {Callback<Array<AccountId32>> =} callback
1485
+ **/
1486
+ itemAttributesApprovalsOf: GenericStorageQuery<Rv, (arg: [number, number]) => Array<AccountId32>, [number, number]>;
1487
+
1488
+ /**
1489
+ * Stores the `CollectionId` that is going to be used for the next collection.
1490
+ * This gets incremented whenever a new collection is created.
1491
+ *
1492
+ * @param {Callback<number | undefined> =} callback
1493
+ **/
1494
+ nextCollectionId: GenericStorageQuery<Rv, () => number | undefined>;
1495
+
1496
+ /**
1497
+ * Handles all the pending swaps.
1498
+ *
1499
+ * @param {[number, number]} arg
1500
+ * @param {Callback<PalletNftsPendingSwap | undefined> =} callback
1501
+ **/
1502
+ pendingSwapOf: GenericStorageQuery<
1503
+ Rv,
1504
+ (arg: [number, number]) => PalletNftsPendingSwap | undefined,
1505
+ [number, number]
1506
+ >;
1507
+
1508
+ /**
1509
+ * Config of a collection.
1510
+ *
1511
+ * @param {number} arg
1512
+ * @param {Callback<PalletNftsCollectionConfig | undefined> =} callback
1513
+ **/
1514
+ collectionConfigOf: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionConfig | undefined, number>;
1515
+
1516
+ /**
1517
+ * Config of an item.
1518
+ *
1519
+ * @param {[number, number]} arg
1520
+ * @param {Callback<PalletNftsItemConfig | undefined> =} callback
1521
+ **/
1522
+ itemConfigOf: GenericStorageQuery<
1523
+ Rv,
1524
+ (arg: [number, number]) => PalletNftsItemConfig | undefined,
1525
+ [number, number]
1526
+ >;
1527
+
1528
+ /**
1529
+ * Generic pallet storage query
1530
+ **/
1531
+ [storage: string]: GenericStorageQuery<Rv>;
1532
+ };
1533
+ /**
1534
+ * Pallet `ForeignAssets`'s storage queries
1535
+ **/
1536
+ foreignAssets: {
1537
+ /**
1538
+ * Details of an asset.
1539
+ *
1540
+ * @param {StagingXcmV3MultilocationMultiLocation} arg
1541
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1542
+ **/
1543
+ asset: GenericStorageQuery<
1544
+ Rv,
1545
+ (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined,
1546
+ StagingXcmV3MultilocationMultiLocation
1547
+ >;
1548
+
1549
+ /**
1550
+ * The holdings of a specific account for a specific asset.
1551
+ *
1552
+ * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
1553
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1554
+ **/
1555
+ account: GenericStorageQuery<
1556
+ Rv,
1557
+ (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1558
+ [StagingXcmV3MultilocationMultiLocation, AccountId32]
1559
+ >;
1560
+
1561
+ /**
1562
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1563
+ * is the amount of `T::Currency` reserved for storing this.
1564
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1565
+ *
1566
+ * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like]} arg
1567
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1568
+ **/
1569
+ approvals: GenericStorageQuery<
1570
+ Rv,
1571
+ (
1572
+ arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like],
1573
+ ) => PalletAssetsApproval | undefined,
1574
+ [StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32]
1575
+ >;
1576
+
1577
+ /**
1578
+ * Metadata of an asset.
1579
+ *
1580
+ * @param {StagingXcmV3MultilocationMultiLocation} arg
1581
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1582
+ **/
1583
+ metadata: GenericStorageQuery<
1584
+ Rv,
1585
+ (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata,
1586
+ StagingXcmV3MultilocationMultiLocation
1587
+ >;
1588
+
1589
+ /**
1590
+ * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1591
+ * item has no effect.
1592
+ *
1593
+ * This can be useful for setting up constraints for IDs of the new assets. For example, by
1594
+ * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
1595
+ * auto-increment model can be applied to all new asset IDs.
1596
+ *
1597
+ * The initial next asset ID can be set using the [`GenesisConfig`] or the
1598
+ * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1599
+ *
1600
+ * @param {Callback<StagingXcmV3MultilocationMultiLocation | undefined> =} callback
1601
+ **/
1602
+ nextAssetId: GenericStorageQuery<Rv, () => StagingXcmV3MultilocationMultiLocation | undefined>;
1603
+
1604
+ /**
1605
+ * Generic pallet storage query
1606
+ **/
1607
+ [storage: string]: GenericStorageQuery<Rv>;
1608
+ };
1609
+ /**
1610
+ * Pallet `NftFractionalization`'s storage queries
1611
+ **/
1612
+ nftFractionalization: {
1613
+ /**
1614
+ * Keeps track of the corresponding NFT ID, asset ID and amount minted.
1615
+ *
1616
+ * @param {[number, number]} arg
1617
+ * @param {Callback<PalletNftFractionalizationDetails | undefined> =} callback
1618
+ **/
1619
+ nftToAsset: GenericStorageQuery<
1620
+ Rv,
1621
+ (arg: [number, number]) => PalletNftFractionalizationDetails | undefined,
1622
+ [number, number]
1623
+ >;
1624
+
1625
+ /**
1626
+ * Generic pallet storage query
1627
+ **/
1628
+ [storage: string]: GenericStorageQuery<Rv>;
1629
+ };
1630
+ /**
1631
+ * Pallet `PoolAssets`'s storage queries
1632
+ **/
1633
+ poolAssets: {
1634
+ /**
1635
+ * Details of an asset.
1636
+ *
1637
+ * @param {number} arg
1638
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1639
+ **/
1640
+ asset: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetDetails | undefined, number>;
1641
+
1642
+ /**
1643
+ * The holdings of a specific account for a specific asset.
1644
+ *
1645
+ * @param {[number, AccountId32Like]} arg
1646
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1647
+ **/
1648
+ account: GenericStorageQuery<
1649
+ Rv,
1650
+ (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1651
+ [number, AccountId32]
1652
+ >;
1653
+
1654
+ /**
1655
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1656
+ * is the amount of `T::Currency` reserved for storing this.
1657
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1658
+ *
1659
+ * @param {[number, AccountId32Like, AccountId32Like]} arg
1660
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1661
+ **/
1662
+ approvals: GenericStorageQuery<
1663
+ Rv,
1664
+ (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
1665
+ [number, AccountId32, AccountId32]
1666
+ >;
1667
+
1668
+ /**
1669
+ * Metadata of an asset.
1670
+ *
1671
+ * @param {number} arg
1672
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1673
+ **/
1674
+ metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
1675
+
1676
+ /**
1677
+ * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1678
+ * item has no effect.
1679
+ *
1680
+ * This can be useful for setting up constraints for IDs of the new assets. For example, by
1681
+ * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
1682
+ * auto-increment model can be applied to all new asset IDs.
1683
+ *
1684
+ * The initial next asset ID can be set using the [`GenesisConfig`] or the
1685
+ * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1686
+ *
1687
+ * @param {Callback<number | undefined> =} callback
1688
+ **/
1689
+ nextAssetId: GenericStorageQuery<Rv, () => number | undefined>;
1690
+
1691
+ /**
1692
+ * Generic pallet storage query
1693
+ **/
1694
+ [storage: string]: GenericStorageQuery<Rv>;
1695
+ };
1696
+ /**
1697
+ * Pallet `AssetConversion`'s storage queries
1698
+ **/
1699
+ assetConversion: {
1700
+ /**
1701
+ * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
1702
+ * created rather than people sending tokens directly to a pool's public account.
1703
+ *
1704
+ * @param {[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]} arg
1705
+ * @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
1706
+ **/
1707
+ pools: GenericStorageQuery<
1708
+ Rv,
1709
+ (
1710
+ arg: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation],
1711
+ ) => PalletAssetConversionPoolInfo | undefined,
1712
+ [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]
1713
+ >;
1714
+
1715
+ /**
1716
+ * Stores the `PoolAssetId` that is going to be used for the next lp token.
1717
+ * This gets incremented whenever a new lp pool is created.
1718
+ *
1719
+ * @param {Callback<number | undefined> =} callback
1720
+ **/
1721
+ nextPoolAssetId: GenericStorageQuery<Rv, () => number | undefined>;
1722
+
1723
+ /**
1724
+ * Generic pallet storage query
1725
+ **/
1726
+ [storage: string]: GenericStorageQuery<Rv>;
1727
+ };
1728
+ /**
1729
+ * Pallet `AssetsFreezer`'s storage queries
1730
+ **/
1731
+ assetsFreezer: {
1732
+ /**
1733
+ * A map that stores freezes applied on an account for a given AssetId.
1734
+ *
1735
+ * @param {[number, AccountId32Like]} arg
1736
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
1737
+ **/
1738
+ freezes: GenericStorageQuery<
1739
+ Rv,
1740
+ (arg: [number, AccountId32Like]) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
1741
+ [number, AccountId32]
1742
+ >;
1743
+
1744
+ /**
1745
+ * A map that stores the current total frozen balance for every account on a given AssetId.
1746
+ *
1747
+ * @param {[number, AccountId32Like]} arg
1748
+ * @param {Callback<bigint | undefined> =} callback
1749
+ **/
1750
+ frozenBalances: GenericStorageQuery<
1751
+ Rv,
1752
+ (arg: [number, AccountId32Like]) => bigint | undefined,
1753
+ [number, AccountId32]
1754
+ >;
1755
+
1756
+ /**
1757
+ * Generic pallet storage query
1758
+ **/
1759
+ [storage: string]: GenericStorageQuery<Rv>;
1760
+ };
1761
+ /**
1762
+ * Pallet `ForeignAssetsFreezer`'s storage queries
1763
+ **/
1764
+ foreignAssetsFreezer: {
1765
+ /**
1766
+ * A map that stores freezes applied on an account for a given AssetId.
1767
+ *
1768
+ * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
1769
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
1770
+ **/
1771
+ freezes: GenericStorageQuery<
1772
+ Rv,
1773
+ (
1774
+ arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like],
1775
+ ) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
1776
+ [StagingXcmV3MultilocationMultiLocation, AccountId32]
1777
+ >;
1778
+
1779
+ /**
1780
+ * A map that stores the current total frozen balance for every account on a given AssetId.
1781
+ *
1782
+ * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
1783
+ * @param {Callback<bigint | undefined> =} callback
1784
+ **/
1785
+ frozenBalances: GenericStorageQuery<
1786
+ Rv,
1787
+ (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => bigint | undefined,
1788
+ [StagingXcmV3MultilocationMultiLocation, AccountId32]
1789
+ >;
1790
+
1791
+ /**
1792
+ * Generic pallet storage query
1793
+ **/
1794
+ [storage: string]: GenericStorageQuery<Rv>;
1795
+ };
1796
+ /**
1797
+ * Pallet `PoolAssetsFreezer`'s storage queries
1798
+ **/
1799
+ poolAssetsFreezer: {
1800
+ /**
1801
+ * A map that stores freezes applied on an account for a given AssetId.
1802
+ *
1803
+ * @param {[number, AccountId32Like]} arg
1804
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
1805
+ **/
1806
+ freezes: GenericStorageQuery<
1807
+ Rv,
1808
+ (arg: [number, AccountId32Like]) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
1809
+ [number, AccountId32]
1810
+ >;
1811
+
1812
+ /**
1813
+ * A map that stores the current total frozen balance for every account on a given AssetId.
1814
+ *
1815
+ * @param {[number, AccountId32Like]} arg
1816
+ * @param {Callback<bigint | undefined> =} callback
1817
+ **/
1818
+ frozenBalances: GenericStorageQuery<
1819
+ Rv,
1820
+ (arg: [number, AccountId32Like]) => bigint | undefined,
1821
+ [number, AccountId32]
1822
+ >;
1823
+
1824
+ /**
1825
+ * Generic pallet storage query
1826
+ **/
1827
+ [storage: string]: GenericStorageQuery<Rv>;
1828
+ };
1829
+ }