@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,22 +1,23 @@
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,
18
18
  FrameSystemEventRecord,
19
19
  FrameSystemLastRuntimeUpgradeInfo,
20
+ FrameSystemCodeUpgradeAuthorization,
20
21
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
21
22
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
22
23
  PolkadotPrimitivesV6PersistedValidationData,
@@ -29,29 +30,30 @@ import type {
29
30
  PolkadotParachainPrimitivesPrimitivesId,
30
31
  PolkadotCorePrimitivesOutboundHrmpMessage,
31
32
  SpWeightsWeightV2Weight,
32
- CumulusPalletParachainSystemCodeUpgradeAuthorization,
33
33
  PalletBalancesAccountData,
34
34
  PalletBalancesBalanceLock,
35
35
  PalletBalancesReserveData,
36
36
  PalletBalancesIdAmount,
37
37
  PalletBalancesIdAmount002,
38
38
  PalletTransactionPaymentReleases,
39
+ PalletVestingVestingInfo,
40
+ PalletVestingReleases,
39
41
  PalletCollatorSelectionCandidateInfo,
40
42
  AssetHubKusamaRuntimeSessionKeys,
41
43
  SpCoreCryptoKeyTypeId,
42
44
  SpConsensusAuraSr25519AppSr25519Public,
43
45
  SpConsensusSlotsSlot,
44
- CumulusPalletXcmpQueueInboundChannelDetails,
45
46
  CumulusPalletXcmpQueueOutboundChannelDetails,
46
47
  CumulusPalletXcmpQueueQueueConfigData,
47
48
  PalletXcmQueryStatus,
48
- XcmVersionedMultiLocation,
49
+ XcmVersionedLocation,
49
50
  PalletXcmVersionMigrationStage,
50
51
  PalletXcmRemoteLockedFungibleRecord,
51
52
  XcmVersionedAssetId,
52
- CumulusPalletDmpQueueConfigData,
53
- CumulusPalletDmpQueuePageIndexData,
54
53
  BpXcmBridgeHubRouterBridgeState,
54
+ PalletMessageQueueBookState,
55
+ CumulusPrimitivesCoreAggregateMessageOrigin,
56
+ PalletMessageQueuePage,
55
57
  PalletMultisigMultisig,
56
58
  PalletProxyProxyDefinition,
57
59
  PalletProxyAnnouncement,
@@ -78,7 +80,7 @@ import type {
78
80
  PalletAssetConversionPoolInfo,
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,28 @@ 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>;
100
102
 
101
103
  /**
102
104
  * The current weight for the block.
103
105
  *
104
106
  * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
105
107
  **/
106
- blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
108
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
107
109
 
108
110
  /**
109
111
  * Total length (in bytes) for all extrinsics put together, for the current block.
110
112
  *
111
113
  * @param {Callback<number | undefined> =} callback
112
114
  **/
113
- allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
115
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
114
116
 
115
117
  /**
116
118
  * Map of block numbers to block hashes.
@@ -118,7 +120,7 @@ export interface ChainStorage extends GenericChainStorage {
118
120
  * @param {number} arg
119
121
  * @param {Callback<H256> =} callback
120
122
  **/
121
- blockHash: GenericStorageQuery<(arg: number) => H256>;
123
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
122
124
 
123
125
  /**
124
126
  * Extrinsics data for the current block (maps an extrinsic's index to its data).
@@ -126,28 +128,28 @@ export interface ChainStorage extends GenericChainStorage {
126
128
  * @param {number} arg
127
129
  * @param {Callback<Bytes> =} callback
128
130
  **/
129
- extrinsicData: GenericStorageQuery<(arg: number) => Bytes>;
131
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
130
132
 
131
133
  /**
132
134
  * The current block number being processed. Set by `execute_block`.
133
135
  *
134
136
  * @param {Callback<number> =} callback
135
137
  **/
136
- number: GenericStorageQuery<() => number>;
138
+ number: GenericStorageQuery<Rv, () => number>;
137
139
 
138
140
  /**
139
141
  * Hash of the previous block.
140
142
  *
141
143
  * @param {Callback<H256> =} callback
142
144
  **/
143
- parentHash: GenericStorageQuery<() => H256>;
145
+ parentHash: GenericStorageQuery<Rv, () => H256>;
144
146
 
145
147
  /**
146
148
  * Digest of the current block, also part of the block header.
147
149
  *
148
150
  * @param {Callback<Digest> =} callback
149
151
  **/
150
- digest: GenericStorageQuery<() => Digest>;
152
+ digest: GenericStorageQuery<Rv, () => Digest>;
151
153
 
152
154
  /**
153
155
  * Events deposited for the current block.
@@ -160,14 +162,14 @@ export interface ChainStorage extends GenericChainStorage {
160
162
  *
161
163
  * @param {Callback<Array<FrameSystemEventRecord>> =} callback
162
164
  **/
163
- events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
165
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
164
166
 
165
167
  /**
166
168
  * The number of events in the `Events<T>` list.
167
169
  *
168
170
  * @param {Callback<number> =} callback
169
171
  **/
170
- eventCount: GenericStorageQuery<() => number>;
172
+ eventCount: GenericStorageQuery<Rv, () => number>;
171
173
 
172
174
  /**
173
175
  * Mapping between a topic (represented by T::Hash) and a vector of indexes
@@ -184,21 +186,21 @@ export interface ChainStorage extends GenericChainStorage {
184
186
  * @param {H256} arg
185
187
  * @param {Callback<Array<[number, number]>> =} callback
186
188
  **/
187
- eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>>;
189
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
188
190
 
189
191
  /**
190
192
  * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
191
193
  *
192
194
  * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
193
195
  **/
194
- lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
196
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
195
197
 
196
198
  /**
197
199
  * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
198
200
  *
199
201
  * @param {Callback<boolean> =} callback
200
202
  **/
201
- upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
203
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
202
204
 
203
205
  /**
204
206
  * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
@@ -206,19 +208,26 @@ export interface ChainStorage extends GenericChainStorage {
206
208
  *
207
209
  * @param {Callback<boolean> =} callback
208
210
  **/
209
- upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
211
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
210
212
 
211
213
  /**
212
214
  * The execution phase of the block.
213
215
  *
214
216
  * @param {Callback<Phase | undefined> =} callback
215
217
  **/
216
- executionPhase: GenericStorageQuery<() => Phase | undefined>;
218
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
219
+
220
+ /**
221
+ * `Some` if a code upgrade has been authorized.
222
+ *
223
+ * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
224
+ **/
225
+ authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
217
226
 
218
227
  /**
219
228
  * Generic pallet storage query
220
229
  **/
221
- [storage: string]: GenericStorageQuery;
230
+ [storage: string]: GenericStorageQuery<Rv>;
222
231
  };
223
232
  /**
224
233
  * Pallet `ParachainSystem`'s storage queries
@@ -234,7 +243,7 @@ export interface ChainStorage extends GenericChainStorage {
234
243
  *
235
244
  * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
236
245
  **/
237
- unincludedSegment: GenericStorageQuery<() => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
246
+ unincludedSegment: GenericStorageQuery<Rv, () => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
238
247
 
239
248
  /**
240
249
  * Storage field that keeps track of bandwidth used by the unincluded segment along with the
@@ -244,6 +253,7 @@ export interface ChainStorage extends GenericChainStorage {
244
253
  * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
245
254
  **/
246
255
  aggregatedUnincludedSegment: GenericStorageQuery<
256
+ Rv,
247
257
  () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
248
258
  >;
249
259
 
@@ -257,7 +267,7 @@ export interface ChainStorage extends GenericChainStorage {
257
267
  *
258
268
  * @param {Callback<Bytes> =} callback
259
269
  **/
260
- pendingValidationCode: GenericStorageQuery<() => Bytes>;
270
+ pendingValidationCode: GenericStorageQuery<Rv, () => Bytes>;
261
271
 
262
272
  /**
263
273
  * Validation code that is set by the parachain and is to be communicated to collator and
@@ -268,7 +278,7 @@ export interface ChainStorage extends GenericChainStorage {
268
278
  *
269
279
  * @param {Callback<Bytes | undefined> =} callback
270
280
  **/
271
- newValidationCode: GenericStorageQuery<() => Bytes | undefined>;
281
+ newValidationCode: GenericStorageQuery<Rv, () => Bytes | undefined>;
272
282
 
273
283
  /**
274
284
  * The [`PersistedValidationData`] set for this block.
@@ -277,14 +287,14 @@ export interface ChainStorage extends GenericChainStorage {
277
287
  *
278
288
  * @param {Callback<PolkadotPrimitivesV6PersistedValidationData | undefined> =} callback
279
289
  **/
280
- validationData: GenericStorageQuery<() => PolkadotPrimitivesV6PersistedValidationData | undefined>;
290
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6PersistedValidationData | undefined>;
281
291
 
282
292
  /**
283
293
  * Were the validation data set to notify the relay chain?
284
294
  *
285
295
  * @param {Callback<boolean> =} callback
286
296
  **/
287
- didSetValidationCode: GenericStorageQuery<() => boolean>;
297
+ didSetValidationCode: GenericStorageQuery<Rv, () => boolean>;
288
298
 
289
299
  /**
290
300
  * The relay chain block number associated with the last parachain block.
@@ -293,7 +303,7 @@ export interface ChainStorage extends GenericChainStorage {
293
303
  *
294
304
  * @param {Callback<number> =} callback
295
305
  **/
296
- lastRelayChainBlockNumber: GenericStorageQuery<() => number>;
306
+ lastRelayChainBlockNumber: GenericStorageQuery<Rv, () => number>;
297
307
 
298
308
  /**
299
309
  * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
@@ -306,7 +316,7 @@ export interface ChainStorage extends GenericChainStorage {
306
316
  *
307
317
  * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
308
318
  **/
309
- upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
319
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
310
320
 
311
321
  /**
312
322
  * Optional upgrade go-ahead signal from the relay-chain.
@@ -317,7 +327,7 @@ export interface ChainStorage extends GenericChainStorage {
317
327
  *
318
328
  * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
319
329
  **/
320
- upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
330
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
321
331
 
322
332
  /**
323
333
  * The state proof for the last relay parent block.
@@ -329,7 +339,7 @@ export interface ChainStorage extends GenericChainStorage {
329
339
  *
330
340
  * @param {Callback<SpTrieStorageProof | undefined> =} callback
331
341
  **/
332
- relayStateProof: GenericStorageQuery<() => SpTrieStorageProof | undefined>;
342
+ relayStateProof: GenericStorageQuery<Rv, () => SpTrieStorageProof | undefined>;
333
343
 
334
344
  /**
335
345
  * The snapshot of some state related to messaging relevant to the current parachain as per
@@ -343,6 +353,7 @@ export interface ChainStorage extends GenericChainStorage {
343
353
  * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
344
354
  **/
345
355
  relevantMessagingState: GenericStorageQuery<
356
+ Rv,
346
357
  () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
347
358
  >;
348
359
 
@@ -356,7 +367,7 @@ export interface ChainStorage extends GenericChainStorage {
356
367
  *
357
368
  * @param {Callback<PolkadotPrimitivesV6AbridgedHostConfiguration | undefined> =} callback
358
369
  **/
359
- hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>;
370
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>;
360
371
 
361
372
  /**
362
373
  * The last downward message queue chain head we have observed.
@@ -366,7 +377,7 @@ export interface ChainStorage extends GenericChainStorage {
366
377
  *
367
378
  * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
368
379
  **/
369
- lastDmqMqcHead: GenericStorageQuery<() => CumulusPrimitivesParachainInherentMessageQueueChain>;
380
+ lastDmqMqcHead: GenericStorageQuery<Rv, () => CumulusPrimitivesParachainInherentMessageQueueChain>;
370
381
 
371
382
  /**
372
383
  * The message queue chain heads we have observed per each channel incoming channel.
@@ -377,6 +388,7 @@ export interface ChainStorage extends GenericChainStorage {
377
388
  * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
378
389
  **/
379
390
  lastHrmpMqcHeads: GenericStorageQuery<
391
+ Rv,
380
392
  () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
381
393
  >;
382
394
 
@@ -387,7 +399,7 @@ export interface ChainStorage extends GenericChainStorage {
387
399
  *
388
400
  * @param {Callback<number> =} callback
389
401
  **/
390
- processedDownwardMessages: GenericStorageQuery<() => number>;
402
+ processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
391
403
 
392
404
  /**
393
405
  * HRMP watermark that was set in a block.
@@ -396,7 +408,7 @@ export interface ChainStorage extends GenericChainStorage {
396
408
  *
397
409
  * @param {Callback<number> =} callback
398
410
  **/
399
- hrmpWatermark: GenericStorageQuery<() => number>;
411
+ hrmpWatermark: GenericStorageQuery<Rv, () => number>;
400
412
 
401
413
  /**
402
414
  * HRMP messages that were sent in a block.
@@ -405,7 +417,7 @@ export interface ChainStorage extends GenericChainStorage {
405
417
  *
406
418
  * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
407
419
  **/
408
- hrmpOutboundMessages: GenericStorageQuery<() => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
420
+ hrmpOutboundMessages: GenericStorageQuery<Rv, () => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
409
421
 
410
422
  /**
411
423
  * Upward messages that were sent in a block.
@@ -414,21 +426,21 @@ export interface ChainStorage extends GenericChainStorage {
414
426
  *
415
427
  * @param {Callback<Array<Bytes>> =} callback
416
428
  **/
417
- upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
429
+ upwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
418
430
 
419
431
  /**
420
432
  * Upward messages that are still pending and not yet send to the relay chain.
421
433
  *
422
434
  * @param {Callback<Array<Bytes>> =} callback
423
435
  **/
424
- pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
436
+ pendingUpwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
425
437
 
426
438
  /**
427
439
  * The factor to multiply the base delivery fee by for UMP.
428
440
  *
429
441
  * @param {Callback<FixedU128> =} callback
430
442
  **/
431
- upwardDeliveryFeeFactor: GenericStorageQuery<() => FixedU128>;
443
+ upwardDeliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
432
444
 
433
445
  /**
434
446
  * The number of HRMP messages we observed in `on_initialize` and thus used that number for
@@ -436,7 +448,7 @@ export interface ChainStorage extends GenericChainStorage {
436
448
  *
437
449
  * @param {Callback<number> =} callback
438
450
  **/
439
- announcedHrmpMessagesPerCandidate: GenericStorageQuery<() => number>;
451
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<Rv, () => number>;
440
452
 
441
453
  /**
442
454
  * The weight we reserve at the beginning of the block for processing XCMP messages. This
@@ -444,7 +456,7 @@ export interface ChainStorage extends GenericChainStorage {
444
456
  *
445
457
  * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
446
458
  **/
447
- reservedXcmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
459
+ reservedXcmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
448
460
 
449
461
  /**
450
462
  * The weight we reserve at the beginning of the block for processing DMP messages. This
@@ -452,14 +464,7 @@ export interface ChainStorage extends GenericChainStorage {
452
464
  *
453
465
  * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
454
466
  **/
455
- reservedDmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
456
-
457
- /**
458
- * The next authorized upgrade, if there is one.
459
- *
460
- * @param {Callback<CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined> =} callback
461
- **/
462
- authorizedUpgrade: GenericStorageQuery<() => CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined>;
467
+ reservedDmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
463
468
 
464
469
  /**
465
470
  * A custom head data that should be returned as result of `validate_block`.
@@ -468,12 +473,12 @@ export interface ChainStorage extends GenericChainStorage {
468
473
  *
469
474
  * @param {Callback<Bytes | undefined> =} callback
470
475
  **/
471
- customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
476
+ customValidationHeadData: GenericStorageQuery<Rv, () => Bytes | undefined>;
472
477
 
473
478
  /**
474
479
  * Generic pallet storage query
475
480
  **/
476
- [storage: string]: GenericStorageQuery;
481
+ [storage: string]: GenericStorageQuery<Rv>;
477
482
  };
478
483
  /**
479
484
  * Pallet `Timestamp`'s storage queries
@@ -484,7 +489,7 @@ export interface ChainStorage extends GenericChainStorage {
484
489
  *
485
490
  * @param {Callback<bigint> =} callback
486
491
  **/
487
- now: GenericStorageQuery<() => bigint>;
492
+ now: GenericStorageQuery<Rv, () => bigint>;
488
493
 
489
494
  /**
490
495
  * Whether the timestamp has been updated in this block.
@@ -494,12 +499,12 @@ export interface ChainStorage extends GenericChainStorage {
494
499
  *
495
500
  * @param {Callback<boolean> =} callback
496
501
  **/
497
- didUpdate: GenericStorageQuery<() => boolean>;
502
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
498
503
 
499
504
  /**
500
505
  * Generic pallet storage query
501
506
  **/
502
- [storage: string]: GenericStorageQuery;
507
+ [storage: string]: GenericStorageQuery<Rv>;
503
508
  };
504
509
  /**
505
510
  * Pallet `ParachainInfo`'s storage queries
@@ -509,12 +514,12 @@ export interface ChainStorage extends GenericChainStorage {
509
514
  *
510
515
  * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
511
516
  **/
512
- parachainId: GenericStorageQuery<() => PolkadotParachainPrimitivesPrimitivesId>;
517
+ parachainId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
513
518
 
514
519
  /**
515
520
  * Generic pallet storage query
516
521
  **/
517
- [storage: string]: GenericStorageQuery;
522
+ [storage: string]: GenericStorageQuery<Rv>;
518
523
  };
519
524
  /**
520
525
  * Pallet `Balances`'s storage queries
@@ -525,14 +530,14 @@ export interface ChainStorage extends GenericChainStorage {
525
530
  *
526
531
  * @param {Callback<bigint> =} callback
527
532
  **/
528
- totalIssuance: GenericStorageQuery<() => bigint>;
533
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
529
534
 
530
535
  /**
531
536
  * The total units of outstanding deactivated balance in the system.
532
537
  *
533
538
  * @param {Callback<bigint> =} callback
534
539
  **/
535
- inactiveIssuance: GenericStorageQuery<() => bigint>;
540
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
536
541
 
537
542
  /**
538
543
  * The Balances pallet example of storing the balance of an account.
@@ -563,7 +568,7 @@ export interface ChainStorage extends GenericChainStorage {
563
568
  * @param {AccountId32Like} arg
564
569
  * @param {Callback<PalletBalancesAccountData> =} callback
565
570
  **/
566
- account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
571
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
567
572
 
568
573
  /**
569
574
  * Any liquidity locks on some account balances.
@@ -572,7 +577,7 @@ export interface ChainStorage extends GenericChainStorage {
572
577
  * @param {AccountId32Like} arg
573
578
  * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
574
579
  **/
575
- locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
580
+ locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
576
581
 
577
582
  /**
578
583
  * Named reserves on some account balances.
@@ -580,7 +585,7 @@ export interface ChainStorage extends GenericChainStorage {
580
585
  * @param {AccountId32Like} arg
581
586
  * @param {Callback<Array<PalletBalancesReserveData>> =} callback
582
587
  **/
583
- reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
588
+ reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
584
589
 
585
590
  /**
586
591
  * Holds on account balances.
@@ -588,7 +593,7 @@ export interface ChainStorage extends GenericChainStorage {
588
593
  * @param {AccountId32Like} arg
589
594
  * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
590
595
  **/
591
- holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
596
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
592
597
 
593
598
  /**
594
599
  * Freeze locks on account balances.
@@ -596,12 +601,12 @@ export interface ChainStorage extends GenericChainStorage {
596
601
  * @param {AccountId32Like} arg
597
602
  * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
598
603
  **/
599
- freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount002>>;
604
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount002>, AccountId32>;
600
605
 
601
606
  /**
602
607
  * Generic pallet storage query
603
608
  **/
604
- [storage: string]: GenericStorageQuery;
609
+ [storage: string]: GenericStorageQuery<Rv>;
605
610
  };
606
611
  /**
607
612
  * Pallet `TransactionPayment`'s storage queries
@@ -611,18 +616,48 @@ export interface ChainStorage extends GenericChainStorage {
611
616
  *
612
617
  * @param {Callback<FixedU128> =} callback
613
618
  **/
614
- nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
619
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
615
620
 
616
621
  /**
617
622
  *
618
623
  * @param {Callback<PalletTransactionPaymentReleases> =} callback
619
624
  **/
620
- storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
625
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
626
+
627
+ /**
628
+ * Generic pallet storage query
629
+ **/
630
+ [storage: string]: GenericStorageQuery<Rv>;
631
+ };
632
+ /**
633
+ * Pallet `Vesting`'s storage queries
634
+ **/
635
+ vesting: {
636
+ /**
637
+ * Information regarding the vesting of a given account.
638
+ *
639
+ * @param {AccountId32Like} arg
640
+ * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
641
+ **/
642
+ vesting: GenericStorageQuery<
643
+ Rv,
644
+ (arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined,
645
+ AccountId32
646
+ >;
647
+
648
+ /**
649
+ * Storage version of the pallet.
650
+ *
651
+ * New networks start with latest version, as determined by the genesis build.
652
+ *
653
+ * @param {Callback<PalletVestingReleases> =} callback
654
+ **/
655
+ storageVersion: GenericStorageQuery<Rv, () => PalletVestingReleases>;
621
656
 
622
657
  /**
623
658
  * Generic pallet storage query
624
659
  **/
625
- [storage: string]: GenericStorageQuery;
660
+ [storage: string]: GenericStorageQuery<Rv>;
626
661
  };
627
662
  /**
628
663
  * Pallet `Authorship`'s storage queries
@@ -633,12 +668,12 @@ export interface ChainStorage extends GenericChainStorage {
633
668
  *
634
669
  * @param {Callback<AccountId32 | undefined> =} callback
635
670
  **/
636
- author: GenericStorageQuery<() => AccountId32 | undefined>;
671
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
637
672
 
638
673
  /**
639
674
  * Generic pallet storage query
640
675
  **/
641
- [storage: string]: GenericStorageQuery;
676
+ [storage: string]: GenericStorageQuery<Rv>;
642
677
  };
643
678
  /**
644
679
  * Pallet `CollatorSelection`'s storage queries
@@ -649,15 +684,18 @@ export interface ChainStorage extends GenericChainStorage {
649
684
  *
650
685
  * @param {Callback<Array<AccountId32>> =} callback
651
686
  **/
652
- invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
687
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
653
688
 
654
689
  /**
655
690
  * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
656
691
  * mutually exclusive.
657
692
  *
693
+ * This list is sorted in ascending order by deposit and when the deposits are equal, the least
694
+ * recently updated is considered greater.
695
+ *
658
696
  * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
659
697
  **/
660
- candidates: GenericStorageQuery<() => Array<PalletCollatorSelectionCandidateInfo>>;
698
+ candidateList: GenericStorageQuery<Rv, () => Array<PalletCollatorSelectionCandidateInfo>>;
661
699
 
662
700
  /**
663
701
  * Last block authored by collator.
@@ -665,7 +703,7 @@ export interface ChainStorage extends GenericChainStorage {
665
703
  * @param {AccountId32Like} arg
666
704
  * @param {Callback<number> =} callback
667
705
  **/
668
- lastAuthoredBlock: GenericStorageQuery<(arg: AccountId32Like) => number>;
706
+ lastAuthoredBlock: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
669
707
 
670
708
  /**
671
709
  * Desired number of candidates.
@@ -674,7 +712,7 @@ export interface ChainStorage extends GenericChainStorage {
674
712
  *
675
713
  * @param {Callback<number> =} callback
676
714
  **/
677
- desiredCandidates: GenericStorageQuery<() => number>;
715
+ desiredCandidates: GenericStorageQuery<Rv, () => number>;
678
716
 
679
717
  /**
680
718
  * Fixed amount to deposit to become a collator.
@@ -683,12 +721,12 @@ export interface ChainStorage extends GenericChainStorage {
683
721
  *
684
722
  * @param {Callback<bigint> =} callback
685
723
  **/
686
- candidacyBond: GenericStorageQuery<() => bigint>;
724
+ candidacyBond: GenericStorageQuery<Rv, () => bigint>;
687
725
 
688
726
  /**
689
727
  * Generic pallet storage query
690
728
  **/
691
- [storage: string]: GenericStorageQuery;
729
+ [storage: string]: GenericStorageQuery<Rv>;
692
730
  };
693
731
  /**
694
732
  * Pallet `Session`'s storage queries
@@ -699,14 +737,14 @@ export interface ChainStorage extends GenericChainStorage {
699
737
  *
700
738
  * @param {Callback<Array<AccountId32>> =} callback
701
739
  **/
702
- validators: GenericStorageQuery<() => Array<AccountId32>>;
740
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
703
741
 
704
742
  /**
705
743
  * Current index of the session.
706
744
  *
707
745
  * @param {Callback<number> =} callback
708
746
  **/
709
- currentIndex: GenericStorageQuery<() => number>;
747
+ currentIndex: GenericStorageQuery<Rv, () => number>;
710
748
 
711
749
  /**
712
750
  * True if the underlying economic identities or weighting behind the validators
@@ -714,7 +752,7 @@ export interface ChainStorage extends GenericChainStorage {
714
752
  *
715
753
  * @param {Callback<boolean> =} callback
716
754
  **/
717
- queuedChanged: GenericStorageQuery<() => boolean>;
755
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
718
756
 
719
757
  /**
720
758
  * The queued keys for the next session. When the next session begins, these keys
@@ -722,7 +760,7 @@ export interface ChainStorage extends GenericChainStorage {
722
760
  *
723
761
  * @param {Callback<Array<[AccountId32, AssetHubKusamaRuntimeSessionKeys]>> =} callback
724
762
  **/
725
- queuedKeys: GenericStorageQuery<() => Array<[AccountId32, AssetHubKusamaRuntimeSessionKeys]>>;
763
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, AssetHubKusamaRuntimeSessionKeys]>>;
726
764
 
727
765
  /**
728
766
  * Indices of disabled validators.
@@ -733,7 +771,7 @@ export interface ChainStorage extends GenericChainStorage {
733
771
  *
734
772
  * @param {Callback<Array<number>> =} callback
735
773
  **/
736
- disabledValidators: GenericStorageQuery<() => Array<number>>;
774
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
737
775
 
738
776
  /**
739
777
  * The next session keys for a validator.
@@ -741,7 +779,11 @@ export interface ChainStorage extends GenericChainStorage {
741
779
  * @param {AccountId32Like} arg
742
780
  * @param {Callback<AssetHubKusamaRuntimeSessionKeys | undefined> =} callback
743
781
  **/
744
- nextKeys: GenericStorageQuery<(arg: AccountId32Like) => AssetHubKusamaRuntimeSessionKeys | undefined>;
782
+ nextKeys: GenericStorageQuery<
783
+ Rv,
784
+ (arg: AccountId32Like) => AssetHubKusamaRuntimeSessionKeys | undefined,
785
+ AccountId32
786
+ >;
745
787
 
746
788
  /**
747
789
  * The owner of a key. The key is the `KeyTypeId` + the encoded key.
@@ -749,12 +791,16 @@ export interface ChainStorage extends GenericChainStorage {
749
791
  * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
750
792
  * @param {Callback<AccountId32 | undefined> =} callback
751
793
  **/
752
- keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined>;
794
+ keyOwner: GenericStorageQuery<
795
+ Rv,
796
+ (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
797
+ [SpCoreCryptoKeyTypeId, Bytes]
798
+ >;
753
799
 
754
800
  /**
755
801
  * Generic pallet storage query
756
802
  **/
757
- [storage: string]: GenericStorageQuery;
803
+ [storage: string]: GenericStorageQuery<Rv>;
758
804
  };
759
805
  /**
760
806
  * Pallet `Aura`'s storage queries
@@ -765,7 +811,7 @@ export interface ChainStorage extends GenericChainStorage {
765
811
  *
766
812
  * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
767
813
  **/
768
- authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
814
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
769
815
 
770
816
  /**
771
817
  * The current slot of this block.
@@ -774,12 +820,12 @@ export interface ChainStorage extends GenericChainStorage {
774
820
  *
775
821
  * @param {Callback<SpConsensusSlotsSlot> =} callback
776
822
  **/
777
- currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
823
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
778
824
 
779
825
  /**
780
826
  * Generic pallet storage query
781
827
  **/
782
- [storage: string]: GenericStorageQuery;
828
+ [storage: string]: GenericStorageQuery<Rv>;
783
829
  };
784
830
  /**
785
831
  * Pallet `AuraExt`'s storage queries
@@ -794,7 +840,7 @@ export interface ChainStorage extends GenericChainStorage {
794
840
  *
795
841
  * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
796
842
  **/
797
- authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
843
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
798
844
 
799
845
  /**
800
846
  * Current slot paired with a number of authored blocks.
@@ -803,31 +849,30 @@ export interface ChainStorage extends GenericChainStorage {
803
849
  *
804
850
  * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
805
851
  **/
806
- slotInfo: GenericStorageQuery<() => [SpConsensusSlotsSlot, number] | undefined>;
852
+ slotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
807
853
 
808
854
  /**
809
855
  * Generic pallet storage query
810
856
  **/
811
- [storage: string]: GenericStorageQuery;
857
+ [storage: string]: GenericStorageQuery<Rv>;
812
858
  };
813
859
  /**
814
860
  * Pallet `XcmpQueue`'s storage queries
815
861
  **/
816
862
  xcmpQueue: {
817
863
  /**
818
- * Status of the inbound XCMP channels.
864
+ * The suspended inbound XCMP channels. All others are not suspended.
819
865
  *
820
- * @param {Callback<Array<CumulusPalletXcmpQueueInboundChannelDetails>> =} callback
821
- **/
822
- inboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueInboundChannelDetails>>;
823
-
824
- /**
825
- * Inbound aggregate XCMP messages. It can only be one per ParaId/block.
866
+ * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
867
+ * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
868
+ * within the block and therefore only included once in the proof size.
826
869
  *
827
- * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
828
- * @param {Callback<Bytes> =} callback
870
+ * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
871
+ * will be smaller.
872
+ *
873
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
829
874
  **/
830
- inboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes>;
875
+ inboundXcmpSuspended: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
831
876
 
832
877
  /**
833
878
  * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
@@ -839,7 +884,7 @@ export interface ChainStorage extends GenericChainStorage {
839
884
  *
840
885
  * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
841
886
  **/
842
- outboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
887
+ outboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
843
888
 
844
889
  /**
845
890
  * The messages outbound in a given XCMP channel.
@@ -847,7 +892,11 @@ export interface ChainStorage extends GenericChainStorage {
847
892
  * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
848
893
  * @param {Callback<Bytes> =} callback
849
894
  **/
850
- outboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes>;
895
+ outboundXcmpMessages: GenericStorageQuery<
896
+ Rv,
897
+ (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
898
+ [PolkadotParachainPrimitivesPrimitivesId, number]
899
+ >;
851
900
 
852
901
  /**
853
902
  * Any signal messages waiting to be sent.
@@ -855,49 +904,25 @@ export interface ChainStorage extends GenericChainStorage {
855
904
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
856
905
  * @param {Callback<Bytes> =} callback
857
906
  **/
858
- signalMessages: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes>;
907
+ signalMessages: GenericStorageQuery<
908
+ Rv,
909
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes,
910
+ PolkadotParachainPrimitivesPrimitivesId
911
+ >;
859
912
 
860
913
  /**
861
914
  * The configuration which controls the dynamics of the outbound queue.
862
915
  *
863
916
  * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
864
917
  **/
865
- queueConfig: GenericStorageQuery<() => CumulusPalletXcmpQueueQueueConfigData>;
866
-
867
- /**
868
- * The messages that exceeded max individual message weight budget.
869
- *
870
- * These message stay in this storage map until they are manually dispatched via
871
- * `service_overweight`.
872
- *
873
- * @param {bigint} arg
874
- * @param {Callback<[PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined> =} callback
875
- **/
876
- overweight: GenericStorageQuery<
877
- (arg: bigint) => [PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined
878
- >;
879
-
880
- /**
881
- * Counter for the related counted storage map
882
- *
883
- * @param {Callback<number> =} callback
884
- **/
885
- counterForOverweight: GenericStorageQuery<() => number>;
886
-
887
- /**
888
- * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next
889
- * available free overweight index.
890
- *
891
- * @param {Callback<bigint> =} callback
892
- **/
893
- overweightCount: GenericStorageQuery<() => bigint>;
918
+ queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
894
919
 
895
920
  /**
896
921
  * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
897
922
  *
898
923
  * @param {Callback<boolean> =} callback
899
924
  **/
900
- queueSuspended: GenericStorageQuery<() => boolean>;
925
+ queueSuspended: GenericStorageQuery<Rv, () => boolean>;
901
926
 
902
927
  /**
903
928
  * The factor to multiply the base delivery fee by.
@@ -905,12 +930,16 @@ export interface ChainStorage extends GenericChainStorage {
905
930
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
906
931
  * @param {Callback<FixedU128> =} callback
907
932
  **/
908
- deliveryFeeFactor: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128>;
933
+ deliveryFeeFactor: GenericStorageQuery<
934
+ Rv,
935
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
936
+ PolkadotParachainPrimitivesPrimitivesId
937
+ >;
909
938
 
910
939
  /**
911
940
  * Generic pallet storage query
912
941
  **/
913
- [storage: string]: GenericStorageQuery;
942
+ [storage: string]: GenericStorageQuery<Rv>;
914
943
  };
915
944
  /**
916
945
  * Pallet `PolkadotXcm`'s storage queries
@@ -921,7 +950,7 @@ export interface ChainStorage extends GenericChainStorage {
921
950
  *
922
951
  * @param {Callback<bigint> =} callback
923
952
  **/
924
- queryCounter: GenericStorageQuery<() => bigint>;
953
+ queryCounter: GenericStorageQuery<Rv, () => bigint>;
925
954
 
926
955
  /**
927
956
  * The ongoing queries.
@@ -929,18 +958,18 @@ export interface ChainStorage extends GenericChainStorage {
929
958
  * @param {bigint} arg
930
959
  * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
931
960
  **/
932
- queries: GenericStorageQuery<(arg: bigint) => PalletXcmQueryStatus | undefined>;
961
+ queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
933
962
 
934
963
  /**
935
964
  * The existing asset traps.
936
965
  *
937
- * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
966
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
938
967
  * times this pair has been trapped (usually just 1 if it exists at all).
939
968
  *
940
969
  * @param {H256} arg
941
970
  * @param {Callback<number> =} callback
942
971
  **/
943
- assetTraps: GenericStorageQuery<(arg: H256) => number>;
972
+ assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
944
973
 
945
974
  /**
946
975
  * Default version to encode XCM when latest version of destination is unknown. If `None`,
@@ -948,33 +977,43 @@ export interface ChainStorage extends GenericChainStorage {
948
977
  *
949
978
  * @param {Callback<number | undefined> =} callback
950
979
  **/
951
- safeXcmVersion: GenericStorageQuery<() => number | undefined>;
980
+ safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
952
981
 
953
982
  /**
954
983
  * The Latest versions that we know various locations support.
955
984
  *
956
- * @param {[number, XcmVersionedMultiLocation]} arg
985
+ * @param {[number, XcmVersionedLocation]} arg
957
986
  * @param {Callback<number | undefined> =} callback
958
987
  **/
959
- supportedVersion: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => number | undefined>;
988
+ supportedVersion: GenericStorageQuery<
989
+ Rv,
990
+ (arg: [number, XcmVersionedLocation]) => number | undefined,
991
+ [number, XcmVersionedLocation]
992
+ >;
960
993
 
961
994
  /**
962
995
  * All locations that we have requested version notifications from.
963
996
  *
964
- * @param {[number, XcmVersionedMultiLocation]} arg
997
+ * @param {[number, XcmVersionedLocation]} arg
965
998
  * @param {Callback<bigint | undefined> =} callback
966
999
  **/
967
- versionNotifiers: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => bigint | undefined>;
1000
+ versionNotifiers: GenericStorageQuery<
1001
+ Rv,
1002
+ (arg: [number, XcmVersionedLocation]) => bigint | undefined,
1003
+ [number, XcmVersionedLocation]
1004
+ >;
968
1005
 
969
1006
  /**
970
1007
  * The target locations that are subscribed to our version changes, as well as the most recent
971
1008
  * of our versions we informed them of.
972
1009
  *
973
- * @param {[number, XcmVersionedMultiLocation]} arg
1010
+ * @param {[number, XcmVersionedLocation]} arg
974
1011
  * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
975
1012
  **/
976
1013
  versionNotifyTargets: GenericStorageQuery<
977
- (arg: [number, XcmVersionedMultiLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined
1014
+ Rv,
1015
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
1016
+ [number, XcmVersionedLocation]
978
1017
  >;
979
1018
 
980
1019
  /**
@@ -982,16 +1021,16 @@ export interface ChainStorage extends GenericChainStorage {
982
1021
  * the `u32` counter is the number of times that a send to the destination has been attempted,
983
1022
  * which is used as a prioritization.
984
1023
  *
985
- * @param {Callback<Array<[XcmVersionedMultiLocation, number]>> =} callback
1024
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
986
1025
  **/
987
- versionDiscoveryQueue: GenericStorageQuery<() => Array<[XcmVersionedMultiLocation, number]>>;
1026
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
988
1027
 
989
1028
  /**
990
1029
  * The current migration's stage, if any.
991
1030
  *
992
1031
  * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
993
1032
  **/
994
- currentMigration: GenericStorageQuery<() => PalletXcmVersionMigrationStage | undefined>;
1033
+ currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
995
1034
 
996
1035
  /**
997
1036
  * Fungible assets which we know are locked on a remote chain.
@@ -1000,17 +1039,21 @@ export interface ChainStorage extends GenericChainStorage {
1000
1039
  * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1001
1040
  **/
1002
1041
  remoteLockedFungibles: GenericStorageQuery<
1003
- (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined
1042
+ Rv,
1043
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
1044
+ [number, AccountId32, XcmVersionedAssetId]
1004
1045
  >;
1005
1046
 
1006
1047
  /**
1007
1048
  * Fungible assets which we know are locked on this chain.
1008
1049
  *
1009
1050
  * @param {AccountId32Like} arg
1010
- * @param {Callback<Array<[bigint, XcmVersionedMultiLocation]> | undefined> =} callback
1051
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
1011
1052
  **/
1012
1053
  lockedFungibles: GenericStorageQuery<
1013
- (arg: AccountId32Like) => Array<[bigint, XcmVersionedMultiLocation]> | undefined
1054
+ Rv,
1055
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
1056
+ AccountId32
1014
1057
  >;
1015
1058
 
1016
1059
  /**
@@ -1018,80 +1061,74 @@ export interface ChainStorage extends GenericChainStorage {
1018
1061
  *
1019
1062
  * @param {Callback<boolean> =} callback
1020
1063
  **/
1021
- xcmExecutionSuspended: GenericStorageQuery<() => boolean>;
1064
+ xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
1022
1065
 
1023
1066
  /**
1024
1067
  * Generic pallet storage query
1025
1068
  **/
1026
- [storage: string]: GenericStorageQuery;
1069
+ [storage: string]: GenericStorageQuery<Rv>;
1027
1070
  };
1028
1071
  /**
1029
- * Pallet `DmpQueue`'s storage queries
1072
+ * Pallet `ToPolkadotXcmRouter`'s storage queries
1030
1073
  **/
1031
- dmpQueue: {
1074
+ toPolkadotXcmRouter: {
1032
1075
  /**
1033
- * The configuration.
1076
+ * Bridge that we are using.
1034
1077
  *
1035
- * @param {Callback<CumulusPalletDmpQueueConfigData> =} callback
1036
- **/
1037
- configuration: GenericStorageQuery<() => CumulusPalletDmpQueueConfigData>;
1038
-
1039
- /**
1040
- * The page index.
1078
+ * **bridges-v1** assumptions: all outbound messages through this router are using single lane
1079
+ * and to single remote consensus. If there is some other remote consensus that uses the same
1080
+ * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required
1081
+ * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges
1082
+ * by the same pallet instance.
1041
1083
  *
1042
- * @param {Callback<CumulusPalletDmpQueuePageIndexData> =} callback
1084
+ * @param {Callback<BpXcmBridgeHubRouterBridgeState> =} callback
1043
1085
  **/
1044
- pageIndex: GenericStorageQuery<() => CumulusPalletDmpQueuePageIndexData>;
1086
+ bridge: GenericStorageQuery<Rv, () => BpXcmBridgeHubRouterBridgeState>;
1045
1087
 
1046
1088
  /**
1047
- * The queue pages.
1048
- *
1049
- * @param {number} arg
1050
- * @param {Callback<Array<[number, Bytes]>> =} callback
1089
+ * Generic pallet storage query
1051
1090
  **/
1052
- pages: GenericStorageQuery<(arg: number) => Array<[number, Bytes]>>;
1053
-
1091
+ [storage: string]: GenericStorageQuery<Rv>;
1092
+ };
1093
+ /**
1094
+ * Pallet `MessageQueue`'s storage queries
1095
+ **/
1096
+ messageQueue: {
1054
1097
  /**
1055
- * The overweight messages.
1098
+ * The index of the first and last (non-empty) pages.
1056
1099
  *
1057
- * @param {bigint} arg
1058
- * @param {Callback<[number, Bytes] | undefined> =} callback
1100
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg
1101
+ * @param {Callback<PalletMessageQueueBookState> =} callback
1059
1102
  **/
1060
- overweight: GenericStorageQuery<(arg: bigint) => [number, Bytes] | undefined>;
1103
+ bookStateFor: GenericStorageQuery<
1104
+ Rv,
1105
+ (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState,
1106
+ CumulusPrimitivesCoreAggregateMessageOrigin
1107
+ >;
1061
1108
 
1062
1109
  /**
1063
- * Counter for the related counted storage map
1110
+ * The origin at which we should begin servicing.
1064
1111
  *
1065
- * @param {Callback<number> =} callback
1112
+ * @param {Callback<CumulusPrimitivesCoreAggregateMessageOrigin | undefined> =} callback
1066
1113
  **/
1067
- counterForOverweight: GenericStorageQuery<() => number>;
1114
+ serviceHead: GenericStorageQuery<Rv, () => CumulusPrimitivesCoreAggregateMessageOrigin | undefined>;
1068
1115
 
1069
1116
  /**
1070
- * Generic pallet storage query
1071
- **/
1072
- [storage: string]: GenericStorageQuery;
1073
- };
1074
- /**
1075
- * Pallet `ToPolkadotXcmRouter`'s storage queries
1076
- **/
1077
- toPolkadotXcmRouter: {
1078
- /**
1079
- * Bridge that we are using.
1080
- *
1081
- * **bridges-v1** assumptions: all outbound messages through this router are using single lane
1082
- * and to single remote consensus. If there is some other remote consensus that uses the same
1083
- * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required
1084
- * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges
1085
- * by the same pallet instance.
1117
+ * The map of page indices to pages.
1086
1118
  *
1087
- * @param {Callback<BpXcmBridgeHubRouterBridgeState> =} callback
1119
+ * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg
1120
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
1088
1121
  **/
1089
- bridge: GenericStorageQuery<() => BpXcmBridgeHubRouterBridgeState>;
1122
+ pages: GenericStorageQuery<
1123
+ Rv,
1124
+ (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
1125
+ [CumulusPrimitivesCoreAggregateMessageOrigin, number]
1126
+ >;
1090
1127
 
1091
1128
  /**
1092
1129
  * Generic pallet storage query
1093
1130
  **/
1094
- [storage: string]: GenericStorageQuery;
1131
+ [storage: string]: GenericStorageQuery<Rv>;
1095
1132
  };
1096
1133
  /**
1097
1134
  * Pallet `Multisig`'s storage queries
@@ -1103,12 +1140,16 @@ export interface ChainStorage extends GenericChainStorage {
1103
1140
  * @param {[AccountId32Like, FixedBytes<32>]} arg
1104
1141
  * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1105
1142
  **/
1106
- multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
1143
+ multisigs: GenericStorageQuery<
1144
+ Rv,
1145
+ (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1146
+ [AccountId32, FixedBytes<32>]
1147
+ >;
1107
1148
 
1108
1149
  /**
1109
1150
  * Generic pallet storage query
1110
1151
  **/
1111
- [storage: string]: GenericStorageQuery;
1152
+ [storage: string]: GenericStorageQuery<Rv>;
1112
1153
  };
1113
1154
  /**
1114
1155
  * Pallet `Proxy`'s storage queries
@@ -1121,7 +1162,11 @@ export interface ChainStorage extends GenericChainStorage {
1121
1162
  * @param {AccountId32Like} arg
1122
1163
  * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1123
1164
  **/
1124
- proxies: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint]>;
1165
+ proxies: GenericStorageQuery<
1166
+ Rv,
1167
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
1168
+ AccountId32
1169
+ >;
1125
1170
 
1126
1171
  /**
1127
1172
  * The announcements made by the proxy (key).
@@ -1129,12 +1174,16 @@ export interface ChainStorage extends GenericChainStorage {
1129
1174
  * @param {AccountId32Like} arg
1130
1175
  * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1131
1176
  **/
1132
- announcements: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint]>;
1177
+ announcements: GenericStorageQuery<
1178
+ Rv,
1179
+ (arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
1180
+ AccountId32
1181
+ >;
1133
1182
 
1134
1183
  /**
1135
1184
  * Generic pallet storage query
1136
1185
  **/
1137
- [storage: string]: GenericStorageQuery;
1186
+ [storage: string]: GenericStorageQuery<Rv>;
1138
1187
  };
1139
1188
  /**
1140
1189
  * Pallet `Assets`'s storage queries
@@ -1146,7 +1195,7 @@ export interface ChainStorage extends GenericChainStorage {
1146
1195
  * @param {number} arg
1147
1196
  * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1148
1197
  **/
1149
- asset: GenericStorageQuery<(arg: number) => PalletAssetsAssetDetails | undefined>;
1198
+ asset: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetDetails | undefined, number>;
1150
1199
 
1151
1200
  /**
1152
1201
  * The holdings of a specific account for a specific asset.
@@ -1154,7 +1203,11 @@ export interface ChainStorage extends GenericChainStorage {
1154
1203
  * @param {[number, AccountId32Like]} arg
1155
1204
  * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1156
1205
  **/
1157
- account: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
1206
+ account: GenericStorageQuery<
1207
+ Rv,
1208
+ (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1209
+ [number, AccountId32]
1210
+ >;
1158
1211
 
1159
1212
  /**
1160
1213
  * Approved balance transfers. First balance is the amount approved for transfer. Second
@@ -1165,7 +1218,9 @@ export interface ChainStorage extends GenericChainStorage {
1165
1218
  * @param {Callback<PalletAssetsApproval | undefined> =} callback
1166
1219
  **/
1167
1220
  approvals: GenericStorageQuery<
1168
- (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined
1221
+ Rv,
1222
+ (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
1223
+ [number, AccountId32, AccountId32]
1169
1224
  >;
1170
1225
 
1171
1226
  /**
@@ -1174,12 +1229,12 @@ export interface ChainStorage extends GenericChainStorage {
1174
1229
  * @param {number} arg
1175
1230
  * @param {Callback<PalletAssetsAssetMetadata> =} callback
1176
1231
  **/
1177
- metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata>;
1232
+ metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
1178
1233
 
1179
1234
  /**
1180
1235
  * Generic pallet storage query
1181
1236
  **/
1182
- [storage: string]: GenericStorageQuery;
1237
+ [storage: string]: GenericStorageQuery<Rv>;
1183
1238
  };
1184
1239
  /**
1185
1240
  * Pallet `Uniques`'s storage queries
@@ -1191,7 +1246,7 @@ export interface ChainStorage extends GenericChainStorage {
1191
1246
  * @param {number} arg
1192
1247
  * @param {Callback<PalletUniquesCollectionDetails | undefined> =} callback
1193
1248
  **/
1194
- class: GenericStorageQuery<(arg: number) => PalletUniquesCollectionDetails | undefined>;
1249
+ class: GenericStorageQuery<Rv, (arg: number) => PalletUniquesCollectionDetails | undefined, number>;
1195
1250
 
1196
1251
  /**
1197
1252
  * The collection, if any, of which an account is willing to take ownership.
@@ -1199,7 +1254,7 @@ export interface ChainStorage extends GenericChainStorage {
1199
1254
  * @param {AccountId32Like} arg
1200
1255
  * @param {Callback<number | undefined> =} callback
1201
1256
  **/
1202
- ownershipAcceptance: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
1257
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
1203
1258
 
1204
1259
  /**
1205
1260
  * The items held by any given account; set out this way so that items owned by a single
@@ -1208,7 +1263,11 @@ export interface ChainStorage extends GenericChainStorage {
1208
1263
  * @param {[AccountId32Like, number, number]} arg
1209
1264
  * @param {Callback<[] | undefined> =} callback
1210
1265
  **/
1211
- account: GenericStorageQuery<(arg: [AccountId32Like, number, number]) => [] | undefined>;
1266
+ account: GenericStorageQuery<
1267
+ Rv,
1268
+ (arg: [AccountId32Like, number, number]) => [] | undefined,
1269
+ [AccountId32, number, number]
1270
+ >;
1212
1271
 
1213
1272
  /**
1214
1273
  * The collections owned by any given account; set out this way so that collections owned by
@@ -1217,7 +1276,7 @@ export interface ChainStorage extends GenericChainStorage {
1217
1276
  * @param {[AccountId32Like, number]} arg
1218
1277
  * @param {Callback<[] | undefined> =} callback
1219
1278
  **/
1220
- classAccount: GenericStorageQuery<(arg: [AccountId32Like, number]) => [] | undefined>;
1279
+ classAccount: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => [] | undefined, [AccountId32, number]>;
1221
1280
 
1222
1281
  /**
1223
1282
  * The items in existence and their ownership details.
@@ -1225,7 +1284,7 @@ export interface ChainStorage extends GenericChainStorage {
1225
1284
  * @param {[number, number]} arg
1226
1285
  * @param {Callback<PalletUniquesItemDetails | undefined> =} callback
1227
1286
  **/
1228
- asset: GenericStorageQuery<(arg: [number, number]) => PalletUniquesItemDetails | undefined>;
1287
+ asset: GenericStorageQuery<Rv, (arg: [number, number]) => PalletUniquesItemDetails | undefined, [number, number]>;
1229
1288
 
1230
1289
  /**
1231
1290
  * Metadata of a collection.
@@ -1233,7 +1292,7 @@ export interface ChainStorage extends GenericChainStorage {
1233
1292
  * @param {number} arg
1234
1293
  * @param {Callback<PalletUniquesCollectionMetadata | undefined> =} callback
1235
1294
  **/
1236
- classMetadataOf: GenericStorageQuery<(arg: number) => PalletUniquesCollectionMetadata | undefined>;
1295
+ classMetadataOf: GenericStorageQuery<Rv, (arg: number) => PalletUniquesCollectionMetadata | undefined, number>;
1237
1296
 
1238
1297
  /**
1239
1298
  * Metadata of an item.
@@ -1241,7 +1300,11 @@ export interface ChainStorage extends GenericChainStorage {
1241
1300
  * @param {[number, number]} arg
1242
1301
  * @param {Callback<PalletUniquesItemMetadata | undefined> =} callback
1243
1302
  **/
1244
- instanceMetadataOf: GenericStorageQuery<(arg: [number, number]) => PalletUniquesItemMetadata | undefined>;
1303
+ instanceMetadataOf: GenericStorageQuery<
1304
+ Rv,
1305
+ (arg: [number, number]) => PalletUniquesItemMetadata | undefined,
1306
+ [number, number]
1307
+ >;
1245
1308
 
1246
1309
  /**
1247
1310
  * Attributes of a collection.
@@ -1249,7 +1312,11 @@ export interface ChainStorage extends GenericChainStorage {
1249
1312
  * @param {[number, number | undefined, BytesLike]} arg
1250
1313
  * @param {Callback<[Bytes, bigint] | undefined> =} callback
1251
1314
  **/
1252
- attribute: GenericStorageQuery<(arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined>;
1315
+ attribute: GenericStorageQuery<
1316
+ Rv,
1317
+ (arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined,
1318
+ [number, number | undefined, Bytes]
1319
+ >;
1253
1320
 
1254
1321
  /**
1255
1322
  * Price of an asset instance.
@@ -1257,7 +1324,11 @@ export interface ChainStorage extends GenericChainStorage {
1257
1324
  * @param {[number, number]} arg
1258
1325
  * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1259
1326
  **/
1260
- itemPriceOf: GenericStorageQuery<(arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined>;
1327
+ itemPriceOf: GenericStorageQuery<
1328
+ Rv,
1329
+ (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined,
1330
+ [number, number]
1331
+ >;
1261
1332
 
1262
1333
  /**
1263
1334
  * Keeps track of the number of items a collection might have.
@@ -1265,12 +1336,12 @@ export interface ChainStorage extends GenericChainStorage {
1265
1336
  * @param {number} arg
1266
1337
  * @param {Callback<number | undefined> =} callback
1267
1338
  **/
1268
- collectionMaxSupply: GenericStorageQuery<(arg: number) => number | undefined>;
1339
+ collectionMaxSupply: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
1269
1340
 
1270
1341
  /**
1271
1342
  * Generic pallet storage query
1272
1343
  **/
1273
- [storage: string]: GenericStorageQuery;
1344
+ [storage: string]: GenericStorageQuery<Rv>;
1274
1345
  };
1275
1346
  /**
1276
1347
  * Pallet `Nfts`'s storage queries
@@ -1282,7 +1353,7 @@ export interface ChainStorage extends GenericChainStorage {
1282
1353
  * @param {number} arg
1283
1354
  * @param {Callback<PalletNftsCollectionDetails | undefined> =} callback
1284
1355
  **/
1285
- collection: GenericStorageQuery<(arg: number) => PalletNftsCollectionDetails | undefined>;
1356
+ collection: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionDetails | undefined, number>;
1286
1357
 
1287
1358
  /**
1288
1359
  * The collection, if any, of which an account is willing to take ownership.
@@ -1290,7 +1361,7 @@ export interface ChainStorage extends GenericChainStorage {
1290
1361
  * @param {AccountId32Like} arg
1291
1362
  * @param {Callback<number | undefined> =} callback
1292
1363
  **/
1293
- ownershipAcceptance: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
1364
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
1294
1365
 
1295
1366
  /**
1296
1367
  * The items held by any given account; set out this way so that items owned by a single
@@ -1299,7 +1370,11 @@ export interface ChainStorage extends GenericChainStorage {
1299
1370
  * @param {[AccountId32Like, number, number]} arg
1300
1371
  * @param {Callback<[] | undefined> =} callback
1301
1372
  **/
1302
- account: GenericStorageQuery<(arg: [AccountId32Like, number, number]) => [] | undefined>;
1373
+ account: GenericStorageQuery<
1374
+ Rv,
1375
+ (arg: [AccountId32Like, number, number]) => [] | undefined,
1376
+ [AccountId32, number, number]
1377
+ >;
1303
1378
 
1304
1379
  /**
1305
1380
  * The collections owned by any given account; set out this way so that collections owned by
@@ -1308,7 +1383,11 @@ export interface ChainStorage extends GenericChainStorage {
1308
1383
  * @param {[AccountId32Like, number]} arg
1309
1384
  * @param {Callback<[] | undefined> =} callback
1310
1385
  **/
1311
- collectionAccount: GenericStorageQuery<(arg: [AccountId32Like, number]) => [] | undefined>;
1386
+ collectionAccount: GenericStorageQuery<
1387
+ Rv,
1388
+ (arg: [AccountId32Like, number]) => [] | undefined,
1389
+ [AccountId32, number]
1390
+ >;
1312
1391
 
1313
1392
  /**
1314
1393
  * The items in existence and their ownership details.
@@ -1318,7 +1397,9 @@ export interface ChainStorage extends GenericChainStorage {
1318
1397
  * @param {Callback<PalletNftsBitFlagsCollectionRole | undefined> =} callback
1319
1398
  **/
1320
1399
  collectionRoleOf: GenericStorageQuery<
1321
- (arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined
1400
+ Rv,
1401
+ (arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined,
1402
+ [number, AccountId32]
1322
1403
  >;
1323
1404
 
1324
1405
  /**
@@ -1327,7 +1408,7 @@ export interface ChainStorage extends GenericChainStorage {
1327
1408
  * @param {[number, number]} arg
1328
1409
  * @param {Callback<PalletNftsItemDetails | undefined> =} callback
1329
1410
  **/
1330
- item: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemDetails | undefined>;
1411
+ item: GenericStorageQuery<Rv, (arg: [number, number]) => PalletNftsItemDetails | undefined, [number, number]>;
1331
1412
 
1332
1413
  /**
1333
1414
  * Metadata of a collection.
@@ -1335,7 +1416,7 @@ export interface ChainStorage extends GenericChainStorage {
1335
1416
  * @param {number} arg
1336
1417
  * @param {Callback<PalletNftsCollectionMetadata | undefined> =} callback
1337
1418
  **/
1338
- collectionMetadataOf: GenericStorageQuery<(arg: number) => PalletNftsCollectionMetadata | undefined>;
1419
+ collectionMetadataOf: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionMetadata | undefined, number>;
1339
1420
 
1340
1421
  /**
1341
1422
  * Metadata of an item.
@@ -1343,7 +1424,11 @@ export interface ChainStorage extends GenericChainStorage {
1343
1424
  * @param {[number, number]} arg
1344
1425
  * @param {Callback<PalletNftsItemMetadata | undefined> =} callback
1345
1426
  **/
1346
- itemMetadataOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemMetadata | undefined>;
1427
+ itemMetadataOf: GenericStorageQuery<
1428
+ Rv,
1429
+ (arg: [number, number]) => PalletNftsItemMetadata | undefined,
1430
+ [number, number]
1431
+ >;
1347
1432
 
1348
1433
  /**
1349
1434
  * Attributes of a collection.
@@ -1352,9 +1437,11 @@ export interface ChainStorage extends GenericChainStorage {
1352
1437
  * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback
1353
1438
  **/
1354
1439
  attribute: GenericStorageQuery<
1440
+ Rv,
1355
1441
  (
1356
1442
  arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike],
1357
- ) => [Bytes, PalletNftsAttributeDeposit] | undefined
1443
+ ) => [Bytes, PalletNftsAttributeDeposit] | undefined,
1444
+ [number, number | undefined, PalletNftsAttributeNamespace, Bytes]
1358
1445
  >;
1359
1446
 
1360
1447
  /**
@@ -1363,7 +1450,11 @@ export interface ChainStorage extends GenericChainStorage {
1363
1450
  * @param {[number, number]} arg
1364
1451
  * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1365
1452
  **/
1366
- itemPriceOf: GenericStorageQuery<(arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined>;
1453
+ itemPriceOf: GenericStorageQuery<
1454
+ Rv,
1455
+ (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined,
1456
+ [number, number]
1457
+ >;
1367
1458
 
1368
1459
  /**
1369
1460
  * Item attribute approvals.
@@ -1371,7 +1462,7 @@ export interface ChainStorage extends GenericChainStorage {
1371
1462
  * @param {[number, number]} arg
1372
1463
  * @param {Callback<Array<AccountId32>> =} callback
1373
1464
  **/
1374
- itemAttributesApprovalsOf: GenericStorageQuery<(arg: [number, number]) => Array<AccountId32>>;
1465
+ itemAttributesApprovalsOf: GenericStorageQuery<Rv, (arg: [number, number]) => Array<AccountId32>, [number, number]>;
1375
1466
 
1376
1467
  /**
1377
1468
  * Stores the `CollectionId` that is going to be used for the next collection.
@@ -1379,7 +1470,7 @@ export interface ChainStorage extends GenericChainStorage {
1379
1470
  *
1380
1471
  * @param {Callback<number | undefined> =} callback
1381
1472
  **/
1382
- nextCollectionId: GenericStorageQuery<() => number | undefined>;
1473
+ nextCollectionId: GenericStorageQuery<Rv, () => number | undefined>;
1383
1474
 
1384
1475
  /**
1385
1476
  * Handles all the pending swaps.
@@ -1387,7 +1478,11 @@ export interface ChainStorage extends GenericChainStorage {
1387
1478
  * @param {[number, number]} arg
1388
1479
  * @param {Callback<PalletNftsPendingSwap | undefined> =} callback
1389
1480
  **/
1390
- pendingSwapOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsPendingSwap | undefined>;
1481
+ pendingSwapOf: GenericStorageQuery<
1482
+ Rv,
1483
+ (arg: [number, number]) => PalletNftsPendingSwap | undefined,
1484
+ [number, number]
1485
+ >;
1391
1486
 
1392
1487
  /**
1393
1488
  * Config of a collection.
@@ -1395,7 +1490,7 @@ export interface ChainStorage extends GenericChainStorage {
1395
1490
  * @param {number} arg
1396
1491
  * @param {Callback<PalletNftsCollectionConfig | undefined> =} callback
1397
1492
  **/
1398
- collectionConfigOf: GenericStorageQuery<(arg: number) => PalletNftsCollectionConfig | undefined>;
1493
+ collectionConfigOf: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionConfig | undefined, number>;
1399
1494
 
1400
1495
  /**
1401
1496
  * Config of an item.
@@ -1403,12 +1498,16 @@ export interface ChainStorage extends GenericChainStorage {
1403
1498
  * @param {[number, number]} arg
1404
1499
  * @param {Callback<PalletNftsItemConfig | undefined> =} callback
1405
1500
  **/
1406
- itemConfigOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemConfig | undefined>;
1501
+ itemConfigOf: GenericStorageQuery<
1502
+ Rv,
1503
+ (arg: [number, number]) => PalletNftsItemConfig | undefined,
1504
+ [number, number]
1505
+ >;
1407
1506
 
1408
1507
  /**
1409
1508
  * Generic pallet storage query
1410
1509
  **/
1411
- [storage: string]: GenericStorageQuery;
1510
+ [storage: string]: GenericStorageQuery<Rv>;
1412
1511
  };
1413
1512
  /**
1414
1513
  * Pallet `ForeignAssets`'s storage queries
@@ -1420,7 +1519,11 @@ export interface ChainStorage extends GenericChainStorage {
1420
1519
  * @param {StagingXcmV3MultilocationMultiLocation} arg
1421
1520
  * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1422
1521
  **/
1423
- asset: GenericStorageQuery<(arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined>;
1522
+ asset: GenericStorageQuery<
1523
+ Rv,
1524
+ (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined,
1525
+ StagingXcmV3MultilocationMultiLocation
1526
+ >;
1424
1527
 
1425
1528
  /**
1426
1529
  * The holdings of a specific account for a specific asset.
@@ -1429,7 +1532,9 @@ export interface ChainStorage extends GenericChainStorage {
1429
1532
  * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1430
1533
  **/
1431
1534
  account: GenericStorageQuery<
1432
- (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined
1535
+ Rv,
1536
+ (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1537
+ [StagingXcmV3MultilocationMultiLocation, AccountId32]
1433
1538
  >;
1434
1539
 
1435
1540
  /**
@@ -1441,9 +1546,11 @@ export interface ChainStorage extends GenericChainStorage {
1441
1546
  * @param {Callback<PalletAssetsApproval | undefined> =} callback
1442
1547
  **/
1443
1548
  approvals: GenericStorageQuery<
1549
+ Rv,
1444
1550
  (
1445
1551
  arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like],
1446
- ) => PalletAssetsApproval | undefined
1552
+ ) => PalletAssetsApproval | undefined,
1553
+ [StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32]
1447
1554
  >;
1448
1555
 
1449
1556
  /**
@@ -1452,12 +1559,16 @@ export interface ChainStorage extends GenericChainStorage {
1452
1559
  * @param {StagingXcmV3MultilocationMultiLocation} arg
1453
1560
  * @param {Callback<PalletAssetsAssetMetadata> =} callback
1454
1561
  **/
1455
- metadata: GenericStorageQuery<(arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata>;
1562
+ metadata: GenericStorageQuery<
1563
+ Rv,
1564
+ (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata,
1565
+ StagingXcmV3MultilocationMultiLocation
1566
+ >;
1456
1567
 
1457
1568
  /**
1458
1569
  * Generic pallet storage query
1459
1570
  **/
1460
- [storage: string]: GenericStorageQuery;
1571
+ [storage: string]: GenericStorageQuery<Rv>;
1461
1572
  };
1462
1573
  /**
1463
1574
  * Pallet `NftFractionalization`'s storage queries
@@ -1469,12 +1580,16 @@ export interface ChainStorage extends GenericChainStorage {
1469
1580
  * @param {[number, number]} arg
1470
1581
  * @param {Callback<PalletNftFractionalizationDetails | undefined> =} callback
1471
1582
  **/
1472
- nftToAsset: GenericStorageQuery<(arg: [number, number]) => PalletNftFractionalizationDetails | undefined>;
1583
+ nftToAsset: GenericStorageQuery<
1584
+ Rv,
1585
+ (arg: [number, number]) => PalletNftFractionalizationDetails | undefined,
1586
+ [number, number]
1587
+ >;
1473
1588
 
1474
1589
  /**
1475
1590
  * Generic pallet storage query
1476
1591
  **/
1477
- [storage: string]: GenericStorageQuery;
1592
+ [storage: string]: GenericStorageQuery<Rv>;
1478
1593
  };
1479
1594
  /**
1480
1595
  * Pallet `PoolAssets`'s storage queries
@@ -1486,7 +1601,7 @@ export interface ChainStorage extends GenericChainStorage {
1486
1601
  * @param {number} arg
1487
1602
  * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1488
1603
  **/
1489
- asset: GenericStorageQuery<(arg: number) => PalletAssetsAssetDetails | undefined>;
1604
+ asset: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetDetails | undefined, number>;
1490
1605
 
1491
1606
  /**
1492
1607
  * The holdings of a specific account for a specific asset.
@@ -1494,7 +1609,11 @@ export interface ChainStorage extends GenericChainStorage {
1494
1609
  * @param {[number, AccountId32Like]} arg
1495
1610
  * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1496
1611
  **/
1497
- account: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
1612
+ account: GenericStorageQuery<
1613
+ Rv,
1614
+ (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1615
+ [number, AccountId32]
1616
+ >;
1498
1617
 
1499
1618
  /**
1500
1619
  * Approved balance transfers. First balance is the amount approved for transfer. Second
@@ -1505,7 +1624,9 @@ export interface ChainStorage extends GenericChainStorage {
1505
1624
  * @param {Callback<PalletAssetsApproval | undefined> =} callback
1506
1625
  **/
1507
1626
  approvals: GenericStorageQuery<
1508
- (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined
1627
+ Rv,
1628
+ (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
1629
+ [number, AccountId32, AccountId32]
1509
1630
  >;
1510
1631
 
1511
1632
  /**
@@ -1514,12 +1635,12 @@ export interface ChainStorage extends GenericChainStorage {
1514
1635
  * @param {number} arg
1515
1636
  * @param {Callback<PalletAssetsAssetMetadata> =} callback
1516
1637
  **/
1517
- metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata>;
1638
+ metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
1518
1639
 
1519
1640
  /**
1520
1641
  * Generic pallet storage query
1521
1642
  **/
1522
- [storage: string]: GenericStorageQuery;
1643
+ [storage: string]: GenericStorageQuery<Rv>;
1523
1644
  };
1524
1645
  /**
1525
1646
  * Pallet `AssetConversion`'s storage queries
@@ -1533,9 +1654,11 @@ export interface ChainStorage extends GenericChainStorage {
1533
1654
  * @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
1534
1655
  **/
1535
1656
  pools: GenericStorageQuery<
1657
+ Rv,
1536
1658
  (
1537
1659
  arg: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation],
1538
- ) => PalletAssetConversionPoolInfo | undefined
1660
+ ) => PalletAssetConversionPoolInfo | undefined,
1661
+ [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]
1539
1662
  >;
1540
1663
 
1541
1664
  /**
@@ -1544,11 +1667,11 @@ export interface ChainStorage extends GenericChainStorage {
1544
1667
  *
1545
1668
  * @param {Callback<number | undefined> =} callback
1546
1669
  **/
1547
- nextPoolAssetId: GenericStorageQuery<() => number | undefined>;
1670
+ nextPoolAssetId: GenericStorageQuery<Rv, () => number | undefined>;
1548
1671
 
1549
1672
  /**
1550
1673
  * Generic pallet storage query
1551
1674
  **/
1552
- [storage: string]: GenericStorageQuery;
1675
+ [storage: string]: GenericStorageQuery<Rv>;
1553
1676
  };
1554
1677
  }