@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
package/aleph/query.d.ts CHANGED
@@ -1,7 +1,8 @@
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,
@@ -9,13 +10,12 @@ import type {
9
10
  Phase,
10
11
  FixedBytes,
11
12
  FixedU128,
12
- AccountId32,
13
13
  Perbill,
14
14
  Percent,
15
15
  BytesLike,
16
16
  Data,
17
17
  Perquintill,
18
- } from '@dedot/codecs';
18
+ } from 'dedot/codecs';
19
19
  import type {
20
20
  FrameSystemAccountInfo,
21
21
  FrameSupportDispatchPerDispatchClass,
@@ -66,9 +66,11 @@ import type {
66
66
  PrimitivesBanConfig,
67
67
  PrimitivesBanInfo,
68
68
  PalletCommitteeManagementCurrentAndNextSessionValidators,
69
+ PalletProxyProxyDefinition,
70
+ PalletProxyAnnouncement,
69
71
  } from './types';
70
72
 
71
- export interface ChainStorage extends GenericChainStorage {
73
+ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
72
74
  /**
73
75
  * Pallet `System`'s storage queries
74
76
  **/
@@ -79,28 +81,28 @@ export interface ChainStorage extends GenericChainStorage {
79
81
  * @param {AccountId32Like} arg
80
82
  * @param {Callback<FrameSystemAccountInfo> =} callback
81
83
  **/
82
- account: GenericStorageQuery<(arg: AccountId32Like) => FrameSystemAccountInfo>;
84
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
83
85
 
84
86
  /**
85
87
  * Total extrinsics count for the current block.
86
88
  *
87
89
  * @param {Callback<number | undefined> =} callback
88
90
  **/
89
- extrinsicCount: GenericStorageQuery<() => number | undefined>;
91
+ extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
90
92
 
91
93
  /**
92
94
  * The current weight for the block.
93
95
  *
94
96
  * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
95
97
  **/
96
- blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
98
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
97
99
 
98
100
  /**
99
101
  * Total length (in bytes) for all extrinsics put together, for the current block.
100
102
  *
101
103
  * @param {Callback<number | undefined> =} callback
102
104
  **/
103
- allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
105
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
104
106
 
105
107
  /**
106
108
  * Map of block numbers to block hashes.
@@ -108,7 +110,7 @@ export interface ChainStorage extends GenericChainStorage {
108
110
  * @param {number} arg
109
111
  * @param {Callback<H256> =} callback
110
112
  **/
111
- blockHash: GenericStorageQuery<(arg: number) => H256>;
113
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
112
114
 
113
115
  /**
114
116
  * Extrinsics data for the current block (maps an extrinsic's index to its data).
@@ -116,28 +118,28 @@ export interface ChainStorage extends GenericChainStorage {
116
118
  * @param {number} arg
117
119
  * @param {Callback<Bytes> =} callback
118
120
  **/
119
- extrinsicData: GenericStorageQuery<(arg: number) => Bytes>;
121
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
120
122
 
121
123
  /**
122
124
  * The current block number being processed. Set by `execute_block`.
123
125
  *
124
126
  * @param {Callback<number> =} callback
125
127
  **/
126
- number: GenericStorageQuery<() => number>;
128
+ number: GenericStorageQuery<Rv, () => number>;
127
129
 
128
130
  /**
129
131
  * Hash of the previous block.
130
132
  *
131
133
  * @param {Callback<H256> =} callback
132
134
  **/
133
- parentHash: GenericStorageQuery<() => H256>;
135
+ parentHash: GenericStorageQuery<Rv, () => H256>;
134
136
 
135
137
  /**
136
138
  * Digest of the current block, also part of the block header.
137
139
  *
138
140
  * @param {Callback<Digest> =} callback
139
141
  **/
140
- digest: GenericStorageQuery<() => Digest>;
142
+ digest: GenericStorageQuery<Rv, () => Digest>;
141
143
 
142
144
  /**
143
145
  * Events deposited for the current block.
@@ -150,14 +152,14 @@ export interface ChainStorage extends GenericChainStorage {
150
152
  *
151
153
  * @param {Callback<Array<FrameSystemEventRecord>> =} callback
152
154
  **/
153
- events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
155
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
154
156
 
155
157
  /**
156
158
  * The number of events in the `Events<T>` list.
157
159
  *
158
160
  * @param {Callback<number> =} callback
159
161
  **/
160
- eventCount: GenericStorageQuery<() => number>;
162
+ eventCount: GenericStorageQuery<Rv, () => number>;
161
163
 
162
164
  /**
163
165
  * Mapping between a topic (represented by T::Hash) and a vector of indexes
@@ -174,21 +176,21 @@ export interface ChainStorage extends GenericChainStorage {
174
176
  * @param {H256} arg
175
177
  * @param {Callback<Array<[number, number]>> =} callback
176
178
  **/
177
- eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>>;
179
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
178
180
 
179
181
  /**
180
182
  * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
181
183
  *
182
184
  * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
183
185
  **/
184
- lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
186
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
185
187
 
186
188
  /**
187
189
  * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
188
190
  *
189
191
  * @param {Callback<boolean> =} callback
190
192
  **/
191
- upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
193
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
192
194
 
193
195
  /**
194
196
  * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
@@ -196,19 +198,19 @@ export interface ChainStorage extends GenericChainStorage {
196
198
  *
197
199
  * @param {Callback<boolean> =} callback
198
200
  **/
199
- upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
201
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
200
202
 
201
203
  /**
202
204
  * The execution phase of the block.
203
205
  *
204
206
  * @param {Callback<Phase | undefined> =} callback
205
207
  **/
206
- executionPhase: GenericStorageQuery<() => Phase | undefined>;
208
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
207
209
 
208
210
  /**
209
211
  * Generic pallet storage query
210
212
  **/
211
- [storage: string]: GenericStorageQuery;
213
+ [storage: string]: GenericStorageQuery<Rv>;
212
214
  };
213
215
  /**
214
216
  * Pallet `RandomnessCollectiveFlip`'s storage queries
@@ -221,12 +223,12 @@ export interface ChainStorage extends GenericChainStorage {
221
223
  *
222
224
  * @param {Callback<Array<H256>> =} callback
223
225
  **/
224
- randomMaterial: GenericStorageQuery<() => Array<H256>>;
226
+ randomMaterial: GenericStorageQuery<Rv, () => Array<H256>>;
225
227
 
226
228
  /**
227
229
  * Generic pallet storage query
228
230
  **/
229
- [storage: string]: GenericStorageQuery;
231
+ [storage: string]: GenericStorageQuery<Rv>;
230
232
  };
231
233
  /**
232
234
  * Pallet `Scheduler`'s storage queries
@@ -236,7 +238,7 @@ export interface ChainStorage extends GenericChainStorage {
236
238
  *
237
239
  * @param {Callback<number | undefined> =} callback
238
240
  **/
239
- incompleteSince: GenericStorageQuery<() => number | undefined>;
241
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
240
242
 
241
243
  /**
242
244
  * Items to be executed, indexed by the block number that they should be executed on.
@@ -244,7 +246,7 @@ export interface ChainStorage extends GenericChainStorage {
244
246
  * @param {number} arg
245
247
  * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
246
248
  **/
247
- agenda: GenericStorageQuery<(arg: number) => Array<PalletSchedulerScheduled | undefined>>;
249
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
248
250
 
249
251
  /**
250
252
  * Lookup from a name to the block number and index of the task.
@@ -255,12 +257,12 @@ export interface ChainStorage extends GenericChainStorage {
255
257
  * @param {FixedBytes<32>} arg
256
258
  * @param {Callback<[number, number] | undefined> =} callback
257
259
  **/
258
- lookup: GenericStorageQuery<(arg: FixedBytes<32>) => [number, number] | undefined>;
260
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
259
261
 
260
262
  /**
261
263
  * Generic pallet storage query
262
264
  **/
263
- [storage: string]: GenericStorageQuery;
265
+ [storage: string]: GenericStorageQuery<Rv>;
264
266
  };
265
267
  /**
266
268
  * Pallet `Aura`'s storage queries
@@ -271,7 +273,7 @@ export interface ChainStorage extends GenericChainStorage {
271
273
  *
272
274
  * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
273
275
  **/
274
- authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
276
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
275
277
 
276
278
  /**
277
279
  * The current slot of this block.
@@ -280,35 +282,38 @@ export interface ChainStorage extends GenericChainStorage {
280
282
  *
281
283
  * @param {Callback<SpConsensusSlotsSlot> =} callback
282
284
  **/
283
- currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
285
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
284
286
 
285
287
  /**
286
288
  * Generic pallet storage query
287
289
  **/
288
- [storage: string]: GenericStorageQuery;
290
+ [storage: string]: GenericStorageQuery<Rv>;
289
291
  };
290
292
  /**
291
293
  * Pallet `Timestamp`'s storage queries
292
294
  **/
293
295
  timestamp: {
294
296
  /**
295
- * Current time for the current block.
297
+ * The current time for the current block.
296
298
  *
297
299
  * @param {Callback<bigint> =} callback
298
300
  **/
299
- now: GenericStorageQuery<() => bigint>;
301
+ now: GenericStorageQuery<Rv, () => bigint>;
300
302
 
301
303
  /**
302
- * Did the timestamp get updated in this block?
304
+ * Whether the timestamp has been updated in this block.
305
+ *
306
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
307
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
303
308
  *
304
309
  * @param {Callback<boolean> =} callback
305
310
  **/
306
- didUpdate: GenericStorageQuery<() => boolean>;
311
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
307
312
 
308
313
  /**
309
314
  * Generic pallet storage query
310
315
  **/
311
- [storage: string]: GenericStorageQuery;
316
+ [storage: string]: GenericStorageQuery<Rv>;
312
317
  };
313
318
  /**
314
319
  * Pallet `Balances`'s storage queries
@@ -319,14 +324,14 @@ export interface ChainStorage extends GenericChainStorage {
319
324
  *
320
325
  * @param {Callback<bigint> =} callback
321
326
  **/
322
- totalIssuance: GenericStorageQuery<() => bigint>;
327
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
323
328
 
324
329
  /**
325
330
  * The total units of outstanding deactivated balance in the system.
326
331
  *
327
332
  * @param {Callback<bigint> =} callback
328
333
  **/
329
- inactiveIssuance: GenericStorageQuery<() => bigint>;
334
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
330
335
 
331
336
  /**
332
337
  * The Balances pallet example of storing the balance of an account.
@@ -357,7 +362,7 @@ export interface ChainStorage extends GenericChainStorage {
357
362
  * @param {AccountId32Like} arg
358
363
  * @param {Callback<PalletBalancesAccountData> =} callback
359
364
  **/
360
- account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
365
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
361
366
 
362
367
  /**
363
368
  * Any liquidity locks on some account balances.
@@ -366,7 +371,7 @@ export interface ChainStorage extends GenericChainStorage {
366
371
  * @param {AccountId32Like} arg
367
372
  * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
368
373
  **/
369
- locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
374
+ locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
370
375
 
371
376
  /**
372
377
  * Named reserves on some account balances.
@@ -374,7 +379,7 @@ export interface ChainStorage extends GenericChainStorage {
374
379
  * @param {AccountId32Like} arg
375
380
  * @param {Callback<Array<PalletBalancesReserveData>> =} callback
376
381
  **/
377
- reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
382
+ reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
378
383
 
379
384
  /**
380
385
  * Holds on account balances.
@@ -382,7 +387,7 @@ export interface ChainStorage extends GenericChainStorage {
382
387
  * @param {AccountId32Like} arg
383
388
  * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
384
389
  **/
385
- holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
390
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
386
391
 
387
392
  /**
388
393
  * Freeze locks on account balances.
@@ -390,12 +395,12 @@ export interface ChainStorage extends GenericChainStorage {
390
395
  * @param {AccountId32Like} arg
391
396
  * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
392
397
  **/
393
- freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount002>>;
398
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount002>, AccountId32>;
394
399
 
395
400
  /**
396
401
  * Generic pallet storage query
397
402
  **/
398
- [storage: string]: GenericStorageQuery;
403
+ [storage: string]: GenericStorageQuery<Rv>;
399
404
  };
400
405
  /**
401
406
  * Pallet `TransactionPayment`'s storage queries
@@ -405,18 +410,18 @@ export interface ChainStorage extends GenericChainStorage {
405
410
  *
406
411
  * @param {Callback<FixedU128> =} callback
407
412
  **/
408
- nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
413
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
409
414
 
410
415
  /**
411
416
  *
412
417
  * @param {Callback<PalletTransactionPaymentReleases> =} callback
413
418
  **/
414
- storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
419
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
415
420
 
416
421
  /**
417
422
  * Generic pallet storage query
418
423
  **/
419
- [storage: string]: GenericStorageQuery;
424
+ [storage: string]: GenericStorageQuery<Rv>;
420
425
  };
421
426
  /**
422
427
  * Pallet `Authorship`'s storage queries
@@ -427,12 +432,12 @@ export interface ChainStorage extends GenericChainStorage {
427
432
  *
428
433
  * @param {Callback<AccountId32 | undefined> =} callback
429
434
  **/
430
- author: GenericStorageQuery<() => AccountId32 | undefined>;
435
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
431
436
 
432
437
  /**
433
438
  * Generic pallet storage query
434
439
  **/
435
- [storage: string]: GenericStorageQuery;
440
+ [storage: string]: GenericStorageQuery<Rv>;
436
441
  };
437
442
  /**
438
443
  * Pallet `Staking`'s storage queries
@@ -443,14 +448,14 @@ export interface ChainStorage extends GenericChainStorage {
443
448
  *
444
449
  * @param {Callback<number> =} callback
445
450
  **/
446
- validatorCount: GenericStorageQuery<() => number>;
451
+ validatorCount: GenericStorageQuery<Rv, () => number>;
447
452
 
448
453
  /**
449
454
  * Minimum number of staking participants before emergency conditions are imposed.
450
455
  *
451
456
  * @param {Callback<number> =} callback
452
457
  **/
453
- minimumValidatorCount: GenericStorageQuery<() => number>;
458
+ minimumValidatorCount: GenericStorageQuery<Rv, () => number>;
454
459
 
455
460
  /**
456
461
  * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
@@ -459,7 +464,7 @@ export interface ChainStorage extends GenericChainStorage {
459
464
  *
460
465
  * @param {Callback<Array<AccountId32>> =} callback
461
466
  **/
462
- invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
467
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
463
468
 
464
469
  /**
465
470
  * Map from all locked "stash" accounts to the controller account.
@@ -469,28 +474,28 @@ export interface ChainStorage extends GenericChainStorage {
469
474
  * @param {AccountId32Like} arg
470
475
  * @param {Callback<AccountId32 | undefined> =} callback
471
476
  **/
472
- bonded: GenericStorageQuery<(arg: AccountId32Like) => AccountId32 | undefined>;
477
+ bonded: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
473
478
 
474
479
  /**
475
480
  * The minimum active bond to become and maintain the role of a nominator.
476
481
  *
477
482
  * @param {Callback<bigint> =} callback
478
483
  **/
479
- minNominatorBond: GenericStorageQuery<() => bigint>;
484
+ minNominatorBond: GenericStorageQuery<Rv, () => bigint>;
480
485
 
481
486
  /**
482
487
  * The minimum active bond to become and maintain the role of a validator.
483
488
  *
484
489
  * @param {Callback<bigint> =} callback
485
490
  **/
486
- minValidatorBond: GenericStorageQuery<() => bigint>;
491
+ minValidatorBond: GenericStorageQuery<Rv, () => bigint>;
487
492
 
488
493
  /**
489
494
  * The minimum active nominator stake of the last successful election.
490
495
  *
491
496
  * @param {Callback<bigint> =} callback
492
497
  **/
493
- minimumActiveStake: GenericStorageQuery<() => bigint>;
498
+ minimumActiveStake: GenericStorageQuery<Rv, () => bigint>;
494
499
 
495
500
  /**
496
501
  * The minimum amount of commission that validators can set.
@@ -499,7 +504,7 @@ export interface ChainStorage extends GenericChainStorage {
499
504
  *
500
505
  * @param {Callback<Perbill> =} callback
501
506
  **/
502
- minCommission: GenericStorageQuery<() => Perbill>;
507
+ minCommission: GenericStorageQuery<Rv, () => Perbill>;
503
508
 
504
509
  /**
505
510
  * Map from all (unlocked) "controller" accounts to the info regarding the staking.
@@ -507,7 +512,7 @@ export interface ChainStorage extends GenericChainStorage {
507
512
  * @param {AccountId32Like} arg
508
513
  * @param {Callback<PalletStakingStakingLedger | undefined> =} callback
509
514
  **/
510
- ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingStakingLedger | undefined>;
515
+ ledger: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingStakingLedger | undefined, AccountId32>;
511
516
 
512
517
  /**
513
518
  * Where the reward payment should be made. Keyed by stash.
@@ -517,7 +522,7 @@ export interface ChainStorage extends GenericChainStorage {
517
522
  * @param {AccountId32Like} arg
518
523
  * @param {Callback<PalletStakingRewardDestination> =} callback
519
524
  **/
520
- payee: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingRewardDestination>;
525
+ payee: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingRewardDestination, AccountId32>;
521
526
 
522
527
  /**
523
528
  * The map from (wannabe) validator stash key to the preferences of that validator.
@@ -527,14 +532,14 @@ export interface ChainStorage extends GenericChainStorage {
527
532
  * @param {AccountId32Like} arg
528
533
  * @param {Callback<PalletStakingValidatorPrefs> =} callback
529
534
  **/
530
- validators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingValidatorPrefs>;
535
+ validators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingValidatorPrefs, AccountId32>;
531
536
 
532
537
  /**
533
538
  * Counter for the related counted storage map
534
539
  *
535
540
  * @param {Callback<number> =} callback
536
541
  **/
537
- counterForValidators: GenericStorageQuery<() => number>;
542
+ counterForValidators: GenericStorageQuery<Rv, () => number>;
538
543
 
539
544
  /**
540
545
  * The maximum validator count before we stop allowing new validators to join.
@@ -543,14 +548,15 @@ export interface ChainStorage extends GenericChainStorage {
543
548
  *
544
549
  * @param {Callback<number | undefined> =} callback
545
550
  **/
546
- maxValidatorsCount: GenericStorageQuery<() => number | undefined>;
551
+ maxValidatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
547
552
 
548
553
  /**
549
554
  * The map from nominator stash key to their nomination preferences, namely the validators that
550
555
  * they wish to support.
551
556
  *
552
557
  * Note that the keys of this storage map might become non-decodable in case the
553
- * [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators
558
+ * account's [`NominationsQuota::MaxNominations`] configuration is decreased.
559
+ * In this rare case, these nominators
554
560
  * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
555
561
  * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
556
562
  * nominators will effectively not-exist, until they re-submit their preferences such that it
@@ -568,14 +574,14 @@ export interface ChainStorage extends GenericChainStorage {
568
574
  * @param {AccountId32Like} arg
569
575
  * @param {Callback<PalletStakingNominations | undefined> =} callback
570
576
  **/
571
- nominators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingNominations | undefined>;
577
+ nominators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingNominations | undefined, AccountId32>;
572
578
 
573
579
  /**
574
580
  * Counter for the related counted storage map
575
581
  *
576
582
  * @param {Callback<number> =} callback
577
583
  **/
578
- counterForNominators: GenericStorageQuery<() => number>;
584
+ counterForNominators: GenericStorageQuery<Rv, () => number>;
579
585
 
580
586
  /**
581
587
  * The maximum nominator count before we stop allowing new validators to join.
@@ -584,7 +590,7 @@ export interface ChainStorage extends GenericChainStorage {
584
590
  *
585
591
  * @param {Callback<number | undefined> =} callback
586
592
  **/
587
- maxNominatorsCount: GenericStorageQuery<() => number | undefined>;
593
+ maxNominatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
588
594
 
589
595
  /**
590
596
  * The current era index.
@@ -594,7 +600,7 @@ export interface ChainStorage extends GenericChainStorage {
594
600
  *
595
601
  * @param {Callback<number | undefined> =} callback
596
602
  **/
597
- currentEra: GenericStorageQuery<() => number | undefined>;
603
+ currentEra: GenericStorageQuery<Rv, () => number | undefined>;
598
604
 
599
605
  /**
600
606
  * The active era information, it holds index and start.
@@ -604,7 +610,7 @@ export interface ChainStorage extends GenericChainStorage {
604
610
  *
605
611
  * @param {Callback<PalletStakingActiveEraInfo | undefined> =} callback
606
612
  **/
607
- activeEra: GenericStorageQuery<() => PalletStakingActiveEraInfo | undefined>;
613
+ activeEra: GenericStorageQuery<Rv, () => PalletStakingActiveEraInfo | undefined>;
608
614
 
609
615
  /**
610
616
  * The session index at which the era start for the last `HISTORY_DEPTH` eras.
@@ -615,7 +621,7 @@ export interface ChainStorage extends GenericChainStorage {
615
621
  * @param {number} arg
616
622
  * @param {Callback<number | undefined> =} callback
617
623
  **/
618
- erasStartSessionIndex: GenericStorageQuery<(arg: number) => number | undefined>;
624
+ erasStartSessionIndex: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
619
625
 
620
626
  /**
621
627
  * Exposure of validator at era.
@@ -628,7 +634,11 @@ export interface ChainStorage extends GenericChainStorage {
628
634
  * @param {[number, AccountId32Like]} arg
629
635
  * @param {Callback<PalletStakingExposure> =} callback
630
636
  **/
631
- erasStakers: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingExposure>;
637
+ erasStakers: GenericStorageQuery<
638
+ Rv,
639
+ (arg: [number, AccountId32Like]) => PalletStakingExposure,
640
+ [number, AccountId32]
641
+ >;
632
642
 
633
643
  /**
634
644
  * Clipped Exposure of validator at era.
@@ -646,7 +656,11 @@ export interface ChainStorage extends GenericChainStorage {
646
656
  * @param {[number, AccountId32Like]} arg
647
657
  * @param {Callback<PalletStakingExposure> =} callback
648
658
  **/
649
- erasStakersClipped: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingExposure>;
659
+ erasStakersClipped: GenericStorageQuery<
660
+ Rv,
661
+ (arg: [number, AccountId32Like]) => PalletStakingExposure,
662
+ [number, AccountId32]
663
+ >;
650
664
 
651
665
  /**
652
666
  * Similar to `ErasStakers`, this holds the preferences of validators.
@@ -658,7 +672,11 @@ export interface ChainStorage extends GenericChainStorage {
658
672
  * @param {[number, AccountId32Like]} arg
659
673
  * @param {Callback<PalletStakingValidatorPrefs> =} callback
660
674
  **/
661
- erasValidatorPrefs: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingValidatorPrefs>;
675
+ erasValidatorPrefs: GenericStorageQuery<
676
+ Rv,
677
+ (arg: [number, AccountId32Like]) => PalletStakingValidatorPrefs,
678
+ [number, AccountId32]
679
+ >;
662
680
 
663
681
  /**
664
682
  * The total validator era payout for the last `HISTORY_DEPTH` eras.
@@ -668,7 +686,7 @@ export interface ChainStorage extends GenericChainStorage {
668
686
  * @param {number} arg
669
687
  * @param {Callback<bigint | undefined> =} callback
670
688
  **/
671
- erasValidatorReward: GenericStorageQuery<(arg: number) => bigint | undefined>;
689
+ erasValidatorReward: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
672
690
 
673
691
  /**
674
692
  * Rewards for the last `HISTORY_DEPTH` eras.
@@ -677,7 +695,7 @@ export interface ChainStorage extends GenericChainStorage {
677
695
  * @param {number} arg
678
696
  * @param {Callback<PalletStakingEraRewardPoints> =} callback
679
697
  **/
680
- erasRewardPoints: GenericStorageQuery<(arg: number) => PalletStakingEraRewardPoints>;
698
+ erasRewardPoints: GenericStorageQuery<Rv, (arg: number) => PalletStakingEraRewardPoints, number>;
681
699
 
682
700
  /**
683
701
  * The total amount staked for the last `HISTORY_DEPTH` eras.
@@ -686,14 +704,14 @@ export interface ChainStorage extends GenericChainStorage {
686
704
  * @param {number} arg
687
705
  * @param {Callback<bigint> =} callback
688
706
  **/
689
- erasTotalStake: GenericStorageQuery<(arg: number) => bigint>;
707
+ erasTotalStake: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
690
708
 
691
709
  /**
692
710
  * Mode of era forcing.
693
711
  *
694
712
  * @param {Callback<PalletStakingForcing> =} callback
695
713
  **/
696
- forceEra: GenericStorageQuery<() => PalletStakingForcing>;
714
+ forceEra: GenericStorageQuery<Rv, () => PalletStakingForcing>;
697
715
 
698
716
  /**
699
717
  * The percentage of the slash that is distributed to reporters.
@@ -702,7 +720,7 @@ export interface ChainStorage extends GenericChainStorage {
702
720
  *
703
721
  * @param {Callback<Perbill> =} callback
704
722
  **/
705
- slashRewardFraction: GenericStorageQuery<() => Perbill>;
723
+ slashRewardFraction: GenericStorageQuery<Rv, () => Perbill>;
706
724
 
707
725
  /**
708
726
  * The amount of currency given to reporters of a slash event which was
@@ -710,7 +728,7 @@ export interface ChainStorage extends GenericChainStorage {
710
728
  *
711
729
  * @param {Callback<bigint> =} callback
712
730
  **/
713
- canceledSlashPayout: GenericStorageQuery<() => bigint>;
731
+ canceledSlashPayout: GenericStorageQuery<Rv, () => bigint>;
714
732
 
715
733
  /**
716
734
  * All unapplied slashes that are queued for later.
@@ -718,7 +736,7 @@ export interface ChainStorage extends GenericChainStorage {
718
736
  * @param {number} arg
719
737
  * @param {Callback<Array<PalletStakingUnappliedSlash>> =} callback
720
738
  **/
721
- unappliedSlashes: GenericStorageQuery<(arg: number) => Array<PalletStakingUnappliedSlash>>;
739
+ unappliedSlashes: GenericStorageQuery<Rv, (arg: number) => Array<PalletStakingUnappliedSlash>, number>;
722
740
 
723
741
  /**
724
742
  * A mapping from still-bonded eras to the first session index of that era.
@@ -728,7 +746,7 @@ export interface ChainStorage extends GenericChainStorage {
728
746
  *
729
747
  * @param {Callback<Array<[number, number]>> =} callback
730
748
  **/
731
- bondedEras: GenericStorageQuery<() => Array<[number, number]>>;
749
+ bondedEras: GenericStorageQuery<Rv, () => Array<[number, number]>>;
732
750
 
733
751
  /**
734
752
  * All slashing events on validators, mapped by era to the highest slash proportion
@@ -737,7 +755,11 @@ export interface ChainStorage extends GenericChainStorage {
737
755
  * @param {[number, AccountId32Like]} arg
738
756
  * @param {Callback<[Perbill, bigint] | undefined> =} callback
739
757
  **/
740
- validatorSlashInEra: GenericStorageQuery<(arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined>;
758
+ validatorSlashInEra: GenericStorageQuery<
759
+ Rv,
760
+ (arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined,
761
+ [number, AccountId32]
762
+ >;
741
763
 
742
764
  /**
743
765
  * All slashing events on nominators, mapped by era to the highest slash value of the era.
@@ -745,7 +767,11 @@ export interface ChainStorage extends GenericChainStorage {
745
767
  * @param {[number, AccountId32Like]} arg
746
768
  * @param {Callback<bigint | undefined> =} callback
747
769
  **/
748
- nominatorSlashInEra: GenericStorageQuery<(arg: [number, AccountId32Like]) => bigint | undefined>;
770
+ nominatorSlashInEra: GenericStorageQuery<
771
+ Rv,
772
+ (arg: [number, AccountId32Like]) => bigint | undefined,
773
+ [number, AccountId32]
774
+ >;
749
775
 
750
776
  /**
751
777
  * Slashing spans for stash accounts.
@@ -753,7 +779,11 @@ export interface ChainStorage extends GenericChainStorage {
753
779
  * @param {AccountId32Like} arg
754
780
  * @param {Callback<PalletStakingSlashingSlashingSpans | undefined> =} callback
755
781
  **/
756
- slashingSpans: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingSlashingSlashingSpans | undefined>;
782
+ slashingSpans: GenericStorageQuery<
783
+ Rv,
784
+ (arg: AccountId32Like) => PalletStakingSlashingSlashingSpans | undefined,
785
+ AccountId32
786
+ >;
757
787
 
758
788
  /**
759
789
  * Records information about the maximum slash of a stash within a slashing span,
@@ -762,7 +792,11 @@ export interface ChainStorage extends GenericChainStorage {
762
792
  * @param {[AccountId32Like, number]} arg
763
793
  * @param {Callback<PalletStakingSlashingSpanRecord> =} callback
764
794
  **/
765
- spanSlash: GenericStorageQuery<(arg: [AccountId32Like, number]) => PalletStakingSlashingSpanRecord>;
795
+ spanSlash: GenericStorageQuery<
796
+ Rv,
797
+ (arg: [AccountId32Like, number]) => PalletStakingSlashingSpanRecord,
798
+ [AccountId32, number]
799
+ >;
766
800
 
767
801
  /**
768
802
  * The last planned session scheduled by the session pallet.
@@ -771,7 +805,7 @@ export interface ChainStorage extends GenericChainStorage {
771
805
  *
772
806
  * @param {Callback<number> =} callback
773
807
  **/
774
- currentPlannedSession: GenericStorageQuery<() => number>;
808
+ currentPlannedSession: GenericStorageQuery<Rv, () => number>;
775
809
 
776
810
  /**
777
811
  * Indices of validators that have offended in the active era and whether they are currently
@@ -786,7 +820,7 @@ export interface ChainStorage extends GenericChainStorage {
786
820
  *
787
821
  * @param {Callback<Array<[number, boolean]>> =} callback
788
822
  **/
789
- offendingValidators: GenericStorageQuery<() => Array<[number, boolean]>>;
823
+ offendingValidators: GenericStorageQuery<Rv, () => Array<[number, boolean]>>;
790
824
 
791
825
  /**
792
826
  * The threshold for when users can start calling `chill_other` for other validators /
@@ -795,12 +829,12 @@ export interface ChainStorage extends GenericChainStorage {
795
829
  *
796
830
  * @param {Callback<Percent | undefined> =} callback
797
831
  **/
798
- chillThreshold: GenericStorageQuery<() => Percent | undefined>;
832
+ chillThreshold: GenericStorageQuery<Rv, () => Percent | undefined>;
799
833
 
800
834
  /**
801
835
  * Generic pallet storage query
802
836
  **/
803
- [storage: string]: GenericStorageQuery;
837
+ [storage: string]: GenericStorageQuery<Rv>;
804
838
  };
805
839
  /**
806
840
  * Pallet `History`'s storage queries
@@ -812,19 +846,19 @@ export interface ChainStorage extends GenericChainStorage {
812
846
  * @param {number} arg
813
847
  * @param {Callback<[H256, number] | undefined> =} callback
814
848
  **/
815
- historicalSessions: GenericStorageQuery<(arg: number) => [H256, number] | undefined>;
849
+ historicalSessions: GenericStorageQuery<Rv, (arg: number) => [H256, number] | undefined, number>;
816
850
 
817
851
  /**
818
852
  * The range of historical sessions we store. [first, last)
819
853
  *
820
854
  * @param {Callback<[number, number] | undefined> =} callback
821
855
  **/
822
- storedRange: GenericStorageQuery<() => [number, number] | undefined>;
856
+ storedRange: GenericStorageQuery<Rv, () => [number, number] | undefined>;
823
857
 
824
858
  /**
825
859
  * Generic pallet storage query
826
860
  **/
827
- [storage: string]: GenericStorageQuery;
861
+ [storage: string]: GenericStorageQuery<Rv>;
828
862
  };
829
863
  /**
830
864
  * Pallet `Session`'s storage queries
@@ -835,14 +869,14 @@ export interface ChainStorage extends GenericChainStorage {
835
869
  *
836
870
  * @param {Callback<Array<AccountId32>> =} callback
837
871
  **/
838
- validators: GenericStorageQuery<() => Array<AccountId32>>;
872
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
839
873
 
840
874
  /**
841
875
  * Current index of the session.
842
876
  *
843
877
  * @param {Callback<number> =} callback
844
878
  **/
845
- currentIndex: GenericStorageQuery<() => number>;
879
+ currentIndex: GenericStorageQuery<Rv, () => number>;
846
880
 
847
881
  /**
848
882
  * True if the underlying economic identities or weighting behind the validators
@@ -850,7 +884,7 @@ export interface ChainStorage extends GenericChainStorage {
850
884
  *
851
885
  * @param {Callback<boolean> =} callback
852
886
  **/
853
- queuedChanged: GenericStorageQuery<() => boolean>;
887
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
854
888
 
855
889
  /**
856
890
  * The queued keys for the next session. When the next session begins, these keys
@@ -858,7 +892,7 @@ export interface ChainStorage extends GenericChainStorage {
858
892
  *
859
893
  * @param {Callback<Array<[AccountId32, AlephRuntimeSessionKeys]>> =} callback
860
894
  **/
861
- queuedKeys: GenericStorageQuery<() => Array<[AccountId32, AlephRuntimeSessionKeys]>>;
895
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, AlephRuntimeSessionKeys]>>;
862
896
 
863
897
  /**
864
898
  * Indices of disabled validators.
@@ -869,7 +903,7 @@ export interface ChainStorage extends GenericChainStorage {
869
903
  *
870
904
  * @param {Callback<Array<number>> =} callback
871
905
  **/
872
- disabledValidators: GenericStorageQuery<() => Array<number>>;
906
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
873
907
 
874
908
  /**
875
909
  * The next session keys for a validator.
@@ -877,7 +911,7 @@ export interface ChainStorage extends GenericChainStorage {
877
911
  * @param {AccountId32Like} arg
878
912
  * @param {Callback<AlephRuntimeSessionKeys | undefined> =} callback
879
913
  **/
880
- nextKeys: GenericStorageQuery<(arg: AccountId32Like) => AlephRuntimeSessionKeys | undefined>;
914
+ nextKeys: GenericStorageQuery<Rv, (arg: AccountId32Like) => AlephRuntimeSessionKeys | undefined, AccountId32>;
881
915
 
882
916
  /**
883
917
  * The owner of a key. The key is the `KeyTypeId` + the encoded key.
@@ -885,12 +919,16 @@ export interface ChainStorage extends GenericChainStorage {
885
919
  * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
886
920
  * @param {Callback<AccountId32 | undefined> =} callback
887
921
  **/
888
- keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined>;
922
+ keyOwner: GenericStorageQuery<
923
+ Rv,
924
+ (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
925
+ [SpCoreCryptoKeyTypeId, Bytes]
926
+ >;
889
927
 
890
928
  /**
891
929
  * Generic pallet storage query
892
930
  **/
893
- [storage: string]: GenericStorageQuery;
931
+ [storage: string]: GenericStorageQuery<Rv>;
894
932
  };
895
933
  /**
896
934
  * Pallet `Aleph`'s storage queries
@@ -900,57 +938,57 @@ export interface ChainStorage extends GenericChainStorage {
900
938
  *
901
939
  * @param {Callback<Array<PrimitivesAppPublic>> =} callback
902
940
  **/
903
- authorities: GenericStorageQuery<() => Array<PrimitivesAppPublic>>;
941
+ authorities: GenericStorageQuery<Rv, () => Array<PrimitivesAppPublic>>;
904
942
 
905
943
  /**
906
944
  *
907
945
  * @param {Callback<Array<PrimitivesAppPublic>> =} callback
908
946
  **/
909
- nextAuthorities: GenericStorageQuery<() => Array<PrimitivesAppPublic>>;
947
+ nextAuthorities: GenericStorageQuery<Rv, () => Array<PrimitivesAppPublic>>;
910
948
 
911
949
  /**
912
950
  * Set of account ids that will be used as authorities in the next session
913
951
  *
914
952
  * @param {Callback<Array<AccountId32>> =} callback
915
953
  **/
916
- nextFinalityCommittee: GenericStorageQuery<() => Array<AccountId32>>;
954
+ nextFinalityCommittee: GenericStorageQuery<Rv, () => Array<AccountId32>>;
917
955
 
918
956
  /**
919
957
  *
920
958
  * @param {Callback<PrimitivesAppPublic | undefined> =} callback
921
959
  **/
922
- emergencyFinalizer: GenericStorageQuery<() => PrimitivesAppPublic | undefined>;
960
+ emergencyFinalizer: GenericStorageQuery<Rv, () => PrimitivesAppPublic | undefined>;
923
961
 
924
962
  /**
925
963
  *
926
964
  * @param {Callback<PrimitivesAppPublic | undefined> =} callback
927
965
  **/
928
- queuedEmergencyFinalizer: GenericStorageQuery<() => PrimitivesAppPublic | undefined>;
966
+ queuedEmergencyFinalizer: GenericStorageQuery<Rv, () => PrimitivesAppPublic | undefined>;
929
967
 
930
968
  /**
931
969
  *
932
970
  * @param {Callback<PrimitivesAppPublic | undefined> =} callback
933
971
  **/
934
- nextEmergencyFinalizer: GenericStorageQuery<() => PrimitivesAppPublic | undefined>;
972
+ nextEmergencyFinalizer: GenericStorageQuery<Rv, () => PrimitivesAppPublic | undefined>;
935
973
 
936
974
  /**
937
975
  * Current finality version.
938
976
  *
939
977
  * @param {Callback<number> =} callback
940
978
  **/
941
- finalityVersion: GenericStorageQuery<() => number>;
979
+ finalityVersion: GenericStorageQuery<Rv, () => number>;
942
980
 
943
981
  /**
944
982
  * Scheduled finality version change.
945
983
  *
946
984
  * @param {Callback<PrimitivesVersionChange | undefined> =} callback
947
985
  **/
948
- finalityScheduledVersionChange: GenericStorageQuery<() => PrimitivesVersionChange | undefined>;
986
+ finalityScheduledVersionChange: GenericStorageQuery<Rv, () => PrimitivesVersionChange | undefined>;
949
987
 
950
988
  /**
951
989
  * Generic pallet storage query
952
990
  **/
953
- [storage: string]: GenericStorageQuery;
991
+ [storage: string]: GenericStorageQuery<Rv>;
954
992
  };
955
993
  /**
956
994
  * Pallet `Elections`'s storage queries
@@ -961,35 +999,35 @@ export interface ChainStorage extends GenericChainStorage {
961
999
  *
962
1000
  * @param {Callback<PrimitivesCommitteeSeats> =} callback
963
1001
  **/
964
- committeeSize: GenericStorageQuery<() => PrimitivesCommitteeSeats>;
1002
+ committeeSize: GenericStorageQuery<Rv, () => PrimitivesCommitteeSeats>;
965
1003
 
966
1004
  /**
967
1005
  * Desired size of a committee in effect from a new era.
968
1006
  *
969
1007
  * @param {Callback<PrimitivesCommitteeSeats> =} callback
970
1008
  **/
971
- nextEraCommitteeSize: GenericStorageQuery<() => PrimitivesCommitteeSeats>;
1009
+ nextEraCommitteeSize: GenericStorageQuery<Rv, () => PrimitivesCommitteeSeats>;
972
1010
 
973
1011
  /**
974
1012
  * Next era's list of reserved validators.
975
1013
  *
976
1014
  * @param {Callback<Array<AccountId32>> =} callback
977
1015
  **/
978
- nextEraReservedValidators: GenericStorageQuery<() => Array<AccountId32>>;
1016
+ nextEraReservedValidators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
979
1017
 
980
1018
  /**
981
1019
  * Current era's list of reserved validators.
982
1020
  *
983
1021
  * @param {Callback<PrimitivesEraValidators> =} callback
984
1022
  **/
985
- currentEraValidators: GenericStorageQuery<() => PrimitivesEraValidators>;
1023
+ currentEraValidators: GenericStorageQuery<Rv, () => PrimitivesEraValidators>;
986
1024
 
987
1025
  /**
988
1026
  * Next era's list of non reserved validators.
989
1027
  *
990
1028
  * @param {Callback<Array<AccountId32>> =} callback
991
1029
  **/
992
- nextEraNonReservedValidators: GenericStorageQuery<() => Array<AccountId32>>;
1030
+ nextEraNonReservedValidators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
993
1031
 
994
1032
  /**
995
1033
  * Openness of the elections, whether we allow all candidates that bonded enough tokens or
@@ -997,12 +1035,12 @@ export interface ChainStorage extends GenericChainStorage {
997
1035
  *
998
1036
  * @param {Callback<PrimitivesElectionOpenness> =} callback
999
1037
  **/
1000
- openness: GenericStorageQuery<() => PrimitivesElectionOpenness>;
1038
+ openness: GenericStorageQuery<Rv, () => PrimitivesElectionOpenness>;
1001
1039
 
1002
1040
  /**
1003
1041
  * Generic pallet storage query
1004
1042
  **/
1005
- [storage: string]: GenericStorageQuery;
1043
+ [storage: string]: GenericStorageQuery<Rv>;
1006
1044
  };
1007
1045
  /**
1008
1046
  * Pallet `Treasury`'s storage queries
@@ -1013,7 +1051,7 @@ export interface ChainStorage extends GenericChainStorage {
1013
1051
  *
1014
1052
  * @param {Callback<number> =} callback
1015
1053
  **/
1016
- proposalCount: GenericStorageQuery<() => number>;
1054
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1017
1055
 
1018
1056
  /**
1019
1057
  * Proposals that have been made.
@@ -1021,26 +1059,26 @@ export interface ChainStorage extends GenericChainStorage {
1021
1059
  * @param {number} arg
1022
1060
  * @param {Callback<PalletTreasuryProposal | undefined> =} callback
1023
1061
  **/
1024
- proposals: GenericStorageQuery<(arg: number) => PalletTreasuryProposal | undefined>;
1062
+ proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
1025
1063
 
1026
1064
  /**
1027
1065
  * The amount which has been reported as inactive to Currency.
1028
1066
  *
1029
1067
  * @param {Callback<bigint> =} callback
1030
1068
  **/
1031
- deactivated: GenericStorageQuery<() => bigint>;
1069
+ deactivated: GenericStorageQuery<Rv, () => bigint>;
1032
1070
 
1033
1071
  /**
1034
1072
  * Proposal indices that have been approved but not yet awarded.
1035
1073
  *
1036
1074
  * @param {Callback<Array<number>> =} callback
1037
1075
  **/
1038
- approvals: GenericStorageQuery<() => Array<number>>;
1076
+ approvals: GenericStorageQuery<Rv, () => Array<number>>;
1039
1077
 
1040
1078
  /**
1041
1079
  * Generic pallet storage query
1042
1080
  **/
1043
- [storage: string]: GenericStorageQuery;
1081
+ [storage: string]: GenericStorageQuery<Rv>;
1044
1082
  };
1045
1083
  /**
1046
1084
  * Pallet `Vesting`'s storage queries
@@ -1052,7 +1090,11 @@ export interface ChainStorage extends GenericChainStorage {
1052
1090
  * @param {AccountId32Like} arg
1053
1091
  * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
1054
1092
  **/
1055
- vesting: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined>;
1093
+ vesting: GenericStorageQuery<
1094
+ Rv,
1095
+ (arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined,
1096
+ AccountId32
1097
+ >;
1056
1098
 
1057
1099
  /**
1058
1100
  * Storage version of the pallet.
@@ -1061,12 +1103,12 @@ export interface ChainStorage extends GenericChainStorage {
1061
1103
  *
1062
1104
  * @param {Callback<PalletVestingReleases> =} callback
1063
1105
  **/
1064
- storageVersion: GenericStorageQuery<() => PalletVestingReleases>;
1106
+ storageVersion: GenericStorageQuery<Rv, () => PalletVestingReleases>;
1065
1107
 
1066
1108
  /**
1067
1109
  * Generic pallet storage query
1068
1110
  **/
1069
- [storage: string]: GenericStorageQuery;
1111
+ [storage: string]: GenericStorageQuery<Rv>;
1070
1112
  };
1071
1113
  /**
1072
1114
  * Pallet `Multisig`'s storage queries
@@ -1078,12 +1120,16 @@ export interface ChainStorage extends GenericChainStorage {
1078
1120
  * @param {[AccountId32Like, FixedBytes<32>]} arg
1079
1121
  * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1080
1122
  **/
1081
- multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
1123
+ multisigs: GenericStorageQuery<
1124
+ Rv,
1125
+ (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1126
+ [AccountId32, FixedBytes<32>]
1127
+ >;
1082
1128
 
1083
1129
  /**
1084
1130
  * Generic pallet storage query
1085
1131
  **/
1086
- [storage: string]: GenericStorageQuery;
1132
+ [storage: string]: GenericStorageQuery<Rv>;
1087
1133
  };
1088
1134
  /**
1089
1135
  * Pallet `Sudo`'s storage queries
@@ -1094,12 +1140,12 @@ export interface ChainStorage extends GenericChainStorage {
1094
1140
  *
1095
1141
  * @param {Callback<AccountId32 | undefined> =} callback
1096
1142
  **/
1097
- key: GenericStorageQuery<() => AccountId32 | undefined>;
1143
+ key: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1098
1144
 
1099
1145
  /**
1100
1146
  * Generic pallet storage query
1101
1147
  **/
1102
- [storage: string]: GenericStorageQuery;
1148
+ [storage: string]: GenericStorageQuery<Rv>;
1103
1149
  };
1104
1150
  /**
1105
1151
  * Pallet `Contracts`'s storage queries
@@ -1111,7 +1157,7 @@ export interface ChainStorage extends GenericChainStorage {
1111
1157
  * @param {H256} arg
1112
1158
  * @param {Callback<Bytes | undefined> =} callback
1113
1159
  **/
1114
- pristineCode: GenericStorageQuery<(arg: H256) => Bytes | undefined>;
1160
+ pristineCode: GenericStorageQuery<Rv, (arg: H256) => Bytes | undefined, H256>;
1115
1161
 
1116
1162
  /**
1117
1163
  * A mapping from a contract's code hash to its code info.
@@ -1119,7 +1165,7 @@ export interface ChainStorage extends GenericChainStorage {
1119
1165
  * @param {H256} arg
1120
1166
  * @param {Callback<PalletContractsWasmCodeInfo | undefined> =} callback
1121
1167
  **/
1122
- codeInfoOf: GenericStorageQuery<(arg: H256) => PalletContractsWasmCodeInfo | undefined>;
1168
+ codeInfoOf: GenericStorageQuery<Rv, (arg: H256) => PalletContractsWasmCodeInfo | undefined, H256>;
1123
1169
 
1124
1170
  /**
1125
1171
  * This is a **monotonic** counter incremented on contract instantiation.
@@ -1147,7 +1193,7 @@ export interface ChainStorage extends GenericChainStorage {
1147
1193
  *
1148
1194
  * @param {Callback<bigint> =} callback
1149
1195
  **/
1150
- nonce: GenericStorageQuery<() => bigint>;
1196
+ nonce: GenericStorageQuery<Rv, () => bigint>;
1151
1197
 
1152
1198
  /**
1153
1199
  * The code associated with a given account.
@@ -1157,7 +1203,11 @@ export interface ChainStorage extends GenericChainStorage {
1157
1203
  * @param {AccountId32Like} arg
1158
1204
  * @param {Callback<PalletContractsStorageContractInfo | undefined> =} callback
1159
1205
  **/
1160
- contractInfoOf: GenericStorageQuery<(arg: AccountId32Like) => PalletContractsStorageContractInfo | undefined>;
1206
+ contractInfoOf: GenericStorageQuery<
1207
+ Rv,
1208
+ (arg: AccountId32Like) => PalletContractsStorageContractInfo | undefined,
1209
+ AccountId32
1210
+ >;
1161
1211
 
1162
1212
  /**
1163
1213
  * Evicted contracts that await child trie deletion.
@@ -1168,7 +1218,7 @@ export interface ChainStorage extends GenericChainStorage {
1168
1218
  * @param {number} arg
1169
1219
  * @param {Callback<Bytes | undefined> =} callback
1170
1220
  **/
1171
- deletionQueue: GenericStorageQuery<(arg: number) => Bytes | undefined>;
1221
+ deletionQueue: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
1172
1222
 
1173
1223
  /**
1174
1224
  * A pair of monotonic counters used to track the latest contract marked for deletion
@@ -1176,7 +1226,7 @@ export interface ChainStorage extends GenericChainStorage {
1176
1226
  *
1177
1227
  * @param {Callback<PalletContractsStorageDeletionQueueManager> =} callback
1178
1228
  **/
1179
- deletionQueueCounter: GenericStorageQuery<() => PalletContractsStorageDeletionQueueManager>;
1229
+ deletionQueueCounter: GenericStorageQuery<Rv, () => PalletContractsStorageDeletionQueueManager>;
1180
1230
 
1181
1231
  /**
1182
1232
  * A migration can span across multiple blocks. This storage defines a cursor to track the
@@ -1184,12 +1234,12 @@ export interface ChainStorage extends GenericChainStorage {
1184
1234
  *
1185
1235
  * @param {Callback<Bytes | undefined> =} callback
1186
1236
  **/
1187
- migrationInProgress: GenericStorageQuery<() => Bytes | undefined>;
1237
+ migrationInProgress: GenericStorageQuery<Rv, () => Bytes | undefined>;
1188
1238
 
1189
1239
  /**
1190
1240
  * Generic pallet storage query
1191
1241
  **/
1192
- [storage: string]: GenericStorageQuery;
1242
+ [storage: string]: GenericStorageQuery<Rv>;
1193
1243
  };
1194
1244
  /**
1195
1245
  * Pallet `NominationPools`'s storage queries
@@ -1200,7 +1250,7 @@ export interface ChainStorage extends GenericChainStorage {
1200
1250
  *
1201
1251
  * @param {Callback<bigint> =} callback
1202
1252
  **/
1203
- minJoinBond: GenericStorageQuery<() => bigint>;
1253
+ minJoinBond: GenericStorageQuery<Rv, () => bigint>;
1204
1254
 
1205
1255
  /**
1206
1256
  * Minimum bond required to create a pool.
@@ -1213,7 +1263,7 @@ export interface ChainStorage extends GenericChainStorage {
1213
1263
  *
1214
1264
  * @param {Callback<bigint> =} callback
1215
1265
  **/
1216
- minCreateBond: GenericStorageQuery<() => bigint>;
1266
+ minCreateBond: GenericStorageQuery<Rv, () => bigint>;
1217
1267
 
1218
1268
  /**
1219
1269
  * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
@@ -1221,7 +1271,7 @@ export interface ChainStorage extends GenericChainStorage {
1221
1271
  *
1222
1272
  * @param {Callback<number | undefined> =} callback
1223
1273
  **/
1224
- maxPools: GenericStorageQuery<() => number | undefined>;
1274
+ maxPools: GenericStorageQuery<Rv, () => number | undefined>;
1225
1275
 
1226
1276
  /**
1227
1277
  * Maximum number of members that can exist in the system. If `None`, then the count
@@ -1229,7 +1279,7 @@ export interface ChainStorage extends GenericChainStorage {
1229
1279
  *
1230
1280
  * @param {Callback<number | undefined> =} callback
1231
1281
  **/
1232
- maxPoolMembers: GenericStorageQuery<() => number | undefined>;
1282
+ maxPoolMembers: GenericStorageQuery<Rv, () => number | undefined>;
1233
1283
 
1234
1284
  /**
1235
1285
  * Maximum number of members that may belong to pool. If `None`, then the count of
@@ -1237,7 +1287,7 @@ export interface ChainStorage extends GenericChainStorage {
1237
1287
  *
1238
1288
  * @param {Callback<number | undefined> =} callback
1239
1289
  **/
1240
- maxPoolMembersPerPool: GenericStorageQuery<() => number | undefined>;
1290
+ maxPoolMembersPerPool: GenericStorageQuery<Rv, () => number | undefined>;
1241
1291
 
1242
1292
  /**
1243
1293
  * The maximum commission that can be charged by a pool. Used on commission payouts to bound
@@ -1246,7 +1296,7 @@ export interface ChainStorage extends GenericChainStorage {
1246
1296
  *
1247
1297
  * @param {Callback<Perbill | undefined> =} callback
1248
1298
  **/
1249
- globalMaxCommission: GenericStorageQuery<() => Perbill | undefined>;
1299
+ globalMaxCommission: GenericStorageQuery<Rv, () => Perbill | undefined>;
1250
1300
 
1251
1301
  /**
1252
1302
  * Active members.
@@ -1256,14 +1306,18 @@ export interface ChainStorage extends GenericChainStorage {
1256
1306
  * @param {AccountId32Like} arg
1257
1307
  * @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
1258
1308
  **/
1259
- poolMembers: GenericStorageQuery<(arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined>;
1309
+ poolMembers: GenericStorageQuery<
1310
+ Rv,
1311
+ (arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined,
1312
+ AccountId32
1313
+ >;
1260
1314
 
1261
1315
  /**
1262
1316
  * Counter for the related counted storage map
1263
1317
  *
1264
1318
  * @param {Callback<number> =} callback
1265
1319
  **/
1266
- counterForPoolMembers: GenericStorageQuery<() => number>;
1320
+ counterForPoolMembers: GenericStorageQuery<Rv, () => number>;
1267
1321
 
1268
1322
  /**
1269
1323
  * Storage for bonded pools.
@@ -1271,14 +1325,14 @@ export interface ChainStorage extends GenericChainStorage {
1271
1325
  * @param {number} arg
1272
1326
  * @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
1273
1327
  **/
1274
- bondedPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsBondedPoolInner | undefined>;
1328
+ bondedPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsBondedPoolInner | undefined, number>;
1275
1329
 
1276
1330
  /**
1277
1331
  * Counter for the related counted storage map
1278
1332
  *
1279
1333
  * @param {Callback<number> =} callback
1280
1334
  **/
1281
- counterForBondedPools: GenericStorageQuery<() => number>;
1335
+ counterForBondedPools: GenericStorageQuery<Rv, () => number>;
1282
1336
 
1283
1337
  /**
1284
1338
  * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
@@ -1287,14 +1341,14 @@ export interface ChainStorage extends GenericChainStorage {
1287
1341
  * @param {number} arg
1288
1342
  * @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
1289
1343
  **/
1290
- rewardPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsRewardPool | undefined>;
1344
+ rewardPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsRewardPool | undefined, number>;
1291
1345
 
1292
1346
  /**
1293
1347
  * Counter for the related counted storage map
1294
1348
  *
1295
1349
  * @param {Callback<number> =} callback
1296
1350
  **/
1297
- counterForRewardPools: GenericStorageQuery<() => number>;
1351
+ counterForRewardPools: GenericStorageQuery<Rv, () => number>;
1298
1352
 
1299
1353
  /**
1300
1354
  * Groups of unbonding pools. Each group of unbonding pools belongs to a
@@ -1303,14 +1357,14 @@ export interface ChainStorage extends GenericChainStorage {
1303
1357
  * @param {number} arg
1304
1358
  * @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
1305
1359
  **/
1306
- subPoolsStorage: GenericStorageQuery<(arg: number) => PalletNominationPoolsSubPools | undefined>;
1360
+ subPoolsStorage: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsSubPools | undefined, number>;
1307
1361
 
1308
1362
  /**
1309
1363
  * Counter for the related counted storage map
1310
1364
  *
1311
1365
  * @param {Callback<number> =} callback
1312
1366
  **/
1313
- counterForSubPoolsStorage: GenericStorageQuery<() => number>;
1367
+ counterForSubPoolsStorage: GenericStorageQuery<Rv, () => number>;
1314
1368
 
1315
1369
  /**
1316
1370
  * Metadata for the pool.
@@ -1318,21 +1372,21 @@ export interface ChainStorage extends GenericChainStorage {
1318
1372
  * @param {number} arg
1319
1373
  * @param {Callback<Bytes> =} callback
1320
1374
  **/
1321
- metadata: GenericStorageQuery<(arg: number) => Bytes>;
1375
+ metadata: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
1322
1376
 
1323
1377
  /**
1324
1378
  * Counter for the related counted storage map
1325
1379
  *
1326
1380
  * @param {Callback<number> =} callback
1327
1381
  **/
1328
- counterForMetadata: GenericStorageQuery<() => number>;
1382
+ counterForMetadata: GenericStorageQuery<Rv, () => number>;
1329
1383
 
1330
1384
  /**
1331
1385
  * Ever increasing number of all pools created so far.
1332
1386
  *
1333
1387
  * @param {Callback<number> =} callback
1334
1388
  **/
1335
- lastPoolId: GenericStorageQuery<() => number>;
1389
+ lastPoolId: GenericStorageQuery<Rv, () => number>;
1336
1390
 
1337
1391
  /**
1338
1392
  * A reverse lookup from the pool's account id to its id.
@@ -1343,14 +1397,14 @@ export interface ChainStorage extends GenericChainStorage {
1343
1397
  * @param {AccountId32Like} arg
1344
1398
  * @param {Callback<number | undefined> =} callback
1345
1399
  **/
1346
- reversePoolIdLookup: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
1400
+ reversePoolIdLookup: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
1347
1401
 
1348
1402
  /**
1349
1403
  * Counter for the related counted storage map
1350
1404
  *
1351
1405
  * @param {Callback<number> =} callback
1352
1406
  **/
1353
- counterForReversePoolIdLookup: GenericStorageQuery<() => number>;
1407
+ counterForReversePoolIdLookup: GenericStorageQuery<Rv, () => number>;
1354
1408
 
1355
1409
  /**
1356
1410
  * Map from a pool member account to their opted claim permission.
@@ -1358,12 +1412,16 @@ export interface ChainStorage extends GenericChainStorage {
1358
1412
  * @param {AccountId32Like} arg
1359
1413
  * @param {Callback<PalletNominationPoolsClaimPermission> =} callback
1360
1414
  **/
1361
- claimPermissions: GenericStorageQuery<(arg: AccountId32Like) => PalletNominationPoolsClaimPermission>;
1415
+ claimPermissions: GenericStorageQuery<
1416
+ Rv,
1417
+ (arg: AccountId32Like) => PalletNominationPoolsClaimPermission,
1418
+ AccountId32
1419
+ >;
1362
1420
 
1363
1421
  /**
1364
1422
  * Generic pallet storage query
1365
1423
  **/
1366
- [storage: string]: GenericStorageQuery;
1424
+ [storage: string]: GenericStorageQuery<Rv>;
1367
1425
  };
1368
1426
  /**
1369
1427
  * Pallet `Identity`'s storage queries
@@ -1377,7 +1435,7 @@ export interface ChainStorage extends GenericChainStorage {
1377
1435
  * @param {AccountId32Like} arg
1378
1436
  * @param {Callback<PalletIdentityRegistration | undefined> =} callback
1379
1437
  **/
1380
- identityOf: GenericStorageQuery<(arg: AccountId32Like) => PalletIdentityRegistration | undefined>;
1438
+ identityOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletIdentityRegistration | undefined, AccountId32>;
1381
1439
 
1382
1440
  /**
1383
1441
  * The super-identity of an alternative "sub" identity together with its name, within that
@@ -1386,7 +1444,7 @@ export interface ChainStorage extends GenericChainStorage {
1386
1444
  * @param {AccountId32Like} arg
1387
1445
  * @param {Callback<[AccountId32, Data] | undefined> =} callback
1388
1446
  **/
1389
- superOf: GenericStorageQuery<(arg: AccountId32Like) => [AccountId32, Data] | undefined>;
1447
+ superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
1390
1448
 
1391
1449
  /**
1392
1450
  * Alternative "sub" identities of this account.
@@ -1398,7 +1456,7 @@ export interface ChainStorage extends GenericChainStorage {
1398
1456
  * @param {AccountId32Like} arg
1399
1457
  * @param {Callback<[bigint, Array<AccountId32>]> =} callback
1400
1458
  **/
1401
- subsOf: GenericStorageQuery<(arg: AccountId32Like) => [bigint, Array<AccountId32>]>;
1459
+ subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
1402
1460
 
1403
1461
  /**
1404
1462
  * The set of registrars. Not expected to get very big as can only be added through a
@@ -1408,12 +1466,12 @@ export interface ChainStorage extends GenericChainStorage {
1408
1466
  *
1409
1467
  * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1410
1468
  **/
1411
- registrars: GenericStorageQuery<() => Array<PalletIdentityRegistrarInfo | undefined>>;
1469
+ registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
1412
1470
 
1413
1471
  /**
1414
1472
  * Generic pallet storage query
1415
1473
  **/
1416
- [storage: string]: GenericStorageQuery;
1474
+ [storage: string]: GenericStorageQuery<Rv>;
1417
1475
  };
1418
1476
  /**
1419
1477
  * Pallet `CommitteeManagement`'s storage queries
@@ -1423,7 +1481,7 @@ export interface ChainStorage extends GenericChainStorage {
1423
1481
  *
1424
1482
  * @param {Callback<Perquintill> =} callback
1425
1483
  **/
1426
- lenientThreshold: GenericStorageQuery<() => Perquintill>;
1484
+ lenientThreshold: GenericStorageQuery<Rv, () => Perquintill>;
1427
1485
 
1428
1486
  /**
1429
1487
  * A lookup how many blocks a validator produced.
@@ -1431,21 +1489,21 @@ export interface ChainStorage extends GenericChainStorage {
1431
1489
  * @param {AccountId32Like} arg
1432
1490
  * @param {Callback<number> =} callback
1433
1491
  **/
1434
- sessionValidatorBlockCount: GenericStorageQuery<(arg: AccountId32Like) => number>;
1492
+ sessionValidatorBlockCount: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
1435
1493
 
1436
1494
  /**
1437
1495
  * Total possible reward per validator for the current era.
1438
1496
  *
1439
1497
  * @param {Callback<PalletCommitteeManagementValidatorTotalRewards | undefined> =} callback
1440
1498
  **/
1441
- validatorEraTotalReward: GenericStorageQuery<() => PalletCommitteeManagementValidatorTotalRewards | undefined>;
1499
+ validatorEraTotalReward: GenericStorageQuery<Rv, () => PalletCommitteeManagementValidatorTotalRewards | undefined>;
1442
1500
 
1443
1501
  /**
1444
1502
  * Current era config for ban functionality, see [`BanConfig`]
1445
1503
  *
1446
1504
  * @param {Callback<PrimitivesBanConfig> =} callback
1447
1505
  **/
1448
- banConfig: GenericStorageQuery<() => PrimitivesBanConfig>;
1506
+ banConfig: GenericStorageQuery<Rv, () => PrimitivesBanConfig>;
1449
1507
 
1450
1508
  /**
1451
1509
  * A lookup for a number of underperformance sessions for a given validator
@@ -1453,7 +1511,7 @@ export interface ChainStorage extends GenericChainStorage {
1453
1511
  * @param {AccountId32Like} arg
1454
1512
  * @param {Callback<number> =} callback
1455
1513
  **/
1456
- underperformedValidatorSessionCount: GenericStorageQuery<(arg: AccountId32Like) => number>;
1514
+ underperformedValidatorSessionCount: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
1457
1515
 
1458
1516
  /**
1459
1517
  * Validators to be removed from non reserved list in the next era
@@ -1461,7 +1519,7 @@ export interface ChainStorage extends GenericChainStorage {
1461
1519
  * @param {AccountId32Like} arg
1462
1520
  * @param {Callback<PrimitivesBanInfo | undefined> =} callback
1463
1521
  **/
1464
- banned: GenericStorageQuery<(arg: AccountId32Like) => PrimitivesBanInfo | undefined>;
1522
+ banned: GenericStorageQuery<Rv, (arg: AccountId32Like) => PrimitivesBanInfo | undefined, AccountId32>;
1465
1523
 
1466
1524
  /**
1467
1525
  * SessionValidators in the current session.
@@ -1469,12 +1527,47 @@ export interface ChainStorage extends GenericChainStorage {
1469
1527
  * @param {Callback<PalletCommitteeManagementCurrentAndNextSessionValidators> =} callback
1470
1528
  **/
1471
1529
  currentAndNextSessionValidatorsStorage: GenericStorageQuery<
1530
+ Rv,
1472
1531
  () => PalletCommitteeManagementCurrentAndNextSessionValidators
1473
1532
  >;
1474
1533
 
1475
1534
  /**
1476
1535
  * Generic pallet storage query
1477
1536
  **/
1478
- [storage: string]: GenericStorageQuery;
1537
+ [storage: string]: GenericStorageQuery<Rv>;
1538
+ };
1539
+ /**
1540
+ * Pallet `Proxy`'s storage queries
1541
+ **/
1542
+ proxy: {
1543
+ /**
1544
+ * The set of account proxies. Maps the account which has delegated to the accounts
1545
+ * which are being delegated to, together with the amount held on deposit.
1546
+ *
1547
+ * @param {AccountId32Like} arg
1548
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1549
+ **/
1550
+ proxies: GenericStorageQuery<
1551
+ Rv,
1552
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
1553
+ AccountId32
1554
+ >;
1555
+
1556
+ /**
1557
+ * The announcements made by the proxy (key).
1558
+ *
1559
+ * @param {AccountId32Like} arg
1560
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1561
+ **/
1562
+ announcements: GenericStorageQuery<
1563
+ Rv,
1564
+ (arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
1565
+ AccountId32
1566
+ >;
1567
+
1568
+ /**
1569
+ * Generic pallet storage query
1570
+ **/
1571
+ [storage: string]: GenericStorageQuery<Rv>;
1479
1572
  };
1480
1573
  }