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