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