@dedot/chaintypes 0.0.1-alpha.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +5 -0
  3. package/aleph/consts.d.ts +676 -0
  4. package/aleph/errors.d.ts +1054 -0
  5. package/aleph/events.d.ts +1201 -0
  6. package/aleph/index.d.ts +27 -0
  7. package/aleph/json-rpc.d.ts +85 -0
  8. package/aleph/query.d.ts +1573 -0
  9. package/aleph/runtime.d.ts +596 -0
  10. package/aleph/tx.d.ts +3440 -0
  11. package/aleph/types.d.ts +3951 -0
  12. package/astar/consts.d.ts +737 -0
  13. package/astar/errors.d.ts +1508 -0
  14. package/astar/events.d.ts +1878 -0
  15. package/astar/index.d.ts +27 -0
  16. package/astar/json-rpc.d.ts +131 -0
  17. package/astar/query.d.ts +1851 -0
  18. package/astar/runtime.d.ts +803 -0
  19. package/astar/tx.d.ts +4516 -0
  20. package/astar/types.d.ts +6141 -0
  21. package/index.d.ts +11 -0
  22. package/index.js +1 -0
  23. package/index.ts +11 -0
  24. package/kusama/consts.d.ts +1578 -0
  25. package/kusama/errors.d.ts +3152 -0
  26. package/kusama/events.d.ts +3579 -0
  27. package/kusama/index.d.ts +27 -0
  28. package/kusama/json-rpc.d.ts +103 -0
  29. package/kusama/query.d.ts +4229 -0
  30. package/kusama/runtime.d.ts +1196 -0
  31. package/kusama/tx.d.ts +9040 -0
  32. package/kusama/types.d.ts +11369 -0
  33. package/kusamaAssetHub/consts.d.ts +759 -0
  34. package/kusamaAssetHub/errors.d.ts +1494 -0
  35. package/kusamaAssetHub/events.d.ts +2491 -0
  36. package/kusamaAssetHub/index.d.ts +27 -0
  37. package/kusamaAssetHub/json-rpc.d.ts +89 -0
  38. package/kusamaAssetHub/query.d.ts +1662 -0
  39. package/kusamaAssetHub/runtime.d.ts +555 -0
  40. package/kusamaAssetHub/tx.d.ts +6192 -0
  41. package/kusamaAssetHub/types.d.ts +6831 -0
  42. package/moonbeam/consts.d.ts +1010 -0
  43. package/moonbeam/errors.d.ts +1932 -0
  44. package/moonbeam/events.d.ts +2928 -0
  45. package/moonbeam/index.d.ts +27 -0
  46. package/moonbeam/json-rpc.d.ts +137 -0
  47. package/moonbeam/query.d.ts +2282 -0
  48. package/moonbeam/runtime.d.ts +724 -0
  49. package/moonbeam/tx.d.ts +6222 -0
  50. package/moonbeam/types.d.ts +8165 -0
  51. package/package.json +25 -0
  52. package/polkadot/consts.d.ts +1313 -0
  53. package/polkadot/errors.d.ts +2575 -0
  54. package/polkadot/events.d.ts +2757 -0
  55. package/polkadot/index.d.ts +27 -0
  56. package/polkadot/json-rpc.d.ts +103 -0
  57. package/polkadot/query.d.ts +3693 -0
  58. package/polkadot/runtime.d.ts +1196 -0
  59. package/polkadot/tx.d.ts +7706 -0
  60. package/polkadot/types.d.ts +9893 -0
  61. package/polkadotAssetHub/consts.d.ts +724 -0
  62. package/polkadotAssetHub/errors.d.ts +1465 -0
  63. package/polkadotAssetHub/events.d.ts +2462 -0
  64. package/polkadotAssetHub/index.d.ts +27 -0
  65. package/polkadotAssetHub/json-rpc.d.ts +89 -0
  66. package/polkadotAssetHub/query.d.ts +1640 -0
  67. package/polkadotAssetHub/runtime.d.ts +558 -0
  68. package/polkadotAssetHub/tx.d.ts +6121 -0
  69. package/polkadotAssetHub/types.d.ts +6739 -0
  70. package/rococo/consts.d.ts +1423 -0
  71. package/rococo/errors.d.ts +2783 -0
  72. package/rococo/events.d.ts +3361 -0
  73. package/rococo/index.d.ts +27 -0
  74. package/rococo/json-rpc.d.ts +103 -0
  75. package/rococo/query.d.ts +3561 -0
  76. package/rococo/runtime.d.ts +1257 -0
  77. package/rococo/tx.d.ts +10721 -0
  78. package/rococo/types.d.ts +14828 -0
  79. package/rococoAssetHub/consts.d.ts +787 -0
  80. package/rococoAssetHub/errors.d.ts +1523 -0
  81. package/rococoAssetHub/events.d.ts +2517 -0
  82. package/rococoAssetHub/index.d.ts +27 -0
  83. package/rococoAssetHub/json-rpc.d.ts +89 -0
  84. package/rococoAssetHub/query.d.ts +1682 -0
  85. package/rococoAssetHub/runtime.d.ts +704 -0
  86. package/rococoAssetHub/tx.d.ts +9013 -0
  87. package/rococoAssetHub/types.d.ts +12352 -0
  88. package/substrate/consts.d.ts +2223 -0
  89. package/substrate/errors.d.ts +4023 -0
  90. package/substrate/events.d.ts +5430 -0
  91. package/substrate/index.d.ts +27 -0
  92. package/substrate/json-rpc.d.ts +101 -0
  93. package/substrate/query.d.ts +4083 -0
  94. package/substrate/runtime.d.ts +971 -0
  95. package/substrate/tx.d.ts +12501 -0
  96. package/substrate/types.d.ts +13380 -0
  97. package/westendAssetHub/consts.d.ts +787 -0
  98. package/westendAssetHub/errors.d.ts +1523 -0
  99. package/westendAssetHub/events.d.ts +2477 -0
  100. package/westendAssetHub/index.d.ts +27 -0
  101. package/westendAssetHub/json-rpc.d.ts +89 -0
  102. package/westendAssetHub/query.d.ts +1656 -0
  103. package/westendAssetHub/runtime.d.ts +652 -0
  104. package/westendAssetHub/tx.d.ts +8984 -0
  105. package/westendAssetHub/types.d.ts +12292 -0
@@ -0,0 +1,1573 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types';
4
+ import type {
5
+ AccountId32,
6
+ AccountId32Like,
7
+ H256,
8
+ Bytes,
9
+ Digest,
10
+ Phase,
11
+ FixedBytes,
12
+ FixedU128,
13
+ Perbill,
14
+ Percent,
15
+ BytesLike,
16
+ Data,
17
+ Perquintill,
18
+ } from 'dedot/codecs';
19
+ import type {
20
+ FrameSystemAccountInfo,
21
+ FrameSupportDispatchPerDispatchClass,
22
+ FrameSystemEventRecord,
23
+ FrameSystemLastRuntimeUpgradeInfo,
24
+ PalletSchedulerScheduled,
25
+ SpConsensusAuraSr25519AppSr25519Public,
26
+ SpConsensusSlotsSlot,
27
+ PalletBalancesAccountData,
28
+ PalletBalancesBalanceLock,
29
+ PalletBalancesReserveData,
30
+ PalletBalancesIdAmount,
31
+ PalletBalancesIdAmount002,
32
+ PalletTransactionPaymentReleases,
33
+ PalletStakingStakingLedger,
34
+ PalletStakingRewardDestination,
35
+ PalletStakingValidatorPrefs,
36
+ PalletStakingNominations,
37
+ PalletStakingActiveEraInfo,
38
+ PalletStakingExposure,
39
+ PalletStakingEraRewardPoints,
40
+ PalletStakingForcing,
41
+ PalletStakingUnappliedSlash,
42
+ PalletStakingSlashingSlashingSpans,
43
+ PalletStakingSlashingSpanRecord,
44
+ AlephRuntimeSessionKeys,
45
+ SpCoreCryptoKeyTypeId,
46
+ PrimitivesAppPublic,
47
+ PrimitivesVersionChange,
48
+ PrimitivesCommitteeSeats,
49
+ PrimitivesEraValidators,
50
+ PrimitivesElectionOpenness,
51
+ PalletTreasuryProposal,
52
+ PalletVestingVestingInfo,
53
+ PalletVestingReleases,
54
+ PalletMultisigMultisig,
55
+ PalletContractsWasmCodeInfo,
56
+ PalletContractsStorageContractInfo,
57
+ PalletContractsStorageDeletionQueueManager,
58
+ PalletNominationPoolsPoolMember,
59
+ PalletNominationPoolsBondedPoolInner,
60
+ PalletNominationPoolsRewardPool,
61
+ PalletNominationPoolsSubPools,
62
+ PalletNominationPoolsClaimPermission,
63
+ PalletIdentityRegistration,
64
+ PalletIdentityRegistrarInfo,
65
+ PalletCommitteeManagementValidatorTotalRewards,
66
+ PrimitivesBanConfig,
67
+ PrimitivesBanInfo,
68
+ PalletCommitteeManagementCurrentAndNextSessionValidators,
69
+ PalletProxyProxyDefinition,
70
+ PalletProxyAnnouncement,
71
+ } from './types';
72
+
73
+ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
74
+ /**
75
+ * Pallet `System`'s storage queries
76
+ **/
77
+ system: {
78
+ /**
79
+ * The full account information for a particular account ID.
80
+ *
81
+ * @param {AccountId32Like} arg
82
+ * @param {Callback<FrameSystemAccountInfo> =} callback
83
+ **/
84
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
85
+
86
+ /**
87
+ * Total extrinsics count for the current block.
88
+ *
89
+ * @param {Callback<number | undefined> =} callback
90
+ **/
91
+ extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
92
+
93
+ /**
94
+ * The current weight for the block.
95
+ *
96
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
97
+ **/
98
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
99
+
100
+ /**
101
+ * Total length (in bytes) for all extrinsics put together, for the current block.
102
+ *
103
+ * @param {Callback<number | undefined> =} callback
104
+ **/
105
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
106
+
107
+ /**
108
+ * Map of block numbers to block hashes.
109
+ *
110
+ * @param {number} arg
111
+ * @param {Callback<H256> =} callback
112
+ **/
113
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
114
+
115
+ /**
116
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
117
+ *
118
+ * @param {number} arg
119
+ * @param {Callback<Bytes> =} callback
120
+ **/
121
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
122
+
123
+ /**
124
+ * The current block number being processed. Set by `execute_block`.
125
+ *
126
+ * @param {Callback<number> =} callback
127
+ **/
128
+ number: GenericStorageQuery<Rv, () => number>;
129
+
130
+ /**
131
+ * Hash of the previous block.
132
+ *
133
+ * @param {Callback<H256> =} callback
134
+ **/
135
+ parentHash: GenericStorageQuery<Rv, () => H256>;
136
+
137
+ /**
138
+ * Digest of the current block, also part of the block header.
139
+ *
140
+ * @param {Callback<Digest> =} callback
141
+ **/
142
+ digest: GenericStorageQuery<Rv, () => Digest>;
143
+
144
+ /**
145
+ * Events deposited for the current block.
146
+ *
147
+ * NOTE: The item is unbound and should therefore never be read on chain.
148
+ * It could otherwise inflate the PoV size of a block.
149
+ *
150
+ * Events have a large in-memory size. Box the events to not go out-of-memory
151
+ * just in case someone still reads them from within the runtime.
152
+ *
153
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
154
+ **/
155
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
156
+
157
+ /**
158
+ * The number of events in the `Events<T>` list.
159
+ *
160
+ * @param {Callback<number> =} callback
161
+ **/
162
+ eventCount: GenericStorageQuery<Rv, () => number>;
163
+
164
+ /**
165
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
166
+ * of events in the `<Events<T>>` list.
167
+ *
168
+ * All topic vectors have deterministic storage locations depending on the topic. This
169
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
170
+ * in case of changes fetch the list of events of interest.
171
+ *
172
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
173
+ * the `EventIndex` then in case if the topic has the same contents on the next block
174
+ * no notification will be triggered thus the event might be lost.
175
+ *
176
+ * @param {H256} arg
177
+ * @param {Callback<Array<[number, number]>> =} callback
178
+ **/
179
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
180
+
181
+ /**
182
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
183
+ *
184
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
185
+ **/
186
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
187
+
188
+ /**
189
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
190
+ *
191
+ * @param {Callback<boolean> =} callback
192
+ **/
193
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
194
+
195
+ /**
196
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
197
+ * (default) if not.
198
+ *
199
+ * @param {Callback<boolean> =} callback
200
+ **/
201
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
202
+
203
+ /**
204
+ * The execution phase of the block.
205
+ *
206
+ * @param {Callback<Phase | undefined> =} callback
207
+ **/
208
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
209
+
210
+ /**
211
+ * Generic pallet storage query
212
+ **/
213
+ [storage: string]: GenericStorageQuery<Rv>;
214
+ };
215
+ /**
216
+ * Pallet `RandomnessCollectiveFlip`'s storage queries
217
+ **/
218
+ randomnessCollectiveFlip: {
219
+ /**
220
+ * Series of block headers from the last 81 blocks that acts as random seed material. This
221
+ * is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of
222
+ * the oldest hash.
223
+ *
224
+ * @param {Callback<Array<H256>> =} callback
225
+ **/
226
+ randomMaterial: GenericStorageQuery<Rv, () => Array<H256>>;
227
+
228
+ /**
229
+ * Generic pallet storage query
230
+ **/
231
+ [storage: string]: GenericStorageQuery<Rv>;
232
+ };
233
+ /**
234
+ * Pallet `Scheduler`'s storage queries
235
+ **/
236
+ scheduler: {
237
+ /**
238
+ *
239
+ * @param {Callback<number | undefined> =} callback
240
+ **/
241
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
242
+
243
+ /**
244
+ * Items to be executed, indexed by the block number that they should be executed on.
245
+ *
246
+ * @param {number} arg
247
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
248
+ **/
249
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
250
+
251
+ /**
252
+ * Lookup from a name to the block number and index of the task.
253
+ *
254
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
255
+ * identities.
256
+ *
257
+ * @param {FixedBytes<32>} arg
258
+ * @param {Callback<[number, number] | undefined> =} callback
259
+ **/
260
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
261
+
262
+ /**
263
+ * Generic pallet storage query
264
+ **/
265
+ [storage: string]: GenericStorageQuery<Rv>;
266
+ };
267
+ /**
268
+ * Pallet `Aura`'s storage queries
269
+ **/
270
+ aura: {
271
+ /**
272
+ * The current authority set.
273
+ *
274
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
275
+ **/
276
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
277
+
278
+ /**
279
+ * The current slot of this block.
280
+ *
281
+ * This will be set in `on_initialize`.
282
+ *
283
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
284
+ **/
285
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
286
+
287
+ /**
288
+ * Generic pallet storage query
289
+ **/
290
+ [storage: string]: GenericStorageQuery<Rv>;
291
+ };
292
+ /**
293
+ * Pallet `Timestamp`'s storage queries
294
+ **/
295
+ timestamp: {
296
+ /**
297
+ * The current time for the current block.
298
+ *
299
+ * @param {Callback<bigint> =} callback
300
+ **/
301
+ now: GenericStorageQuery<Rv, () => bigint>;
302
+
303
+ /**
304
+ * Whether the timestamp has been updated in this block.
305
+ *
306
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
307
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
308
+ *
309
+ * @param {Callback<boolean> =} callback
310
+ **/
311
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
312
+
313
+ /**
314
+ * Generic pallet storage query
315
+ **/
316
+ [storage: string]: GenericStorageQuery<Rv>;
317
+ };
318
+ /**
319
+ * Pallet `Balances`'s storage queries
320
+ **/
321
+ balances: {
322
+ /**
323
+ * The total units issued in the system.
324
+ *
325
+ * @param {Callback<bigint> =} callback
326
+ **/
327
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
328
+
329
+ /**
330
+ * The total units of outstanding deactivated balance in the system.
331
+ *
332
+ * @param {Callback<bigint> =} callback
333
+ **/
334
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
335
+
336
+ /**
337
+ * The Balances pallet example of storing the balance of an account.
338
+ *
339
+ * # Example
340
+ *
341
+ * ```nocompile
342
+ * impl pallet_balances::Config for Runtime {
343
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
344
+ * }
345
+ * ```
346
+ *
347
+ * You can also store the balance of an account in the `System` pallet.
348
+ *
349
+ * # Example
350
+ *
351
+ * ```nocompile
352
+ * impl pallet_balances::Config for Runtime {
353
+ * type AccountStore = System
354
+ * }
355
+ * ```
356
+ *
357
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
358
+ * `frame_system` data alongside the account data contrary to storing account balances in the
359
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
360
+ * NOTE: This is only used in the case that this pallet is used to store balances.
361
+ *
362
+ * @param {AccountId32Like} arg
363
+ * @param {Callback<PalletBalancesAccountData> =} callback
364
+ **/
365
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
366
+
367
+ /**
368
+ * Any liquidity locks on some account balances.
369
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
370
+ *
371
+ * @param {AccountId32Like} arg
372
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
373
+ **/
374
+ locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
375
+
376
+ /**
377
+ * Named reserves on some account balances.
378
+ *
379
+ * @param {AccountId32Like} arg
380
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
381
+ **/
382
+ reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
383
+
384
+ /**
385
+ * Holds on account balances.
386
+ *
387
+ * @param {AccountId32Like} arg
388
+ * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
389
+ **/
390
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
391
+
392
+ /**
393
+ * Freeze locks on account balances.
394
+ *
395
+ * @param {AccountId32Like} arg
396
+ * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
397
+ **/
398
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount002>, AccountId32>;
399
+
400
+ /**
401
+ * Generic pallet storage query
402
+ **/
403
+ [storage: string]: GenericStorageQuery<Rv>;
404
+ };
405
+ /**
406
+ * Pallet `TransactionPayment`'s storage queries
407
+ **/
408
+ transactionPayment: {
409
+ /**
410
+ *
411
+ * @param {Callback<FixedU128> =} callback
412
+ **/
413
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
414
+
415
+ /**
416
+ *
417
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
418
+ **/
419
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
420
+
421
+ /**
422
+ * Generic pallet storage query
423
+ **/
424
+ [storage: string]: GenericStorageQuery<Rv>;
425
+ };
426
+ /**
427
+ * Pallet `Authorship`'s storage queries
428
+ **/
429
+ authorship: {
430
+ /**
431
+ * Author of current block.
432
+ *
433
+ * @param {Callback<AccountId32 | undefined> =} callback
434
+ **/
435
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
436
+
437
+ /**
438
+ * Generic pallet storage query
439
+ **/
440
+ [storage: string]: GenericStorageQuery<Rv>;
441
+ };
442
+ /**
443
+ * Pallet `Staking`'s storage queries
444
+ **/
445
+ staking: {
446
+ /**
447
+ * The ideal number of active validators.
448
+ *
449
+ * @param {Callback<number> =} callback
450
+ **/
451
+ validatorCount: GenericStorageQuery<Rv, () => number>;
452
+
453
+ /**
454
+ * Minimum number of staking participants before emergency conditions are imposed.
455
+ *
456
+ * @param {Callback<number> =} callback
457
+ **/
458
+ minimumValidatorCount: GenericStorageQuery<Rv, () => number>;
459
+
460
+ /**
461
+ * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
462
+ * easy to initialize and the performance hit is minimal (we expect no more than four
463
+ * invulnerables) and restricted to testnets.
464
+ *
465
+ * @param {Callback<Array<AccountId32>> =} callback
466
+ **/
467
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
468
+
469
+ /**
470
+ * Map from all locked "stash" accounts to the controller account.
471
+ *
472
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
473
+ *
474
+ * @param {AccountId32Like} arg
475
+ * @param {Callback<AccountId32 | undefined> =} callback
476
+ **/
477
+ bonded: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
478
+
479
+ /**
480
+ * The minimum active bond to become and maintain the role of a nominator.
481
+ *
482
+ * @param {Callback<bigint> =} callback
483
+ **/
484
+ minNominatorBond: GenericStorageQuery<Rv, () => bigint>;
485
+
486
+ /**
487
+ * The minimum active bond to become and maintain the role of a validator.
488
+ *
489
+ * @param {Callback<bigint> =} callback
490
+ **/
491
+ minValidatorBond: GenericStorageQuery<Rv, () => bigint>;
492
+
493
+ /**
494
+ * The minimum active nominator stake of the last successful election.
495
+ *
496
+ * @param {Callback<bigint> =} callback
497
+ **/
498
+ minimumActiveStake: GenericStorageQuery<Rv, () => bigint>;
499
+
500
+ /**
501
+ * The minimum amount of commission that validators can set.
502
+ *
503
+ * If set to `0`, no limit exists.
504
+ *
505
+ * @param {Callback<Perbill> =} callback
506
+ **/
507
+ minCommission: GenericStorageQuery<Rv, () => Perbill>;
508
+
509
+ /**
510
+ * Map from all (unlocked) "controller" accounts to the info regarding the staking.
511
+ *
512
+ * @param {AccountId32Like} arg
513
+ * @param {Callback<PalletStakingStakingLedger | undefined> =} callback
514
+ **/
515
+ ledger: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingStakingLedger | undefined, AccountId32>;
516
+
517
+ /**
518
+ * Where the reward payment should be made. Keyed by stash.
519
+ *
520
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
521
+ *
522
+ * @param {AccountId32Like} arg
523
+ * @param {Callback<PalletStakingRewardDestination> =} callback
524
+ **/
525
+ payee: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingRewardDestination, AccountId32>;
526
+
527
+ /**
528
+ * The map from (wannabe) validator stash key to the preferences of that validator.
529
+ *
530
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
531
+ *
532
+ * @param {AccountId32Like} arg
533
+ * @param {Callback<PalletStakingValidatorPrefs> =} callback
534
+ **/
535
+ validators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingValidatorPrefs, AccountId32>;
536
+
537
+ /**
538
+ * Counter for the related counted storage map
539
+ *
540
+ * @param {Callback<number> =} callback
541
+ **/
542
+ counterForValidators: GenericStorageQuery<Rv, () => number>;
543
+
544
+ /**
545
+ * The maximum validator count before we stop allowing new validators to join.
546
+ *
547
+ * When this value is not set, no limits are enforced.
548
+ *
549
+ * @param {Callback<number | undefined> =} callback
550
+ **/
551
+ maxValidatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
552
+
553
+ /**
554
+ * The map from nominator stash key to their nomination preferences, namely the validators that
555
+ * they wish to support.
556
+ *
557
+ * Note that the keys of this storage map might become non-decodable in case the
558
+ * account's [`NominationsQuota::MaxNominations`] configuration is decreased.
559
+ * In this rare case, these nominators
560
+ * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
561
+ * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
562
+ * nominators will effectively not-exist, until they re-submit their preferences such that it
563
+ * is within the bounds of the newly set `Config::MaxNominations`.
564
+ *
565
+ * This implies that `::iter_keys().count()` and `::iter().count()` might return different
566
+ * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
567
+ * number of keys that exist.
568
+ *
569
+ * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
570
+ * [`Call::chill_other`] dispatchable by anyone.
571
+ *
572
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
573
+ *
574
+ * @param {AccountId32Like} arg
575
+ * @param {Callback<PalletStakingNominations | undefined> =} callback
576
+ **/
577
+ nominators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingNominations | undefined, AccountId32>;
578
+
579
+ /**
580
+ * Counter for the related counted storage map
581
+ *
582
+ * @param {Callback<number> =} callback
583
+ **/
584
+ counterForNominators: GenericStorageQuery<Rv, () => number>;
585
+
586
+ /**
587
+ * The maximum nominator count before we stop allowing new validators to join.
588
+ *
589
+ * When this value is not set, no limits are enforced.
590
+ *
591
+ * @param {Callback<number | undefined> =} callback
592
+ **/
593
+ maxNominatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
594
+
595
+ /**
596
+ * The current era index.
597
+ *
598
+ * This is the latest planned era, depending on how the Session pallet queues the validator
599
+ * set, it might be active or not.
600
+ *
601
+ * @param {Callback<number | undefined> =} callback
602
+ **/
603
+ currentEra: GenericStorageQuery<Rv, () => number | undefined>;
604
+
605
+ /**
606
+ * The active era information, it holds index and start.
607
+ *
608
+ * The active era is the era being currently rewarded. Validator set of this era must be
609
+ * equal to [`SessionInterface::validators`].
610
+ *
611
+ * @param {Callback<PalletStakingActiveEraInfo | undefined> =} callback
612
+ **/
613
+ activeEra: GenericStorageQuery<Rv, () => PalletStakingActiveEraInfo | undefined>;
614
+
615
+ /**
616
+ * The session index at which the era start for the last `HISTORY_DEPTH` eras.
617
+ *
618
+ * Note: This tracks the starting session (i.e. session index when era start being active)
619
+ * for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
620
+ *
621
+ * @param {number} arg
622
+ * @param {Callback<number | undefined> =} callback
623
+ **/
624
+ erasStartSessionIndex: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
625
+
626
+ /**
627
+ * Exposure of validator at era.
628
+ *
629
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
630
+ *
631
+ * Is it removed after `HISTORY_DEPTH` eras.
632
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
633
+ *
634
+ * @param {[number, AccountId32Like]} arg
635
+ * @param {Callback<PalletStakingExposure> =} callback
636
+ **/
637
+ erasStakers: GenericStorageQuery<
638
+ Rv,
639
+ (arg: [number, AccountId32Like]) => PalletStakingExposure,
640
+ [number, AccountId32]
641
+ >;
642
+
643
+ /**
644
+ * Clipped Exposure of validator at era.
645
+ *
646
+ * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
647
+ * `T::MaxNominatorRewardedPerValidator` biggest stakers.
648
+ * (Note: the field `total` and `own` of the exposure remains unchanged).
649
+ * This is used to limit the i/o cost for the nominator payout.
650
+ *
651
+ * This is keyed fist by the era index to allow bulk deletion and then the stash account.
652
+ *
653
+ * Is it removed after `HISTORY_DEPTH` eras.
654
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
655
+ *
656
+ * @param {[number, AccountId32Like]} arg
657
+ * @param {Callback<PalletStakingExposure> =} callback
658
+ **/
659
+ erasStakersClipped: GenericStorageQuery<
660
+ Rv,
661
+ (arg: [number, AccountId32Like]) => PalletStakingExposure,
662
+ [number, AccountId32]
663
+ >;
664
+
665
+ /**
666
+ * Similar to `ErasStakers`, this holds the preferences of validators.
667
+ *
668
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
669
+ *
670
+ * Is it removed after `HISTORY_DEPTH` eras.
671
+ *
672
+ * @param {[number, AccountId32Like]} arg
673
+ * @param {Callback<PalletStakingValidatorPrefs> =} callback
674
+ **/
675
+ erasValidatorPrefs: GenericStorageQuery<
676
+ Rv,
677
+ (arg: [number, AccountId32Like]) => PalletStakingValidatorPrefs,
678
+ [number, AccountId32]
679
+ >;
680
+
681
+ /**
682
+ * The total validator era payout for the last `HISTORY_DEPTH` eras.
683
+ *
684
+ * Eras that haven't finished yet or has been removed doesn't have reward.
685
+ *
686
+ * @param {number} arg
687
+ * @param {Callback<bigint | undefined> =} callback
688
+ **/
689
+ erasValidatorReward: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
690
+
691
+ /**
692
+ * Rewards for the last `HISTORY_DEPTH` eras.
693
+ * If reward hasn't been set or has been removed then 0 reward is returned.
694
+ *
695
+ * @param {number} arg
696
+ * @param {Callback<PalletStakingEraRewardPoints> =} callback
697
+ **/
698
+ erasRewardPoints: GenericStorageQuery<Rv, (arg: number) => PalletStakingEraRewardPoints, number>;
699
+
700
+ /**
701
+ * The total amount staked for the last `HISTORY_DEPTH` eras.
702
+ * If total hasn't been set or has been removed then 0 stake is returned.
703
+ *
704
+ * @param {number} arg
705
+ * @param {Callback<bigint> =} callback
706
+ **/
707
+ erasTotalStake: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
708
+
709
+ /**
710
+ * Mode of era forcing.
711
+ *
712
+ * @param {Callback<PalletStakingForcing> =} callback
713
+ **/
714
+ forceEra: GenericStorageQuery<Rv, () => PalletStakingForcing>;
715
+
716
+ /**
717
+ * The percentage of the slash that is distributed to reporters.
718
+ *
719
+ * The rest of the slashed value is handled by the `Slash`.
720
+ *
721
+ * @param {Callback<Perbill> =} callback
722
+ **/
723
+ slashRewardFraction: GenericStorageQuery<Rv, () => Perbill>;
724
+
725
+ /**
726
+ * The amount of currency given to reporters of a slash event which was
727
+ * canceled by extraordinary circumstances (e.g. governance).
728
+ *
729
+ * @param {Callback<bigint> =} callback
730
+ **/
731
+ canceledSlashPayout: GenericStorageQuery<Rv, () => bigint>;
732
+
733
+ /**
734
+ * All unapplied slashes that are queued for later.
735
+ *
736
+ * @param {number} arg
737
+ * @param {Callback<Array<PalletStakingUnappliedSlash>> =} callback
738
+ **/
739
+ unappliedSlashes: GenericStorageQuery<Rv, (arg: number) => Array<PalletStakingUnappliedSlash>, number>;
740
+
741
+ /**
742
+ * A mapping from still-bonded eras to the first session index of that era.
743
+ *
744
+ * Must contains information for eras for the range:
745
+ * `[active_era - bounding_duration; active_era]`
746
+ *
747
+ * @param {Callback<Array<[number, number]>> =} callback
748
+ **/
749
+ bondedEras: GenericStorageQuery<Rv, () => Array<[number, number]>>;
750
+
751
+ /**
752
+ * All slashing events on validators, mapped by era to the highest slash proportion
753
+ * and slash value of the era.
754
+ *
755
+ * @param {[number, AccountId32Like]} arg
756
+ * @param {Callback<[Perbill, bigint] | undefined> =} callback
757
+ **/
758
+ validatorSlashInEra: GenericStorageQuery<
759
+ Rv,
760
+ (arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined,
761
+ [number, AccountId32]
762
+ >;
763
+
764
+ /**
765
+ * All slashing events on nominators, mapped by era to the highest slash value of the era.
766
+ *
767
+ * @param {[number, AccountId32Like]} arg
768
+ * @param {Callback<bigint | undefined> =} callback
769
+ **/
770
+ nominatorSlashInEra: GenericStorageQuery<
771
+ Rv,
772
+ (arg: [number, AccountId32Like]) => bigint | undefined,
773
+ [number, AccountId32]
774
+ >;
775
+
776
+ /**
777
+ * Slashing spans for stash accounts.
778
+ *
779
+ * @param {AccountId32Like} arg
780
+ * @param {Callback<PalletStakingSlashingSlashingSpans | undefined> =} callback
781
+ **/
782
+ slashingSpans: GenericStorageQuery<
783
+ Rv,
784
+ (arg: AccountId32Like) => PalletStakingSlashingSlashingSpans | undefined,
785
+ AccountId32
786
+ >;
787
+
788
+ /**
789
+ * Records information about the maximum slash of a stash within a slashing span,
790
+ * as well as how much reward has been paid out.
791
+ *
792
+ * @param {[AccountId32Like, number]} arg
793
+ * @param {Callback<PalletStakingSlashingSpanRecord> =} callback
794
+ **/
795
+ spanSlash: GenericStorageQuery<
796
+ Rv,
797
+ (arg: [AccountId32Like, number]) => PalletStakingSlashingSpanRecord,
798
+ [AccountId32, number]
799
+ >;
800
+
801
+ /**
802
+ * The last planned session scheduled by the session pallet.
803
+ *
804
+ * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
805
+ *
806
+ * @param {Callback<number> =} callback
807
+ **/
808
+ currentPlannedSession: GenericStorageQuery<Rv, () => number>;
809
+
810
+ /**
811
+ * Indices of validators that have offended in the active era and whether they are currently
812
+ * disabled.
813
+ *
814
+ * This value should be a superset of disabled validators since not all offences lead to the
815
+ * validator being disabled (if there was no slash). This is needed to track the percentage of
816
+ * validators that have offended in the current era, ensuring a new era is forced if
817
+ * `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
818
+ * whether a given validator has previously offended using binary search. It gets cleared when
819
+ * the era ends.
820
+ *
821
+ * @param {Callback<Array<[number, boolean]>> =} callback
822
+ **/
823
+ offendingValidators: GenericStorageQuery<Rv, () => Array<[number, boolean]>>;
824
+
825
+ /**
826
+ * The threshold for when users can start calling `chill_other` for other validators /
827
+ * nominators. The threshold is compared to the actual number of validators / nominators
828
+ * (`CountFor*`) in the system compared to the configured max (`Max*Count`).
829
+ *
830
+ * @param {Callback<Percent | undefined> =} callback
831
+ **/
832
+ chillThreshold: GenericStorageQuery<Rv, () => Percent | undefined>;
833
+
834
+ /**
835
+ * Generic pallet storage query
836
+ **/
837
+ [storage: string]: GenericStorageQuery<Rv>;
838
+ };
839
+ /**
840
+ * Pallet `History`'s storage queries
841
+ **/
842
+ history: {
843
+ /**
844
+ * Mapping from historical session indices to session-data root hash and validator count.
845
+ *
846
+ * @param {number} arg
847
+ * @param {Callback<[H256, number] | undefined> =} callback
848
+ **/
849
+ historicalSessions: GenericStorageQuery<Rv, (arg: number) => [H256, number] | undefined, number>;
850
+
851
+ /**
852
+ * The range of historical sessions we store. [first, last)
853
+ *
854
+ * @param {Callback<[number, number] | undefined> =} callback
855
+ **/
856
+ storedRange: GenericStorageQuery<Rv, () => [number, number] | undefined>;
857
+
858
+ /**
859
+ * Generic pallet storage query
860
+ **/
861
+ [storage: string]: GenericStorageQuery<Rv>;
862
+ };
863
+ /**
864
+ * Pallet `Session`'s storage queries
865
+ **/
866
+ session: {
867
+ /**
868
+ * The current set of validators.
869
+ *
870
+ * @param {Callback<Array<AccountId32>> =} callback
871
+ **/
872
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
873
+
874
+ /**
875
+ * Current index of the session.
876
+ *
877
+ * @param {Callback<number> =} callback
878
+ **/
879
+ currentIndex: GenericStorageQuery<Rv, () => number>;
880
+
881
+ /**
882
+ * True if the underlying economic identities or weighting behind the validators
883
+ * has changed in the queued validator set.
884
+ *
885
+ * @param {Callback<boolean> =} callback
886
+ **/
887
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
888
+
889
+ /**
890
+ * The queued keys for the next session. When the next session begins, these keys
891
+ * will be used to determine the validator's session keys.
892
+ *
893
+ * @param {Callback<Array<[AccountId32, AlephRuntimeSessionKeys]>> =} callback
894
+ **/
895
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, AlephRuntimeSessionKeys]>>;
896
+
897
+ /**
898
+ * Indices of disabled validators.
899
+ *
900
+ * The vec is always kept sorted so that we can find whether a given validator is
901
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
902
+ * a new set of identities.
903
+ *
904
+ * @param {Callback<Array<number>> =} callback
905
+ **/
906
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
907
+
908
+ /**
909
+ * The next session keys for a validator.
910
+ *
911
+ * @param {AccountId32Like} arg
912
+ * @param {Callback<AlephRuntimeSessionKeys | undefined> =} callback
913
+ **/
914
+ nextKeys: GenericStorageQuery<Rv, (arg: AccountId32Like) => AlephRuntimeSessionKeys | undefined, AccountId32>;
915
+
916
+ /**
917
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
918
+ *
919
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
920
+ * @param {Callback<AccountId32 | undefined> =} callback
921
+ **/
922
+ keyOwner: GenericStorageQuery<
923
+ Rv,
924
+ (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
925
+ [SpCoreCryptoKeyTypeId, Bytes]
926
+ >;
927
+
928
+ /**
929
+ * Generic pallet storage query
930
+ **/
931
+ [storage: string]: GenericStorageQuery<Rv>;
932
+ };
933
+ /**
934
+ * Pallet `Aleph`'s storage queries
935
+ **/
936
+ aleph: {
937
+ /**
938
+ *
939
+ * @param {Callback<Array<PrimitivesAppPublic>> =} callback
940
+ **/
941
+ authorities: GenericStorageQuery<Rv, () => Array<PrimitivesAppPublic>>;
942
+
943
+ /**
944
+ *
945
+ * @param {Callback<Array<PrimitivesAppPublic>> =} callback
946
+ **/
947
+ nextAuthorities: GenericStorageQuery<Rv, () => Array<PrimitivesAppPublic>>;
948
+
949
+ /**
950
+ * Set of account ids that will be used as authorities in the next session
951
+ *
952
+ * @param {Callback<Array<AccountId32>> =} callback
953
+ **/
954
+ nextFinalityCommittee: GenericStorageQuery<Rv, () => Array<AccountId32>>;
955
+
956
+ /**
957
+ *
958
+ * @param {Callback<PrimitivesAppPublic | undefined> =} callback
959
+ **/
960
+ emergencyFinalizer: GenericStorageQuery<Rv, () => PrimitivesAppPublic | undefined>;
961
+
962
+ /**
963
+ *
964
+ * @param {Callback<PrimitivesAppPublic | undefined> =} callback
965
+ **/
966
+ queuedEmergencyFinalizer: GenericStorageQuery<Rv, () => PrimitivesAppPublic | undefined>;
967
+
968
+ /**
969
+ *
970
+ * @param {Callback<PrimitivesAppPublic | undefined> =} callback
971
+ **/
972
+ nextEmergencyFinalizer: GenericStorageQuery<Rv, () => PrimitivesAppPublic | undefined>;
973
+
974
+ /**
975
+ * Current finality version.
976
+ *
977
+ * @param {Callback<number> =} callback
978
+ **/
979
+ finalityVersion: GenericStorageQuery<Rv, () => number>;
980
+
981
+ /**
982
+ * Scheduled finality version change.
983
+ *
984
+ * @param {Callback<PrimitivesVersionChange | undefined> =} callback
985
+ **/
986
+ finalityScheduledVersionChange: GenericStorageQuery<Rv, () => PrimitivesVersionChange | undefined>;
987
+
988
+ /**
989
+ * Generic pallet storage query
990
+ **/
991
+ [storage: string]: GenericStorageQuery<Rv>;
992
+ };
993
+ /**
994
+ * Pallet `Elections`'s storage queries
995
+ **/
996
+ elections: {
997
+ /**
998
+ * Desirable size of a committee, see [`CommitteeSeats`].
999
+ *
1000
+ * @param {Callback<PrimitivesCommitteeSeats> =} callback
1001
+ **/
1002
+ committeeSize: GenericStorageQuery<Rv, () => PrimitivesCommitteeSeats>;
1003
+
1004
+ /**
1005
+ * Desired size of a committee in effect from a new era.
1006
+ *
1007
+ * @param {Callback<PrimitivesCommitteeSeats> =} callback
1008
+ **/
1009
+ nextEraCommitteeSize: GenericStorageQuery<Rv, () => PrimitivesCommitteeSeats>;
1010
+
1011
+ /**
1012
+ * Next era's list of reserved validators.
1013
+ *
1014
+ * @param {Callback<Array<AccountId32>> =} callback
1015
+ **/
1016
+ nextEraReservedValidators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
1017
+
1018
+ /**
1019
+ * Current era's list of reserved validators.
1020
+ *
1021
+ * @param {Callback<PrimitivesEraValidators> =} callback
1022
+ **/
1023
+ currentEraValidators: GenericStorageQuery<Rv, () => PrimitivesEraValidators>;
1024
+
1025
+ /**
1026
+ * Next era's list of non reserved validators.
1027
+ *
1028
+ * @param {Callback<Array<AccountId32>> =} callback
1029
+ **/
1030
+ nextEraNonReservedValidators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
1031
+
1032
+ /**
1033
+ * Openness of the elections, whether we allow all candidates that bonded enough tokens or
1034
+ * the validators list is managed by sudo
1035
+ *
1036
+ * @param {Callback<PrimitivesElectionOpenness> =} callback
1037
+ **/
1038
+ openness: GenericStorageQuery<Rv, () => PrimitivesElectionOpenness>;
1039
+
1040
+ /**
1041
+ * Generic pallet storage query
1042
+ **/
1043
+ [storage: string]: GenericStorageQuery<Rv>;
1044
+ };
1045
+ /**
1046
+ * Pallet `Treasury`'s storage queries
1047
+ **/
1048
+ treasury: {
1049
+ /**
1050
+ * Number of proposals that have been made.
1051
+ *
1052
+ * @param {Callback<number> =} callback
1053
+ **/
1054
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1055
+
1056
+ /**
1057
+ * Proposals that have been made.
1058
+ *
1059
+ * @param {number} arg
1060
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
1061
+ **/
1062
+ proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
1063
+
1064
+ /**
1065
+ * The amount which has been reported as inactive to Currency.
1066
+ *
1067
+ * @param {Callback<bigint> =} callback
1068
+ **/
1069
+ deactivated: GenericStorageQuery<Rv, () => bigint>;
1070
+
1071
+ /**
1072
+ * Proposal indices that have been approved but not yet awarded.
1073
+ *
1074
+ * @param {Callback<Array<number>> =} callback
1075
+ **/
1076
+ approvals: GenericStorageQuery<Rv, () => Array<number>>;
1077
+
1078
+ /**
1079
+ * Generic pallet storage query
1080
+ **/
1081
+ [storage: string]: GenericStorageQuery<Rv>;
1082
+ };
1083
+ /**
1084
+ * Pallet `Vesting`'s storage queries
1085
+ **/
1086
+ vesting: {
1087
+ /**
1088
+ * Information regarding the vesting of a given account.
1089
+ *
1090
+ * @param {AccountId32Like} arg
1091
+ * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
1092
+ **/
1093
+ vesting: GenericStorageQuery<
1094
+ Rv,
1095
+ (arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined,
1096
+ AccountId32
1097
+ >;
1098
+
1099
+ /**
1100
+ * Storage version of the pallet.
1101
+ *
1102
+ * New networks start with latest version, as determined by the genesis build.
1103
+ *
1104
+ * @param {Callback<PalletVestingReleases> =} callback
1105
+ **/
1106
+ storageVersion: GenericStorageQuery<Rv, () => PalletVestingReleases>;
1107
+
1108
+ /**
1109
+ * Generic pallet storage query
1110
+ **/
1111
+ [storage: string]: GenericStorageQuery<Rv>;
1112
+ };
1113
+ /**
1114
+ * Pallet `Multisig`'s storage queries
1115
+ **/
1116
+ multisig: {
1117
+ /**
1118
+ * The set of open multisig operations.
1119
+ *
1120
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
1121
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1122
+ **/
1123
+ multisigs: GenericStorageQuery<
1124
+ Rv,
1125
+ (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1126
+ [AccountId32, FixedBytes<32>]
1127
+ >;
1128
+
1129
+ /**
1130
+ * Generic pallet storage query
1131
+ **/
1132
+ [storage: string]: GenericStorageQuery<Rv>;
1133
+ };
1134
+ /**
1135
+ * Pallet `Sudo`'s storage queries
1136
+ **/
1137
+ sudo: {
1138
+ /**
1139
+ * The `AccountId` of the sudo key.
1140
+ *
1141
+ * @param {Callback<AccountId32 | undefined> =} callback
1142
+ **/
1143
+ key: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1144
+
1145
+ /**
1146
+ * Generic pallet storage query
1147
+ **/
1148
+ [storage: string]: GenericStorageQuery<Rv>;
1149
+ };
1150
+ /**
1151
+ * Pallet `Contracts`'s storage queries
1152
+ **/
1153
+ contracts: {
1154
+ /**
1155
+ * A mapping from a contract's code hash to its code.
1156
+ *
1157
+ * @param {H256} arg
1158
+ * @param {Callback<Bytes | undefined> =} callback
1159
+ **/
1160
+ pristineCode: GenericStorageQuery<Rv, (arg: H256) => Bytes | undefined, H256>;
1161
+
1162
+ /**
1163
+ * A mapping from a contract's code hash to its code info.
1164
+ *
1165
+ * @param {H256} arg
1166
+ * @param {Callback<PalletContractsWasmCodeInfo | undefined> =} callback
1167
+ **/
1168
+ codeInfoOf: GenericStorageQuery<Rv, (arg: H256) => PalletContractsWasmCodeInfo | undefined, H256>;
1169
+
1170
+ /**
1171
+ * This is a **monotonic** counter incremented on contract instantiation.
1172
+ *
1173
+ * This is used in order to generate unique trie ids for contracts.
1174
+ * The trie id of a new contract is calculated from hash(account_id, nonce).
1175
+ * The nonce is required because otherwise the following sequence would lead to
1176
+ * a possible collision of storage:
1177
+ *
1178
+ * 1. Create a new contract.
1179
+ * 2. Terminate the contract.
1180
+ * 3. Immediately recreate the contract with the same account_id.
1181
+ *
1182
+ * This is bad because the contents of a trie are deleted lazily and there might be
1183
+ * storage of the old instantiation still in it when the new contract is created. Please
1184
+ * note that we can't replace the counter by the block number because the sequence above
1185
+ * can happen in the same block. We also can't keep the account counter in memory only
1186
+ * because storage is the only way to communicate across different extrinsics in the
1187
+ * same block.
1188
+ *
1189
+ * # Note
1190
+ *
1191
+ * Do not use it to determine the number of contracts. It won't be decremented if
1192
+ * a contract is destroyed.
1193
+ *
1194
+ * @param {Callback<bigint> =} callback
1195
+ **/
1196
+ nonce: GenericStorageQuery<Rv, () => bigint>;
1197
+
1198
+ /**
1199
+ * The code associated with a given account.
1200
+ *
1201
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1202
+ *
1203
+ * @param {AccountId32Like} arg
1204
+ * @param {Callback<PalletContractsStorageContractInfo | undefined> =} callback
1205
+ **/
1206
+ contractInfoOf: GenericStorageQuery<
1207
+ Rv,
1208
+ (arg: AccountId32Like) => PalletContractsStorageContractInfo | undefined,
1209
+ AccountId32
1210
+ >;
1211
+
1212
+ /**
1213
+ * Evicted contracts that await child trie deletion.
1214
+ *
1215
+ * Child trie deletion is a heavy operation depending on the amount of storage items
1216
+ * stored in said trie. Therefore this operation is performed lazily in `on_idle`.
1217
+ *
1218
+ * @param {number} arg
1219
+ * @param {Callback<Bytes | undefined> =} callback
1220
+ **/
1221
+ deletionQueue: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
1222
+
1223
+ /**
1224
+ * A pair of monotonic counters used to track the latest contract marked for deletion
1225
+ * and the latest deleted contract in queue.
1226
+ *
1227
+ * @param {Callback<PalletContractsStorageDeletionQueueManager> =} callback
1228
+ **/
1229
+ deletionQueueCounter: GenericStorageQuery<Rv, () => PalletContractsStorageDeletionQueueManager>;
1230
+
1231
+ /**
1232
+ * A migration can span across multiple blocks. This storage defines a cursor to track the
1233
+ * progress of the migration, enabling us to resume from the last completed position.
1234
+ *
1235
+ * @param {Callback<Bytes | undefined> =} callback
1236
+ **/
1237
+ migrationInProgress: GenericStorageQuery<Rv, () => Bytes | undefined>;
1238
+
1239
+ /**
1240
+ * Generic pallet storage query
1241
+ **/
1242
+ [storage: string]: GenericStorageQuery<Rv>;
1243
+ };
1244
+ /**
1245
+ * Pallet `NominationPools`'s storage queries
1246
+ **/
1247
+ nominationPools: {
1248
+ /**
1249
+ * Minimum amount to bond to join a pool.
1250
+ *
1251
+ * @param {Callback<bigint> =} callback
1252
+ **/
1253
+ minJoinBond: GenericStorageQuery<Rv, () => bigint>;
1254
+
1255
+ /**
1256
+ * Minimum bond required to create a pool.
1257
+ *
1258
+ * This is the amount that the depositor must put as their initial stake in the pool, as an
1259
+ * indication of "skin in the game".
1260
+ *
1261
+ * This is the value that will always exist in the staking ledger of the pool bonded account
1262
+ * while all other accounts leave.
1263
+ *
1264
+ * @param {Callback<bigint> =} callback
1265
+ **/
1266
+ minCreateBond: GenericStorageQuery<Rv, () => bigint>;
1267
+
1268
+ /**
1269
+ * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
1270
+ * pools can exist.
1271
+ *
1272
+ * @param {Callback<number | undefined> =} callback
1273
+ **/
1274
+ maxPools: GenericStorageQuery<Rv, () => number | undefined>;
1275
+
1276
+ /**
1277
+ * Maximum number of members that can exist in the system. If `None`, then the count
1278
+ * members are not bound on a system wide basis.
1279
+ *
1280
+ * @param {Callback<number | undefined> =} callback
1281
+ **/
1282
+ maxPoolMembers: GenericStorageQuery<Rv, () => number | undefined>;
1283
+
1284
+ /**
1285
+ * Maximum number of members that may belong to pool. If `None`, then the count of
1286
+ * members is not bound on a per pool basis.
1287
+ *
1288
+ * @param {Callback<number | undefined> =} callback
1289
+ **/
1290
+ maxPoolMembersPerPool: GenericStorageQuery<Rv, () => number | undefined>;
1291
+
1292
+ /**
1293
+ * The maximum commission that can be charged by a pool. Used on commission payouts to bound
1294
+ * pool commissions that are > `GlobalMaxCommission`, necessary if a future
1295
+ * `GlobalMaxCommission` is lower than some current pool commissions.
1296
+ *
1297
+ * @param {Callback<Perbill | undefined> =} callback
1298
+ **/
1299
+ globalMaxCommission: GenericStorageQuery<Rv, () => Perbill | undefined>;
1300
+
1301
+ /**
1302
+ * Active members.
1303
+ *
1304
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1305
+ *
1306
+ * @param {AccountId32Like} arg
1307
+ * @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
1308
+ **/
1309
+ poolMembers: GenericStorageQuery<
1310
+ Rv,
1311
+ (arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined,
1312
+ AccountId32
1313
+ >;
1314
+
1315
+ /**
1316
+ * Counter for the related counted storage map
1317
+ *
1318
+ * @param {Callback<number> =} callback
1319
+ **/
1320
+ counterForPoolMembers: GenericStorageQuery<Rv, () => number>;
1321
+
1322
+ /**
1323
+ * Storage for bonded pools.
1324
+ *
1325
+ * @param {number} arg
1326
+ * @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
1327
+ **/
1328
+ bondedPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsBondedPoolInner | undefined, number>;
1329
+
1330
+ /**
1331
+ * Counter for the related counted storage map
1332
+ *
1333
+ * @param {Callback<number> =} callback
1334
+ **/
1335
+ counterForBondedPools: GenericStorageQuery<Rv, () => number>;
1336
+
1337
+ /**
1338
+ * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
1339
+ * claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
1340
+ *
1341
+ * @param {number} arg
1342
+ * @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
1343
+ **/
1344
+ rewardPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsRewardPool | undefined, number>;
1345
+
1346
+ /**
1347
+ * Counter for the related counted storage map
1348
+ *
1349
+ * @param {Callback<number> =} callback
1350
+ **/
1351
+ counterForRewardPools: GenericStorageQuery<Rv, () => number>;
1352
+
1353
+ /**
1354
+ * Groups of unbonding pools. Each group of unbonding pools belongs to a
1355
+ * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
1356
+ *
1357
+ * @param {number} arg
1358
+ * @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
1359
+ **/
1360
+ subPoolsStorage: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsSubPools | undefined, number>;
1361
+
1362
+ /**
1363
+ * Counter for the related counted storage map
1364
+ *
1365
+ * @param {Callback<number> =} callback
1366
+ **/
1367
+ counterForSubPoolsStorage: GenericStorageQuery<Rv, () => number>;
1368
+
1369
+ /**
1370
+ * Metadata for the pool.
1371
+ *
1372
+ * @param {number} arg
1373
+ * @param {Callback<Bytes> =} callback
1374
+ **/
1375
+ metadata: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
1376
+
1377
+ /**
1378
+ * Counter for the related counted storage map
1379
+ *
1380
+ * @param {Callback<number> =} callback
1381
+ **/
1382
+ counterForMetadata: GenericStorageQuery<Rv, () => number>;
1383
+
1384
+ /**
1385
+ * Ever increasing number of all pools created so far.
1386
+ *
1387
+ * @param {Callback<number> =} callback
1388
+ **/
1389
+ lastPoolId: GenericStorageQuery<Rv, () => number>;
1390
+
1391
+ /**
1392
+ * A reverse lookup from the pool's account id to its id.
1393
+ *
1394
+ * This is only used for slashing. In all other instances, the pool id is used, and the
1395
+ * accounts are deterministically derived from it.
1396
+ *
1397
+ * @param {AccountId32Like} arg
1398
+ * @param {Callback<number | undefined> =} callback
1399
+ **/
1400
+ reversePoolIdLookup: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
1401
+
1402
+ /**
1403
+ * Counter for the related counted storage map
1404
+ *
1405
+ * @param {Callback<number> =} callback
1406
+ **/
1407
+ counterForReversePoolIdLookup: GenericStorageQuery<Rv, () => number>;
1408
+
1409
+ /**
1410
+ * Map from a pool member account to their opted claim permission.
1411
+ *
1412
+ * @param {AccountId32Like} arg
1413
+ * @param {Callback<PalletNominationPoolsClaimPermission> =} callback
1414
+ **/
1415
+ claimPermissions: GenericStorageQuery<
1416
+ Rv,
1417
+ (arg: AccountId32Like) => PalletNominationPoolsClaimPermission,
1418
+ AccountId32
1419
+ >;
1420
+
1421
+ /**
1422
+ * Generic pallet storage query
1423
+ **/
1424
+ [storage: string]: GenericStorageQuery<Rv>;
1425
+ };
1426
+ /**
1427
+ * Pallet `Identity`'s storage queries
1428
+ **/
1429
+ identity: {
1430
+ /**
1431
+ * Information that is pertinent to identify the entity behind an account.
1432
+ *
1433
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1434
+ *
1435
+ * @param {AccountId32Like} arg
1436
+ * @param {Callback<PalletIdentityRegistration | undefined> =} callback
1437
+ **/
1438
+ identityOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletIdentityRegistration | undefined, AccountId32>;
1439
+
1440
+ /**
1441
+ * The super-identity of an alternative "sub" identity together with its name, within that
1442
+ * context. If the account is not some other account's sub-identity, then just `None`.
1443
+ *
1444
+ * @param {AccountId32Like} arg
1445
+ * @param {Callback<[AccountId32, Data] | undefined> =} callback
1446
+ **/
1447
+ superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
1448
+
1449
+ /**
1450
+ * Alternative "sub" identities of this account.
1451
+ *
1452
+ * The first item is the deposit, the second is a vector of the accounts.
1453
+ *
1454
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1455
+ *
1456
+ * @param {AccountId32Like} arg
1457
+ * @param {Callback<[bigint, Array<AccountId32>]> =} callback
1458
+ **/
1459
+ subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
1460
+
1461
+ /**
1462
+ * The set of registrars. Not expected to get very big as can only be added through a
1463
+ * special origin (likely a council motion).
1464
+ *
1465
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
1466
+ *
1467
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1468
+ **/
1469
+ registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
1470
+
1471
+ /**
1472
+ * Generic pallet storage query
1473
+ **/
1474
+ [storage: string]: GenericStorageQuery<Rv>;
1475
+ };
1476
+ /**
1477
+ * Pallet `CommitteeManagement`'s storage queries
1478
+ **/
1479
+ committeeManagement: {
1480
+ /**
1481
+ *
1482
+ * @param {Callback<Perquintill> =} callback
1483
+ **/
1484
+ lenientThreshold: GenericStorageQuery<Rv, () => Perquintill>;
1485
+
1486
+ /**
1487
+ * A lookup how many blocks a validator produced.
1488
+ *
1489
+ * @param {AccountId32Like} arg
1490
+ * @param {Callback<number> =} callback
1491
+ **/
1492
+ sessionValidatorBlockCount: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
1493
+
1494
+ /**
1495
+ * Total possible reward per validator for the current era.
1496
+ *
1497
+ * @param {Callback<PalletCommitteeManagementValidatorTotalRewards | undefined> =} callback
1498
+ **/
1499
+ validatorEraTotalReward: GenericStorageQuery<Rv, () => PalletCommitteeManagementValidatorTotalRewards | undefined>;
1500
+
1501
+ /**
1502
+ * Current era config for ban functionality, see [`BanConfig`]
1503
+ *
1504
+ * @param {Callback<PrimitivesBanConfig> =} callback
1505
+ **/
1506
+ banConfig: GenericStorageQuery<Rv, () => PrimitivesBanConfig>;
1507
+
1508
+ /**
1509
+ * A lookup for a number of underperformance sessions for a given validator
1510
+ *
1511
+ * @param {AccountId32Like} arg
1512
+ * @param {Callback<number> =} callback
1513
+ **/
1514
+ underperformedValidatorSessionCount: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
1515
+
1516
+ /**
1517
+ * Validators to be removed from non reserved list in the next era
1518
+ *
1519
+ * @param {AccountId32Like} arg
1520
+ * @param {Callback<PrimitivesBanInfo | undefined> =} callback
1521
+ **/
1522
+ banned: GenericStorageQuery<Rv, (arg: AccountId32Like) => PrimitivesBanInfo | undefined, AccountId32>;
1523
+
1524
+ /**
1525
+ * SessionValidators in the current session.
1526
+ *
1527
+ * @param {Callback<PalletCommitteeManagementCurrentAndNextSessionValidators> =} callback
1528
+ **/
1529
+ currentAndNextSessionValidatorsStorage: GenericStorageQuery<
1530
+ Rv,
1531
+ () => PalletCommitteeManagementCurrentAndNextSessionValidators
1532
+ >;
1533
+
1534
+ /**
1535
+ * Generic pallet storage query
1536
+ **/
1537
+ [storage: string]: GenericStorageQuery<Rv>;
1538
+ };
1539
+ /**
1540
+ * Pallet `Proxy`'s storage queries
1541
+ **/
1542
+ proxy: {
1543
+ /**
1544
+ * The set of account proxies. Maps the account which has delegated to the accounts
1545
+ * which are being delegated to, together with the amount held on deposit.
1546
+ *
1547
+ * @param {AccountId32Like} arg
1548
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1549
+ **/
1550
+ proxies: GenericStorageQuery<
1551
+ Rv,
1552
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
1553
+ AccountId32
1554
+ >;
1555
+
1556
+ /**
1557
+ * The announcements made by the proxy (key).
1558
+ *
1559
+ * @param {AccountId32Like} arg
1560
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1561
+ **/
1562
+ announcements: GenericStorageQuery<
1563
+ Rv,
1564
+ (arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
1565
+ AccountId32
1566
+ >;
1567
+
1568
+ /**
1569
+ * Generic pallet storage query
1570
+ **/
1571
+ [storage: string]: GenericStorageQuery<Rv>;
1572
+ };
1573
+ }