@dedot/chaintypes 0.76.0 → 0.78.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 (41) hide show
  1. package/README.md +8 -4
  2. package/kusama-people/consts.d.ts +477 -0
  3. package/kusama-people/errors.d.ts +818 -0
  4. package/kusama-people/events.d.ts +1108 -0
  5. package/kusama-people/index.d.ts +31 -0
  6. package/kusama-people/json-rpc.d.ts +97 -0
  7. package/kusama-people/query.d.ts +1245 -0
  8. package/kusama-people/runtime.d.ts +636 -0
  9. package/kusama-people/tx.d.ts +3153 -0
  10. package/kusama-people/types.d.ts +5330 -0
  11. package/package.json +14 -2
  12. package/paseo-asset-hub/consts.d.ts +788 -0
  13. package/paseo-asset-hub/errors.d.ts +1539 -0
  14. package/paseo-asset-hub/events.d.ts +2538 -0
  15. package/paseo-asset-hub/index.d.ts +31 -0
  16. package/paseo-asset-hub/json-rpc.d.ts +97 -0
  17. package/paseo-asset-hub/query.d.ts +1753 -0
  18. package/paseo-asset-hub/runtime.d.ts +726 -0
  19. package/paseo-asset-hub/tx.d.ts +9202 -0
  20. package/paseo-asset-hub/types.d.ts +12526 -0
  21. package/paseo-people/consts.d.ts +486 -0
  22. package/paseo-people/errors.d.ts +832 -0
  23. package/paseo-people/events.d.ts +1172 -0
  24. package/paseo-people/index.d.ts +31 -0
  25. package/paseo-people/json-rpc.d.ts +96 -0
  26. package/paseo-people/query.d.ts +1257 -0
  27. package/paseo-people/runtime.d.ts +636 -0
  28. package/paseo-people/tx.d.ts +3273 -0
  29. package/paseo-people/types.d.ts +5460 -0
  30. package/polkadot-people/consts.d.ts +477 -0
  31. package/polkadot-people/errors.d.ts +818 -0
  32. package/polkadot-people/events.d.ts +1108 -0
  33. package/polkadot-people/index.d.ts +31 -0
  34. package/polkadot-people/json-rpc.d.ts +97 -0
  35. package/polkadot-people/query.d.ts +1245 -0
  36. package/polkadot-people/runtime.d.ts +636 -0
  37. package/polkadot-people/tx.d.ts +3153 -0
  38. package/polkadot-people/types.d.ts +5349 -0
  39. package/westend/json-rpc.d.ts +10 -10
  40. package/westend-asset-hub/json-rpc.d.ts +10 -10
  41. package/westend-people/json-rpc.d.ts +11 -10
@@ -0,0 +1,1753 @@
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
+ PalletVestingVestingInfo,
40
+ PalletVestingReleases,
41
+ PalletCollatorSelectionCandidateInfo,
42
+ AssetHubPaseoRuntimeSessionKeys,
43
+ SpCoreCryptoKeyTypeId,
44
+ SpConsensusAuraSr25519AppSr25519Public,
45
+ SpConsensusSlotsSlot,
46
+ CumulusPalletXcmpQueueOutboundChannelDetails,
47
+ CumulusPalletXcmpQueueQueueConfigData,
48
+ PalletXcmQueryStatus,
49
+ XcmVersionedLocation,
50
+ PalletXcmVersionMigrationStage,
51
+ PalletXcmRemoteLockedFungibleRecord,
52
+ XcmVersionedAssetId,
53
+ StagingXcmV4Xcm,
54
+ BpXcmBridgeHubRouterBridgeState,
55
+ PalletMessageQueueBookState,
56
+ CumulusPrimitivesCoreAggregateMessageOrigin,
57
+ PalletMessageQueuePage,
58
+ PalletMultisigMultisig,
59
+ PalletProxyProxyDefinition,
60
+ PalletProxyAnnouncement,
61
+ PalletAssetsAssetDetails,
62
+ PalletAssetsAssetAccount,
63
+ PalletAssetsApproval,
64
+ PalletAssetsAssetMetadata,
65
+ PalletUniquesCollectionDetails,
66
+ PalletUniquesItemDetails,
67
+ PalletUniquesCollectionMetadata,
68
+ PalletUniquesItemMetadata,
69
+ PalletNftsCollectionDetails,
70
+ PalletNftsBitFlagsCollectionRole,
71
+ PalletNftsItemDetails,
72
+ PalletNftsCollectionMetadata,
73
+ PalletNftsItemMetadata,
74
+ PalletNftsAttributeDeposit,
75
+ PalletNftsAttributeNamespace,
76
+ PalletNftsPendingSwap,
77
+ PalletNftsCollectionConfig,
78
+ PalletNftsItemConfig,
79
+ StagingXcmV3MultilocationMultiLocation,
80
+ PalletAssetConversionPoolInfo,
81
+ } from './types.js';
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 `Vesting`'s storage queries
645
+ **/
646
+ vesting: {
647
+ /**
648
+ * Information regarding the vesting of a given account.
649
+ *
650
+ * @param {AccountId32Like} arg
651
+ * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
652
+ **/
653
+ vesting: GenericStorageQuery<
654
+ Rv,
655
+ (arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined,
656
+ AccountId32
657
+ >;
658
+
659
+ /**
660
+ * Storage version of the pallet.
661
+ *
662
+ * New networks start with latest version, as determined by the genesis build.
663
+ *
664
+ * @param {Callback<PalletVestingReleases> =} callback
665
+ **/
666
+ storageVersion: GenericStorageQuery<Rv, () => PalletVestingReleases>;
667
+
668
+ /**
669
+ * Generic pallet storage query
670
+ **/
671
+ [storage: string]: GenericStorageQuery<Rv>;
672
+ };
673
+ /**
674
+ * Pallet `Authorship`'s storage queries
675
+ **/
676
+ authorship: {
677
+ /**
678
+ * Author of current block.
679
+ *
680
+ * @param {Callback<AccountId32 | undefined> =} callback
681
+ **/
682
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
683
+
684
+ /**
685
+ * Generic pallet storage query
686
+ **/
687
+ [storage: string]: GenericStorageQuery<Rv>;
688
+ };
689
+ /**
690
+ * Pallet `CollatorSelection`'s storage queries
691
+ **/
692
+ collatorSelection: {
693
+ /**
694
+ * The invulnerable, permissioned collators. This list must be sorted.
695
+ *
696
+ * @param {Callback<Array<AccountId32>> =} callback
697
+ **/
698
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
699
+
700
+ /**
701
+ * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
702
+ * mutually exclusive.
703
+ *
704
+ * This list is sorted in ascending order by deposit and when the deposits are equal, the least
705
+ * recently updated is considered greater.
706
+ *
707
+ * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
708
+ **/
709
+ candidateList: GenericStorageQuery<Rv, () => Array<PalletCollatorSelectionCandidateInfo>>;
710
+
711
+ /**
712
+ * Last block authored by collator.
713
+ *
714
+ * @param {AccountId32Like} arg
715
+ * @param {Callback<number> =} callback
716
+ **/
717
+ lastAuthoredBlock: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
718
+
719
+ /**
720
+ * Desired number of candidates.
721
+ *
722
+ * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
723
+ *
724
+ * @param {Callback<number> =} callback
725
+ **/
726
+ desiredCandidates: GenericStorageQuery<Rv, () => number>;
727
+
728
+ /**
729
+ * Fixed amount to deposit to become a collator.
730
+ *
731
+ * When a collator calls `leave_intent` they immediately receive the deposit back.
732
+ *
733
+ * @param {Callback<bigint> =} callback
734
+ **/
735
+ candidacyBond: GenericStorageQuery<Rv, () => bigint>;
736
+
737
+ /**
738
+ * Generic pallet storage query
739
+ **/
740
+ [storage: string]: GenericStorageQuery<Rv>;
741
+ };
742
+ /**
743
+ * Pallet `Session`'s storage queries
744
+ **/
745
+ session: {
746
+ /**
747
+ * The current set of validators.
748
+ *
749
+ * @param {Callback<Array<AccountId32>> =} callback
750
+ **/
751
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
752
+
753
+ /**
754
+ * Current index of the session.
755
+ *
756
+ * @param {Callback<number> =} callback
757
+ **/
758
+ currentIndex: GenericStorageQuery<Rv, () => number>;
759
+
760
+ /**
761
+ * True if the underlying economic identities or weighting behind the validators
762
+ * has changed in the queued validator set.
763
+ *
764
+ * @param {Callback<boolean> =} callback
765
+ **/
766
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
767
+
768
+ /**
769
+ * The queued keys for the next session. When the next session begins, these keys
770
+ * will be used to determine the validator's session keys.
771
+ *
772
+ * @param {Callback<Array<[AccountId32, AssetHubPaseoRuntimeSessionKeys]>> =} callback
773
+ **/
774
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, AssetHubPaseoRuntimeSessionKeys]>>;
775
+
776
+ /**
777
+ * Indices of disabled validators.
778
+ *
779
+ * The vec is always kept sorted so that we can find whether a given validator is
780
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
781
+ * a new set of identities.
782
+ *
783
+ * @param {Callback<Array<number>> =} callback
784
+ **/
785
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
786
+
787
+ /**
788
+ * The next session keys for a validator.
789
+ *
790
+ * @param {AccountId32Like} arg
791
+ * @param {Callback<AssetHubPaseoRuntimeSessionKeys | undefined> =} callback
792
+ **/
793
+ nextKeys: GenericStorageQuery<
794
+ Rv,
795
+ (arg: AccountId32Like) => AssetHubPaseoRuntimeSessionKeys | undefined,
796
+ AccountId32
797
+ >;
798
+
799
+ /**
800
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
801
+ *
802
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
803
+ * @param {Callback<AccountId32 | undefined> =} callback
804
+ **/
805
+ keyOwner: GenericStorageQuery<
806
+ Rv,
807
+ (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
808
+ [SpCoreCryptoKeyTypeId, Bytes]
809
+ >;
810
+
811
+ /**
812
+ * Generic pallet storage query
813
+ **/
814
+ [storage: string]: GenericStorageQuery<Rv>;
815
+ };
816
+ /**
817
+ * Pallet `Aura`'s storage queries
818
+ **/
819
+ aura: {
820
+ /**
821
+ * The current authority set.
822
+ *
823
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
824
+ **/
825
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
826
+
827
+ /**
828
+ * The current slot of this block.
829
+ *
830
+ * This will be set in `on_initialize`.
831
+ *
832
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
833
+ **/
834
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
835
+
836
+ /**
837
+ * Generic pallet storage query
838
+ **/
839
+ [storage: string]: GenericStorageQuery<Rv>;
840
+ };
841
+ /**
842
+ * Pallet `AuraExt`'s storage queries
843
+ **/
844
+ auraExt: {
845
+ /**
846
+ * Serves as cache for the authorities.
847
+ *
848
+ * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
849
+ * but we require the old authorities to verify the seal when validating a PoV. This will
850
+ * always be updated to the latest AuRa authorities in `on_finalize`.
851
+ *
852
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
853
+ **/
854
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
855
+
856
+ /**
857
+ * Current slot paired with a number of authored blocks.
858
+ *
859
+ * Updated on each block initialization.
860
+ *
861
+ * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
862
+ **/
863
+ slotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
864
+
865
+ /**
866
+ * Generic pallet storage query
867
+ **/
868
+ [storage: string]: GenericStorageQuery<Rv>;
869
+ };
870
+ /**
871
+ * Pallet `XcmpQueue`'s storage queries
872
+ **/
873
+ xcmpQueue: {
874
+ /**
875
+ * The suspended inbound XCMP channels. All others are not suspended.
876
+ *
877
+ * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
878
+ * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
879
+ * within the block and therefore only included once in the proof size.
880
+ *
881
+ * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
882
+ * will be smaller.
883
+ *
884
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
885
+ **/
886
+ inboundXcmpSuspended: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
887
+
888
+ /**
889
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
890
+ * and last outbound message. If the two indices are equal, then it indicates an empty
891
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
892
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
893
+ * case of the need to send a high-priority signal message this block.
894
+ * The bool is true if there is a signal message waiting to be sent.
895
+ *
896
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
897
+ **/
898
+ outboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
899
+
900
+ /**
901
+ * The messages outbound in a given XCMP channel.
902
+ *
903
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
904
+ * @param {Callback<Bytes> =} callback
905
+ **/
906
+ outboundXcmpMessages: GenericStorageQuery<
907
+ Rv,
908
+ (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
909
+ [PolkadotParachainPrimitivesPrimitivesId, number]
910
+ >;
911
+
912
+ /**
913
+ * Any signal messages waiting to be sent.
914
+ *
915
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
916
+ * @param {Callback<Bytes> =} callback
917
+ **/
918
+ signalMessages: GenericStorageQuery<
919
+ Rv,
920
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes,
921
+ PolkadotParachainPrimitivesPrimitivesId
922
+ >;
923
+
924
+ /**
925
+ * The configuration which controls the dynamics of the outbound queue.
926
+ *
927
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
928
+ **/
929
+ queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
930
+
931
+ /**
932
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
933
+ *
934
+ * @param {Callback<boolean> =} callback
935
+ **/
936
+ queueSuspended: GenericStorageQuery<Rv, () => boolean>;
937
+
938
+ /**
939
+ * The factor to multiply the base delivery fee by.
940
+ *
941
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
942
+ * @param {Callback<FixedU128> =} callback
943
+ **/
944
+ deliveryFeeFactor: GenericStorageQuery<
945
+ Rv,
946
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
947
+ PolkadotParachainPrimitivesPrimitivesId
948
+ >;
949
+
950
+ /**
951
+ * Generic pallet storage query
952
+ **/
953
+ [storage: string]: GenericStorageQuery<Rv>;
954
+ };
955
+ /**
956
+ * Pallet `PolkadotXcm`'s storage queries
957
+ **/
958
+ polkadotXcm: {
959
+ /**
960
+ * The latest available query index.
961
+ *
962
+ * @param {Callback<bigint> =} callback
963
+ **/
964
+ queryCounter: GenericStorageQuery<Rv, () => bigint>;
965
+
966
+ /**
967
+ * The ongoing queries.
968
+ *
969
+ * @param {bigint} arg
970
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
971
+ **/
972
+ queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
973
+
974
+ /**
975
+ * The existing asset traps.
976
+ *
977
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
978
+ * times this pair has been trapped (usually just 1 if it exists at all).
979
+ *
980
+ * @param {H256} arg
981
+ * @param {Callback<number> =} callback
982
+ **/
983
+ assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
984
+
985
+ /**
986
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
987
+ * then the destinations whose XCM version is unknown are considered unreachable.
988
+ *
989
+ * @param {Callback<number | undefined> =} callback
990
+ **/
991
+ safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
992
+
993
+ /**
994
+ * The Latest versions that we know various locations support.
995
+ *
996
+ * @param {[number, XcmVersionedLocation]} arg
997
+ * @param {Callback<number | undefined> =} callback
998
+ **/
999
+ supportedVersion: GenericStorageQuery<
1000
+ Rv,
1001
+ (arg: [number, XcmVersionedLocation]) => number | undefined,
1002
+ [number, XcmVersionedLocation]
1003
+ >;
1004
+
1005
+ /**
1006
+ * All locations that we have requested version notifications from.
1007
+ *
1008
+ * @param {[number, XcmVersionedLocation]} arg
1009
+ * @param {Callback<bigint | undefined> =} callback
1010
+ **/
1011
+ versionNotifiers: GenericStorageQuery<
1012
+ Rv,
1013
+ (arg: [number, XcmVersionedLocation]) => bigint | undefined,
1014
+ [number, XcmVersionedLocation]
1015
+ >;
1016
+
1017
+ /**
1018
+ * The target locations that are subscribed to our version changes, as well as the most recent
1019
+ * of our versions we informed them of.
1020
+ *
1021
+ * @param {[number, XcmVersionedLocation]} arg
1022
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
1023
+ **/
1024
+ versionNotifyTargets: GenericStorageQuery<
1025
+ Rv,
1026
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
1027
+ [number, XcmVersionedLocation]
1028
+ >;
1029
+
1030
+ /**
1031
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
1032
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
1033
+ * which is used as a prioritization.
1034
+ *
1035
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
1036
+ **/
1037
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
1038
+
1039
+ /**
1040
+ * The current migration's stage, if any.
1041
+ *
1042
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
1043
+ **/
1044
+ currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
1045
+
1046
+ /**
1047
+ * Fungible assets which we know are locked on a remote chain.
1048
+ *
1049
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
1050
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1051
+ **/
1052
+ remoteLockedFungibles: GenericStorageQuery<
1053
+ Rv,
1054
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
1055
+ [number, AccountId32, XcmVersionedAssetId]
1056
+ >;
1057
+
1058
+ /**
1059
+ * Fungible assets which we know are locked on this chain.
1060
+ *
1061
+ * @param {AccountId32Like} arg
1062
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
1063
+ **/
1064
+ lockedFungibles: GenericStorageQuery<
1065
+ Rv,
1066
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
1067
+ AccountId32
1068
+ >;
1069
+
1070
+ /**
1071
+ * Global suspension state of the XCM executor.
1072
+ *
1073
+ * @param {Callback<boolean> =} callback
1074
+ **/
1075
+ xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
1076
+
1077
+ /**
1078
+ * Whether or not incoming XCMs (both executed locally and received) should be recorded.
1079
+ * Only one XCM program will be recorded at a time.
1080
+ * This is meant to be used in runtime APIs, and it's advised it stays false
1081
+ * for all other use cases, so as to not degrade regular performance.
1082
+ *
1083
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1084
+ * implementation in the XCM executor configuration.
1085
+ *
1086
+ * @param {Callback<boolean> =} callback
1087
+ **/
1088
+ shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
1089
+
1090
+ /**
1091
+ * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
1092
+ * will be stored here.
1093
+ * Runtime APIs can fetch the XCM that was executed by accessing this value.
1094
+ *
1095
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1096
+ * implementation in the XCM executor configuration.
1097
+ *
1098
+ * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
1099
+ **/
1100
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
1101
+
1102
+ /**
1103
+ * Generic pallet storage query
1104
+ **/
1105
+ [storage: string]: GenericStorageQuery<Rv>;
1106
+ };
1107
+ /**
1108
+ * Pallet `ToKusamaXcmRouter`'s storage queries
1109
+ **/
1110
+ toKusamaXcmRouter: {
1111
+ /**
1112
+ * Bridge that we are using.
1113
+ *
1114
+ * **bridges-v1** assumptions: all outbound messages through this router are using single lane
1115
+ * and to single remote consensus. If there is some other remote consensus that uses the same
1116
+ * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required
1117
+ * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges
1118
+ * by the same pallet instance.
1119
+ *
1120
+ * @param {Callback<BpXcmBridgeHubRouterBridgeState> =} callback
1121
+ **/
1122
+ bridge: GenericStorageQuery<Rv, () => BpXcmBridgeHubRouterBridgeState>;
1123
+
1124
+ /**
1125
+ * Generic pallet storage query
1126
+ **/
1127
+ [storage: string]: GenericStorageQuery<Rv>;
1128
+ };
1129
+ /**
1130
+ * Pallet `MessageQueue`'s storage queries
1131
+ **/
1132
+ messageQueue: {
1133
+ /**
1134
+ * The index of the first and last (non-empty) pages.
1135
+ *
1136
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg
1137
+ * @param {Callback<PalletMessageQueueBookState> =} callback
1138
+ **/
1139
+ bookStateFor: GenericStorageQuery<
1140
+ Rv,
1141
+ (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState,
1142
+ CumulusPrimitivesCoreAggregateMessageOrigin
1143
+ >;
1144
+
1145
+ /**
1146
+ * The origin at which we should begin servicing.
1147
+ *
1148
+ * @param {Callback<CumulusPrimitivesCoreAggregateMessageOrigin | undefined> =} callback
1149
+ **/
1150
+ serviceHead: GenericStorageQuery<Rv, () => CumulusPrimitivesCoreAggregateMessageOrigin | undefined>;
1151
+
1152
+ /**
1153
+ * The map of page indices to pages.
1154
+ *
1155
+ * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg
1156
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
1157
+ **/
1158
+ pages: GenericStorageQuery<
1159
+ Rv,
1160
+ (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
1161
+ [CumulusPrimitivesCoreAggregateMessageOrigin, number]
1162
+ >;
1163
+
1164
+ /**
1165
+ * Generic pallet storage query
1166
+ **/
1167
+ [storage: string]: GenericStorageQuery<Rv>;
1168
+ };
1169
+ /**
1170
+ * Pallet `Multisig`'s storage queries
1171
+ **/
1172
+ multisig: {
1173
+ /**
1174
+ * The set of open multisig operations.
1175
+ *
1176
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
1177
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1178
+ **/
1179
+ multisigs: GenericStorageQuery<
1180
+ Rv,
1181
+ (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1182
+ [AccountId32, FixedBytes<32>]
1183
+ >;
1184
+
1185
+ /**
1186
+ * Generic pallet storage query
1187
+ **/
1188
+ [storage: string]: GenericStorageQuery<Rv>;
1189
+ };
1190
+ /**
1191
+ * Pallet `Proxy`'s storage queries
1192
+ **/
1193
+ proxy: {
1194
+ /**
1195
+ * The set of account proxies. Maps the account which has delegated to the accounts
1196
+ * which are being delegated to, together with the amount held on deposit.
1197
+ *
1198
+ * @param {AccountId32Like} arg
1199
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1200
+ **/
1201
+ proxies: GenericStorageQuery<
1202
+ Rv,
1203
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
1204
+ AccountId32
1205
+ >;
1206
+
1207
+ /**
1208
+ * The announcements made by the proxy (key).
1209
+ *
1210
+ * @param {AccountId32Like} arg
1211
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1212
+ **/
1213
+ announcements: GenericStorageQuery<
1214
+ Rv,
1215
+ (arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
1216
+ AccountId32
1217
+ >;
1218
+
1219
+ /**
1220
+ * Generic pallet storage query
1221
+ **/
1222
+ [storage: string]: GenericStorageQuery<Rv>;
1223
+ };
1224
+ /**
1225
+ * Pallet `Assets`'s storage queries
1226
+ **/
1227
+ assets: {
1228
+ /**
1229
+ * Details of an asset.
1230
+ *
1231
+ * @param {number} arg
1232
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1233
+ **/
1234
+ asset: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetDetails | undefined, number>;
1235
+
1236
+ /**
1237
+ * The holdings of a specific account for a specific asset.
1238
+ *
1239
+ * @param {[number, AccountId32Like]} arg
1240
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1241
+ **/
1242
+ account: GenericStorageQuery<
1243
+ Rv,
1244
+ (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1245
+ [number, AccountId32]
1246
+ >;
1247
+
1248
+ /**
1249
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1250
+ * is the amount of `T::Currency` reserved for storing this.
1251
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1252
+ *
1253
+ * @param {[number, AccountId32Like, AccountId32Like]} arg
1254
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1255
+ **/
1256
+ approvals: GenericStorageQuery<
1257
+ Rv,
1258
+ (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
1259
+ [number, AccountId32, AccountId32]
1260
+ >;
1261
+
1262
+ /**
1263
+ * Metadata of an asset.
1264
+ *
1265
+ * @param {number} arg
1266
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1267
+ **/
1268
+ metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
1269
+
1270
+ /**
1271
+ * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1272
+ * item has no effect.
1273
+ *
1274
+ * This can be useful for setting up constraints for IDs of the new assets. For example, by
1275
+ * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
1276
+ * auto-increment model can be applied to all new asset IDs.
1277
+ *
1278
+ * The initial next asset ID can be set using the [`GenesisConfig`] or the
1279
+ * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1280
+ *
1281
+ * @param {Callback<number | undefined> =} callback
1282
+ **/
1283
+ nextAssetId: GenericStorageQuery<Rv, () => number | undefined>;
1284
+
1285
+ /**
1286
+ * Generic pallet storage query
1287
+ **/
1288
+ [storage: string]: GenericStorageQuery<Rv>;
1289
+ };
1290
+ /**
1291
+ * Pallet `Uniques`'s storage queries
1292
+ **/
1293
+ uniques: {
1294
+ /**
1295
+ * Details of a collection.
1296
+ *
1297
+ * @param {number} arg
1298
+ * @param {Callback<PalletUniquesCollectionDetails | undefined> =} callback
1299
+ **/
1300
+ class: GenericStorageQuery<Rv, (arg: number) => PalletUniquesCollectionDetails | undefined, number>;
1301
+
1302
+ /**
1303
+ * The collection, if any, of which an account is willing to take ownership.
1304
+ *
1305
+ * @param {AccountId32Like} arg
1306
+ * @param {Callback<number | undefined> =} callback
1307
+ **/
1308
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
1309
+
1310
+ /**
1311
+ * The items held by any given account; set out this way so that items owned by a single
1312
+ * account can be enumerated.
1313
+ *
1314
+ * @param {[AccountId32Like, number, number]} arg
1315
+ * @param {Callback<[] | undefined> =} callback
1316
+ **/
1317
+ account: GenericStorageQuery<
1318
+ Rv,
1319
+ (arg: [AccountId32Like, number, number]) => [] | undefined,
1320
+ [AccountId32, number, number]
1321
+ >;
1322
+
1323
+ /**
1324
+ * The collections owned by any given account; set out this way so that collections owned by
1325
+ * a single account can be enumerated.
1326
+ *
1327
+ * @param {[AccountId32Like, number]} arg
1328
+ * @param {Callback<[] | undefined> =} callback
1329
+ **/
1330
+ classAccount: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => [] | undefined, [AccountId32, number]>;
1331
+
1332
+ /**
1333
+ * The items in existence and their ownership details.
1334
+ *
1335
+ * @param {[number, number]} arg
1336
+ * @param {Callback<PalletUniquesItemDetails | undefined> =} callback
1337
+ **/
1338
+ asset: GenericStorageQuery<Rv, (arg: [number, number]) => PalletUniquesItemDetails | undefined, [number, number]>;
1339
+
1340
+ /**
1341
+ * Metadata of a collection.
1342
+ *
1343
+ * @param {number} arg
1344
+ * @param {Callback<PalletUniquesCollectionMetadata | undefined> =} callback
1345
+ **/
1346
+ classMetadataOf: GenericStorageQuery<Rv, (arg: number) => PalletUniquesCollectionMetadata | undefined, number>;
1347
+
1348
+ /**
1349
+ * Metadata of an item.
1350
+ *
1351
+ * @param {[number, number]} arg
1352
+ * @param {Callback<PalletUniquesItemMetadata | undefined> =} callback
1353
+ **/
1354
+ instanceMetadataOf: GenericStorageQuery<
1355
+ Rv,
1356
+ (arg: [number, number]) => PalletUniquesItemMetadata | undefined,
1357
+ [number, number]
1358
+ >;
1359
+
1360
+ /**
1361
+ * Attributes of a collection.
1362
+ *
1363
+ * @param {[number, number | undefined, BytesLike]} arg
1364
+ * @param {Callback<[Bytes, bigint] | undefined> =} callback
1365
+ **/
1366
+ attribute: GenericStorageQuery<
1367
+ Rv,
1368
+ (arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined,
1369
+ [number, number | undefined, Bytes]
1370
+ >;
1371
+
1372
+ /**
1373
+ * Price of an asset instance.
1374
+ *
1375
+ * @param {[number, number]} arg
1376
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1377
+ **/
1378
+ itemPriceOf: GenericStorageQuery<
1379
+ Rv,
1380
+ (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined,
1381
+ [number, number]
1382
+ >;
1383
+
1384
+ /**
1385
+ * Keeps track of the number of items a collection might have.
1386
+ *
1387
+ * @param {number} arg
1388
+ * @param {Callback<number | undefined> =} callback
1389
+ **/
1390
+ collectionMaxSupply: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
1391
+
1392
+ /**
1393
+ * Generic pallet storage query
1394
+ **/
1395
+ [storage: string]: GenericStorageQuery<Rv>;
1396
+ };
1397
+ /**
1398
+ * Pallet `Nfts`'s storage queries
1399
+ **/
1400
+ nfts: {
1401
+ /**
1402
+ * Details of a collection.
1403
+ *
1404
+ * @param {number} arg
1405
+ * @param {Callback<PalletNftsCollectionDetails | undefined> =} callback
1406
+ **/
1407
+ collection: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionDetails | undefined, number>;
1408
+
1409
+ /**
1410
+ * The collection, if any, of which an account is willing to take ownership.
1411
+ *
1412
+ * @param {AccountId32Like} arg
1413
+ * @param {Callback<number | undefined> =} callback
1414
+ **/
1415
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
1416
+
1417
+ /**
1418
+ * The items held by any given account; set out this way so that items owned by a single
1419
+ * account can be enumerated.
1420
+ *
1421
+ * @param {[AccountId32Like, number, number]} arg
1422
+ * @param {Callback<[] | undefined> =} callback
1423
+ **/
1424
+ account: GenericStorageQuery<
1425
+ Rv,
1426
+ (arg: [AccountId32Like, number, number]) => [] | undefined,
1427
+ [AccountId32, number, number]
1428
+ >;
1429
+
1430
+ /**
1431
+ * The collections owned by any given account; set out this way so that collections owned by
1432
+ * a single account can be enumerated.
1433
+ *
1434
+ * @param {[AccountId32Like, number]} arg
1435
+ * @param {Callback<[] | undefined> =} callback
1436
+ **/
1437
+ collectionAccount: GenericStorageQuery<
1438
+ Rv,
1439
+ (arg: [AccountId32Like, number]) => [] | undefined,
1440
+ [AccountId32, number]
1441
+ >;
1442
+
1443
+ /**
1444
+ * The items in existence and their ownership details.
1445
+ * Stores collection roles as per account.
1446
+ *
1447
+ * @param {[number, AccountId32Like]} arg
1448
+ * @param {Callback<PalletNftsBitFlagsCollectionRole | undefined> =} callback
1449
+ **/
1450
+ collectionRoleOf: GenericStorageQuery<
1451
+ Rv,
1452
+ (arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined,
1453
+ [number, AccountId32]
1454
+ >;
1455
+
1456
+ /**
1457
+ * The items in existence and their ownership details.
1458
+ *
1459
+ * @param {[number, number]} arg
1460
+ * @param {Callback<PalletNftsItemDetails | undefined> =} callback
1461
+ **/
1462
+ item: GenericStorageQuery<Rv, (arg: [number, number]) => PalletNftsItemDetails | undefined, [number, number]>;
1463
+
1464
+ /**
1465
+ * Metadata of a collection.
1466
+ *
1467
+ * @param {number} arg
1468
+ * @param {Callback<PalletNftsCollectionMetadata | undefined> =} callback
1469
+ **/
1470
+ collectionMetadataOf: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionMetadata | undefined, number>;
1471
+
1472
+ /**
1473
+ * Metadata of an item.
1474
+ *
1475
+ * @param {[number, number]} arg
1476
+ * @param {Callback<PalletNftsItemMetadata | undefined> =} callback
1477
+ **/
1478
+ itemMetadataOf: GenericStorageQuery<
1479
+ Rv,
1480
+ (arg: [number, number]) => PalletNftsItemMetadata | undefined,
1481
+ [number, number]
1482
+ >;
1483
+
1484
+ /**
1485
+ * Attributes of a collection.
1486
+ *
1487
+ * @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg
1488
+ * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback
1489
+ **/
1490
+ attribute: GenericStorageQuery<
1491
+ Rv,
1492
+ (
1493
+ arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike],
1494
+ ) => [Bytes, PalletNftsAttributeDeposit] | undefined,
1495
+ [number, number | undefined, PalletNftsAttributeNamespace, Bytes]
1496
+ >;
1497
+
1498
+ /**
1499
+ * A price of an item.
1500
+ *
1501
+ * @param {[number, number]} arg
1502
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1503
+ **/
1504
+ itemPriceOf: GenericStorageQuery<
1505
+ Rv,
1506
+ (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined,
1507
+ [number, number]
1508
+ >;
1509
+
1510
+ /**
1511
+ * Item attribute approvals.
1512
+ *
1513
+ * @param {[number, number]} arg
1514
+ * @param {Callback<Array<AccountId32>> =} callback
1515
+ **/
1516
+ itemAttributesApprovalsOf: GenericStorageQuery<Rv, (arg: [number, number]) => Array<AccountId32>, [number, number]>;
1517
+
1518
+ /**
1519
+ * Stores the `CollectionId` that is going to be used for the next collection.
1520
+ * This gets incremented whenever a new collection is created.
1521
+ *
1522
+ * @param {Callback<number | undefined> =} callback
1523
+ **/
1524
+ nextCollectionId: GenericStorageQuery<Rv, () => number | undefined>;
1525
+
1526
+ /**
1527
+ * Handles all the pending swaps.
1528
+ *
1529
+ * @param {[number, number]} arg
1530
+ * @param {Callback<PalletNftsPendingSwap | undefined> =} callback
1531
+ **/
1532
+ pendingSwapOf: GenericStorageQuery<
1533
+ Rv,
1534
+ (arg: [number, number]) => PalletNftsPendingSwap | undefined,
1535
+ [number, number]
1536
+ >;
1537
+
1538
+ /**
1539
+ * Config of a collection.
1540
+ *
1541
+ * @param {number} arg
1542
+ * @param {Callback<PalletNftsCollectionConfig | undefined> =} callback
1543
+ **/
1544
+ collectionConfigOf: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionConfig | undefined, number>;
1545
+
1546
+ /**
1547
+ * Config of an item.
1548
+ *
1549
+ * @param {[number, number]} arg
1550
+ * @param {Callback<PalletNftsItemConfig | undefined> =} callback
1551
+ **/
1552
+ itemConfigOf: GenericStorageQuery<
1553
+ Rv,
1554
+ (arg: [number, number]) => PalletNftsItemConfig | undefined,
1555
+ [number, number]
1556
+ >;
1557
+
1558
+ /**
1559
+ * Generic pallet storage query
1560
+ **/
1561
+ [storage: string]: GenericStorageQuery<Rv>;
1562
+ };
1563
+ /**
1564
+ * Pallet `ForeignAssets`'s storage queries
1565
+ **/
1566
+ foreignAssets: {
1567
+ /**
1568
+ * Details of an asset.
1569
+ *
1570
+ * @param {StagingXcmV3MultilocationMultiLocation} arg
1571
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1572
+ **/
1573
+ asset: GenericStorageQuery<
1574
+ Rv,
1575
+ (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined,
1576
+ StagingXcmV3MultilocationMultiLocation
1577
+ >;
1578
+
1579
+ /**
1580
+ * The holdings of a specific account for a specific asset.
1581
+ *
1582
+ * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
1583
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1584
+ **/
1585
+ account: GenericStorageQuery<
1586
+ Rv,
1587
+ (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1588
+ [StagingXcmV3MultilocationMultiLocation, AccountId32]
1589
+ >;
1590
+
1591
+ /**
1592
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1593
+ * is the amount of `T::Currency` reserved for storing this.
1594
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1595
+ *
1596
+ * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like]} arg
1597
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1598
+ **/
1599
+ approvals: GenericStorageQuery<
1600
+ Rv,
1601
+ (
1602
+ arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like],
1603
+ ) => PalletAssetsApproval | undefined,
1604
+ [StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32]
1605
+ >;
1606
+
1607
+ /**
1608
+ * Metadata of an asset.
1609
+ *
1610
+ * @param {StagingXcmV3MultilocationMultiLocation} arg
1611
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1612
+ **/
1613
+ metadata: GenericStorageQuery<
1614
+ Rv,
1615
+ (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata,
1616
+ StagingXcmV3MultilocationMultiLocation
1617
+ >;
1618
+
1619
+ /**
1620
+ * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1621
+ * item has no effect.
1622
+ *
1623
+ * This can be useful for setting up constraints for IDs of the new assets. For example, by
1624
+ * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
1625
+ * auto-increment model can be applied to all new asset IDs.
1626
+ *
1627
+ * The initial next asset ID can be set using the [`GenesisConfig`] or the
1628
+ * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1629
+ *
1630
+ * @param {Callback<StagingXcmV3MultilocationMultiLocation | undefined> =} callback
1631
+ **/
1632
+ nextAssetId: GenericStorageQuery<Rv, () => StagingXcmV3MultilocationMultiLocation | undefined>;
1633
+
1634
+ /**
1635
+ * Generic pallet storage query
1636
+ **/
1637
+ [storage: string]: GenericStorageQuery<Rv>;
1638
+ };
1639
+ /**
1640
+ * Pallet `PoolAssets`'s storage queries
1641
+ **/
1642
+ poolAssets: {
1643
+ /**
1644
+ * Details of an asset.
1645
+ *
1646
+ * @param {number} arg
1647
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1648
+ **/
1649
+ asset: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetDetails | undefined, number>;
1650
+
1651
+ /**
1652
+ * The holdings of a specific account for a specific asset.
1653
+ *
1654
+ * @param {[number, AccountId32Like]} arg
1655
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1656
+ **/
1657
+ account: GenericStorageQuery<
1658
+ Rv,
1659
+ (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1660
+ [number, AccountId32]
1661
+ >;
1662
+
1663
+ /**
1664
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1665
+ * is the amount of `T::Currency` reserved for storing this.
1666
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1667
+ *
1668
+ * @param {[number, AccountId32Like, AccountId32Like]} arg
1669
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1670
+ **/
1671
+ approvals: GenericStorageQuery<
1672
+ Rv,
1673
+ (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
1674
+ [number, AccountId32, AccountId32]
1675
+ >;
1676
+
1677
+ /**
1678
+ * Metadata of an asset.
1679
+ *
1680
+ * @param {number} arg
1681
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1682
+ **/
1683
+ metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
1684
+
1685
+ /**
1686
+ * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1687
+ * item has no effect.
1688
+ *
1689
+ * This can be useful for setting up constraints for IDs of the new assets. For example, by
1690
+ * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
1691
+ * auto-increment model can be applied to all new asset IDs.
1692
+ *
1693
+ * The initial next asset ID can be set using the [`GenesisConfig`] or the
1694
+ * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1695
+ *
1696
+ * @param {Callback<number | undefined> =} callback
1697
+ **/
1698
+ nextAssetId: GenericStorageQuery<Rv, () => number | undefined>;
1699
+
1700
+ /**
1701
+ * Generic pallet storage query
1702
+ **/
1703
+ [storage: string]: GenericStorageQuery<Rv>;
1704
+ };
1705
+ /**
1706
+ * Pallet `AssetConversion`'s storage queries
1707
+ **/
1708
+ assetConversion: {
1709
+ /**
1710
+ * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
1711
+ * created rather than people sending tokens directly to a pool's public account.
1712
+ *
1713
+ * @param {[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]} arg
1714
+ * @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
1715
+ **/
1716
+ pools: GenericStorageQuery<
1717
+ Rv,
1718
+ (
1719
+ arg: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation],
1720
+ ) => PalletAssetConversionPoolInfo | undefined,
1721
+ [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]
1722
+ >;
1723
+
1724
+ /**
1725
+ * Stores the `PoolAssetId` that is going to be used for the next lp token.
1726
+ * This gets incremented whenever a new lp pool is created.
1727
+ *
1728
+ * @param {Callback<number | undefined> =} callback
1729
+ **/
1730
+ nextPoolAssetId: GenericStorageQuery<Rv, () => number | undefined>;
1731
+
1732
+ /**
1733
+ * Generic pallet storage query
1734
+ **/
1735
+ [storage: string]: GenericStorageQuery<Rv>;
1736
+ };
1737
+ /**
1738
+ * Pallet `Sudo`'s storage queries
1739
+ **/
1740
+ sudo: {
1741
+ /**
1742
+ * The `AccountId` of the sudo key.
1743
+ *
1744
+ * @param {Callback<AccountId32 | undefined> =} callback
1745
+ **/
1746
+ key: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1747
+
1748
+ /**
1749
+ * Generic pallet storage query
1750
+ **/
1751
+ [storage: string]: GenericStorageQuery<Rv>;
1752
+ };
1753
+ }