@dedot/chaintypes 0.194.0 → 0.195.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.
- package/aleph/consts.d.ts +2 -2
- package/aleph/errors.d.ts +228 -228
- package/aleph/events.d.ts +122 -226
- package/aleph/index.d.ts +13 -17
- package/aleph/json-rpc.d.ts +3 -3
- package/aleph/query.d.ts +171 -207
- package/aleph/runtime.d.ts +47 -63
- package/aleph/tx.d.ts +377 -550
- package/aleph/view-functions.d.ts +2 -2
- package/astar/consts.d.ts +2 -2
- package/astar/errors.d.ts +431 -431
- package/astar/events.d.ts +232 -401
- package/astar/index.d.ts +13 -17
- package/astar/json-rpc.d.ts +3 -3
- package/astar/query.d.ts +243 -289
- package/astar/runtime.d.ts +59 -87
- package/astar/tx.d.ts +671 -980
- package/astar/view-functions.d.ts +2 -2
- package/basilisk/consts.d.ts +2 -2
- package/basilisk/errors.d.ts +489 -489
- package/basilisk/events.d.ts +187 -408
- package/basilisk/index.d.ts +13 -17
- package/basilisk/json-rpc.d.ts +3 -3
- package/basilisk/query.d.ts +213 -272
- package/basilisk/runtime.d.ts +27 -28
- package/basilisk/tx.d.ts +579 -842
- package/basilisk/view-functions.d.ts +2 -2
- package/hydration/consts.d.ts +47 -14
- package/hydration/errors.d.ts +827 -737
- package/hydration/events.d.ts +639 -527
- package/hydration/index.d.ts +14 -18
- package/hydration/json-rpc.d.ts +3 -3
- package/hydration/query.d.ts +530 -396
- package/hydration/runtime.d.ts +181 -89
- package/hydration/tx.d.ts +1130 -1167
- package/hydration/types.d.ts +889 -42
- package/hydration/view-functions.d.ts +2 -2
- package/kusama/consts.d.ts +2 -2
- package/kusama/errors.d.ts +571 -571
- package/kusama/events.d.ts +216 -477
- package/kusama/index.d.ts +13 -17
- package/kusama/json-rpc.d.ts +3 -3
- package/kusama/query.d.ts +360 -502
- package/kusama/runtime.d.ts +82 -131
- package/kusama/tx.d.ts +851 -1246
- package/kusama/view-functions.d.ts +7 -12
- package/kusama-asset-hub/consts.d.ts +2 -2
- package/kusama-asset-hub/errors.d.ts +653 -653
- package/kusama-asset-hub/events.d.ts +286 -629
- package/kusama-asset-hub/index.d.ts +14 -17
- package/kusama-asset-hub/json-rpc.d.ts +3 -3
- package/kusama-asset-hub/query.d.ts +316 -448
- package/kusama-asset-hub/runtime.d.ts +74 -111
- package/kusama-asset-hub/tx.d.ts +1059 -1558
- package/kusama-asset-hub/view-functions.d.ts +7 -9
- package/kusama-people/consts.d.ts +2 -2
- package/kusama-people/errors.d.ts +160 -160
- package/kusama-people/events.d.ts +89 -176
- package/kusama-people/index.d.ts +13 -17
- package/kusama-people/json-rpc.d.ts +3 -3
- package/kusama-people/query.d.ts +114 -145
- package/kusama-people/runtime.d.ts +45 -65
- package/kusama-people/tx.d.ts +246 -356
- package/kusama-people/view-functions.d.ts +3 -5
- package/moonbeam/consts.d.ts +2 -2
- package/moonbeam/errors.d.ts +478 -478
- package/moonbeam/events.d.ts +182 -426
- package/moonbeam/index.d.ts +13 -17
- package/moonbeam/json-rpc.d.ts +11 -3
- package/moonbeam/query.d.ts +234 -294
- package/moonbeam/runtime.d.ts +61 -89
- package/moonbeam/tx.d.ts +618 -901
- package/moonbeam/view-functions.d.ts +2 -2
- package/package.json +6 -3
- package/paseo/consts.d.ts +2 -2
- package/paseo/errors.d.ts +513 -513
- package/paseo/events.d.ts +197 -430
- package/paseo/index.d.ts +14 -18
- package/paseo/json-rpc.d.ts +3 -3
- package/paseo/query.d.ts +329 -450
- package/paseo/runtime.d.ts +107 -131
- package/paseo/tx.d.ts +787 -1151
- package/paseo/types.d.ts +7 -0
- package/paseo/view-functions.d.ts +7 -12
- package/paseo-asset-hub/consts.d.ts +2 -2
- package/paseo-asset-hub/errors.d.ts +605 -605
- package/paseo-asset-hub/events.d.ts +268 -600
- package/paseo-asset-hub/index.d.ts +15 -18
- package/paseo-asset-hub/json-rpc.d.ts +3 -3
- package/paseo-asset-hub/query.d.ts +293 -413
- package/paseo-asset-hub/runtime.d.ts +96 -104
- package/paseo-asset-hub/tx.d.ts +997 -1466
- package/paseo-asset-hub/types.d.ts +7 -0
- package/paseo-asset-hub/view-functions.d.ts +7 -9
- package/paseo-hydration/consts.d.ts +13 -3
- package/paseo-hydration/errors.d.ts +756 -745
- package/paseo-hydration/events.d.ts +277 -554
- package/paseo-hydration/index.d.ts +14 -18
- package/paseo-hydration/json-rpc.d.ts +3 -3
- package/paseo-hydration/query.d.ts +321 -411
- package/paseo-hydration/runtime.d.ts +95 -106
- package/paseo-hydration/tx.d.ts +923 -1226
- package/paseo-hydration/types.d.ts +91 -50
- package/paseo-hydration/view-functions.d.ts +2 -2
- package/paseo-people/consts.d.ts +2 -2
- package/paseo-people/errors.d.ts +162 -162
- package/paseo-people/events.d.ts +91 -181
- package/paseo-people/index.d.ts +14 -18
- package/paseo-people/json-rpc.d.ts +3 -3
- package/paseo-people/query.d.ts +116 -143
- package/paseo-people/runtime.d.ts +70 -65
- package/paseo-people/tx.d.ts +257 -372
- package/paseo-people/types.d.ts +7 -0
- package/paseo-people/view-functions.d.ts +3 -5
- package/polkadot/consts.d.ts +2 -2
- package/polkadot/errors.d.ts +501 -501
- package/polkadot/events.d.ts +195 -426
- package/polkadot/index.d.ts +13 -17
- package/polkadot/json-rpc.d.ts +3 -3
- package/polkadot/query.d.ts +329 -450
- package/polkadot/runtime.d.ts +83 -133
- package/polkadot/tx.d.ts +765 -1119
- package/polkadot/view-functions.d.ts +7 -12
- package/polkadot-asset-hub/consts.d.ts +2 -2
- package/polkadot-asset-hub/errors.d.ts +554 -554
- package/polkadot-asset-hub/events.d.ts +261 -585
- package/polkadot-asset-hub/index.d.ts +14 -17
- package/polkadot-asset-hub/json-rpc.d.ts +3 -3
- package/polkadot-asset-hub/query.d.ts +279 -396
- package/polkadot-asset-hub/runtime.d.ts +65 -93
- package/polkadot-asset-hub/tx.d.ts +952 -1400
- package/polkadot-asset-hub/view-functions.d.ts +7 -9
- package/polkadot-people/consts.d.ts +2 -2
- package/polkadot-people/errors.d.ts +160 -160
- package/polkadot-people/events.d.ts +89 -176
- package/polkadot-people/index.d.ts +13 -17
- package/polkadot-people/json-rpc.d.ts +3 -3
- package/polkadot-people/query.d.ts +114 -145
- package/polkadot-people/runtime.d.ts +46 -67
- package/polkadot-people/tx.d.ts +246 -356
- package/polkadot-people/view-functions.d.ts +3 -5
- package/substrate/consts.d.ts +2 -2
- package/substrate/errors.d.ts +909 -909
- package/substrate/events.d.ts +389 -794
- package/substrate/index.d.ts +14 -17
- package/substrate/json-rpc.d.ts +3 -3
- package/substrate/query.d.ts +458 -572
- package/substrate/runtime.d.ts +82 -126
- package/substrate/tx.d.ts +1317 -1936
- package/substrate/view-functions.d.ts +2 -2
- package/vara/consts.d.ts +9 -37
- package/vara/errors.d.ts +402 -382
- package/vara/events.d.ts +172 -310
- package/vara/index.d.ts +14 -18
- package/vara/json-rpc.d.ts +7 -3
- package/vara/query.d.ts +299 -331
- package/vara/runtime.d.ts +61 -79
- package/vara/tx.d.ts +573 -754
- package/vara/types.d.ts +71 -26
- package/vara/view-functions.d.ts +2 -2
- package/westend/consts.d.ts +2 -2
- package/westend/errors.d.ts +532 -532
- package/westend/events.d.ts +205 -462
- package/westend/index.d.ts +13 -17
- package/westend/json-rpc.d.ts +3 -3
- package/westend/query.d.ts +312 -434
- package/westend/runtime.d.ts +83 -135
- package/westend/tx.d.ts +807 -1179
- package/westend/view-functions.d.ts +7 -12
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/errors.d.ts +605 -605
- package/westend-asset-hub/events.d.ts +265 -614
- package/westend-asset-hub/index.d.ts +14 -17
- package/westend-asset-hub/json-rpc.d.ts +3 -3
- package/westend-asset-hub/query.d.ts +293 -418
- package/westend-asset-hub/runtime.d.ts +83 -123
- package/westend-asset-hub/tx.d.ts +918 -1348
- package/westend-asset-hub/view-functions.d.ts +8 -13
- package/westend-people/consts.d.ts +2 -2
- package/westend-people/errors.d.ts +160 -160
- package/westend-people/events.d.ts +93 -186
- package/westend-people/index.d.ts +13 -17
- package/westend-people/json-rpc.d.ts +3 -3
- package/westend-people/query.d.ts +114 -145
- package/westend-people/runtime.d.ts +46 -67
- package/westend-people/tx.d.ts +251 -363
- package/westend-people/view-functions.d.ts +3 -5
package/vara/query.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericChainStorage, GenericStorageQuery, Callback
|
|
3
|
+
import type { GenericChainStorage, GenericStorageQuery, Callback } from 'dedot/types';
|
|
4
4
|
import type {
|
|
5
5
|
AccountId32,
|
|
6
6
|
AccountId32Like,
|
|
@@ -111,9 +111,10 @@ import type {
|
|
|
111
111
|
PalletGearVoucherInternalVoucherId,
|
|
112
112
|
PalletGearBankBankAccount,
|
|
113
113
|
PalletGearEthBridgeInternalQueueInfo,
|
|
114
|
+
PalletGrandpaSignerSigningRequest,
|
|
114
115
|
} from './types.js';
|
|
115
116
|
|
|
116
|
-
export interface ChainStorage
|
|
117
|
+
export interface ChainStorage extends GenericChainStorage {
|
|
117
118
|
/**
|
|
118
119
|
* Pallet `System`'s storage queries
|
|
119
120
|
**/
|
|
@@ -124,35 +125,35 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
124
125
|
* @param {AccountId32Like} arg
|
|
125
126
|
* @param {Callback<FrameSystemAccountInfo> =} callback
|
|
126
127
|
**/
|
|
127
|
-
account: GenericStorageQuery<
|
|
128
|
+
account: GenericStorageQuery<(arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
|
|
128
129
|
|
|
129
130
|
/**
|
|
130
131
|
* Total extrinsics count for the current block.
|
|
131
132
|
*
|
|
132
133
|
* @param {Callback<number | undefined> =} callback
|
|
133
134
|
**/
|
|
134
|
-
extrinsicCount: GenericStorageQuery<
|
|
135
|
+
extrinsicCount: GenericStorageQuery<() => number | undefined>;
|
|
135
136
|
|
|
136
137
|
/**
|
|
137
138
|
* Whether all inherents have been applied.
|
|
138
139
|
*
|
|
139
140
|
* @param {Callback<boolean> =} callback
|
|
140
141
|
**/
|
|
141
|
-
inherentsApplied: GenericStorageQuery<
|
|
142
|
+
inherentsApplied: GenericStorageQuery<() => boolean>;
|
|
142
143
|
|
|
143
144
|
/**
|
|
144
145
|
* The current weight for the block.
|
|
145
146
|
*
|
|
146
147
|
* @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
|
|
147
148
|
**/
|
|
148
|
-
blockWeight: GenericStorageQuery<
|
|
149
|
+
blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
|
|
149
150
|
|
|
150
151
|
/**
|
|
151
152
|
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
152
153
|
*
|
|
153
154
|
* @param {Callback<number | undefined> =} callback
|
|
154
155
|
**/
|
|
155
|
-
allExtrinsicsLen: GenericStorageQuery<
|
|
156
|
+
allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
|
|
156
157
|
|
|
157
158
|
/**
|
|
158
159
|
* Map of block numbers to block hashes.
|
|
@@ -160,7 +161,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
160
161
|
* @param {number} arg
|
|
161
162
|
* @param {Callback<H256> =} callback
|
|
162
163
|
**/
|
|
163
|
-
blockHash: GenericStorageQuery<
|
|
164
|
+
blockHash: GenericStorageQuery<(arg: number) => H256, number>;
|
|
164
165
|
|
|
165
166
|
/**
|
|
166
167
|
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
@@ -168,28 +169,28 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
168
169
|
* @param {number} arg
|
|
169
170
|
* @param {Callback<Bytes> =} callback
|
|
170
171
|
**/
|
|
171
|
-
extrinsicData: GenericStorageQuery<
|
|
172
|
+
extrinsicData: GenericStorageQuery<(arg: number) => Bytes, number>;
|
|
172
173
|
|
|
173
174
|
/**
|
|
174
175
|
* The current block number being processed. Set by `execute_block`.
|
|
175
176
|
*
|
|
176
177
|
* @param {Callback<number> =} callback
|
|
177
178
|
**/
|
|
178
|
-
number: GenericStorageQuery<
|
|
179
|
+
number: GenericStorageQuery<() => number>;
|
|
179
180
|
|
|
180
181
|
/**
|
|
181
182
|
* Hash of the previous block.
|
|
182
183
|
*
|
|
183
184
|
* @param {Callback<H256> =} callback
|
|
184
185
|
**/
|
|
185
|
-
parentHash: GenericStorageQuery<
|
|
186
|
+
parentHash: GenericStorageQuery<() => H256>;
|
|
186
187
|
|
|
187
188
|
/**
|
|
188
189
|
* Digest of the current block, also part of the block header.
|
|
189
190
|
*
|
|
190
191
|
* @param {Callback<Digest> =} callback
|
|
191
192
|
**/
|
|
192
|
-
digest: GenericStorageQuery<
|
|
193
|
+
digest: GenericStorageQuery<() => Digest>;
|
|
193
194
|
|
|
194
195
|
/**
|
|
195
196
|
* Events deposited for the current block.
|
|
@@ -202,14 +203,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
202
203
|
*
|
|
203
204
|
* @param {Callback<Array<FrameSystemEventRecord>> =} callback
|
|
204
205
|
**/
|
|
205
|
-
events: GenericStorageQuery<
|
|
206
|
+
events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
|
|
206
207
|
|
|
207
208
|
/**
|
|
208
209
|
* The number of events in the `Events<T>` list.
|
|
209
210
|
*
|
|
210
211
|
* @param {Callback<number> =} callback
|
|
211
212
|
**/
|
|
212
|
-
eventCount: GenericStorageQuery<
|
|
213
|
+
eventCount: GenericStorageQuery<() => number>;
|
|
213
214
|
|
|
214
215
|
/**
|
|
215
216
|
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
@@ -226,21 +227,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
226
227
|
* @param {H256} arg
|
|
227
228
|
* @param {Callback<Array<[number, number]>> =} callback
|
|
228
229
|
**/
|
|
229
|
-
eventTopics: GenericStorageQuery<
|
|
230
|
+
eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>, H256>;
|
|
230
231
|
|
|
231
232
|
/**
|
|
232
233
|
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
233
234
|
*
|
|
234
235
|
* @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
|
|
235
236
|
**/
|
|
236
|
-
lastRuntimeUpgrade: GenericStorageQuery<
|
|
237
|
+
lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
|
|
237
238
|
|
|
238
239
|
/**
|
|
239
240
|
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
240
241
|
*
|
|
241
242
|
* @param {Callback<boolean> =} callback
|
|
242
243
|
**/
|
|
243
|
-
upgradedToU32RefCount: GenericStorageQuery<
|
|
244
|
+
upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
|
|
244
245
|
|
|
245
246
|
/**
|
|
246
247
|
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
@@ -248,26 +249,26 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
248
249
|
*
|
|
249
250
|
* @param {Callback<boolean> =} callback
|
|
250
251
|
**/
|
|
251
|
-
upgradedToTripleRefCount: GenericStorageQuery<
|
|
252
|
+
upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
|
|
252
253
|
|
|
253
254
|
/**
|
|
254
255
|
* The execution phase of the block.
|
|
255
256
|
*
|
|
256
257
|
* @param {Callback<Phase | undefined> =} callback
|
|
257
258
|
**/
|
|
258
|
-
executionPhase: GenericStorageQuery<
|
|
259
|
+
executionPhase: GenericStorageQuery<() => Phase | undefined>;
|
|
259
260
|
|
|
260
261
|
/**
|
|
261
262
|
* `Some` if a code upgrade has been authorized.
|
|
262
263
|
*
|
|
263
264
|
* @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
|
|
264
265
|
**/
|
|
265
|
-
authorizedUpgrade: GenericStorageQuery<
|
|
266
|
+
authorizedUpgrade: GenericStorageQuery<() => FrameSystemCodeUpgradeAuthorization | undefined>;
|
|
266
267
|
|
|
267
268
|
/**
|
|
268
269
|
* Generic pallet storage query
|
|
269
270
|
**/
|
|
270
|
-
[storage: string]: GenericStorageQuery
|
|
271
|
+
[storage: string]: GenericStorageQuery;
|
|
271
272
|
};
|
|
272
273
|
/**
|
|
273
274
|
* Pallet `Timestamp`'s storage queries
|
|
@@ -278,7 +279,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
278
279
|
*
|
|
279
280
|
* @param {Callback<bigint> =} callback
|
|
280
281
|
**/
|
|
281
|
-
now: GenericStorageQuery<
|
|
282
|
+
now: GenericStorageQuery<() => bigint>;
|
|
282
283
|
|
|
283
284
|
/**
|
|
284
285
|
* Whether the timestamp has been updated in this block.
|
|
@@ -288,12 +289,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
288
289
|
*
|
|
289
290
|
* @param {Callback<boolean> =} callback
|
|
290
291
|
**/
|
|
291
|
-
didUpdate: GenericStorageQuery<
|
|
292
|
+
didUpdate: GenericStorageQuery<() => boolean>;
|
|
292
293
|
|
|
293
294
|
/**
|
|
294
295
|
* Generic pallet storage query
|
|
295
296
|
**/
|
|
296
|
-
[storage: string]: GenericStorageQuery
|
|
297
|
+
[storage: string]: GenericStorageQuery;
|
|
297
298
|
};
|
|
298
299
|
/**
|
|
299
300
|
* Pallet `Authorship`'s storage queries
|
|
@@ -304,12 +305,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
304
305
|
*
|
|
305
306
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
306
307
|
**/
|
|
307
|
-
author: GenericStorageQuery<
|
|
308
|
+
author: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
308
309
|
|
|
309
310
|
/**
|
|
310
311
|
* Generic pallet storage query
|
|
311
312
|
**/
|
|
312
|
-
[storage: string]: GenericStorageQuery
|
|
313
|
+
[storage: string]: GenericStorageQuery;
|
|
313
314
|
};
|
|
314
315
|
/**
|
|
315
316
|
* Pallet `Babe`'s storage queries
|
|
@@ -320,14 +321,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
320
321
|
*
|
|
321
322
|
* @param {Callback<bigint> =} callback
|
|
322
323
|
**/
|
|
323
|
-
epochIndex: GenericStorageQuery<
|
|
324
|
+
epochIndex: GenericStorageQuery<() => bigint>;
|
|
324
325
|
|
|
325
326
|
/**
|
|
326
327
|
* Current epoch authorities.
|
|
327
328
|
*
|
|
328
329
|
* @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
|
|
329
330
|
**/
|
|
330
|
-
authorities: GenericStorageQuery<
|
|
331
|
+
authorities: GenericStorageQuery<() => Array<[SpConsensusBabeAppPublic, bigint]>>;
|
|
331
332
|
|
|
332
333
|
/**
|
|
333
334
|
* The slot at which the first epoch actually started. This is 0
|
|
@@ -335,14 +336,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
335
336
|
*
|
|
336
337
|
* @param {Callback<SpConsensusSlotsSlot> =} callback
|
|
337
338
|
**/
|
|
338
|
-
genesisSlot: GenericStorageQuery<
|
|
339
|
+
genesisSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
|
|
339
340
|
|
|
340
341
|
/**
|
|
341
342
|
* Current slot number.
|
|
342
343
|
*
|
|
343
344
|
* @param {Callback<SpConsensusSlotsSlot> =} callback
|
|
344
345
|
**/
|
|
345
|
-
currentSlot: GenericStorageQuery<
|
|
346
|
+
currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
|
|
346
347
|
|
|
347
348
|
/**
|
|
348
349
|
* The epoch randomness for the *current* epoch.
|
|
@@ -358,28 +359,28 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
358
359
|
*
|
|
359
360
|
* @param {Callback<FixedBytes<32>> =} callback
|
|
360
361
|
**/
|
|
361
|
-
randomness: GenericStorageQuery<
|
|
362
|
+
randomness: GenericStorageQuery<() => FixedBytes<32>>;
|
|
362
363
|
|
|
363
364
|
/**
|
|
364
365
|
* Pending epoch configuration change that will be applied when the next epoch is enacted.
|
|
365
366
|
*
|
|
366
367
|
* @param {Callback<SpConsensusBabeDigestsNextConfigDescriptor | undefined> =} callback
|
|
367
368
|
**/
|
|
368
|
-
pendingEpochConfigChange: GenericStorageQuery<
|
|
369
|
+
pendingEpochConfigChange: GenericStorageQuery<() => SpConsensusBabeDigestsNextConfigDescriptor | undefined>;
|
|
369
370
|
|
|
370
371
|
/**
|
|
371
372
|
* Next epoch randomness.
|
|
372
373
|
*
|
|
373
374
|
* @param {Callback<FixedBytes<32>> =} callback
|
|
374
375
|
**/
|
|
375
|
-
nextRandomness: GenericStorageQuery<
|
|
376
|
+
nextRandomness: GenericStorageQuery<() => FixedBytes<32>>;
|
|
376
377
|
|
|
377
378
|
/**
|
|
378
379
|
* Next epoch authorities.
|
|
379
380
|
*
|
|
380
381
|
* @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
|
|
381
382
|
**/
|
|
382
|
-
nextAuthorities: GenericStorageQuery<
|
|
383
|
+
nextAuthorities: GenericStorageQuery<() => Array<[SpConsensusBabeAppPublic, bigint]>>;
|
|
383
384
|
|
|
384
385
|
/**
|
|
385
386
|
* Randomness under construction.
|
|
@@ -394,7 +395,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
394
395
|
*
|
|
395
396
|
* @param {Callback<number> =} callback
|
|
396
397
|
**/
|
|
397
|
-
segmentIndex: GenericStorageQuery<
|
|
398
|
+
segmentIndex: GenericStorageQuery<() => number>;
|
|
398
399
|
|
|
399
400
|
/**
|
|
400
401
|
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
|
@@ -402,7 +403,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
402
403
|
* @param {number} arg
|
|
403
404
|
* @param {Callback<Array<FixedBytes<32>>> =} callback
|
|
404
405
|
**/
|
|
405
|
-
underConstruction: GenericStorageQuery<
|
|
406
|
+
underConstruction: GenericStorageQuery<(arg: number) => Array<FixedBytes<32>>, number>;
|
|
406
407
|
|
|
407
408
|
/**
|
|
408
409
|
* Temporary value (cleared at block finalization) which is `Some`
|
|
@@ -410,7 +411,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
410
411
|
*
|
|
411
412
|
* @param {Callback<SpConsensusBabeDigestsPreDigest | undefined | undefined> =} callback
|
|
412
413
|
**/
|
|
413
|
-
initialized: GenericStorageQuery<
|
|
414
|
+
initialized: GenericStorageQuery<() => SpConsensusBabeDigestsPreDigest | undefined | undefined>;
|
|
414
415
|
|
|
415
416
|
/**
|
|
416
417
|
* This field should always be populated during block processing unless
|
|
@@ -420,7 +421,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
420
421
|
*
|
|
421
422
|
* @param {Callback<FixedBytes<32> | undefined> =} callback
|
|
422
423
|
**/
|
|
423
|
-
authorVrfRandomness: GenericStorageQuery<
|
|
424
|
+
authorVrfRandomness: GenericStorageQuery<() => FixedBytes<32> | undefined>;
|
|
424
425
|
|
|
425
426
|
/**
|
|
426
427
|
* The block numbers when the last and current epoch have started, respectively `N-1` and
|
|
@@ -431,7 +432,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
431
432
|
*
|
|
432
433
|
* @param {Callback<[number, number]> =} callback
|
|
433
434
|
**/
|
|
434
|
-
epochStart: GenericStorageQuery<
|
|
435
|
+
epochStart: GenericStorageQuery<() => [number, number]>;
|
|
435
436
|
|
|
436
437
|
/**
|
|
437
438
|
* How late the current block is compared to its parent.
|
|
@@ -442,7 +443,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
442
443
|
*
|
|
443
444
|
* @param {Callback<number> =} callback
|
|
444
445
|
**/
|
|
445
|
-
lateness: GenericStorageQuery<
|
|
446
|
+
lateness: GenericStorageQuery<() => number>;
|
|
446
447
|
|
|
447
448
|
/**
|
|
448
449
|
* The configuration for the current epoch. Should never be `None` as it is initialized in
|
|
@@ -450,7 +451,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
450
451
|
*
|
|
451
452
|
* @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
|
|
452
453
|
**/
|
|
453
|
-
epochConfig: GenericStorageQuery<
|
|
454
|
+
epochConfig: GenericStorageQuery<() => SpConsensusBabeBabeEpochConfiguration | undefined>;
|
|
454
455
|
|
|
455
456
|
/**
|
|
456
457
|
* The configuration for the next epoch, `None` if the config will not change
|
|
@@ -458,7 +459,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
458
459
|
*
|
|
459
460
|
* @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
|
|
460
461
|
**/
|
|
461
|
-
nextEpochConfig: GenericStorageQuery<
|
|
462
|
+
nextEpochConfig: GenericStorageQuery<() => SpConsensusBabeBabeEpochConfiguration | undefined>;
|
|
462
463
|
|
|
463
464
|
/**
|
|
464
465
|
* A list of the last 100 skipped epochs and the corresponding session index
|
|
@@ -472,12 +473,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
472
473
|
*
|
|
473
474
|
* @param {Callback<Array<[bigint, number]>> =} callback
|
|
474
475
|
**/
|
|
475
|
-
skippedEpochs: GenericStorageQuery<
|
|
476
|
+
skippedEpochs: GenericStorageQuery<() => Array<[bigint, number]>>;
|
|
476
477
|
|
|
477
478
|
/**
|
|
478
479
|
* Generic pallet storage query
|
|
479
480
|
**/
|
|
480
|
-
[storage: string]: GenericStorageQuery
|
|
481
|
+
[storage: string]: GenericStorageQuery;
|
|
481
482
|
};
|
|
482
483
|
/**
|
|
483
484
|
* Pallet `Grandpa`'s storage queries
|
|
@@ -488,28 +489,28 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
488
489
|
*
|
|
489
490
|
* @param {Callback<PalletGrandpaStoredState> =} callback
|
|
490
491
|
**/
|
|
491
|
-
state: GenericStorageQuery<
|
|
492
|
+
state: GenericStorageQuery<() => PalletGrandpaStoredState>;
|
|
492
493
|
|
|
493
494
|
/**
|
|
494
495
|
* Pending change: (signaled at, scheduled change).
|
|
495
496
|
*
|
|
496
497
|
* @param {Callback<PalletGrandpaStoredPendingChange | undefined> =} callback
|
|
497
498
|
**/
|
|
498
|
-
pendingChange: GenericStorageQuery<
|
|
499
|
+
pendingChange: GenericStorageQuery<() => PalletGrandpaStoredPendingChange | undefined>;
|
|
499
500
|
|
|
500
501
|
/**
|
|
501
502
|
* next block number where we can force a change.
|
|
502
503
|
*
|
|
503
504
|
* @param {Callback<number | undefined> =} callback
|
|
504
505
|
**/
|
|
505
|
-
nextForced: GenericStorageQuery<
|
|
506
|
+
nextForced: GenericStorageQuery<() => number | undefined>;
|
|
506
507
|
|
|
507
508
|
/**
|
|
508
509
|
* `true` if we are currently stalled.
|
|
509
510
|
*
|
|
510
511
|
* @param {Callback<[number, number] | undefined> =} callback
|
|
511
512
|
**/
|
|
512
|
-
stalled: GenericStorageQuery<
|
|
513
|
+
stalled: GenericStorageQuery<() => [number, number] | undefined>;
|
|
513
514
|
|
|
514
515
|
/**
|
|
515
516
|
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
@@ -517,7 +518,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
517
518
|
*
|
|
518
519
|
* @param {Callback<bigint> =} callback
|
|
519
520
|
**/
|
|
520
|
-
currentSetId: GenericStorageQuery<
|
|
521
|
+
currentSetId: GenericStorageQuery<() => bigint>;
|
|
521
522
|
|
|
522
523
|
/**
|
|
523
524
|
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
|
@@ -534,19 +535,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
534
535
|
* @param {bigint} arg
|
|
535
536
|
* @param {Callback<number | undefined> =} callback
|
|
536
537
|
**/
|
|
537
|
-
setIdSession: GenericStorageQuery<
|
|
538
|
+
setIdSession: GenericStorageQuery<(arg: bigint) => number | undefined, bigint>;
|
|
538
539
|
|
|
539
540
|
/**
|
|
540
541
|
* The current list of authorities.
|
|
541
542
|
*
|
|
542
543
|
* @param {Callback<Array<[SpConsensusGrandpaAppPublic, bigint]>> =} callback
|
|
543
544
|
**/
|
|
544
|
-
authorities: GenericStorageQuery<
|
|
545
|
+
authorities: GenericStorageQuery<() => Array<[SpConsensusGrandpaAppPublic, bigint]>>;
|
|
545
546
|
|
|
546
547
|
/**
|
|
547
548
|
* Generic pallet storage query
|
|
548
549
|
**/
|
|
549
|
-
[storage: string]: GenericStorageQuery
|
|
550
|
+
[storage: string]: GenericStorageQuery;
|
|
550
551
|
};
|
|
551
552
|
/**
|
|
552
553
|
* Pallet `Balances`'s storage queries
|
|
@@ -557,14 +558,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
557
558
|
*
|
|
558
559
|
* @param {Callback<bigint> =} callback
|
|
559
560
|
**/
|
|
560
|
-
totalIssuance: GenericStorageQuery<
|
|
561
|
+
totalIssuance: GenericStorageQuery<() => bigint>;
|
|
561
562
|
|
|
562
563
|
/**
|
|
563
564
|
* The total units of outstanding deactivated balance in the system.
|
|
564
565
|
*
|
|
565
566
|
* @param {Callback<bigint> =} callback
|
|
566
567
|
**/
|
|
567
|
-
inactiveIssuance: GenericStorageQuery<
|
|
568
|
+
inactiveIssuance: GenericStorageQuery<() => bigint>;
|
|
568
569
|
|
|
569
570
|
/**
|
|
570
571
|
* The Balances pallet example of storing the balance of an account.
|
|
@@ -595,7 +596,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
595
596
|
* @param {AccountId32Like} arg
|
|
596
597
|
* @param {Callback<PalletBalancesAccountData> =} callback
|
|
597
598
|
**/
|
|
598
|
-
account: GenericStorageQuery<
|
|
599
|
+
account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
|
|
599
600
|
|
|
600
601
|
/**
|
|
601
602
|
* Any liquidity locks on some account balances.
|
|
@@ -606,7 +607,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
606
607
|
* @param {AccountId32Like} arg
|
|
607
608
|
* @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
|
|
608
609
|
**/
|
|
609
|
-
locks: GenericStorageQuery<
|
|
610
|
+
locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
|
|
610
611
|
|
|
611
612
|
/**
|
|
612
613
|
* Named reserves on some account balances.
|
|
@@ -616,7 +617,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
616
617
|
* @param {AccountId32Like} arg
|
|
617
618
|
* @param {Callback<Array<PalletBalancesReserveData>> =} callback
|
|
618
619
|
**/
|
|
619
|
-
reserves: GenericStorageQuery<
|
|
620
|
+
reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
|
|
620
621
|
|
|
621
622
|
/**
|
|
622
623
|
* Holds on account balances.
|
|
@@ -624,7 +625,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
624
625
|
* @param {AccountId32Like} arg
|
|
625
626
|
* @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
|
|
626
627
|
**/
|
|
627
|
-
holds: GenericStorageQuery<
|
|
628
|
+
holds: GenericStorageQuery<(arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
|
|
628
629
|
|
|
629
630
|
/**
|
|
630
631
|
* Freeze locks on account balances.
|
|
@@ -633,7 +634,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
633
634
|
* @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
|
|
634
635
|
**/
|
|
635
636
|
freezes: GenericStorageQuery<
|
|
636
|
-
Rv,
|
|
637
637
|
(arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
|
|
638
638
|
AccountId32
|
|
639
639
|
>;
|
|
@@ -641,7 +641,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
641
641
|
/**
|
|
642
642
|
* Generic pallet storage query
|
|
643
643
|
**/
|
|
644
|
-
[storage: string]: GenericStorageQuery
|
|
644
|
+
[storage: string]: GenericStorageQuery;
|
|
645
645
|
};
|
|
646
646
|
/**
|
|
647
647
|
* Pallet `TransactionPayment`'s storage queries
|
|
@@ -651,18 +651,18 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
651
651
|
*
|
|
652
652
|
* @param {Callback<FixedU128> =} callback
|
|
653
653
|
**/
|
|
654
|
-
nextFeeMultiplier: GenericStorageQuery<
|
|
654
|
+
nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
|
|
655
655
|
|
|
656
656
|
/**
|
|
657
657
|
*
|
|
658
658
|
* @param {Callback<PalletTransactionPaymentReleases> =} callback
|
|
659
659
|
**/
|
|
660
|
-
storageVersion: GenericStorageQuery<
|
|
660
|
+
storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
|
|
661
661
|
|
|
662
662
|
/**
|
|
663
663
|
* Generic pallet storage query
|
|
664
664
|
**/
|
|
665
|
-
[storage: string]: GenericStorageQuery
|
|
665
|
+
[storage: string]: GenericStorageQuery;
|
|
666
666
|
};
|
|
667
667
|
/**
|
|
668
668
|
* Pallet `Session`'s storage queries
|
|
@@ -673,14 +673,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
673
673
|
*
|
|
674
674
|
* @param {Callback<Array<AccountId32>> =} callback
|
|
675
675
|
**/
|
|
676
|
-
validators: GenericStorageQuery<
|
|
676
|
+
validators: GenericStorageQuery<() => Array<AccountId32>>;
|
|
677
677
|
|
|
678
678
|
/**
|
|
679
679
|
* Current index of the session.
|
|
680
680
|
*
|
|
681
681
|
* @param {Callback<number> =} callback
|
|
682
682
|
**/
|
|
683
|
-
currentIndex: GenericStorageQuery<
|
|
683
|
+
currentIndex: GenericStorageQuery<() => number>;
|
|
684
684
|
|
|
685
685
|
/**
|
|
686
686
|
* True if the underlying economic identities or weighting behind the validators
|
|
@@ -688,7 +688,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
688
688
|
*
|
|
689
689
|
* @param {Callback<boolean> =} callback
|
|
690
690
|
**/
|
|
691
|
-
queuedChanged: GenericStorageQuery<
|
|
691
|
+
queuedChanged: GenericStorageQuery<() => boolean>;
|
|
692
692
|
|
|
693
693
|
/**
|
|
694
694
|
* The queued keys for the next session. When the next session begins, these keys
|
|
@@ -696,7 +696,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
696
696
|
*
|
|
697
697
|
* @param {Callback<Array<[AccountId32, VaraRuntimeSessionKeys]>> =} callback
|
|
698
698
|
**/
|
|
699
|
-
queuedKeys: GenericStorageQuery<
|
|
699
|
+
queuedKeys: GenericStorageQuery<() => Array<[AccountId32, VaraRuntimeSessionKeys]>>;
|
|
700
700
|
|
|
701
701
|
/**
|
|
702
702
|
* Indices of disabled validators.
|
|
@@ -707,7 +707,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
707
707
|
*
|
|
708
708
|
* @param {Callback<Array<number>> =} callback
|
|
709
709
|
**/
|
|
710
|
-
disabledValidators: GenericStorageQuery<
|
|
710
|
+
disabledValidators: GenericStorageQuery<() => Array<number>>;
|
|
711
711
|
|
|
712
712
|
/**
|
|
713
713
|
* The next session keys for a validator.
|
|
@@ -715,7 +715,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
715
715
|
* @param {AccountId32Like} arg
|
|
716
716
|
* @param {Callback<VaraRuntimeSessionKeys | undefined> =} callback
|
|
717
717
|
**/
|
|
718
|
-
nextKeys: GenericStorageQuery<
|
|
718
|
+
nextKeys: GenericStorageQuery<(arg: AccountId32Like) => VaraRuntimeSessionKeys | undefined, AccountId32>;
|
|
719
719
|
|
|
720
720
|
/**
|
|
721
721
|
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
@@ -724,7 +724,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
724
724
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
725
725
|
**/
|
|
726
726
|
keyOwner: GenericStorageQuery<
|
|
727
|
-
Rv,
|
|
728
727
|
(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
|
|
729
728
|
[SpCoreCryptoKeyTypeId, Bytes]
|
|
730
729
|
>;
|
|
@@ -732,7 +731,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
732
731
|
/**
|
|
733
732
|
* Generic pallet storage query
|
|
734
733
|
**/
|
|
735
|
-
[storage: string]: GenericStorageQuery
|
|
734
|
+
[storage: string]: GenericStorageQuery;
|
|
736
735
|
};
|
|
737
736
|
/**
|
|
738
737
|
* Pallet `AuthorityDiscovery`'s storage queries
|
|
@@ -743,19 +742,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
743
742
|
*
|
|
744
743
|
* @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
|
|
745
744
|
**/
|
|
746
|
-
keys: GenericStorageQuery<
|
|
745
|
+
keys: GenericStorageQuery<() => Array<SpAuthorityDiscoveryAppPublic>>;
|
|
747
746
|
|
|
748
747
|
/**
|
|
749
748
|
* Keys of the next authority set.
|
|
750
749
|
*
|
|
751
750
|
* @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
|
|
752
751
|
**/
|
|
753
|
-
nextKeys: GenericStorageQuery<
|
|
752
|
+
nextKeys: GenericStorageQuery<() => Array<SpAuthorityDiscoveryAppPublic>>;
|
|
754
753
|
|
|
755
754
|
/**
|
|
756
755
|
* Generic pallet storage query
|
|
757
756
|
**/
|
|
758
|
-
[storage: string]: GenericStorageQuery
|
|
757
|
+
[storage: string]: GenericStorageQuery;
|
|
759
758
|
};
|
|
760
759
|
/**
|
|
761
760
|
* Pallet `Vesting`'s storage queries
|
|
@@ -767,11 +766,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
767
766
|
* @param {AccountId32Like} arg
|
|
768
767
|
* @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
|
|
769
768
|
**/
|
|
770
|
-
vesting: GenericStorageQuery<
|
|
771
|
-
Rv,
|
|
772
|
-
(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined,
|
|
773
|
-
AccountId32
|
|
774
|
-
>;
|
|
769
|
+
vesting: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined, AccountId32>;
|
|
775
770
|
|
|
776
771
|
/**
|
|
777
772
|
* Storage version of the pallet.
|
|
@@ -780,12 +775,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
780
775
|
*
|
|
781
776
|
* @param {Callback<PalletVestingReleases> =} callback
|
|
782
777
|
**/
|
|
783
|
-
storageVersion: GenericStorageQuery<
|
|
778
|
+
storageVersion: GenericStorageQuery<() => PalletVestingReleases>;
|
|
784
779
|
|
|
785
780
|
/**
|
|
786
781
|
* Generic pallet storage query
|
|
787
782
|
**/
|
|
788
|
-
[storage: string]: GenericStorageQuery
|
|
783
|
+
[storage: string]: GenericStorageQuery;
|
|
789
784
|
};
|
|
790
785
|
/**
|
|
791
786
|
* Pallet `BagsList`'s storage queries
|
|
@@ -799,14 +794,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
799
794
|
* @param {AccountId32Like} arg
|
|
800
795
|
* @param {Callback<PalletBagsListListNode | undefined> =} callback
|
|
801
796
|
**/
|
|
802
|
-
listNodes: GenericStorageQuery<
|
|
797
|
+
listNodes: GenericStorageQuery<(arg: AccountId32Like) => PalletBagsListListNode | undefined, AccountId32>;
|
|
803
798
|
|
|
804
799
|
/**
|
|
805
800
|
* Counter for the related counted storage map
|
|
806
801
|
*
|
|
807
802
|
* @param {Callback<number> =} callback
|
|
808
803
|
**/
|
|
809
|
-
counterForListNodes: GenericStorageQuery<
|
|
804
|
+
counterForListNodes: GenericStorageQuery<() => number>;
|
|
810
805
|
|
|
811
806
|
/**
|
|
812
807
|
* A bag stored in storage.
|
|
@@ -816,12 +811,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
816
811
|
* @param {bigint} arg
|
|
817
812
|
* @param {Callback<PalletBagsListListBag | undefined> =} callback
|
|
818
813
|
**/
|
|
819
|
-
listBags: GenericStorageQuery<
|
|
814
|
+
listBags: GenericStorageQuery<(arg: bigint) => PalletBagsListListBag | undefined, bigint>;
|
|
820
815
|
|
|
821
816
|
/**
|
|
822
817
|
* Generic pallet storage query
|
|
823
818
|
**/
|
|
824
|
-
[storage: string]: GenericStorageQuery
|
|
819
|
+
[storage: string]: GenericStorageQuery;
|
|
825
820
|
};
|
|
826
821
|
/**
|
|
827
822
|
* Pallet `ImOnline`'s storage queries
|
|
@@ -842,14 +837,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
842
837
|
*
|
|
843
838
|
* @param {Callback<number> =} callback
|
|
844
839
|
**/
|
|
845
|
-
heartbeatAfter: GenericStorageQuery<
|
|
840
|
+
heartbeatAfter: GenericStorageQuery<() => number>;
|
|
846
841
|
|
|
847
842
|
/**
|
|
848
843
|
* The current set of keys that may issue a heartbeat.
|
|
849
844
|
*
|
|
850
845
|
* @param {Callback<Array<PalletImOnlineSr25519AppSr25519Public>> =} callback
|
|
851
846
|
**/
|
|
852
|
-
keys: GenericStorageQuery<
|
|
847
|
+
keys: GenericStorageQuery<() => Array<PalletImOnlineSr25519AppSr25519Public>>;
|
|
853
848
|
|
|
854
849
|
/**
|
|
855
850
|
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
|
|
@@ -857,7 +852,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
857
852
|
* @param {[number, number]} arg
|
|
858
853
|
* @param {Callback<boolean | undefined> =} callback
|
|
859
854
|
**/
|
|
860
|
-
receivedHeartbeats: GenericStorageQuery<
|
|
855
|
+
receivedHeartbeats: GenericStorageQuery<(arg: [number, number]) => boolean | undefined, [number, number]>;
|
|
861
856
|
|
|
862
857
|
/**
|
|
863
858
|
* For each session index, we keep a mapping of `ValidatorId<T>` to the
|
|
@@ -866,12 +861,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
866
861
|
* @param {[number, AccountId32Like]} arg
|
|
867
862
|
* @param {Callback<number> =} callback
|
|
868
863
|
**/
|
|
869
|
-
authoredBlocks: GenericStorageQuery<
|
|
864
|
+
authoredBlocks: GenericStorageQuery<(arg: [number, AccountId32Like]) => number, [number, AccountId32]>;
|
|
870
865
|
|
|
871
866
|
/**
|
|
872
867
|
* Generic pallet storage query
|
|
873
868
|
**/
|
|
874
|
-
[storage: string]: GenericStorageQuery
|
|
869
|
+
[storage: string]: GenericStorageQuery;
|
|
875
870
|
};
|
|
876
871
|
/**
|
|
877
872
|
* Pallet `Staking`'s storage queries
|
|
@@ -882,14 +877,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
882
877
|
*
|
|
883
878
|
* @param {Callback<number> =} callback
|
|
884
879
|
**/
|
|
885
|
-
validatorCount: GenericStorageQuery<
|
|
880
|
+
validatorCount: GenericStorageQuery<() => number>;
|
|
886
881
|
|
|
887
882
|
/**
|
|
888
883
|
* Minimum number of staking participants before emergency conditions are imposed.
|
|
889
884
|
*
|
|
890
885
|
* @param {Callback<number> =} callback
|
|
891
886
|
**/
|
|
892
|
-
minimumValidatorCount: GenericStorageQuery<
|
|
887
|
+
minimumValidatorCount: GenericStorageQuery<() => number>;
|
|
893
888
|
|
|
894
889
|
/**
|
|
895
890
|
* Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
|
|
@@ -898,7 +893,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
898
893
|
*
|
|
899
894
|
* @param {Callback<Array<AccountId32>> =} callback
|
|
900
895
|
**/
|
|
901
|
-
invulnerables: GenericStorageQuery<
|
|
896
|
+
invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
|
|
902
897
|
|
|
903
898
|
/**
|
|
904
899
|
* Map from all locked "stash" accounts to the controller account.
|
|
@@ -908,28 +903,28 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
908
903
|
* @param {AccountId32Like} arg
|
|
909
904
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
910
905
|
**/
|
|
911
|
-
bonded: GenericStorageQuery<
|
|
906
|
+
bonded: GenericStorageQuery<(arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
|
|
912
907
|
|
|
913
908
|
/**
|
|
914
909
|
* The minimum active bond to become and maintain the role of a nominator.
|
|
915
910
|
*
|
|
916
911
|
* @param {Callback<bigint> =} callback
|
|
917
912
|
**/
|
|
918
|
-
minNominatorBond: GenericStorageQuery<
|
|
913
|
+
minNominatorBond: GenericStorageQuery<() => bigint>;
|
|
919
914
|
|
|
920
915
|
/**
|
|
921
916
|
* The minimum active bond to become and maintain the role of a validator.
|
|
922
917
|
*
|
|
923
918
|
* @param {Callback<bigint> =} callback
|
|
924
919
|
**/
|
|
925
|
-
minValidatorBond: GenericStorageQuery<
|
|
920
|
+
minValidatorBond: GenericStorageQuery<() => bigint>;
|
|
926
921
|
|
|
927
922
|
/**
|
|
928
923
|
* The minimum active nominator stake of the last successful election.
|
|
929
924
|
*
|
|
930
925
|
* @param {Callback<bigint> =} callback
|
|
931
926
|
**/
|
|
932
|
-
minimumActiveStake: GenericStorageQuery<
|
|
927
|
+
minimumActiveStake: GenericStorageQuery<() => bigint>;
|
|
933
928
|
|
|
934
929
|
/**
|
|
935
930
|
* The minimum amount of commission that validators can set.
|
|
@@ -938,7 +933,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
938
933
|
*
|
|
939
934
|
* @param {Callback<Perbill> =} callback
|
|
940
935
|
**/
|
|
941
|
-
minCommission: GenericStorageQuery<
|
|
936
|
+
minCommission: GenericStorageQuery<() => Perbill>;
|
|
942
937
|
|
|
943
938
|
/**
|
|
944
939
|
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
|
@@ -949,7 +944,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
949
944
|
* @param {AccountId32Like} arg
|
|
950
945
|
* @param {Callback<PalletStakingStakingLedger | undefined> =} callback
|
|
951
946
|
**/
|
|
952
|
-
ledger: GenericStorageQuery<
|
|
947
|
+
ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingStakingLedger | undefined, AccountId32>;
|
|
953
948
|
|
|
954
949
|
/**
|
|
955
950
|
* Where the reward payment should be made. Keyed by stash.
|
|
@@ -959,7 +954,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
959
954
|
* @param {AccountId32Like} arg
|
|
960
955
|
* @param {Callback<PalletStakingRewardDestination | undefined> =} callback
|
|
961
956
|
**/
|
|
962
|
-
payee: GenericStorageQuery<
|
|
957
|
+
payee: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingRewardDestination | undefined, AccountId32>;
|
|
963
958
|
|
|
964
959
|
/**
|
|
965
960
|
* The map from (wannabe) validator stash key to the preferences of that validator.
|
|
@@ -969,14 +964,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
969
964
|
* @param {AccountId32Like} arg
|
|
970
965
|
* @param {Callback<PalletStakingValidatorPrefs> =} callback
|
|
971
966
|
**/
|
|
972
|
-
validators: GenericStorageQuery<
|
|
967
|
+
validators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingValidatorPrefs, AccountId32>;
|
|
973
968
|
|
|
974
969
|
/**
|
|
975
970
|
* Counter for the related counted storage map
|
|
976
971
|
*
|
|
977
972
|
* @param {Callback<number> =} callback
|
|
978
973
|
**/
|
|
979
|
-
counterForValidators: GenericStorageQuery<
|
|
974
|
+
counterForValidators: GenericStorageQuery<() => number>;
|
|
980
975
|
|
|
981
976
|
/**
|
|
982
977
|
* The maximum validator count before we stop allowing new validators to join.
|
|
@@ -985,7 +980,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
985
980
|
*
|
|
986
981
|
* @param {Callback<number | undefined> =} callback
|
|
987
982
|
**/
|
|
988
|
-
maxValidatorsCount: GenericStorageQuery<
|
|
983
|
+
maxValidatorsCount: GenericStorageQuery<() => number | undefined>;
|
|
989
984
|
|
|
990
985
|
/**
|
|
991
986
|
* The map from nominator stash key to their nomination preferences, namely the validators that
|
|
@@ -1011,14 +1006,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1011
1006
|
* @param {AccountId32Like} arg
|
|
1012
1007
|
* @param {Callback<PalletStakingNominations | undefined> =} callback
|
|
1013
1008
|
**/
|
|
1014
|
-
nominators: GenericStorageQuery<
|
|
1009
|
+
nominators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingNominations | undefined, AccountId32>;
|
|
1015
1010
|
|
|
1016
1011
|
/**
|
|
1017
1012
|
* Counter for the related counted storage map
|
|
1018
1013
|
*
|
|
1019
1014
|
* @param {Callback<number> =} callback
|
|
1020
1015
|
**/
|
|
1021
|
-
counterForNominators: GenericStorageQuery<
|
|
1016
|
+
counterForNominators: GenericStorageQuery<() => number>;
|
|
1022
1017
|
|
|
1023
1018
|
/**
|
|
1024
1019
|
* Stakers whose funds are managed by other pallets.
|
|
@@ -1031,14 +1026,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1031
1026
|
* @param {AccountId32Like} arg
|
|
1032
1027
|
* @param {Callback<[] | undefined> =} callback
|
|
1033
1028
|
**/
|
|
1034
|
-
virtualStakers: GenericStorageQuery<
|
|
1029
|
+
virtualStakers: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
1035
1030
|
|
|
1036
1031
|
/**
|
|
1037
1032
|
* Counter for the related counted storage map
|
|
1038
1033
|
*
|
|
1039
1034
|
* @param {Callback<number> =} callback
|
|
1040
1035
|
**/
|
|
1041
|
-
counterForVirtualStakers: GenericStorageQuery<
|
|
1036
|
+
counterForVirtualStakers: GenericStorageQuery<() => number>;
|
|
1042
1037
|
|
|
1043
1038
|
/**
|
|
1044
1039
|
* The maximum nominator count before we stop allowing new validators to join.
|
|
@@ -1047,7 +1042,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1047
1042
|
*
|
|
1048
1043
|
* @param {Callback<number | undefined> =} callback
|
|
1049
1044
|
**/
|
|
1050
|
-
maxNominatorsCount: GenericStorageQuery<
|
|
1045
|
+
maxNominatorsCount: GenericStorageQuery<() => number | undefined>;
|
|
1051
1046
|
|
|
1052
1047
|
/**
|
|
1053
1048
|
* The current era index.
|
|
@@ -1057,7 +1052,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1057
1052
|
*
|
|
1058
1053
|
* @param {Callback<number | undefined> =} callback
|
|
1059
1054
|
**/
|
|
1060
|
-
currentEra: GenericStorageQuery<
|
|
1055
|
+
currentEra: GenericStorageQuery<() => number | undefined>;
|
|
1061
1056
|
|
|
1062
1057
|
/**
|
|
1063
1058
|
* The active era information, it holds index and start.
|
|
@@ -1067,7 +1062,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1067
1062
|
*
|
|
1068
1063
|
* @param {Callback<PalletStakingActiveEraInfo | undefined> =} callback
|
|
1069
1064
|
**/
|
|
1070
|
-
activeEra: GenericStorageQuery<
|
|
1065
|
+
activeEra: GenericStorageQuery<() => PalletStakingActiveEraInfo | undefined>;
|
|
1071
1066
|
|
|
1072
1067
|
/**
|
|
1073
1068
|
* The session index at which the era start for the last [`Config::HistoryDepth`] eras.
|
|
@@ -1078,7 +1073,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1078
1073
|
* @param {number} arg
|
|
1079
1074
|
* @param {Callback<number | undefined> =} callback
|
|
1080
1075
|
**/
|
|
1081
|
-
erasStartSessionIndex: GenericStorageQuery<
|
|
1076
|
+
erasStartSessionIndex: GenericStorageQuery<(arg: number) => number | undefined, number>;
|
|
1082
1077
|
|
|
1083
1078
|
/**
|
|
1084
1079
|
* Exposure of validator at era.
|
|
@@ -1093,7 +1088,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1093
1088
|
* @param {[number, AccountId32Like]} arg
|
|
1094
1089
|
* @param {Callback<SpStakingExposure> =} callback
|
|
1095
1090
|
**/
|
|
1096
|
-
erasStakers: GenericStorageQuery<
|
|
1091
|
+
erasStakers: GenericStorageQuery<(arg: [number, AccountId32Like]) => SpStakingExposure, [number, AccountId32]>;
|
|
1097
1092
|
|
|
1098
1093
|
/**
|
|
1099
1094
|
* Summary of validator exposure at a given era.
|
|
@@ -1113,7 +1108,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1113
1108
|
* @param {Callback<SpStakingPagedExposureMetadata | undefined> =} callback
|
|
1114
1109
|
**/
|
|
1115
1110
|
erasStakersOverview: GenericStorageQuery<
|
|
1116
|
-
Rv,
|
|
1117
1111
|
(arg: [number, AccountId32Like]) => SpStakingPagedExposureMetadata | undefined,
|
|
1118
1112
|
[number, AccountId32]
|
|
1119
1113
|
>;
|
|
@@ -1140,7 +1134,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1140
1134
|
* @param {Callback<SpStakingExposure> =} callback
|
|
1141
1135
|
**/
|
|
1142
1136
|
erasStakersClipped: GenericStorageQuery<
|
|
1143
|
-
Rv,
|
|
1144
1137
|
(arg: [number, AccountId32Like]) => SpStakingExposure,
|
|
1145
1138
|
[number, AccountId32]
|
|
1146
1139
|
>;
|
|
@@ -1157,7 +1150,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1157
1150
|
* @param {Callback<SpStakingExposurePage | undefined> =} callback
|
|
1158
1151
|
**/
|
|
1159
1152
|
erasStakersPaged: GenericStorageQuery<
|
|
1160
|
-
Rv,
|
|
1161
1153
|
(arg: [number, AccountId32Like, number]) => SpStakingExposurePage | undefined,
|
|
1162
1154
|
[number, AccountId32, number]
|
|
1163
1155
|
>;
|
|
@@ -1173,7 +1165,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1173
1165
|
* @param {[number, AccountId32Like]} arg
|
|
1174
1166
|
* @param {Callback<Array<number>> =} callback
|
|
1175
1167
|
**/
|
|
1176
|
-
claimedRewards: GenericStorageQuery<
|
|
1168
|
+
claimedRewards: GenericStorageQuery<(arg: [number, AccountId32Like]) => Array<number>, [number, AccountId32]>;
|
|
1177
1169
|
|
|
1178
1170
|
/**
|
|
1179
1171
|
* Similar to `ErasStakers`, this holds the preferences of validators.
|
|
@@ -1186,7 +1178,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1186
1178
|
* @param {Callback<PalletStakingValidatorPrefs> =} callback
|
|
1187
1179
|
**/
|
|
1188
1180
|
erasValidatorPrefs: GenericStorageQuery<
|
|
1189
|
-
Rv,
|
|
1190
1181
|
(arg: [number, AccountId32Like]) => PalletStakingValidatorPrefs,
|
|
1191
1182
|
[number, AccountId32]
|
|
1192
1183
|
>;
|
|
@@ -1199,7 +1190,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1199
1190
|
* @param {number} arg
|
|
1200
1191
|
* @param {Callback<bigint | undefined> =} callback
|
|
1201
1192
|
**/
|
|
1202
|
-
erasValidatorReward: GenericStorageQuery<
|
|
1193
|
+
erasValidatorReward: GenericStorageQuery<(arg: number) => bigint | undefined, number>;
|
|
1203
1194
|
|
|
1204
1195
|
/**
|
|
1205
1196
|
* Rewards for the last [`Config::HistoryDepth`] eras.
|
|
@@ -1208,7 +1199,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1208
1199
|
* @param {number} arg
|
|
1209
1200
|
* @param {Callback<PalletStakingEraRewardPoints> =} callback
|
|
1210
1201
|
**/
|
|
1211
|
-
erasRewardPoints: GenericStorageQuery<
|
|
1202
|
+
erasRewardPoints: GenericStorageQuery<(arg: number) => PalletStakingEraRewardPoints, number>;
|
|
1212
1203
|
|
|
1213
1204
|
/**
|
|
1214
1205
|
* The total amount staked for the last [`Config::HistoryDepth`] eras.
|
|
@@ -1217,14 +1208,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1217
1208
|
* @param {number} arg
|
|
1218
1209
|
* @param {Callback<bigint> =} callback
|
|
1219
1210
|
**/
|
|
1220
|
-
erasTotalStake: GenericStorageQuery<
|
|
1211
|
+
erasTotalStake: GenericStorageQuery<(arg: number) => bigint, number>;
|
|
1221
1212
|
|
|
1222
1213
|
/**
|
|
1223
1214
|
* Mode of era forcing.
|
|
1224
1215
|
*
|
|
1225
1216
|
* @param {Callback<PalletStakingForcing> =} callback
|
|
1226
1217
|
**/
|
|
1227
|
-
forceEra: GenericStorageQuery<
|
|
1218
|
+
forceEra: GenericStorageQuery<() => PalletStakingForcing>;
|
|
1228
1219
|
|
|
1229
1220
|
/**
|
|
1230
1221
|
* Maximum staked rewards, i.e. the percentage of the era inflation that
|
|
@@ -1233,7 +1224,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1233
1224
|
*
|
|
1234
1225
|
* @param {Callback<Percent | undefined> =} callback
|
|
1235
1226
|
**/
|
|
1236
|
-
maxStakedRewards: GenericStorageQuery<
|
|
1227
|
+
maxStakedRewards: GenericStorageQuery<() => Percent | undefined>;
|
|
1237
1228
|
|
|
1238
1229
|
/**
|
|
1239
1230
|
* The percentage of the slash that is distributed to reporters.
|
|
@@ -1242,7 +1233,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1242
1233
|
*
|
|
1243
1234
|
* @param {Callback<Perbill> =} callback
|
|
1244
1235
|
**/
|
|
1245
|
-
slashRewardFraction: GenericStorageQuery<
|
|
1236
|
+
slashRewardFraction: GenericStorageQuery<() => Perbill>;
|
|
1246
1237
|
|
|
1247
1238
|
/**
|
|
1248
1239
|
* The amount of currency given to reporters of a slash event which was
|
|
@@ -1250,7 +1241,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1250
1241
|
*
|
|
1251
1242
|
* @param {Callback<bigint> =} callback
|
|
1252
1243
|
**/
|
|
1253
|
-
canceledSlashPayout: GenericStorageQuery<
|
|
1244
|
+
canceledSlashPayout: GenericStorageQuery<() => bigint>;
|
|
1254
1245
|
|
|
1255
1246
|
/**
|
|
1256
1247
|
* All unapplied slashes that are queued for later.
|
|
@@ -1258,7 +1249,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1258
1249
|
* @param {number} arg
|
|
1259
1250
|
* @param {Callback<Array<PalletStakingUnappliedSlash>> =} callback
|
|
1260
1251
|
**/
|
|
1261
|
-
unappliedSlashes: GenericStorageQuery<
|
|
1252
|
+
unappliedSlashes: GenericStorageQuery<(arg: number) => Array<PalletStakingUnappliedSlash>, number>;
|
|
1262
1253
|
|
|
1263
1254
|
/**
|
|
1264
1255
|
* A mapping from still-bonded eras to the first session index of that era.
|
|
@@ -1268,7 +1259,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1268
1259
|
*
|
|
1269
1260
|
* @param {Callback<Array<[number, number]>> =} callback
|
|
1270
1261
|
**/
|
|
1271
|
-
bondedEras: GenericStorageQuery<
|
|
1262
|
+
bondedEras: GenericStorageQuery<() => Array<[number, number]>>;
|
|
1272
1263
|
|
|
1273
1264
|
/**
|
|
1274
1265
|
* All slashing events on validators, mapped by era to the highest slash proportion
|
|
@@ -1278,7 +1269,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1278
1269
|
* @param {Callback<[Perbill, bigint] | undefined> =} callback
|
|
1279
1270
|
**/
|
|
1280
1271
|
validatorSlashInEra: GenericStorageQuery<
|
|
1281
|
-
Rv,
|
|
1282
1272
|
(arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined,
|
|
1283
1273
|
[number, AccountId32]
|
|
1284
1274
|
>;
|
|
@@ -1290,7 +1280,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1290
1280
|
* @param {Callback<bigint | undefined> =} callback
|
|
1291
1281
|
**/
|
|
1292
1282
|
nominatorSlashInEra: GenericStorageQuery<
|
|
1293
|
-
Rv,
|
|
1294
1283
|
(arg: [number, AccountId32Like]) => bigint | undefined,
|
|
1295
1284
|
[number, AccountId32]
|
|
1296
1285
|
>;
|
|
@@ -1302,7 +1291,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1302
1291
|
* @param {Callback<PalletStakingSlashingSlashingSpans | undefined> =} callback
|
|
1303
1292
|
**/
|
|
1304
1293
|
slashingSpans: GenericStorageQuery<
|
|
1305
|
-
Rv,
|
|
1306
1294
|
(arg: AccountId32Like) => PalletStakingSlashingSlashingSpans | undefined,
|
|
1307
1295
|
AccountId32
|
|
1308
1296
|
>;
|
|
@@ -1315,7 +1303,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1315
1303
|
* @param {Callback<PalletStakingSlashingSpanRecord> =} callback
|
|
1316
1304
|
**/
|
|
1317
1305
|
spanSlash: GenericStorageQuery<
|
|
1318
|
-
Rv,
|
|
1319
1306
|
(arg: [AccountId32Like, number]) => PalletStakingSlashingSpanRecord,
|
|
1320
1307
|
[AccountId32, number]
|
|
1321
1308
|
>;
|
|
@@ -1327,7 +1314,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1327
1314
|
*
|
|
1328
1315
|
* @param {Callback<number> =} callback
|
|
1329
1316
|
**/
|
|
1330
|
-
currentPlannedSession: GenericStorageQuery<
|
|
1317
|
+
currentPlannedSession: GenericStorageQuery<() => number>;
|
|
1331
1318
|
|
|
1332
1319
|
/**
|
|
1333
1320
|
* Indices of validators that have offended in the active era. The offenders are disabled for a
|
|
@@ -1340,7 +1327,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1340
1327
|
*
|
|
1341
1328
|
* @param {Callback<Array<number>> =} callback
|
|
1342
1329
|
**/
|
|
1343
|
-
disabledValidators: GenericStorageQuery<
|
|
1330
|
+
disabledValidators: GenericStorageQuery<() => Array<number>>;
|
|
1344
1331
|
|
|
1345
1332
|
/**
|
|
1346
1333
|
* The threshold for when users can start calling `chill_other` for other validators /
|
|
@@ -1349,12 +1336,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1349
1336
|
*
|
|
1350
1337
|
* @param {Callback<Percent | undefined> =} callback
|
|
1351
1338
|
**/
|
|
1352
|
-
chillThreshold: GenericStorageQuery<
|
|
1339
|
+
chillThreshold: GenericStorageQuery<() => Percent | undefined>;
|
|
1353
1340
|
|
|
1354
1341
|
/**
|
|
1355
1342
|
* Generic pallet storage query
|
|
1356
1343
|
**/
|
|
1357
|
-
[storage: string]: GenericStorageQuery
|
|
1344
|
+
[storage: string]: GenericStorageQuery;
|
|
1358
1345
|
};
|
|
1359
1346
|
/**
|
|
1360
1347
|
* Pallet `Treasury`'s storage queries
|
|
@@ -1365,7 +1352,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1365
1352
|
*
|
|
1366
1353
|
* @param {Callback<number> =} callback
|
|
1367
1354
|
**/
|
|
1368
|
-
proposalCount: GenericStorageQuery<
|
|
1355
|
+
proposalCount: GenericStorageQuery<() => number>;
|
|
1369
1356
|
|
|
1370
1357
|
/**
|
|
1371
1358
|
* Proposals that have been made.
|
|
@@ -1373,28 +1360,28 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1373
1360
|
* @param {number} arg
|
|
1374
1361
|
* @param {Callback<PalletTreasuryProposal | undefined> =} callback
|
|
1375
1362
|
**/
|
|
1376
|
-
proposals: GenericStorageQuery<
|
|
1363
|
+
proposals: GenericStorageQuery<(arg: number) => PalletTreasuryProposal | undefined, number>;
|
|
1377
1364
|
|
|
1378
1365
|
/**
|
|
1379
1366
|
* The amount which has been reported as inactive to Currency.
|
|
1380
1367
|
*
|
|
1381
1368
|
* @param {Callback<bigint> =} callback
|
|
1382
1369
|
**/
|
|
1383
|
-
deactivated: GenericStorageQuery<
|
|
1370
|
+
deactivated: GenericStorageQuery<() => bigint>;
|
|
1384
1371
|
|
|
1385
1372
|
/**
|
|
1386
1373
|
* Proposal indices that have been approved but not yet awarded.
|
|
1387
1374
|
*
|
|
1388
1375
|
* @param {Callback<Array<number>> =} callback
|
|
1389
1376
|
**/
|
|
1390
|
-
approvals: GenericStorageQuery<
|
|
1377
|
+
approvals: GenericStorageQuery<() => Array<number>>;
|
|
1391
1378
|
|
|
1392
1379
|
/**
|
|
1393
1380
|
* The count of spends that have been made.
|
|
1394
1381
|
*
|
|
1395
1382
|
* @param {Callback<number> =} callback
|
|
1396
1383
|
**/
|
|
1397
|
-
spendCount: GenericStorageQuery<
|
|
1384
|
+
spendCount: GenericStorageQuery<() => number>;
|
|
1398
1385
|
|
|
1399
1386
|
/**
|
|
1400
1387
|
* Spends that have been approved and being processed.
|
|
@@ -1402,12 +1389,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1402
1389
|
* @param {number} arg
|
|
1403
1390
|
* @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
|
|
1404
1391
|
**/
|
|
1405
|
-
spends: GenericStorageQuery<
|
|
1392
|
+
spends: GenericStorageQuery<(arg: number) => PalletTreasurySpendStatus | undefined, number>;
|
|
1406
1393
|
|
|
1407
1394
|
/**
|
|
1408
1395
|
* Generic pallet storage query
|
|
1409
1396
|
**/
|
|
1410
|
-
[storage: string]: GenericStorageQuery
|
|
1397
|
+
[storage: string]: GenericStorageQuery;
|
|
1411
1398
|
};
|
|
1412
1399
|
/**
|
|
1413
1400
|
* Pallet `Historical`'s storage queries
|
|
@@ -1419,19 +1406,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1419
1406
|
* @param {number} arg
|
|
1420
1407
|
* @param {Callback<[H256, number] | undefined> =} callback
|
|
1421
1408
|
**/
|
|
1422
|
-
historicalSessions: GenericStorageQuery<
|
|
1409
|
+
historicalSessions: GenericStorageQuery<(arg: number) => [H256, number] | undefined, number>;
|
|
1423
1410
|
|
|
1424
1411
|
/**
|
|
1425
1412
|
* The range of historical sessions we store. [first, last)
|
|
1426
1413
|
*
|
|
1427
1414
|
* @param {Callback<[number, number] | undefined> =} callback
|
|
1428
1415
|
**/
|
|
1429
|
-
storedRange: GenericStorageQuery<
|
|
1416
|
+
storedRange: GenericStorageQuery<() => [number, number] | undefined>;
|
|
1430
1417
|
|
|
1431
1418
|
/**
|
|
1432
1419
|
* Generic pallet storage query
|
|
1433
1420
|
**/
|
|
1434
|
-
[storage: string]: GenericStorageQuery
|
|
1421
|
+
[storage: string]: GenericStorageQuery;
|
|
1435
1422
|
};
|
|
1436
1423
|
/**
|
|
1437
1424
|
* Pallet `ConvictionVoting`'s storage queries
|
|
@@ -1445,7 +1432,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1445
1432
|
* @param {Callback<PalletConvictionVotingVoteVoting> =} callback
|
|
1446
1433
|
**/
|
|
1447
1434
|
votingFor: GenericStorageQuery<
|
|
1448
|
-
Rv,
|
|
1449
1435
|
(arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting,
|
|
1450
1436
|
[AccountId32, number]
|
|
1451
1437
|
>;
|
|
@@ -1458,12 +1444,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1458
1444
|
* @param {AccountId32Like} arg
|
|
1459
1445
|
* @param {Callback<Array<[number, bigint]>> =} callback
|
|
1460
1446
|
**/
|
|
1461
|
-
classLocksFor: GenericStorageQuery<
|
|
1447
|
+
classLocksFor: GenericStorageQuery<(arg: AccountId32Like) => Array<[number, bigint]>, AccountId32>;
|
|
1462
1448
|
|
|
1463
1449
|
/**
|
|
1464
1450
|
* Generic pallet storage query
|
|
1465
1451
|
**/
|
|
1466
|
-
[storage: string]: GenericStorageQuery
|
|
1452
|
+
[storage: string]: GenericStorageQuery;
|
|
1467
1453
|
};
|
|
1468
1454
|
/**
|
|
1469
1455
|
* Pallet `Referenda`'s storage queries
|
|
@@ -1474,7 +1460,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1474
1460
|
*
|
|
1475
1461
|
* @param {Callback<number> =} callback
|
|
1476
1462
|
**/
|
|
1477
|
-
referendumCount: GenericStorageQuery<
|
|
1463
|
+
referendumCount: GenericStorageQuery<() => number>;
|
|
1478
1464
|
|
|
1479
1465
|
/**
|
|
1480
1466
|
* Information concerning any given referendum.
|
|
@@ -1482,7 +1468,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1482
1468
|
* @param {number} arg
|
|
1483
1469
|
* @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
|
|
1484
1470
|
**/
|
|
1485
|
-
referendumInfoFor: GenericStorageQuery<
|
|
1471
|
+
referendumInfoFor: GenericStorageQuery<(arg: number) => PalletReferendaReferendumInfo | undefined, number>;
|
|
1486
1472
|
|
|
1487
1473
|
/**
|
|
1488
1474
|
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
@@ -1493,7 +1479,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1493
1479
|
* @param {number} arg
|
|
1494
1480
|
* @param {Callback<Array<[number, bigint]>> =} callback
|
|
1495
1481
|
**/
|
|
1496
|
-
trackQueue: GenericStorageQuery<
|
|
1482
|
+
trackQueue: GenericStorageQuery<(arg: number) => Array<[number, bigint]>, number>;
|
|
1497
1483
|
|
|
1498
1484
|
/**
|
|
1499
1485
|
* The number of referenda being decided currently.
|
|
@@ -1501,7 +1487,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1501
1487
|
* @param {number} arg
|
|
1502
1488
|
* @param {Callback<number> =} callback
|
|
1503
1489
|
**/
|
|
1504
|
-
decidingCount: GenericStorageQuery<
|
|
1490
|
+
decidingCount: GenericStorageQuery<(arg: number) => number, number>;
|
|
1505
1491
|
|
|
1506
1492
|
/**
|
|
1507
1493
|
* The metadata is a general information concerning the referendum.
|
|
@@ -1514,12 +1500,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1514
1500
|
* @param {number} arg
|
|
1515
1501
|
* @param {Callback<H256 | undefined> =} callback
|
|
1516
1502
|
**/
|
|
1517
|
-
metadataOf: GenericStorageQuery<
|
|
1503
|
+
metadataOf: GenericStorageQuery<(arg: number) => H256 | undefined, number>;
|
|
1518
1504
|
|
|
1519
1505
|
/**
|
|
1520
1506
|
* Generic pallet storage query
|
|
1521
1507
|
**/
|
|
1522
|
-
[storage: string]: GenericStorageQuery
|
|
1508
|
+
[storage: string]: GenericStorageQuery;
|
|
1523
1509
|
};
|
|
1524
1510
|
/**
|
|
1525
1511
|
* Pallet `FellowshipCollective`'s storage queries
|
|
@@ -1532,7 +1518,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1532
1518
|
* @param {number} arg
|
|
1533
1519
|
* @param {Callback<number> =} callback
|
|
1534
1520
|
**/
|
|
1535
|
-
memberCount: GenericStorageQuery<
|
|
1521
|
+
memberCount: GenericStorageQuery<(arg: number) => number, number>;
|
|
1536
1522
|
|
|
1537
1523
|
/**
|
|
1538
1524
|
* The current members of the collective.
|
|
@@ -1540,11 +1526,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1540
1526
|
* @param {AccountId32Like} arg
|
|
1541
1527
|
* @param {Callback<PalletRankedCollectiveMemberRecord | undefined> =} callback
|
|
1542
1528
|
**/
|
|
1543
|
-
members: GenericStorageQuery<
|
|
1544
|
-
Rv,
|
|
1545
|
-
(arg: AccountId32Like) => PalletRankedCollectiveMemberRecord | undefined,
|
|
1546
|
-
AccountId32
|
|
1547
|
-
>;
|
|
1529
|
+
members: GenericStorageQuery<(arg: AccountId32Like) => PalletRankedCollectiveMemberRecord | undefined, AccountId32>;
|
|
1548
1530
|
|
|
1549
1531
|
/**
|
|
1550
1532
|
* The index of each ranks's member into the group of members who have at least that rank.
|
|
@@ -1552,7 +1534,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1552
1534
|
* @param {[number, AccountId32Like]} arg
|
|
1553
1535
|
* @param {Callback<number | undefined> =} callback
|
|
1554
1536
|
**/
|
|
1555
|
-
idToIndex: GenericStorageQuery<
|
|
1537
|
+
idToIndex: GenericStorageQuery<(arg: [number, AccountId32Like]) => number | undefined, [number, AccountId32]>;
|
|
1556
1538
|
|
|
1557
1539
|
/**
|
|
1558
1540
|
* The members in the collective by index. All indices in the range `0..MemberCount` will
|
|
@@ -1561,7 +1543,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1561
1543
|
* @param {[number, number]} arg
|
|
1562
1544
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1563
1545
|
**/
|
|
1564
|
-
indexToId: GenericStorageQuery<
|
|
1546
|
+
indexToId: GenericStorageQuery<(arg: [number, number]) => AccountId32 | undefined, [number, number]>;
|
|
1565
1547
|
|
|
1566
1548
|
/**
|
|
1567
1549
|
* Votes on a given proposal, if it is ongoing.
|
|
@@ -1570,7 +1552,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1570
1552
|
* @param {Callback<PalletRankedCollectiveVoteRecord | undefined> =} callback
|
|
1571
1553
|
**/
|
|
1572
1554
|
voting: GenericStorageQuery<
|
|
1573
|
-
Rv,
|
|
1574
1555
|
(arg: [number, AccountId32Like]) => PalletRankedCollectiveVoteRecord | undefined,
|
|
1575
1556
|
[number, AccountId32]
|
|
1576
1557
|
>;
|
|
@@ -1580,12 +1561,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1580
1561
|
* @param {number} arg
|
|
1581
1562
|
* @param {Callback<Bytes | undefined> =} callback
|
|
1582
1563
|
**/
|
|
1583
|
-
votingCleanup: GenericStorageQuery<
|
|
1564
|
+
votingCleanup: GenericStorageQuery<(arg: number) => Bytes | undefined, number>;
|
|
1584
1565
|
|
|
1585
1566
|
/**
|
|
1586
1567
|
* Generic pallet storage query
|
|
1587
1568
|
**/
|
|
1588
|
-
[storage: string]: GenericStorageQuery
|
|
1569
|
+
[storage: string]: GenericStorageQuery;
|
|
1589
1570
|
};
|
|
1590
1571
|
/**
|
|
1591
1572
|
* Pallet `FellowshipReferenda`'s storage queries
|
|
@@ -1596,7 +1577,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1596
1577
|
*
|
|
1597
1578
|
* @param {Callback<number> =} callback
|
|
1598
1579
|
**/
|
|
1599
|
-
referendumCount: GenericStorageQuery<
|
|
1580
|
+
referendumCount: GenericStorageQuery<() => number>;
|
|
1600
1581
|
|
|
1601
1582
|
/**
|
|
1602
1583
|
* Information concerning any given referendum.
|
|
@@ -1604,7 +1585,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1604
1585
|
* @param {number} arg
|
|
1605
1586
|
* @param {Callback<PalletReferendaReferendumInfoTally | undefined> =} callback
|
|
1606
1587
|
**/
|
|
1607
|
-
referendumInfoFor: GenericStorageQuery<
|
|
1588
|
+
referendumInfoFor: GenericStorageQuery<(arg: number) => PalletReferendaReferendumInfoTally | undefined, number>;
|
|
1608
1589
|
|
|
1609
1590
|
/**
|
|
1610
1591
|
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
@@ -1615,7 +1596,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1615
1596
|
* @param {number} arg
|
|
1616
1597
|
* @param {Callback<Array<[number, number]>> =} callback
|
|
1617
1598
|
**/
|
|
1618
|
-
trackQueue: GenericStorageQuery<
|
|
1599
|
+
trackQueue: GenericStorageQuery<(arg: number) => Array<[number, number]>, number>;
|
|
1619
1600
|
|
|
1620
1601
|
/**
|
|
1621
1602
|
* The number of referenda being decided currently.
|
|
@@ -1623,7 +1604,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1623
1604
|
* @param {number} arg
|
|
1624
1605
|
* @param {Callback<number> =} callback
|
|
1625
1606
|
**/
|
|
1626
|
-
decidingCount: GenericStorageQuery<
|
|
1607
|
+
decidingCount: GenericStorageQuery<(arg: number) => number, number>;
|
|
1627
1608
|
|
|
1628
1609
|
/**
|
|
1629
1610
|
* The metadata is a general information concerning the referendum.
|
|
@@ -1636,12 +1617,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1636
1617
|
* @param {number} arg
|
|
1637
1618
|
* @param {Callback<H256 | undefined> =} callback
|
|
1638
1619
|
**/
|
|
1639
|
-
metadataOf: GenericStorageQuery<
|
|
1620
|
+
metadataOf: GenericStorageQuery<(arg: number) => H256 | undefined, number>;
|
|
1640
1621
|
|
|
1641
1622
|
/**
|
|
1642
1623
|
* Generic pallet storage query
|
|
1643
1624
|
**/
|
|
1644
|
-
[storage: string]: GenericStorageQuery
|
|
1625
|
+
[storage: string]: GenericStorageQuery;
|
|
1645
1626
|
};
|
|
1646
1627
|
/**
|
|
1647
1628
|
* Pallet `Whitelist`'s storage queries
|
|
@@ -1652,12 +1633,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1652
1633
|
* @param {H256} arg
|
|
1653
1634
|
* @param {Callback<[] | undefined> =} callback
|
|
1654
1635
|
**/
|
|
1655
|
-
whitelistedCall: GenericStorageQuery<
|
|
1636
|
+
whitelistedCall: GenericStorageQuery<(arg: H256) => [] | undefined, H256>;
|
|
1656
1637
|
|
|
1657
1638
|
/**
|
|
1658
1639
|
* Generic pallet storage query
|
|
1659
1640
|
**/
|
|
1660
|
-
[storage: string]: GenericStorageQuery
|
|
1641
|
+
[storage: string]: GenericStorageQuery;
|
|
1661
1642
|
};
|
|
1662
1643
|
/**
|
|
1663
1644
|
* Pallet `Scheduler`'s storage queries
|
|
@@ -1667,7 +1648,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1667
1648
|
*
|
|
1668
1649
|
* @param {Callback<number | undefined> =} callback
|
|
1669
1650
|
**/
|
|
1670
|
-
incompleteSince: GenericStorageQuery<
|
|
1651
|
+
incompleteSince: GenericStorageQuery<() => number | undefined>;
|
|
1671
1652
|
|
|
1672
1653
|
/**
|
|
1673
1654
|
* Items to be executed, indexed by the block number that they should be executed on.
|
|
@@ -1675,7 +1656,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1675
1656
|
* @param {number} arg
|
|
1676
1657
|
* @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
|
|
1677
1658
|
**/
|
|
1678
|
-
agenda: GenericStorageQuery<
|
|
1659
|
+
agenda: GenericStorageQuery<(arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
|
|
1679
1660
|
|
|
1680
1661
|
/**
|
|
1681
1662
|
* Retry configurations for items to be executed, indexed by task address.
|
|
@@ -1683,11 +1664,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1683
1664
|
* @param {[number, number]} arg
|
|
1684
1665
|
* @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
|
|
1685
1666
|
**/
|
|
1686
|
-
retries: GenericStorageQuery<
|
|
1687
|
-
Rv,
|
|
1688
|
-
(arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
|
|
1689
|
-
[number, number]
|
|
1690
|
-
>;
|
|
1667
|
+
retries: GenericStorageQuery<(arg: [number, number]) => PalletSchedulerRetryConfig | undefined, [number, number]>;
|
|
1691
1668
|
|
|
1692
1669
|
/**
|
|
1693
1670
|
* Lookup from a name to the block number and index of the task.
|
|
@@ -1698,12 +1675,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1698
1675
|
* @param {FixedBytes<32>} arg
|
|
1699
1676
|
* @param {Callback<[number, number] | undefined> =} callback
|
|
1700
1677
|
**/
|
|
1701
|
-
lookup: GenericStorageQuery<
|
|
1678
|
+
lookup: GenericStorageQuery<(arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
|
|
1702
1679
|
|
|
1703
1680
|
/**
|
|
1704
1681
|
* Generic pallet storage query
|
|
1705
1682
|
**/
|
|
1706
|
-
[storage: string]: GenericStorageQuery
|
|
1683
|
+
[storage: string]: GenericStorageQuery;
|
|
1707
1684
|
};
|
|
1708
1685
|
/**
|
|
1709
1686
|
* Pallet `Preimage`'s storage queries
|
|
@@ -1715,7 +1692,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1715
1692
|
* @param {H256} arg
|
|
1716
1693
|
* @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
|
|
1717
1694
|
**/
|
|
1718
|
-
statusFor: GenericStorageQuery<
|
|
1695
|
+
statusFor: GenericStorageQuery<(arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
|
|
1719
1696
|
|
|
1720
1697
|
/**
|
|
1721
1698
|
* The request status of a given hash.
|
|
@@ -1723,19 +1700,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1723
1700
|
* @param {H256} arg
|
|
1724
1701
|
* @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
|
|
1725
1702
|
**/
|
|
1726
|
-
requestStatusFor: GenericStorageQuery<
|
|
1703
|
+
requestStatusFor: GenericStorageQuery<(arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
|
|
1727
1704
|
|
|
1728
1705
|
/**
|
|
1729
1706
|
*
|
|
1730
1707
|
* @param {[H256, number]} arg
|
|
1731
1708
|
* @param {Callback<Bytes | undefined> =} callback
|
|
1732
1709
|
**/
|
|
1733
|
-
preimageFor: GenericStorageQuery<
|
|
1710
|
+
preimageFor: GenericStorageQuery<(arg: [H256, number]) => Bytes | undefined, [H256, number]>;
|
|
1734
1711
|
|
|
1735
1712
|
/**
|
|
1736
1713
|
* Generic pallet storage query
|
|
1737
1714
|
**/
|
|
1738
|
-
[storage: string]: GenericStorageQuery
|
|
1715
|
+
[storage: string]: GenericStorageQuery;
|
|
1739
1716
|
};
|
|
1740
1717
|
/**
|
|
1741
1718
|
* Pallet `Identity`'s storage queries
|
|
@@ -1751,7 +1728,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1751
1728
|
* @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
|
|
1752
1729
|
**/
|
|
1753
1730
|
identityOf: GenericStorageQuery<
|
|
1754
|
-
Rv,
|
|
1755
1731
|
(arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
|
|
1756
1732
|
AccountId32
|
|
1757
1733
|
>;
|
|
@@ -1763,7 +1739,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1763
1739
|
* @param {AccountId32Like} arg
|
|
1764
1740
|
* @param {Callback<[AccountId32, Data] | undefined> =} callback
|
|
1765
1741
|
**/
|
|
1766
|
-
superOf: GenericStorageQuery<
|
|
1742
|
+
superOf: GenericStorageQuery<(arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
|
|
1767
1743
|
|
|
1768
1744
|
/**
|
|
1769
1745
|
* Alternative "sub" identities of this account.
|
|
@@ -1775,7 +1751,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1775
1751
|
* @param {AccountId32Like} arg
|
|
1776
1752
|
* @param {Callback<[bigint, Array<AccountId32>]> =} callback
|
|
1777
1753
|
**/
|
|
1778
|
-
subsOf: GenericStorageQuery<
|
|
1754
|
+
subsOf: GenericStorageQuery<(arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
|
|
1779
1755
|
|
|
1780
1756
|
/**
|
|
1781
1757
|
* The set of registrars. Not expected to get very big as can only be added through a
|
|
@@ -1785,7 +1761,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1785
1761
|
*
|
|
1786
1762
|
* @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
|
|
1787
1763
|
**/
|
|
1788
|
-
registrars: GenericStorageQuery<
|
|
1764
|
+
registrars: GenericStorageQuery<() => Array<PalletIdentityRegistrarInfo | undefined>>;
|
|
1789
1765
|
|
|
1790
1766
|
/**
|
|
1791
1767
|
* A map of the accounts who are authorized to grant usernames.
|
|
@@ -1794,7 +1770,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1794
1770
|
* @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
|
|
1795
1771
|
**/
|
|
1796
1772
|
usernameAuthorities: GenericStorageQuery<
|
|
1797
|
-
Rv,
|
|
1798
1773
|
(arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
|
|
1799
1774
|
AccountId32
|
|
1800
1775
|
>;
|
|
@@ -1809,7 +1784,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1809
1784
|
* @param {BytesLike} arg
|
|
1810
1785
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1811
1786
|
**/
|
|
1812
|
-
accountOfUsername: GenericStorageQuery<
|
|
1787
|
+
accountOfUsername: GenericStorageQuery<(arg: BytesLike) => AccountId32 | undefined, Bytes>;
|
|
1813
1788
|
|
|
1814
1789
|
/**
|
|
1815
1790
|
* Usernames that an authority has granted, but that the account controller has not confirmed
|
|
@@ -1822,12 +1797,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1822
1797
|
* @param {BytesLike} arg
|
|
1823
1798
|
* @param {Callback<[AccountId32, number] | undefined> =} callback
|
|
1824
1799
|
**/
|
|
1825
|
-
pendingUsernames: GenericStorageQuery<
|
|
1800
|
+
pendingUsernames: GenericStorageQuery<(arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
|
|
1826
1801
|
|
|
1827
1802
|
/**
|
|
1828
1803
|
* Generic pallet storage query
|
|
1829
1804
|
**/
|
|
1830
|
-
[storage: string]: GenericStorageQuery
|
|
1805
|
+
[storage: string]: GenericStorageQuery;
|
|
1831
1806
|
};
|
|
1832
1807
|
/**
|
|
1833
1808
|
* Pallet `Proxy`'s storage queries
|
|
@@ -1840,11 +1815,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1840
1815
|
* @param {AccountId32Like} arg
|
|
1841
1816
|
* @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
|
|
1842
1817
|
**/
|
|
1843
|
-
proxies: GenericStorageQuery<
|
|
1844
|
-
Rv,
|
|
1845
|
-
(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
|
|
1846
|
-
AccountId32
|
|
1847
|
-
>;
|
|
1818
|
+
proxies: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint], AccountId32>;
|
|
1848
1819
|
|
|
1849
1820
|
/**
|
|
1850
1821
|
* The announcements made by the proxy (key).
|
|
@@ -1852,16 +1823,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1852
1823
|
* @param {AccountId32Like} arg
|
|
1853
1824
|
* @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
|
|
1854
1825
|
**/
|
|
1855
|
-
announcements: GenericStorageQuery<
|
|
1856
|
-
Rv,
|
|
1857
|
-
(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
|
|
1858
|
-
AccountId32
|
|
1859
|
-
>;
|
|
1826
|
+
announcements: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint], AccountId32>;
|
|
1860
1827
|
|
|
1861
1828
|
/**
|
|
1862
1829
|
* Generic pallet storage query
|
|
1863
1830
|
**/
|
|
1864
|
-
[storage: string]: GenericStorageQuery
|
|
1831
|
+
[storage: string]: GenericStorageQuery;
|
|
1865
1832
|
};
|
|
1866
1833
|
/**
|
|
1867
1834
|
* Pallet `Multisig`'s storage queries
|
|
@@ -1874,7 +1841,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1874
1841
|
* @param {Callback<PalletMultisigMultisig | undefined> =} callback
|
|
1875
1842
|
**/
|
|
1876
1843
|
multisigs: GenericStorageQuery<
|
|
1877
|
-
Rv,
|
|
1878
1844
|
(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
|
|
1879
1845
|
[AccountId32, FixedBytes<32>]
|
|
1880
1846
|
>;
|
|
@@ -1882,7 +1848,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1882
1848
|
/**
|
|
1883
1849
|
* Generic pallet storage query
|
|
1884
1850
|
**/
|
|
1885
|
-
[storage: string]: GenericStorageQuery
|
|
1851
|
+
[storage: string]: GenericStorageQuery;
|
|
1886
1852
|
};
|
|
1887
1853
|
/**
|
|
1888
1854
|
* Pallet `ElectionProviderMultiPhase`'s storage queries
|
|
@@ -1898,14 +1864,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1898
1864
|
*
|
|
1899
1865
|
* @param {Callback<number> =} callback
|
|
1900
1866
|
**/
|
|
1901
|
-
round: GenericStorageQuery<
|
|
1867
|
+
round: GenericStorageQuery<() => number>;
|
|
1902
1868
|
|
|
1903
1869
|
/**
|
|
1904
1870
|
* Current phase.
|
|
1905
1871
|
*
|
|
1906
1872
|
* @param {Callback<PalletElectionProviderMultiPhasePhase> =} callback
|
|
1907
1873
|
**/
|
|
1908
|
-
currentPhase: GenericStorageQuery<
|
|
1874
|
+
currentPhase: GenericStorageQuery<() => PalletElectionProviderMultiPhasePhase>;
|
|
1909
1875
|
|
|
1910
1876
|
/**
|
|
1911
1877
|
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
|
@@ -1914,7 +1880,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1914
1880
|
*
|
|
1915
1881
|
* @param {Callback<PalletElectionProviderMultiPhaseReadySolution | undefined> =} callback
|
|
1916
1882
|
**/
|
|
1917
|
-
queuedSolution: GenericStorageQuery<
|
|
1883
|
+
queuedSolution: GenericStorageQuery<() => PalletElectionProviderMultiPhaseReadySolution | undefined>;
|
|
1918
1884
|
|
|
1919
1885
|
/**
|
|
1920
1886
|
* Snapshot data of the round.
|
|
@@ -1924,7 +1890,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1924
1890
|
*
|
|
1925
1891
|
* @param {Callback<PalletElectionProviderMultiPhaseRoundSnapshot | undefined> =} callback
|
|
1926
1892
|
**/
|
|
1927
|
-
snapshot: GenericStorageQuery<
|
|
1893
|
+
snapshot: GenericStorageQuery<() => PalletElectionProviderMultiPhaseRoundSnapshot | undefined>;
|
|
1928
1894
|
|
|
1929
1895
|
/**
|
|
1930
1896
|
* Desired number of targets to elect for this round.
|
|
@@ -1934,7 +1900,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1934
1900
|
*
|
|
1935
1901
|
* @param {Callback<number | undefined> =} callback
|
|
1936
1902
|
**/
|
|
1937
|
-
desiredTargets: GenericStorageQuery<
|
|
1903
|
+
desiredTargets: GenericStorageQuery<() => number | undefined>;
|
|
1938
1904
|
|
|
1939
1905
|
/**
|
|
1940
1906
|
* The metadata of the [`RoundSnapshot`]
|
|
@@ -1944,7 +1910,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1944
1910
|
*
|
|
1945
1911
|
* @param {Callback<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined> =} callback
|
|
1946
1912
|
**/
|
|
1947
|
-
snapshotMetadata: GenericStorageQuery<
|
|
1913
|
+
snapshotMetadata: GenericStorageQuery<() => PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined>;
|
|
1948
1914
|
|
|
1949
1915
|
/**
|
|
1950
1916
|
* The next index to be assigned to an incoming signed submission.
|
|
@@ -1959,7 +1925,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1959
1925
|
*
|
|
1960
1926
|
* @param {Callback<number> =} callback
|
|
1961
1927
|
**/
|
|
1962
|
-
signedSubmissionNextIndex: GenericStorageQuery<
|
|
1928
|
+
signedSubmissionNextIndex: GenericStorageQuery<() => number>;
|
|
1963
1929
|
|
|
1964
1930
|
/**
|
|
1965
1931
|
* A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
|
|
@@ -1971,7 +1937,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1971
1937
|
*
|
|
1972
1938
|
* @param {Callback<Array<[SpNposElectionsElectionScore, number, number]>> =} callback
|
|
1973
1939
|
**/
|
|
1974
|
-
signedSubmissionIndices: GenericStorageQuery<
|
|
1940
|
+
signedSubmissionIndices: GenericStorageQuery<() => Array<[SpNposElectionsElectionScore, number, number]>>;
|
|
1975
1941
|
|
|
1976
1942
|
/**
|
|
1977
1943
|
* Unchecked, signed solutions.
|
|
@@ -1986,7 +1952,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1986
1952
|
* @param {Callback<PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined> =} callback
|
|
1987
1953
|
**/
|
|
1988
1954
|
signedSubmissionsMap: GenericStorageQuery<
|
|
1989
|
-
Rv,
|
|
1990
1955
|
(arg: number) => PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined,
|
|
1991
1956
|
number
|
|
1992
1957
|
>;
|
|
@@ -1999,12 +1964,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1999
1964
|
*
|
|
2000
1965
|
* @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
|
|
2001
1966
|
**/
|
|
2002
|
-
minimumUntrustedScore: GenericStorageQuery<
|
|
1967
|
+
minimumUntrustedScore: GenericStorageQuery<() => SpNposElectionsElectionScore | undefined>;
|
|
2003
1968
|
|
|
2004
1969
|
/**
|
|
2005
1970
|
* Generic pallet storage query
|
|
2006
1971
|
**/
|
|
2007
|
-
[storage: string]: GenericStorageQuery
|
|
1972
|
+
[storage: string]: GenericStorageQuery;
|
|
2008
1973
|
};
|
|
2009
1974
|
/**
|
|
2010
1975
|
* Pallet `Offences`'s storage queries
|
|
@@ -2016,7 +1981,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2016
1981
|
* @param {H256} arg
|
|
2017
1982
|
* @param {Callback<SpStakingOffenceOffenceDetails | undefined> =} callback
|
|
2018
1983
|
**/
|
|
2019
|
-
reports: GenericStorageQuery<
|
|
1984
|
+
reports: GenericStorageQuery<(arg: H256) => SpStakingOffenceOffenceDetails | undefined, H256>;
|
|
2020
1985
|
|
|
2021
1986
|
/**
|
|
2022
1987
|
* A vector of reports of the same kind that happened at the same time slot.
|
|
@@ -2025,7 +1990,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2025
1990
|
* @param {Callback<Array<H256>> =} callback
|
|
2026
1991
|
**/
|
|
2027
1992
|
concurrentReportsIndex: GenericStorageQuery<
|
|
2028
|
-
Rv,
|
|
2029
1993
|
(arg: [FixedBytes<16>, BytesLike]) => Array<H256>,
|
|
2030
1994
|
[FixedBytes<16>, Bytes]
|
|
2031
1995
|
>;
|
|
@@ -2033,7 +1997,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2033
1997
|
/**
|
|
2034
1998
|
* Generic pallet storage query
|
|
2035
1999
|
**/
|
|
2036
|
-
[storage: string]: GenericStorageQuery
|
|
2000
|
+
[storage: string]: GenericStorageQuery;
|
|
2037
2001
|
};
|
|
2038
2002
|
/**
|
|
2039
2003
|
* Pallet `Bounties`'s storage queries
|
|
@@ -2044,7 +2008,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2044
2008
|
*
|
|
2045
2009
|
* @param {Callback<number> =} callback
|
|
2046
2010
|
**/
|
|
2047
|
-
bountyCount: GenericStorageQuery<
|
|
2011
|
+
bountyCount: GenericStorageQuery<() => number>;
|
|
2048
2012
|
|
|
2049
2013
|
/**
|
|
2050
2014
|
* Bounties that have been made.
|
|
@@ -2052,7 +2016,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2052
2016
|
* @param {number} arg
|
|
2053
2017
|
* @param {Callback<PalletBountiesBounty | undefined> =} callback
|
|
2054
2018
|
**/
|
|
2055
|
-
bounties: GenericStorageQuery<
|
|
2019
|
+
bounties: GenericStorageQuery<(arg: number) => PalletBountiesBounty | undefined, number>;
|
|
2056
2020
|
|
|
2057
2021
|
/**
|
|
2058
2022
|
* The description of each bounty.
|
|
@@ -2060,19 +2024,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2060
2024
|
* @param {number} arg
|
|
2061
2025
|
* @param {Callback<Bytes | undefined> =} callback
|
|
2062
2026
|
**/
|
|
2063
|
-
bountyDescriptions: GenericStorageQuery<
|
|
2027
|
+
bountyDescriptions: GenericStorageQuery<(arg: number) => Bytes | undefined, number>;
|
|
2064
2028
|
|
|
2065
2029
|
/**
|
|
2066
2030
|
* Bounty indices that have been approved but not yet funded.
|
|
2067
2031
|
*
|
|
2068
2032
|
* @param {Callback<Array<number>> =} callback
|
|
2069
2033
|
**/
|
|
2070
|
-
bountyApprovals: GenericStorageQuery<
|
|
2034
|
+
bountyApprovals: GenericStorageQuery<() => Array<number>>;
|
|
2071
2035
|
|
|
2072
2036
|
/**
|
|
2073
2037
|
* Generic pallet storage query
|
|
2074
2038
|
**/
|
|
2075
|
-
[storage: string]: GenericStorageQuery
|
|
2039
|
+
[storage: string]: GenericStorageQuery;
|
|
2076
2040
|
};
|
|
2077
2041
|
/**
|
|
2078
2042
|
* Pallet `ChildBounties`'s storage queries
|
|
@@ -2083,7 +2047,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2083
2047
|
*
|
|
2084
2048
|
* @param {Callback<number> =} callback
|
|
2085
2049
|
**/
|
|
2086
|
-
childBountyCount: GenericStorageQuery<
|
|
2050
|
+
childBountyCount: GenericStorageQuery<() => number>;
|
|
2087
2051
|
|
|
2088
2052
|
/**
|
|
2089
2053
|
* Number of child bounties per parent bounty.
|
|
@@ -2092,7 +2056,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2092
2056
|
* @param {number} arg
|
|
2093
2057
|
* @param {Callback<number> =} callback
|
|
2094
2058
|
**/
|
|
2095
|
-
parentChildBounties: GenericStorageQuery<
|
|
2059
|
+
parentChildBounties: GenericStorageQuery<(arg: number) => number, number>;
|
|
2096
2060
|
|
|
2097
2061
|
/**
|
|
2098
2062
|
* Child bounties that have been added.
|
|
@@ -2101,7 +2065,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2101
2065
|
* @param {Callback<PalletChildBountiesChildBounty | undefined> =} callback
|
|
2102
2066
|
**/
|
|
2103
2067
|
childBounties: GenericStorageQuery<
|
|
2104
|
-
Rv,
|
|
2105
2068
|
(arg: [number, number]) => PalletChildBountiesChildBounty | undefined,
|
|
2106
2069
|
[number, number]
|
|
2107
2070
|
>;
|
|
@@ -2112,7 +2075,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2112
2075
|
* @param {number} arg
|
|
2113
2076
|
* @param {Callback<Bytes | undefined> =} callback
|
|
2114
2077
|
**/
|
|
2115
|
-
childBountyDescriptions: GenericStorageQuery<
|
|
2078
|
+
childBountyDescriptions: GenericStorageQuery<(arg: number) => Bytes | undefined, number>;
|
|
2116
2079
|
|
|
2117
2080
|
/**
|
|
2118
2081
|
* The cumulative child-bounty curator fee for each parent bounty.
|
|
@@ -2120,12 +2083,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2120
2083
|
* @param {number} arg
|
|
2121
2084
|
* @param {Callback<bigint> =} callback
|
|
2122
2085
|
**/
|
|
2123
|
-
childrenCuratorFees: GenericStorageQuery<
|
|
2086
|
+
childrenCuratorFees: GenericStorageQuery<(arg: number) => bigint, number>;
|
|
2124
2087
|
|
|
2125
2088
|
/**
|
|
2126
2089
|
* Generic pallet storage query
|
|
2127
2090
|
**/
|
|
2128
|
-
[storage: string]: GenericStorageQuery
|
|
2091
|
+
[storage: string]: GenericStorageQuery;
|
|
2129
2092
|
};
|
|
2130
2093
|
/**
|
|
2131
2094
|
* Pallet `NominationPools`'s storage queries
|
|
@@ -2140,14 +2103,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2140
2103
|
*
|
|
2141
2104
|
* @param {Callback<bigint> =} callback
|
|
2142
2105
|
**/
|
|
2143
|
-
totalValueLocked: GenericStorageQuery<
|
|
2106
|
+
totalValueLocked: GenericStorageQuery<() => bigint>;
|
|
2144
2107
|
|
|
2145
2108
|
/**
|
|
2146
2109
|
* Minimum amount to bond to join a pool.
|
|
2147
2110
|
*
|
|
2148
2111
|
* @param {Callback<bigint> =} callback
|
|
2149
2112
|
**/
|
|
2150
|
-
minJoinBond: GenericStorageQuery<
|
|
2113
|
+
minJoinBond: GenericStorageQuery<() => bigint>;
|
|
2151
2114
|
|
|
2152
2115
|
/**
|
|
2153
2116
|
* Minimum bond required to create a pool.
|
|
@@ -2160,7 +2123,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2160
2123
|
*
|
|
2161
2124
|
* @param {Callback<bigint> =} callback
|
|
2162
2125
|
**/
|
|
2163
|
-
minCreateBond: GenericStorageQuery<
|
|
2126
|
+
minCreateBond: GenericStorageQuery<() => bigint>;
|
|
2164
2127
|
|
|
2165
2128
|
/**
|
|
2166
2129
|
* Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
|
|
@@ -2168,7 +2131,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2168
2131
|
*
|
|
2169
2132
|
* @param {Callback<number | undefined> =} callback
|
|
2170
2133
|
**/
|
|
2171
|
-
maxPools: GenericStorageQuery<
|
|
2134
|
+
maxPools: GenericStorageQuery<() => number | undefined>;
|
|
2172
2135
|
|
|
2173
2136
|
/**
|
|
2174
2137
|
* Maximum number of members that can exist in the system. If `None`, then the count
|
|
@@ -2176,7 +2139,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2176
2139
|
*
|
|
2177
2140
|
* @param {Callback<number | undefined> =} callback
|
|
2178
2141
|
**/
|
|
2179
|
-
maxPoolMembers: GenericStorageQuery<
|
|
2142
|
+
maxPoolMembers: GenericStorageQuery<() => number | undefined>;
|
|
2180
2143
|
|
|
2181
2144
|
/**
|
|
2182
2145
|
* Maximum number of members that may belong to pool. If `None`, then the count of
|
|
@@ -2184,7 +2147,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2184
2147
|
*
|
|
2185
2148
|
* @param {Callback<number | undefined> =} callback
|
|
2186
2149
|
**/
|
|
2187
|
-
maxPoolMembersPerPool: GenericStorageQuery<
|
|
2150
|
+
maxPoolMembersPerPool: GenericStorageQuery<() => number | undefined>;
|
|
2188
2151
|
|
|
2189
2152
|
/**
|
|
2190
2153
|
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
|
@@ -2193,7 +2156,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2193
2156
|
*
|
|
2194
2157
|
* @param {Callback<Perbill | undefined> =} callback
|
|
2195
2158
|
**/
|
|
2196
|
-
globalMaxCommission: GenericStorageQuery<
|
|
2159
|
+
globalMaxCommission: GenericStorageQuery<() => Perbill | undefined>;
|
|
2197
2160
|
|
|
2198
2161
|
/**
|
|
2199
2162
|
* Active members.
|
|
@@ -2204,7 +2167,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2204
2167
|
* @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
|
|
2205
2168
|
**/
|
|
2206
2169
|
poolMembers: GenericStorageQuery<
|
|
2207
|
-
Rv,
|
|
2208
2170
|
(arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined,
|
|
2209
2171
|
AccountId32
|
|
2210
2172
|
>;
|
|
@@ -2214,7 +2176,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2214
2176
|
*
|
|
2215
2177
|
* @param {Callback<number> =} callback
|
|
2216
2178
|
**/
|
|
2217
|
-
counterForPoolMembers: GenericStorageQuery<
|
|
2179
|
+
counterForPoolMembers: GenericStorageQuery<() => number>;
|
|
2218
2180
|
|
|
2219
2181
|
/**
|
|
2220
2182
|
* Storage for bonded pools.
|
|
@@ -2222,14 +2184,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2222
2184
|
* @param {number} arg
|
|
2223
2185
|
* @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
|
|
2224
2186
|
**/
|
|
2225
|
-
bondedPools: GenericStorageQuery<
|
|
2187
|
+
bondedPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsBondedPoolInner | undefined, number>;
|
|
2226
2188
|
|
|
2227
2189
|
/**
|
|
2228
2190
|
* Counter for the related counted storage map
|
|
2229
2191
|
*
|
|
2230
2192
|
* @param {Callback<number> =} callback
|
|
2231
2193
|
**/
|
|
2232
|
-
counterForBondedPools: GenericStorageQuery<
|
|
2194
|
+
counterForBondedPools: GenericStorageQuery<() => number>;
|
|
2233
2195
|
|
|
2234
2196
|
/**
|
|
2235
2197
|
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
|
@@ -2238,14 +2200,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2238
2200
|
* @param {number} arg
|
|
2239
2201
|
* @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
|
|
2240
2202
|
**/
|
|
2241
|
-
rewardPools: GenericStorageQuery<
|
|
2203
|
+
rewardPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsRewardPool | undefined, number>;
|
|
2242
2204
|
|
|
2243
2205
|
/**
|
|
2244
2206
|
* Counter for the related counted storage map
|
|
2245
2207
|
*
|
|
2246
2208
|
* @param {Callback<number> =} callback
|
|
2247
2209
|
**/
|
|
2248
|
-
counterForRewardPools: GenericStorageQuery<
|
|
2210
|
+
counterForRewardPools: GenericStorageQuery<() => number>;
|
|
2249
2211
|
|
|
2250
2212
|
/**
|
|
2251
2213
|
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
|
@@ -2254,14 +2216,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2254
2216
|
* @param {number} arg
|
|
2255
2217
|
* @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
|
|
2256
2218
|
**/
|
|
2257
|
-
subPoolsStorage: GenericStorageQuery<
|
|
2219
|
+
subPoolsStorage: GenericStorageQuery<(arg: number) => PalletNominationPoolsSubPools | undefined, number>;
|
|
2258
2220
|
|
|
2259
2221
|
/**
|
|
2260
2222
|
* Counter for the related counted storage map
|
|
2261
2223
|
*
|
|
2262
2224
|
* @param {Callback<number> =} callback
|
|
2263
2225
|
**/
|
|
2264
|
-
counterForSubPoolsStorage: GenericStorageQuery<
|
|
2226
|
+
counterForSubPoolsStorage: GenericStorageQuery<() => number>;
|
|
2265
2227
|
|
|
2266
2228
|
/**
|
|
2267
2229
|
* Metadata for the pool.
|
|
@@ -2269,21 +2231,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2269
2231
|
* @param {number} arg
|
|
2270
2232
|
* @param {Callback<Bytes> =} callback
|
|
2271
2233
|
**/
|
|
2272
|
-
metadata: GenericStorageQuery<
|
|
2234
|
+
metadata: GenericStorageQuery<(arg: number) => Bytes, number>;
|
|
2273
2235
|
|
|
2274
2236
|
/**
|
|
2275
2237
|
* Counter for the related counted storage map
|
|
2276
2238
|
*
|
|
2277
2239
|
* @param {Callback<number> =} callback
|
|
2278
2240
|
**/
|
|
2279
|
-
counterForMetadata: GenericStorageQuery<
|
|
2241
|
+
counterForMetadata: GenericStorageQuery<() => number>;
|
|
2280
2242
|
|
|
2281
2243
|
/**
|
|
2282
2244
|
* Ever increasing number of all pools created so far.
|
|
2283
2245
|
*
|
|
2284
2246
|
* @param {Callback<number> =} callback
|
|
2285
2247
|
**/
|
|
2286
|
-
lastPoolId: GenericStorageQuery<
|
|
2248
|
+
lastPoolId: GenericStorageQuery<() => number>;
|
|
2287
2249
|
|
|
2288
2250
|
/**
|
|
2289
2251
|
* A reverse lookup from the pool's account id to its id.
|
|
@@ -2294,14 +2256,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2294
2256
|
* @param {AccountId32Like} arg
|
|
2295
2257
|
* @param {Callback<number | undefined> =} callback
|
|
2296
2258
|
**/
|
|
2297
|
-
reversePoolIdLookup: GenericStorageQuery<
|
|
2259
|
+
reversePoolIdLookup: GenericStorageQuery<(arg: AccountId32Like) => number | undefined, AccountId32>;
|
|
2298
2260
|
|
|
2299
2261
|
/**
|
|
2300
2262
|
* Counter for the related counted storage map
|
|
2301
2263
|
*
|
|
2302
2264
|
* @param {Callback<number> =} callback
|
|
2303
2265
|
**/
|
|
2304
|
-
counterForReversePoolIdLookup: GenericStorageQuery<
|
|
2266
|
+
counterForReversePoolIdLookup: GenericStorageQuery<() => number>;
|
|
2305
2267
|
|
|
2306
2268
|
/**
|
|
2307
2269
|
* Map from a pool member account to their opted claim permission.
|
|
@@ -2309,16 +2271,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2309
2271
|
* @param {AccountId32Like} arg
|
|
2310
2272
|
* @param {Callback<PalletNominationPoolsClaimPermission> =} callback
|
|
2311
2273
|
**/
|
|
2312
|
-
claimPermissions: GenericStorageQuery<
|
|
2313
|
-
Rv,
|
|
2314
|
-
(arg: AccountId32Like) => PalletNominationPoolsClaimPermission,
|
|
2315
|
-
AccountId32
|
|
2316
|
-
>;
|
|
2274
|
+
claimPermissions: GenericStorageQuery<(arg: AccountId32Like) => PalletNominationPoolsClaimPermission, AccountId32>;
|
|
2317
2275
|
|
|
2318
2276
|
/**
|
|
2319
2277
|
* Generic pallet storage query
|
|
2320
2278
|
**/
|
|
2321
|
-
[storage: string]: GenericStorageQuery
|
|
2279
|
+
[storage: string]: GenericStorageQuery;
|
|
2322
2280
|
};
|
|
2323
2281
|
/**
|
|
2324
2282
|
* Pallet `GearProgram`'s storage queries
|
|
@@ -2330,7 +2288,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2330
2288
|
* @param {Callback<GearCoreCodeInstrumentedInstrumentedCode | undefined> =} callback
|
|
2331
2289
|
**/
|
|
2332
2290
|
instrumentedCodeStorage: GenericStorageQuery<
|
|
2333
|
-
Rv,
|
|
2334
2291
|
(arg: GprimitivesCodeId) => GearCoreCodeInstrumentedInstrumentedCode | undefined,
|
|
2335
2292
|
GprimitivesCodeId
|
|
2336
2293
|
>;
|
|
@@ -2340,7 +2297,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2340
2297
|
* @param {GprimitivesCodeId} arg
|
|
2341
2298
|
* @param {Callback<Bytes | undefined> =} callback
|
|
2342
2299
|
**/
|
|
2343
|
-
originalCodeStorage: GenericStorageQuery<
|
|
2300
|
+
originalCodeStorage: GenericStorageQuery<(arg: GprimitivesCodeId) => Bytes | undefined, GprimitivesCodeId>;
|
|
2344
2301
|
|
|
2345
2302
|
/**
|
|
2346
2303
|
*
|
|
@@ -2348,7 +2305,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2348
2305
|
* @param {Callback<GearCoreCodeMetadataCodeMetadata | undefined> =} callback
|
|
2349
2306
|
**/
|
|
2350
2307
|
codeMetadataStorage: GenericStorageQuery<
|
|
2351
|
-
Rv,
|
|
2352
2308
|
(arg: GprimitivesCodeId) => GearCoreCodeMetadataCodeMetadata | undefined,
|
|
2353
2309
|
GprimitivesCodeId
|
|
2354
2310
|
>;
|
|
@@ -2359,7 +2315,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2359
2315
|
* @param {Callback<NumeratedTreeIntervalsTree | undefined> =} callback
|
|
2360
2316
|
**/
|
|
2361
2317
|
allocationsStorage: GenericStorageQuery<
|
|
2362
|
-
Rv,
|
|
2363
2318
|
(arg: GprimitivesActorId) => NumeratedTreeIntervalsTree | undefined,
|
|
2364
2319
|
GprimitivesActorId
|
|
2365
2320
|
>;
|
|
@@ -2369,11 +2324,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2369
2324
|
* @param {GprimitivesActorId} arg
|
|
2370
2325
|
* @param {Callback<GearCoreProgram | undefined> =} callback
|
|
2371
2326
|
**/
|
|
2372
|
-
programStorage: GenericStorageQuery<
|
|
2373
|
-
Rv,
|
|
2374
|
-
(arg: GprimitivesActorId) => GearCoreProgram | undefined,
|
|
2375
|
-
GprimitivesActorId
|
|
2376
|
-
>;
|
|
2327
|
+
programStorage: GenericStorageQuery<(arg: GprimitivesActorId) => GearCoreProgram | undefined, GprimitivesActorId>;
|
|
2377
2328
|
|
|
2378
2329
|
/**
|
|
2379
2330
|
*
|
|
@@ -2381,7 +2332,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2381
2332
|
* @param {Callback<GearCoreMemoryPageBuf | undefined> =} callback
|
|
2382
2333
|
**/
|
|
2383
2334
|
memoryPages: GenericStorageQuery<
|
|
2384
|
-
Rv,
|
|
2385
2335
|
(arg: [GprimitivesActorId, GearCoreProgramMemoryInfix, GearCorePagesPage]) => GearCoreMemoryPageBuf | undefined,
|
|
2386
2336
|
[GprimitivesActorId, GearCoreProgramMemoryInfix, GearCorePagesPage]
|
|
2387
2337
|
>;
|
|
@@ -2389,7 +2339,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2389
2339
|
/**
|
|
2390
2340
|
* Generic pallet storage query
|
|
2391
2341
|
**/
|
|
2392
|
-
[storage: string]: GenericStorageQuery
|
|
2342
|
+
[storage: string]: GenericStorageQuery;
|
|
2393
2343
|
};
|
|
2394
2344
|
/**
|
|
2395
2345
|
* Pallet `GearMessenger`'s storage queries
|
|
@@ -2399,7 +2349,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2399
2349
|
*
|
|
2400
2350
|
* @param {Callback<number | undefined> =} callback
|
|
2401
2351
|
**/
|
|
2402
|
-
dequeued: GenericStorageQuery<
|
|
2352
|
+
dequeued: GenericStorageQuery<() => number | undefined>;
|
|
2403
2353
|
|
|
2404
2354
|
/**
|
|
2405
2355
|
*
|
|
@@ -2407,7 +2357,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2407
2357
|
* @param {Callback<GearCommonStorageComplicatedDequeueLinkedNode | undefined> =} callback
|
|
2408
2358
|
**/
|
|
2409
2359
|
dispatches: GenericStorageQuery<
|
|
2410
|
-
Rv,
|
|
2411
2360
|
(arg: GprimitivesMessageId) => GearCommonStorageComplicatedDequeueLinkedNode | undefined,
|
|
2412
2361
|
GprimitivesMessageId
|
|
2413
2362
|
>;
|
|
@@ -2417,13 +2366,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2417
2366
|
*
|
|
2418
2367
|
* @param {Callback<number> =} callback
|
|
2419
2368
|
**/
|
|
2420
|
-
counterForDispatches: GenericStorageQuery<
|
|
2369
|
+
counterForDispatches: GenericStorageQuery<() => number>;
|
|
2421
2370
|
|
|
2422
2371
|
/**
|
|
2423
2372
|
*
|
|
2424
2373
|
* @param {Callback<GprimitivesMessageId | undefined> =} callback
|
|
2425
2374
|
**/
|
|
2426
|
-
head: GenericStorageQuery<
|
|
2375
|
+
head: GenericStorageQuery<() => GprimitivesMessageId | undefined>;
|
|
2427
2376
|
|
|
2428
2377
|
/**
|
|
2429
2378
|
*
|
|
@@ -2431,7 +2380,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2431
2380
|
* @param {Callback<[GearCoreMessageUserUserStoredMessage, GearCommonStoragePrimitivesInterval] | undefined> =} callback
|
|
2432
2381
|
**/
|
|
2433
2382
|
mailbox: GenericStorageQuery<
|
|
2434
|
-
Rv,
|
|
2435
2383
|
(
|
|
2436
2384
|
arg: [AccountId32Like, GprimitivesMessageId],
|
|
2437
2385
|
) => [GearCoreMessageUserUserStoredMessage, GearCommonStoragePrimitivesInterval] | undefined,
|
|
@@ -2442,19 +2390,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2442
2390
|
*
|
|
2443
2391
|
* @param {Callback<boolean | undefined> =} callback
|
|
2444
2392
|
**/
|
|
2445
|
-
queueProcessing: GenericStorageQuery<
|
|
2393
|
+
queueProcessing: GenericStorageQuery<() => boolean | undefined>;
|
|
2446
2394
|
|
|
2447
2395
|
/**
|
|
2448
2396
|
*
|
|
2449
2397
|
* @param {Callback<number | undefined> =} callback
|
|
2450
2398
|
**/
|
|
2451
|
-
sent: GenericStorageQuery<
|
|
2399
|
+
sent: GenericStorageQuery<() => number | undefined>;
|
|
2452
2400
|
|
|
2453
2401
|
/**
|
|
2454
2402
|
*
|
|
2455
2403
|
* @param {Callback<GprimitivesMessageId | undefined> =} callback
|
|
2456
2404
|
**/
|
|
2457
|
-
tail: GenericStorageQuery<
|
|
2405
|
+
tail: GenericStorageQuery<() => GprimitivesMessageId | undefined>;
|
|
2458
2406
|
|
|
2459
2407
|
/**
|
|
2460
2408
|
*
|
|
@@ -2462,7 +2410,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2462
2410
|
* @param {Callback<[GearCoreMessageStoredStoredDispatch, GearCommonStoragePrimitivesInterval] | undefined> =} callback
|
|
2463
2411
|
**/
|
|
2464
2412
|
waitlist: GenericStorageQuery<
|
|
2465
|
-
Rv,
|
|
2466
2413
|
(
|
|
2467
2414
|
arg: [GprimitivesActorId, GprimitivesMessageId],
|
|
2468
2415
|
) => [GearCoreMessageStoredStoredDispatch, GearCommonStoragePrimitivesInterval] | undefined,
|
|
@@ -2475,7 +2422,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2475
2422
|
* @param {Callback<[GearCoreMessageStoredStoredDelayedDispatch, GearCommonStoragePrimitivesInterval] | undefined> =} callback
|
|
2476
2423
|
**/
|
|
2477
2424
|
dispatchStash: GenericStorageQuery<
|
|
2478
|
-
Rv,
|
|
2479
2425
|
(
|
|
2480
2426
|
arg: GprimitivesMessageId,
|
|
2481
2427
|
) => [GearCoreMessageStoredStoredDelayedDispatch, GearCommonStoragePrimitivesInterval] | undefined,
|
|
@@ -2485,7 +2431,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2485
2431
|
/**
|
|
2486
2432
|
* Generic pallet storage query
|
|
2487
2433
|
**/
|
|
2488
|
-
[storage: string]: GenericStorageQuery
|
|
2434
|
+
[storage: string]: GenericStorageQuery;
|
|
2489
2435
|
};
|
|
2490
2436
|
/**
|
|
2491
2437
|
* Pallet `GearScheduler`'s storage queries
|
|
@@ -2495,7 +2441,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2495
2441
|
*
|
|
2496
2442
|
* @param {Callback<number | undefined> =} callback
|
|
2497
2443
|
**/
|
|
2498
|
-
firstIncompleteTasksBlock: GenericStorageQuery<
|
|
2444
|
+
firstIncompleteTasksBlock: GenericStorageQuery<() => number | undefined>;
|
|
2499
2445
|
|
|
2500
2446
|
/**
|
|
2501
2447
|
*
|
|
@@ -2503,7 +2449,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2503
2449
|
* @param {Callback<[] | undefined> =} callback
|
|
2504
2450
|
**/
|
|
2505
2451
|
taskPool: GenericStorageQuery<
|
|
2506
|
-
Rv,
|
|
2507
2452
|
(arg: [number, GearCoreTasksScheduledTask]) => [] | undefined,
|
|
2508
2453
|
[number, GearCoreTasksScheduledTask]
|
|
2509
2454
|
>;
|
|
@@ -2511,7 +2456,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2511
2456
|
/**
|
|
2512
2457
|
* Generic pallet storage query
|
|
2513
2458
|
**/
|
|
2514
|
-
[storage: string]: GenericStorageQuery
|
|
2459
|
+
[storage: string]: GenericStorageQuery;
|
|
2515
2460
|
};
|
|
2516
2461
|
/**
|
|
2517
2462
|
* Pallet `GearGas`'s storage queries
|
|
@@ -2521,7 +2466,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2521
2466
|
*
|
|
2522
2467
|
* @param {Callback<bigint | undefined> =} callback
|
|
2523
2468
|
**/
|
|
2524
|
-
totalIssuance: GenericStorageQuery<
|
|
2469
|
+
totalIssuance: GenericStorageQuery<() => bigint | undefined>;
|
|
2525
2470
|
|
|
2526
2471
|
/**
|
|
2527
2472
|
*
|
|
@@ -2529,7 +2474,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2529
2474
|
* @param {Callback<GearCommonGasProviderNodeGasNode | undefined> =} callback
|
|
2530
2475
|
**/
|
|
2531
2476
|
gasNodes: GenericStorageQuery<
|
|
2532
|
-
Rv,
|
|
2533
2477
|
(arg: GearCommonGasProviderNodeGasNodeId) => GearCommonGasProviderNodeGasNode | undefined,
|
|
2534
2478
|
GearCommonGasProviderNodeGasNodeId
|
|
2535
2479
|
>;
|
|
@@ -2538,12 +2482,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2538
2482
|
*
|
|
2539
2483
|
* @param {Callback<bigint> =} callback
|
|
2540
2484
|
**/
|
|
2541
|
-
allowance: GenericStorageQuery<
|
|
2485
|
+
allowance: GenericStorageQuery<() => bigint>;
|
|
2542
2486
|
|
|
2543
2487
|
/**
|
|
2544
2488
|
* Generic pallet storage query
|
|
2545
2489
|
**/
|
|
2546
|
-
[storage: string]: GenericStorageQuery
|
|
2490
|
+
[storage: string]: GenericStorageQuery;
|
|
2547
2491
|
};
|
|
2548
2492
|
/**
|
|
2549
2493
|
* Pallet `Gear`'s storage queries
|
|
@@ -2557,7 +2501,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2557
2501
|
*
|
|
2558
2502
|
* @param {Callback<boolean> =} callback
|
|
2559
2503
|
**/
|
|
2560
|
-
executeInherent: GenericStorageQuery<
|
|
2504
|
+
executeInherent: GenericStorageQuery<() => boolean>;
|
|
2561
2505
|
|
|
2562
2506
|
/**
|
|
2563
2507
|
* The current block number being processed.
|
|
@@ -2567,7 +2511,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2567
2511
|
*
|
|
2568
2512
|
* @param {Callback<number> =} callback
|
|
2569
2513
|
**/
|
|
2570
|
-
blockNumber: GenericStorageQuery<
|
|
2514
|
+
blockNumber: GenericStorageQuery<() => number>;
|
|
2571
2515
|
|
|
2572
2516
|
/**
|
|
2573
2517
|
* A guard to prohibit all but the first execution of `pallet_gear::run()` call in a block.
|
|
@@ -2578,12 +2522,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2578
2522
|
*
|
|
2579
2523
|
* @param {Callback<[] | undefined> =} callback
|
|
2580
2524
|
**/
|
|
2581
|
-
gearRunInBlock: GenericStorageQuery<
|
|
2525
|
+
gearRunInBlock: GenericStorageQuery<() => [] | undefined>;
|
|
2582
2526
|
|
|
2583
2527
|
/**
|
|
2584
2528
|
* Generic pallet storage query
|
|
2585
2529
|
**/
|
|
2586
|
-
[storage: string]: GenericStorageQuery
|
|
2530
|
+
[storage: string]: GenericStorageQuery;
|
|
2587
2531
|
};
|
|
2588
2532
|
/**
|
|
2589
2533
|
* Pallet `StakingRewards`'s storage queries
|
|
@@ -2594,14 +2538,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2594
2538
|
*
|
|
2595
2539
|
* @param {Callback<Perquintill> =} callback
|
|
2596
2540
|
**/
|
|
2597
|
-
targetInflation: GenericStorageQuery<
|
|
2541
|
+
targetInflation: GenericStorageQuery<() => Perquintill>;
|
|
2598
2542
|
|
|
2599
2543
|
/**
|
|
2600
2544
|
* Ideal staking ratio
|
|
2601
2545
|
*
|
|
2602
2546
|
* @param {Callback<Perquintill> =} callback
|
|
2603
2547
|
**/
|
|
2604
|
-
idealStakingRatio: GenericStorageQuery<
|
|
2548
|
+
idealStakingRatio: GenericStorageQuery<() => Perquintill>;
|
|
2605
2549
|
|
|
2606
2550
|
/**
|
|
2607
2551
|
* The current share of issued tokens that cannot be staked (e.g. being vested)
|
|
@@ -2610,7 +2554,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2610
2554
|
*
|
|
2611
2555
|
* @param {Callback<Perquintill> =} callback
|
|
2612
2556
|
**/
|
|
2613
|
-
nonStakeableShare: GenericStorageQuery<
|
|
2557
|
+
nonStakeableShare: GenericStorageQuery<() => Perquintill>;
|
|
2614
2558
|
|
|
2615
2559
|
/**
|
|
2616
2560
|
* List of accounts whose locked balance (due to incomplete vesting) should be excluded from
|
|
@@ -2619,12 +2563,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2619
2563
|
*
|
|
2620
2564
|
* @param {Callback<Array<AccountId32>> =} callback
|
|
2621
2565
|
**/
|
|
2622
|
-
filteredAccounts: GenericStorageQuery<
|
|
2566
|
+
filteredAccounts: GenericStorageQuery<() => Array<AccountId32>>;
|
|
2623
2567
|
|
|
2624
2568
|
/**
|
|
2625
2569
|
* Generic pallet storage query
|
|
2626
2570
|
**/
|
|
2627
|
-
[storage: string]: GenericStorageQuery
|
|
2571
|
+
[storage: string]: GenericStorageQuery;
|
|
2628
2572
|
};
|
|
2629
2573
|
/**
|
|
2630
2574
|
* Pallet `GearVoucher`'s storage queries
|
|
@@ -2637,7 +2581,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2637
2581
|
*
|
|
2638
2582
|
* @param {Callback<bigint | undefined> =} callback
|
|
2639
2583
|
**/
|
|
2640
|
-
issued: GenericStorageQuery<
|
|
2584
|
+
issued: GenericStorageQuery<() => bigint | undefined>;
|
|
2641
2585
|
|
|
2642
2586
|
/**
|
|
2643
2587
|
* Double map storage containing data of the voucher,
|
|
@@ -2647,7 +2591,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2647
2591
|
* @param {Callback<PalletGearVoucherInternalVoucherInfo | undefined> =} callback
|
|
2648
2592
|
**/
|
|
2649
2593
|
vouchers: GenericStorageQuery<
|
|
2650
|
-
Rv,
|
|
2651
2594
|
(arg: [AccountId32Like, PalletGearVoucherInternalVoucherId]) => PalletGearVoucherInternalVoucherInfo | undefined,
|
|
2652
2595
|
[AccountId32, PalletGearVoucherInternalVoucherId]
|
|
2653
2596
|
>;
|
|
@@ -2655,7 +2598,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2655
2598
|
/**
|
|
2656
2599
|
* Generic pallet storage query
|
|
2657
2600
|
**/
|
|
2658
|
-
[storage: string]: GenericStorageQuery
|
|
2601
|
+
[storage: string]: GenericStorageQuery;
|
|
2659
2602
|
};
|
|
2660
2603
|
/**
|
|
2661
2604
|
* Pallet `GearBank`'s storage queries
|
|
@@ -2666,37 +2609,37 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2666
2609
|
* @param {AccountId32Like} arg
|
|
2667
2610
|
* @param {Callback<PalletGearBankBankAccount | undefined> =} callback
|
|
2668
2611
|
**/
|
|
2669
|
-
bank: GenericStorageQuery<
|
|
2612
|
+
bank: GenericStorageQuery<(arg: AccountId32Like) => PalletGearBankBankAccount | undefined, AccountId32>;
|
|
2670
2613
|
|
|
2671
2614
|
/**
|
|
2672
2615
|
*
|
|
2673
2616
|
* @param {Callback<AccountId32> =} callback
|
|
2674
2617
|
**/
|
|
2675
|
-
bankAddress: GenericStorageQuery<
|
|
2618
|
+
bankAddress: GenericStorageQuery<() => AccountId32>;
|
|
2676
2619
|
|
|
2677
2620
|
/**
|
|
2678
2621
|
*
|
|
2679
2622
|
* @param {Callback<bigint> =} callback
|
|
2680
2623
|
**/
|
|
2681
|
-
unusedValue: GenericStorageQuery<
|
|
2624
|
+
unusedValue: GenericStorageQuery<() => bigint>;
|
|
2682
2625
|
|
|
2683
2626
|
/**
|
|
2684
2627
|
*
|
|
2685
2628
|
* @param {AccountId32Like} arg
|
|
2686
2629
|
* @param {Callback<bigint | undefined> =} callback
|
|
2687
2630
|
**/
|
|
2688
|
-
onFinalizeTransfers: GenericStorageQuery<
|
|
2631
|
+
onFinalizeTransfers: GenericStorageQuery<(arg: AccountId32Like) => bigint | undefined, AccountId32>;
|
|
2689
2632
|
|
|
2690
2633
|
/**
|
|
2691
2634
|
*
|
|
2692
2635
|
* @param {Callback<bigint> =} callback
|
|
2693
2636
|
**/
|
|
2694
|
-
onFinalizeValue: GenericStorageQuery<
|
|
2637
|
+
onFinalizeValue: GenericStorageQuery<() => bigint>;
|
|
2695
2638
|
|
|
2696
2639
|
/**
|
|
2697
2640
|
* Generic pallet storage query
|
|
2698
2641
|
**/
|
|
2699
|
-
[storage: string]: GenericStorageQuery
|
|
2642
|
+
[storage: string]: GenericStorageQuery;
|
|
2700
2643
|
};
|
|
2701
2644
|
/**
|
|
2702
2645
|
* Pallet `GearEthBridge`'s storage queries
|
|
@@ -2709,7 +2652,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2709
2652
|
*
|
|
2710
2653
|
* @param {Callback<boolean> =} callback
|
|
2711
2654
|
**/
|
|
2712
|
-
initialized: GenericStorageQuery<
|
|
2655
|
+
initialized: GenericStorageQuery<() => boolean>;
|
|
2713
2656
|
|
|
2714
2657
|
/**
|
|
2715
2658
|
* Lifecycle storage.
|
|
@@ -2718,7 +2661,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2718
2661
|
*
|
|
2719
2662
|
* @param {Callback<boolean> =} callback
|
|
2720
2663
|
**/
|
|
2721
|
-
paused: GenericStorageQuery<
|
|
2664
|
+
paused: GenericStorageQuery<() => boolean>;
|
|
2722
2665
|
|
|
2723
2666
|
/**
|
|
2724
2667
|
* Primary storage.
|
|
@@ -2730,7 +2673,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2730
2673
|
*
|
|
2731
2674
|
* @param {Callback<H256 | undefined> =} callback
|
|
2732
2675
|
**/
|
|
2733
|
-
authoritySetHash: GenericStorageQuery<
|
|
2676
|
+
authoritySetHash: GenericStorageQuery<() => H256 | undefined>;
|
|
2734
2677
|
|
|
2735
2678
|
/**
|
|
2736
2679
|
* Primary storage.
|
|
@@ -2742,7 +2685,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2742
2685
|
*
|
|
2743
2686
|
* @param {Callback<H256 | undefined> =} callback
|
|
2744
2687
|
**/
|
|
2745
|
-
queueMerkleRoot: GenericStorageQuery<
|
|
2688
|
+
queueMerkleRoot: GenericStorageQuery<() => H256 | undefined>;
|
|
2746
2689
|
|
|
2747
2690
|
/**
|
|
2748
2691
|
* Primary storage.
|
|
@@ -2751,7 +2694,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2751
2694
|
*
|
|
2752
2695
|
* @param {Callback<Array<H256>> =} callback
|
|
2753
2696
|
**/
|
|
2754
|
-
queue: GenericStorageQuery<
|
|
2697
|
+
queue: GenericStorageQuery<() => Array<H256>>;
|
|
2755
2698
|
|
|
2756
2699
|
/**
|
|
2757
2700
|
* Primary storage.
|
|
@@ -2760,7 +2703,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2760
2703
|
*
|
|
2761
2704
|
* @param {Callback<bigint> =} callback
|
|
2762
2705
|
**/
|
|
2763
|
-
queueId: GenericStorageQuery<
|
|
2706
|
+
queueId: GenericStorageQuery<() => bigint>;
|
|
2764
2707
|
|
|
2765
2708
|
/**
|
|
2766
2709
|
* Helper storage.
|
|
@@ -2770,21 +2713,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2770
2713
|
* @param {bigint} arg
|
|
2771
2714
|
* @param {Callback<PalletGearEthBridgeInternalQueueInfo | undefined> =} callback
|
|
2772
2715
|
**/
|
|
2773
|
-
queuesInfo: GenericStorageQuery<
|
|
2774
|
-
|
|
2775
|
-
/**
|
|
2776
|
-
* Operational storage.
|
|
2777
|
-
*
|
|
2778
|
-
* Declares timer of the session changes (`on_new_session` calls),
|
|
2779
|
-
* when `queued_validators` must be stored within the pallet.
|
|
2780
|
-
*
|
|
2781
|
-
* **Invariant**: reducing each time on new session, it equals 0 only
|
|
2782
|
-
* since storing grandpa keys hash until next session change,
|
|
2783
|
-
* when it becomes `SessionPerEra - 1`.
|
|
2784
|
-
*
|
|
2785
|
-
* @param {Callback<number> =} callback
|
|
2786
|
-
**/
|
|
2787
|
-
sessionsTimer: GenericStorageQuery<Rv, () => number>;
|
|
2716
|
+
queuesInfo: GenericStorageQuery<(arg: bigint) => PalletGearEthBridgeInternalQueueInfo | undefined, bigint>;
|
|
2788
2717
|
|
|
2789
2718
|
/**
|
|
2790
2719
|
* Operational storage.
|
|
@@ -2798,7 +2727,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2798
2727
|
*
|
|
2799
2728
|
* @param {Callback<number | undefined> =} callback
|
|
2800
2729
|
**/
|
|
2801
|
-
clearTimer: GenericStorageQuery<
|
|
2730
|
+
clearTimer: GenericStorageQuery<() => number | undefined>;
|
|
2802
2731
|
|
|
2803
2732
|
/**
|
|
2804
2733
|
* Operational storage.
|
|
@@ -2807,7 +2736,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2807
2736
|
*
|
|
2808
2737
|
* @param {Callback<U256> =} callback
|
|
2809
2738
|
**/
|
|
2810
|
-
messageNonce: GenericStorageQuery<
|
|
2739
|
+
messageNonce: GenericStorageQuery<() => U256>;
|
|
2811
2740
|
|
|
2812
2741
|
/**
|
|
2813
2742
|
* Operational storage.
|
|
@@ -2817,7 +2746,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2817
2746
|
*
|
|
2818
2747
|
* @param {Callback<boolean> =} callback
|
|
2819
2748
|
**/
|
|
2820
|
-
queueChanged: GenericStorageQuery<
|
|
2749
|
+
queueChanged: GenericStorageQuery<() => boolean>;
|
|
2821
2750
|
|
|
2822
2751
|
/**
|
|
2823
2752
|
* Operational storage.
|
|
@@ -2827,7 +2756,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2827
2756
|
*
|
|
2828
2757
|
* @param {Callback<number | undefined> =} callback
|
|
2829
2758
|
**/
|
|
2830
|
-
queueOverflowedSince: GenericStorageQuery<
|
|
2759
|
+
queueOverflowedSince: GenericStorageQuery<() => number | undefined>;
|
|
2831
2760
|
|
|
2832
2761
|
/**
|
|
2833
2762
|
* Operational storage.
|
|
@@ -2836,11 +2765,50 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2836
2765
|
*
|
|
2837
2766
|
* @param {Callback<bigint> =} callback
|
|
2838
2767
|
**/
|
|
2839
|
-
transportFee: GenericStorageQuery<
|
|
2768
|
+
transportFee: GenericStorageQuery<() => bigint>;
|
|
2769
|
+
|
|
2770
|
+
/**
|
|
2771
|
+
* Generic pallet storage query
|
|
2772
|
+
**/
|
|
2773
|
+
[storage: string]: GenericStorageQuery;
|
|
2774
|
+
};
|
|
2775
|
+
/**
|
|
2776
|
+
* Pallet `GrandpaSigner`'s storage queries
|
|
2777
|
+
**/
|
|
2778
|
+
grandpaSigner: {
|
|
2779
|
+
/**
|
|
2780
|
+
*
|
|
2781
|
+
* @param {Callback<number> =} callback
|
|
2782
|
+
**/
|
|
2783
|
+
nextRequestId: GenericStorageQuery<() => number>;
|
|
2784
|
+
|
|
2785
|
+
/**
|
|
2786
|
+
*
|
|
2787
|
+
* @param {number} arg
|
|
2788
|
+
* @param {Callback<PalletGrandpaSignerSigningRequest | undefined> =} callback
|
|
2789
|
+
**/
|
|
2790
|
+
requests: GenericStorageQuery<(arg: number) => PalletGrandpaSignerSigningRequest | undefined, number>;
|
|
2791
|
+
|
|
2792
|
+
/**
|
|
2793
|
+
*
|
|
2794
|
+
* @param {[number, FixedBytes<32>]} arg
|
|
2795
|
+
* @param {Callback<FixedBytes<64> | undefined> =} callback
|
|
2796
|
+
**/
|
|
2797
|
+
signatures: GenericStorageQuery<
|
|
2798
|
+
(arg: [number, FixedBytes<32>]) => FixedBytes<64> | undefined,
|
|
2799
|
+
[number, FixedBytes<32>]
|
|
2800
|
+
>;
|
|
2801
|
+
|
|
2802
|
+
/**
|
|
2803
|
+
*
|
|
2804
|
+
* @param {number} arg
|
|
2805
|
+
* @param {Callback<number> =} callback
|
|
2806
|
+
**/
|
|
2807
|
+
signatureCount: GenericStorageQuery<(arg: number) => number, number>;
|
|
2840
2808
|
|
|
2841
2809
|
/**
|
|
2842
2810
|
* Generic pallet storage query
|
|
2843
2811
|
**/
|
|
2844
|
-
[storage: string]: GenericStorageQuery
|
|
2812
|
+
[storage: string]: GenericStorageQuery;
|
|
2845
2813
|
};
|
|
2846
2814
|
}
|