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