@dedot/chaintypes 0.0.1-alpha.100

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