@dedot/chaintypes 0.0.1-next.0 → 0.0.1-next.3

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 (96) hide show
  1. package/aleph/consts.d.ts +595 -0
  2. package/aleph/errors.d.ts +985 -0
  3. package/aleph/events.d.ts +984 -0
  4. package/aleph/index.d.ts +22 -0
  5. package/aleph/query.d.ts +1480 -0
  6. package/aleph/rpc.d.ts +727 -0
  7. package/aleph/runtime.d.ts +545 -0
  8. package/aleph/tx.d.ts +2668 -0
  9. package/aleph/types.d.ts +3646 -0
  10. package/astar/consts.d.ts +758 -0
  11. package/astar/errors.d.ts +1580 -0
  12. package/astar/events.d.ts +1788 -0
  13. package/astar/index.d.ts +22 -0
  14. package/astar/query.d.ts +1759 -0
  15. package/astar/rpc.d.ts +974 -0
  16. package/astar/runtime.d.ts +314 -0
  17. package/astar/tx.d.ts +5478 -0
  18. package/astar/types.d.ts +9078 -0
  19. package/index.ts +10 -0
  20. package/kusama/consts.d.ts +1578 -0
  21. package/kusama/errors.d.ts +2999 -0
  22. package/kusama/events.d.ts +3233 -0
  23. package/kusama/index.d.ts +22 -0
  24. package/kusama/query.d.ts +3831 -0
  25. package/kusama/rpc.d.ts +904 -0
  26. package/kusama/runtime.d.ts +1134 -0
  27. package/kusama/tx.d.ts +7077 -0
  28. package/kusama/types.d.ts +10710 -0
  29. package/kusamaAssetHub/consts.d.ts +719 -0
  30. package/kusamaAssetHub/errors.d.ts +1409 -0
  31. package/kusamaAssetHub/events.d.ts +2251 -0
  32. package/kusamaAssetHub/index.d.ts +22 -0
  33. package/kusamaAssetHub/query.d.ts +1554 -0
  34. package/kusamaAssetHub/rpc.d.ts +746 -0
  35. package/kusamaAssetHub/runtime.d.ts +514 -0
  36. package/kusamaAssetHub/tx.d.ts +5055 -0
  37. package/kusamaAssetHub/types.d.ts +6385 -0
  38. package/moonbeam/consts.d.ts +1080 -0
  39. package/moonbeam/errors.d.ts +2135 -0
  40. package/moonbeam/events.d.ts +3091 -0
  41. package/moonbeam/index.d.ts +22 -0
  42. package/moonbeam/query.d.ts +2394 -0
  43. package/moonbeam/rpc.d.ts +1015 -0
  44. package/moonbeam/runtime.d.ts +669 -0
  45. package/moonbeam/tx.d.ts +6156 -0
  46. package/moonbeam/types.d.ts +8045 -0
  47. package/package.json +9 -8
  48. package/packageInfo.ts +3 -0
  49. package/polkadot/consts.d.ts +1277 -0
  50. package/polkadot/errors.d.ts +2424 -0
  51. package/polkadot/events.d.ts +2457 -0
  52. package/polkadot/index.d.ts +22 -0
  53. package/polkadot/query.d.ts +3322 -0
  54. package/polkadot/rpc.d.ts +904 -0
  55. package/polkadot/runtime.d.ts +1134 -0
  56. package/polkadot/tx.d.ts +5913 -0
  57. package/polkadot/types.d.ts +9181 -0
  58. package/polkadotAssetHub/consts.d.ts +591 -0
  59. package/polkadotAssetHub/errors.d.ts +1119 -0
  60. package/polkadotAssetHub/events.d.ts +1855 -0
  61. package/polkadotAssetHub/index.d.ts +22 -0
  62. package/polkadotAssetHub/query.d.ts +1460 -0
  63. package/polkadotAssetHub/rpc.d.ts +746 -0
  64. package/polkadotAssetHub/runtime.d.ts +451 -0
  65. package/polkadotAssetHub/tx.d.ts +4189 -0
  66. package/polkadotAssetHub/types.d.ts +5539 -0
  67. package/rococoAssetHub/consts.d.ts +750 -0
  68. package/rococoAssetHub/errors.d.ts +1494 -0
  69. package/rococoAssetHub/events.d.ts +2252 -0
  70. package/rococoAssetHub/index.d.ts +22 -0
  71. package/rococoAssetHub/query.d.ts +1516 -0
  72. package/rococoAssetHub/rpc.d.ts +746 -0
  73. package/rococoAssetHub/runtime.d.ts +542 -0
  74. package/rococoAssetHub/tx.d.ts +5169 -0
  75. package/rococoAssetHub/types.d.ts +6751 -0
  76. package/substrate/consts.d.ts +2223 -0
  77. package/substrate/errors.d.ts +4023 -0
  78. package/substrate/events.d.ts +5107 -0
  79. package/substrate/index.d.ts +22 -0
  80. package/substrate/query.d.ts +3890 -0
  81. package/substrate/rpc.d.ts +894 -0
  82. package/substrate/runtime.d.ts +941 -0
  83. package/substrate/tx.d.ts +10391 -0
  84. package/substrate/types.d.ts +13380 -0
  85. package/westendAssetHub/consts.d.ts +750 -0
  86. package/westendAssetHub/errors.d.ts +1494 -0
  87. package/westendAssetHub/events.d.ts +2252 -0
  88. package/westendAssetHub/index.d.ts +22 -0
  89. package/westendAssetHub/query.d.ts +1516 -0
  90. package/westendAssetHub/rpc.d.ts +746 -0
  91. package/westendAssetHub/runtime.d.ts +581 -0
  92. package/westendAssetHub/tx.d.ts +5169 -0
  93. package/westendAssetHub/types.d.ts +6750 -0
  94. package/cjs/index.js +0 -2
  95. package/cjs/package.json +0 -1
  96. package/cjs/packageInfo.js +0 -5
@@ -0,0 +1,1759 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericChainStorage, GenericStorageQuery, Callback } from '@dedot/types';
4
+ import type {
5
+ AccountId32Like,
6
+ H256,
7
+ Bytes,
8
+ Digest,
9
+ Phase,
10
+ AccountId32,
11
+ Data,
12
+ FixedBytes,
13
+ FixedU128,
14
+ BytesLike,
15
+ H160,
16
+ U256,
17
+ FixedU64,
18
+ } from '@dedot/codecs';
19
+ import type {
20
+ FrameSystemAccountInfo,
21
+ FrameSupportDispatchPerDispatchClass,
22
+ FrameSystemEventRecord,
23
+ FrameSystemLastRuntimeUpgradeInfo,
24
+ PalletIdentityRegistration,
25
+ PalletIdentityRegistrarInfo,
26
+ PalletMultisigMultisig,
27
+ PalletProxyProxyDefinition,
28
+ PalletProxyAnnouncement,
29
+ PolkadotPrimitivesV4PersistedValidationData,
30
+ PolkadotPrimitivesV4UpgradeRestriction,
31
+ SpTrieStorageProof,
32
+ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
33
+ PolkadotPrimitivesV4AbridgedHostConfiguration,
34
+ CumulusPrimitivesParachainInherentMessageQueueChain,
35
+ PolkadotParachainPrimitivesId,
36
+ PolkadotCorePrimitivesOutboundHrmpMessage,
37
+ SpWeightsWeightV2Weight,
38
+ CumulusPalletParachainSystemCodeUpgradeAuthorization,
39
+ PalletTransactionPaymentReleases,
40
+ PalletBalancesAccountData,
41
+ PalletBalancesBalanceLock,
42
+ PalletBalancesReserveData,
43
+ PalletBalancesIdAmount,
44
+ PalletBalancesIdAmountRuntimeFreezeReason,
45
+ PalletVestingVestingInfo,
46
+ PalletVestingReleases,
47
+ PalletInflationInflationConfiguration,
48
+ PalletInflationInflationParameters,
49
+ PalletDappStakingV3ProtocolState,
50
+ PalletDappStakingV3DAppInfo,
51
+ AstarPrimitivesDappStakingSmartContract,
52
+ PalletDappStakingV3AccountLedger,
53
+ PalletDappStakingV3SingularStakingInfo,
54
+ PalletDappStakingV3ContractStakeAmount,
55
+ PalletDappStakingV3EraInfo,
56
+ PalletDappStakingV3EraRewardSpan,
57
+ PalletDappStakingV3PeriodEndInfo,
58
+ PalletDappStakingV3TierParameters,
59
+ PalletDappStakingV3TiersConfiguration,
60
+ PalletDappStakingV3DAppTierRewards,
61
+ PalletDappStakingV3CleanupMarker,
62
+ PalletAssetsAssetDetails,
63
+ PalletAssetsAssetAccount,
64
+ PalletAssetsApproval,
65
+ PalletAssetsAssetMetadata,
66
+ PalletCollatorSelectionCandidateInfo,
67
+ AstarRuntimeSessionKeys,
68
+ SpCoreCryptoKeyTypeId,
69
+ SpConsensusAuraSr25519AppSr25519Public,
70
+ SpConsensusSlotsSlot,
71
+ CumulusPalletXcmpQueueInboundChannelDetails,
72
+ CumulusPalletXcmpQueueOutboundChannelDetails,
73
+ CumulusPalletXcmpQueueQueueConfigData,
74
+ PalletXcmQueryStatus,
75
+ XcmVersionedMultiLocation,
76
+ PalletXcmVersionMigrationStage,
77
+ PalletXcmRemoteLockedFungibleRecord,
78
+ XcmVersionedAssetId,
79
+ CumulusPalletDmpQueueConfigData,
80
+ CumulusPalletDmpQueuePageIndexData,
81
+ PalletEvmCodeMetadata,
82
+ EthereumTransactionTransactionV2,
83
+ FpRpcTransactionStatus,
84
+ EthereumReceiptReceiptV3,
85
+ EthereumBlock,
86
+ PalletContractsWasmPrefabWasmModule,
87
+ PalletContractsWasmOwnerInfo,
88
+ PalletContractsStorageContractInfo,
89
+ PalletContractsStorageDeletionQueueManager,
90
+ PalletDappStakingMigrationMigrationState,
91
+ PalletDappsStakingAccountLedger,
92
+ PalletDappsStakingRewardInfo,
93
+ PalletDappsStakingForcing,
94
+ PalletDappsStakingDAppInfo,
95
+ PalletDappsStakingEraInfo,
96
+ PalletDappsStakingContractStakeInfo,
97
+ PalletDappsStakingStakerInfo,
98
+ PalletDappsStakingVersion,
99
+ } from './types';
100
+
101
+ export interface ChainStorage extends GenericChainStorage {
102
+ /**
103
+ * Pallet `System`'s storage queries
104
+ **/
105
+ system: {
106
+ /**
107
+ * The full account information for a particular account ID.
108
+ *
109
+ * @param {AccountId32Like} arg
110
+ * @param {Callback<FrameSystemAccountInfo> =} callback
111
+ **/
112
+ account: GenericStorageQuery<(arg: AccountId32Like) => FrameSystemAccountInfo>;
113
+
114
+ /**
115
+ * Total extrinsics count for the current block.
116
+ *
117
+ * @param {Callback<number | undefined> =} callback
118
+ **/
119
+ extrinsicCount: GenericStorageQuery<() => number | undefined>;
120
+
121
+ /**
122
+ * The current weight for the block.
123
+ *
124
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
125
+ **/
126
+ blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
127
+
128
+ /**
129
+ * Total length (in bytes) for all extrinsics put together, for the current block.
130
+ *
131
+ * @param {Callback<number | undefined> =} callback
132
+ **/
133
+ allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
134
+
135
+ /**
136
+ * Map of block numbers to block hashes.
137
+ *
138
+ * @param {number} arg
139
+ * @param {Callback<H256> =} callback
140
+ **/
141
+ blockHash: GenericStorageQuery<(arg: number) => H256>;
142
+
143
+ /**
144
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
145
+ *
146
+ * @param {number} arg
147
+ * @param {Callback<Bytes> =} callback
148
+ **/
149
+ extrinsicData: GenericStorageQuery<(arg: number) => Bytes>;
150
+
151
+ /**
152
+ * The current block number being processed. Set by `execute_block`.
153
+ *
154
+ * @param {Callback<number> =} callback
155
+ **/
156
+ number: GenericStorageQuery<() => number>;
157
+
158
+ /**
159
+ * Hash of the previous block.
160
+ *
161
+ * @param {Callback<H256> =} callback
162
+ **/
163
+ parentHash: GenericStorageQuery<() => H256>;
164
+
165
+ /**
166
+ * Digest of the current block, also part of the block header.
167
+ *
168
+ * @param {Callback<Digest> =} callback
169
+ **/
170
+ digest: GenericStorageQuery<() => Digest>;
171
+
172
+ /**
173
+ * Events deposited for the current block.
174
+ *
175
+ * NOTE: The item is unbound and should therefore never be read on chain.
176
+ * It could otherwise inflate the PoV size of a block.
177
+ *
178
+ * Events have a large in-memory size. Box the events to not go out-of-memory
179
+ * just in case someone still reads them from within the runtime.
180
+ *
181
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
182
+ **/
183
+ events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
184
+
185
+ /**
186
+ * The number of events in the `Events<T>` list.
187
+ *
188
+ * @param {Callback<number> =} callback
189
+ **/
190
+ eventCount: GenericStorageQuery<() => number>;
191
+
192
+ /**
193
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
194
+ * of events in the `<Events<T>>` list.
195
+ *
196
+ * All topic vectors have deterministic storage locations depending on the topic. This
197
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
198
+ * in case of changes fetch the list of events of interest.
199
+ *
200
+ * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
201
+ * the `EventIndex` then in case if the topic has the same contents on the next block
202
+ * no notification will be triggered thus the event might be lost.
203
+ *
204
+ * @param {H256} arg
205
+ * @param {Callback<Array<[number, number]>> =} callback
206
+ **/
207
+ eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>>;
208
+
209
+ /**
210
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
211
+ *
212
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
213
+ **/
214
+ lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
215
+
216
+ /**
217
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
218
+ *
219
+ * @param {Callback<boolean> =} callback
220
+ **/
221
+ upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
222
+
223
+ /**
224
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
225
+ * (default) if not.
226
+ *
227
+ * @param {Callback<boolean> =} callback
228
+ **/
229
+ upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
230
+
231
+ /**
232
+ * The execution phase of the block.
233
+ *
234
+ * @param {Callback<Phase | undefined> =} callback
235
+ **/
236
+ executionPhase: GenericStorageQuery<() => Phase | undefined>;
237
+
238
+ /**
239
+ * Generic pallet storage query
240
+ **/
241
+ [storage: string]: GenericStorageQuery;
242
+ };
243
+ /**
244
+ * Pallet `Identity`'s storage queries
245
+ **/
246
+ identity: {
247
+ /**
248
+ * Information that is pertinent to identify the entity behind an account.
249
+ *
250
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
251
+ *
252
+ * @param {AccountId32Like} arg
253
+ * @param {Callback<PalletIdentityRegistration | undefined> =} callback
254
+ **/
255
+ identityOf: GenericStorageQuery<(arg: AccountId32Like) => PalletIdentityRegistration | undefined>;
256
+
257
+ /**
258
+ * The super-identity of an alternative "sub" identity together with its name, within that
259
+ * context. If the account is not some other account's sub-identity, then just `None`.
260
+ *
261
+ * @param {AccountId32Like} arg
262
+ * @param {Callback<[AccountId32, Data] | undefined> =} callback
263
+ **/
264
+ superOf: GenericStorageQuery<(arg: AccountId32Like) => [AccountId32, Data] | undefined>;
265
+
266
+ /**
267
+ * Alternative "sub" identities of this account.
268
+ *
269
+ * The first item is the deposit, the second is a vector of the accounts.
270
+ *
271
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
272
+ *
273
+ * @param {AccountId32Like} arg
274
+ * @param {Callback<[bigint, Array<AccountId32>]> =} callback
275
+ **/
276
+ subsOf: GenericStorageQuery<(arg: AccountId32Like) => [bigint, Array<AccountId32>]>;
277
+
278
+ /**
279
+ * The set of registrars. Not expected to get very big as can only be added through a
280
+ * special origin (likely a council motion).
281
+ *
282
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
283
+ *
284
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
285
+ **/
286
+ registrars: GenericStorageQuery<() => Array<PalletIdentityRegistrarInfo | undefined>>;
287
+
288
+ /**
289
+ * Generic pallet storage query
290
+ **/
291
+ [storage: string]: GenericStorageQuery;
292
+ };
293
+ /**
294
+ * Pallet `Timestamp`'s storage queries
295
+ **/
296
+ timestamp: {
297
+ /**
298
+ * Current time for the current block.
299
+ *
300
+ * @param {Callback<bigint> =} callback
301
+ **/
302
+ now: GenericStorageQuery<() => bigint>;
303
+
304
+ /**
305
+ * Did the timestamp get updated in this block?
306
+ *
307
+ * @param {Callback<boolean> =} callback
308
+ **/
309
+ didUpdate: GenericStorageQuery<() => boolean>;
310
+
311
+ /**
312
+ * Generic pallet storage query
313
+ **/
314
+ [storage: string]: GenericStorageQuery;
315
+ };
316
+ /**
317
+ * Pallet `Multisig`'s storage queries
318
+ **/
319
+ multisig: {
320
+ /**
321
+ * The set of open multisig operations.
322
+ *
323
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
324
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
325
+ **/
326
+ multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
327
+
328
+ /**
329
+ * Generic pallet storage query
330
+ **/
331
+ [storage: string]: GenericStorageQuery;
332
+ };
333
+ /**
334
+ * Pallet `Proxy`'s storage queries
335
+ **/
336
+ proxy: {
337
+ /**
338
+ * The set of account proxies. Maps the account which has delegated to the accounts
339
+ * which are being delegated to, together with the amount held on deposit.
340
+ *
341
+ * @param {AccountId32Like} arg
342
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
343
+ **/
344
+ proxies: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint]>;
345
+
346
+ /**
347
+ * The announcements made by the proxy (key).
348
+ *
349
+ * @param {AccountId32Like} arg
350
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
351
+ **/
352
+ announcements: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint]>;
353
+
354
+ /**
355
+ * Generic pallet storage query
356
+ **/
357
+ [storage: string]: GenericStorageQuery;
358
+ };
359
+ /**
360
+ * Pallet `ParachainSystem`'s storage queries
361
+ **/
362
+ parachainSystem: {
363
+ /**
364
+ * In case of a scheduled upgrade, this storage field contains the validation code to be applied.
365
+ *
366
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the [`:code`][well_known_keys::CODE]
367
+ * which will result the next block process with the new validation code. This concludes the upgrade process.
368
+ *
369
+ * [well_known_keys::CODE]: sp_core::storage::well_known_keys::CODE
370
+ *
371
+ * @param {Callback<Bytes> =} callback
372
+ **/
373
+ pendingValidationCode: GenericStorageQuery<() => Bytes>;
374
+
375
+ /**
376
+ * Validation code that is set by the parachain and is to be communicated to collator and
377
+ * consequently the relay-chain.
378
+ *
379
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
380
+ * the value.
381
+ *
382
+ * @param {Callback<Bytes | undefined> =} callback
383
+ **/
384
+ newValidationCode: GenericStorageQuery<() => Bytes | undefined>;
385
+
386
+ /**
387
+ * The [`PersistedValidationData`] set for this block.
388
+ * This value is expected to be set only once per block and it's never stored
389
+ * in the trie.
390
+ *
391
+ * @param {Callback<PolkadotPrimitivesV4PersistedValidationData | undefined> =} callback
392
+ **/
393
+ validationData: GenericStorageQuery<() => PolkadotPrimitivesV4PersistedValidationData | undefined>;
394
+
395
+ /**
396
+ * Were the validation data set to notify the relay chain?
397
+ *
398
+ * @param {Callback<boolean> =} callback
399
+ **/
400
+ didSetValidationCode: GenericStorageQuery<() => boolean>;
401
+
402
+ /**
403
+ * The relay chain block number associated with the last parachain block.
404
+ *
405
+ * @param {Callback<number> =} callback
406
+ **/
407
+ lastRelayChainBlockNumber: GenericStorageQuery<() => number>;
408
+
409
+ /**
410
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
411
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
412
+ * candidate will be invalid.
413
+ *
414
+ * This storage item is a mirror of the corresponding value for the current parachain from the
415
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
416
+ * set after the inherent.
417
+ *
418
+ * @param {Callback<PolkadotPrimitivesV4UpgradeRestriction | undefined> =} callback
419
+ **/
420
+ upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV4UpgradeRestriction | undefined>;
421
+
422
+ /**
423
+ * The state proof for the last relay parent block.
424
+ *
425
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
426
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
427
+ *
428
+ * This data is also absent from the genesis.
429
+ *
430
+ * @param {Callback<SpTrieStorageProof | undefined> =} callback
431
+ **/
432
+ relayStateProof: GenericStorageQuery<() => SpTrieStorageProof | undefined>;
433
+
434
+ /**
435
+ * The snapshot of some state related to messaging relevant to the current parachain as per
436
+ * the relay parent.
437
+ *
438
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
439
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
440
+ *
441
+ * This data is also absent from the genesis.
442
+ *
443
+ * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
444
+ **/
445
+ relevantMessagingState: GenericStorageQuery<
446
+ () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
447
+ >;
448
+
449
+ /**
450
+ * The parachain host configuration that was obtained from the relay parent.
451
+ *
452
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
453
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
454
+ *
455
+ * This data is also absent from the genesis.
456
+ *
457
+ * @param {Callback<PolkadotPrimitivesV4AbridgedHostConfiguration | undefined> =} callback
458
+ **/
459
+ hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV4AbridgedHostConfiguration | undefined>;
460
+
461
+ /**
462
+ * The last downward message queue chain head we have observed.
463
+ *
464
+ * This value is loaded before and saved after processing inbound downward messages carried
465
+ * by the system inherent.
466
+ *
467
+ * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
468
+ **/
469
+ lastDmqMqcHead: GenericStorageQuery<() => CumulusPrimitivesParachainInherentMessageQueueChain>;
470
+
471
+ /**
472
+ * The message queue chain heads we have observed per each channel incoming channel.
473
+ *
474
+ * This value is loaded before and saved after processing inbound downward messages carried
475
+ * by the system inherent.
476
+ *
477
+ * @param {Callback<Array<[PolkadotParachainPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
478
+ **/
479
+ lastHrmpMqcHeads: GenericStorageQuery<
480
+ () => Array<[PolkadotParachainPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
481
+ >;
482
+
483
+ /**
484
+ * Number of downward messages processed in a block.
485
+ *
486
+ * This will be cleared in `on_initialize` of each new block.
487
+ *
488
+ * @param {Callback<number> =} callback
489
+ **/
490
+ processedDownwardMessages: GenericStorageQuery<() => number>;
491
+
492
+ /**
493
+ * HRMP watermark that was set in a block.
494
+ *
495
+ * This will be cleared in `on_initialize` of each new block.
496
+ *
497
+ * @param {Callback<number> =} callback
498
+ **/
499
+ hrmpWatermark: GenericStorageQuery<() => number>;
500
+
501
+ /**
502
+ * HRMP messages that were sent in a block.
503
+ *
504
+ * This will be cleared in `on_initialize` of each new block.
505
+ *
506
+ * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
507
+ **/
508
+ hrmpOutboundMessages: GenericStorageQuery<() => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
509
+
510
+ /**
511
+ * Upward messages that were sent in a block.
512
+ *
513
+ * This will be cleared in `on_initialize` of each new block.
514
+ *
515
+ * @param {Callback<Array<Bytes>> =} callback
516
+ **/
517
+ upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
518
+
519
+ /**
520
+ * Upward messages that are still pending and not yet send to the relay chain.
521
+ *
522
+ * @param {Callback<Array<Bytes>> =} callback
523
+ **/
524
+ pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
525
+
526
+ /**
527
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
528
+ * announcing the weight of `on_initialize` and `on_finalize`.
529
+ *
530
+ * @param {Callback<number> =} callback
531
+ **/
532
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<() => number>;
533
+
534
+ /**
535
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
536
+ * overrides the amount set in the Config trait.
537
+ *
538
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
539
+ **/
540
+ reservedXcmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
541
+
542
+ /**
543
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
544
+ * overrides the amount set in the Config trait.
545
+ *
546
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
547
+ **/
548
+ reservedDmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
549
+
550
+ /**
551
+ * The next authorized upgrade, if there is one.
552
+ *
553
+ * @param {Callback<CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined> =} callback
554
+ **/
555
+ authorizedUpgrade: GenericStorageQuery<() => CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined>;
556
+
557
+ /**
558
+ * A custom head data that should be returned as result of `validate_block`.
559
+ *
560
+ * See [`Pallet::set_custom_validation_head_data`] for more information.
561
+ *
562
+ * @param {Callback<Bytes | undefined> =} callback
563
+ **/
564
+ customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
565
+
566
+ /**
567
+ * Generic pallet storage query
568
+ **/
569
+ [storage: string]: GenericStorageQuery;
570
+ };
571
+ /**
572
+ * Pallet `ParachainInfo`'s storage queries
573
+ **/
574
+ parachainInfo: {
575
+ /**
576
+ *
577
+ * @param {Callback<PolkadotParachainPrimitivesId> =} callback
578
+ **/
579
+ parachainId: GenericStorageQuery<() => PolkadotParachainPrimitivesId>;
580
+
581
+ /**
582
+ * Generic pallet storage query
583
+ **/
584
+ [storage: string]: GenericStorageQuery;
585
+ };
586
+ /**
587
+ * Pallet `TransactionPayment`'s storage queries
588
+ **/
589
+ transactionPayment: {
590
+ /**
591
+ *
592
+ * @param {Callback<FixedU128> =} callback
593
+ **/
594
+ nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
595
+
596
+ /**
597
+ *
598
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
599
+ **/
600
+ storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
601
+
602
+ /**
603
+ * Generic pallet storage query
604
+ **/
605
+ [storage: string]: GenericStorageQuery;
606
+ };
607
+ /**
608
+ * Pallet `Balances`'s storage queries
609
+ **/
610
+ balances: {
611
+ /**
612
+ * The total units issued in the system.
613
+ *
614
+ * @param {Callback<bigint> =} callback
615
+ **/
616
+ totalIssuance: GenericStorageQuery<() => bigint>;
617
+
618
+ /**
619
+ * The total units of outstanding deactivated balance in the system.
620
+ *
621
+ * @param {Callback<bigint> =} callback
622
+ **/
623
+ inactiveIssuance: GenericStorageQuery<() => bigint>;
624
+
625
+ /**
626
+ * The Balances pallet example of storing the balance of an account.
627
+ *
628
+ * # Example
629
+ *
630
+ * ```nocompile
631
+ * impl pallet_balances::Config for Runtime {
632
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
633
+ * }
634
+ * ```
635
+ *
636
+ * You can also store the balance of an account in the `System` pallet.
637
+ *
638
+ * # Example
639
+ *
640
+ * ```nocompile
641
+ * impl pallet_balances::Config for Runtime {
642
+ * type AccountStore = System
643
+ * }
644
+ * ```
645
+ *
646
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
647
+ * `frame_system` data alongside the account data contrary to storing account balances in the
648
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
649
+ * NOTE: This is only used in the case that this pallet is used to store balances.
650
+ *
651
+ * @param {AccountId32Like} arg
652
+ * @param {Callback<PalletBalancesAccountData> =} callback
653
+ **/
654
+ account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
655
+
656
+ /**
657
+ * Any liquidity locks on some account balances.
658
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
659
+ *
660
+ * @param {AccountId32Like} arg
661
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
662
+ **/
663
+ locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
664
+
665
+ /**
666
+ * Named reserves on some account balances.
667
+ *
668
+ * @param {AccountId32Like} arg
669
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
670
+ **/
671
+ reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
672
+
673
+ /**
674
+ * Holds on account balances.
675
+ *
676
+ * @param {AccountId32Like} arg
677
+ * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
678
+ **/
679
+ holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
680
+
681
+ /**
682
+ * Freeze locks on account balances.
683
+ *
684
+ * @param {AccountId32Like} arg
685
+ * @param {Callback<Array<PalletBalancesIdAmountRuntimeFreezeReason>> =} callback
686
+ **/
687
+ freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmountRuntimeFreezeReason>>;
688
+
689
+ /**
690
+ * Generic pallet storage query
691
+ **/
692
+ [storage: string]: GenericStorageQuery;
693
+ };
694
+ /**
695
+ * Pallet `Vesting`'s storage queries
696
+ **/
697
+ vesting: {
698
+ /**
699
+ * Information regarding the vesting of a given account.
700
+ *
701
+ * @param {AccountId32Like} arg
702
+ * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
703
+ **/
704
+ vesting: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined>;
705
+
706
+ /**
707
+ * Storage version of the pallet.
708
+ *
709
+ * New networks start with latest version, as determined by the genesis build.
710
+ *
711
+ * @param {Callback<PalletVestingReleases> =} callback
712
+ **/
713
+ storageVersion: GenericStorageQuery<() => PalletVestingReleases>;
714
+
715
+ /**
716
+ * Generic pallet storage query
717
+ **/
718
+ [storage: string]: GenericStorageQuery;
719
+ };
720
+ /**
721
+ * Pallet `Inflation`'s storage queries
722
+ **/
723
+ inflation: {
724
+ /**
725
+ * Active inflation configuration parameters.
726
+ * They describe current rewards, when inflation needs to be recalculated, etc.
727
+ *
728
+ * @param {Callback<PalletInflationInflationConfiguration> =} callback
729
+ **/
730
+ activeInflationConfig: GenericStorageQuery<() => PalletInflationInflationConfiguration>;
731
+
732
+ /**
733
+ * Static inflation parameters - used to calculate active inflation configuration at certain points in time.
734
+ *
735
+ * @param {Callback<PalletInflationInflationParameters> =} callback
736
+ **/
737
+ inflationParams: GenericStorageQuery<() => PalletInflationInflationParameters>;
738
+
739
+ /**
740
+ * Flag indicating whether on the first possible opportunity, recalculation of the inflation config should be done.
741
+ *
742
+ * @param {Callback<number | undefined> =} callback
743
+ **/
744
+ doRecalculation: GenericStorageQuery<() => number | undefined>;
745
+
746
+ /**
747
+ * Generic pallet storage query
748
+ **/
749
+ [storage: string]: GenericStorageQuery;
750
+ };
751
+ /**
752
+ * Pallet `DappStaking`'s storage queries
753
+ **/
754
+ dappStaking: {
755
+ /**
756
+ * General information about dApp staking protocol state.
757
+ *
758
+ * @param {Callback<PalletDappStakingV3ProtocolState> =} callback
759
+ **/
760
+ activeProtocolState: GenericStorageQuery<() => PalletDappStakingV3ProtocolState>;
761
+
762
+ /**
763
+ * Counter for unique dApp identifiers.
764
+ *
765
+ * @param {Callback<number> =} callback
766
+ **/
767
+ nextDAppId: GenericStorageQuery<() => number>;
768
+
769
+ /**
770
+ * Map of all dApps integrated into dApp staking protocol.
771
+ *
772
+ * Even though dApp is integrated, it does not mean it's still actively participating in dApp staking.
773
+ * It might have been unregistered at some point in history.
774
+ *
775
+ * @param {AstarPrimitivesDappStakingSmartContract} arg
776
+ * @param {Callback<PalletDappStakingV3DAppInfo | undefined> =} callback
777
+ **/
778
+ integratedDApps: GenericStorageQuery<
779
+ (arg: AstarPrimitivesDappStakingSmartContract) => PalletDappStakingV3DAppInfo | undefined
780
+ >;
781
+
782
+ /**
783
+ * Counter for the related counted storage map
784
+ *
785
+ * @param {Callback<number> =} callback
786
+ **/
787
+ counterForIntegratedDApps: GenericStorageQuery<() => number>;
788
+
789
+ /**
790
+ * General locked/staked information for each account.
791
+ *
792
+ * @param {AccountId32Like} arg
793
+ * @param {Callback<PalletDappStakingV3AccountLedger> =} callback
794
+ **/
795
+ ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletDappStakingV3AccountLedger>;
796
+
797
+ /**
798
+ * Information about how much each staker has staked for each smart contract in some period.
799
+ *
800
+ * @param {[AccountId32Like, AstarPrimitivesDappStakingSmartContract]} arg
801
+ * @param {Callback<PalletDappStakingV3SingularStakingInfo | undefined> =} callback
802
+ **/
803
+ stakerInfo: GenericStorageQuery<
804
+ (
805
+ arg: [AccountId32Like, AstarPrimitivesDappStakingSmartContract],
806
+ ) => PalletDappStakingV3SingularStakingInfo | undefined
807
+ >;
808
+
809
+ /**
810
+ * Information about how much has been staked on a smart contract in some era or period.
811
+ *
812
+ * @param {number} arg
813
+ * @param {Callback<PalletDappStakingV3ContractStakeAmount> =} callback
814
+ **/
815
+ contractStake: GenericStorageQuery<(arg: number) => PalletDappStakingV3ContractStakeAmount>;
816
+
817
+ /**
818
+ * General information about the current era.
819
+ *
820
+ * @param {Callback<PalletDappStakingV3EraInfo> =} callback
821
+ **/
822
+ currentEraInfo: GenericStorageQuery<() => PalletDappStakingV3EraInfo>;
823
+
824
+ /**
825
+ * Information about rewards for each era.
826
+ *
827
+ * Since each entry is a 'span', covering up to `T::EraRewardSpanLength` entries, only certain era value keys can exist in storage.
828
+ * For the sake of simplicity, valid `era` keys are calculated as:
829
+ *
830
+ * era_key = era - (era % T::EraRewardSpanLength)
831
+ *
832
+ * This means that e.g. in case `EraRewardSpanLength = 8`, only era values 0, 8, 16, 24, etc. can exist in storage.
833
+ * Eras 1-7 will be stored in the same entry as era 0, eras 9-15 will be stored in the same entry as era 8, etc.
834
+ *
835
+ * @param {number} arg
836
+ * @param {Callback<PalletDappStakingV3EraRewardSpan | undefined> =} callback
837
+ **/
838
+ eraRewards: GenericStorageQuery<(arg: number) => PalletDappStakingV3EraRewardSpan | undefined>;
839
+
840
+ /**
841
+ * Information about period's end.
842
+ *
843
+ * @param {number} arg
844
+ * @param {Callback<PalletDappStakingV3PeriodEndInfo | undefined> =} callback
845
+ **/
846
+ periodEnd: GenericStorageQuery<(arg: number) => PalletDappStakingV3PeriodEndInfo | undefined>;
847
+
848
+ /**
849
+ * Static tier parameters used to calculate tier configuration.
850
+ *
851
+ * @param {Callback<PalletDappStakingV3TierParameters> =} callback
852
+ **/
853
+ staticTierParams: GenericStorageQuery<() => PalletDappStakingV3TierParameters>;
854
+
855
+ /**
856
+ * Tier configuration user for current & preceding eras.
857
+ *
858
+ * @param {Callback<PalletDappStakingV3TiersConfiguration> =} callback
859
+ **/
860
+ tierConfig: GenericStorageQuery<() => PalletDappStakingV3TiersConfiguration>;
861
+
862
+ /**
863
+ * Information about which tier a dApp belonged to in a specific era.
864
+ *
865
+ * @param {number} arg
866
+ * @param {Callback<PalletDappStakingV3DAppTierRewards | undefined> =} callback
867
+ **/
868
+ dAppTiers: GenericStorageQuery<(arg: number) => PalletDappStakingV3DAppTierRewards | undefined>;
869
+
870
+ /**
871
+ * History cleanup marker - holds information about which DB entries should be cleaned up next, when applicable.
872
+ *
873
+ * @param {Callback<PalletDappStakingV3CleanupMarker> =} callback
874
+ **/
875
+ historyCleanupMarker: GenericStorageQuery<() => PalletDappStakingV3CleanupMarker>;
876
+
877
+ /**
878
+ * Safeguard to prevent unwanted operations in production.
879
+ * Kept as a storage without extrinsic setter, so we can still enable it for some
880
+ * chain-fork debugging if required.
881
+ *
882
+ * @param {Callback<boolean> =} callback
883
+ **/
884
+ safeguard: GenericStorageQuery<() => boolean>;
885
+
886
+ /**
887
+ * Generic pallet storage query
888
+ **/
889
+ [storage: string]: GenericStorageQuery;
890
+ };
891
+ /**
892
+ * Pallet `Assets`'s storage queries
893
+ **/
894
+ assets: {
895
+ /**
896
+ * Details of an asset.
897
+ *
898
+ * @param {bigint} arg
899
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
900
+ **/
901
+ asset: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetDetails | undefined>;
902
+
903
+ /**
904
+ * The holdings of a specific account for a specific asset.
905
+ *
906
+ * @param {[bigint, AccountId32Like]} arg
907
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
908
+ **/
909
+ account: GenericStorageQuery<(arg: [bigint, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
910
+
911
+ /**
912
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
913
+ * is the amount of `T::Currency` reserved for storing this.
914
+ * First key is the asset ID, second key is the owner and third key is the delegate.
915
+ *
916
+ * @param {[bigint, AccountId32Like, AccountId32Like]} arg
917
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
918
+ **/
919
+ approvals: GenericStorageQuery<
920
+ (arg: [bigint, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined
921
+ >;
922
+
923
+ /**
924
+ * Metadata of an asset.
925
+ *
926
+ * @param {bigint} arg
927
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
928
+ **/
929
+ metadata: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetMetadata>;
930
+
931
+ /**
932
+ * Generic pallet storage query
933
+ **/
934
+ [storage: string]: GenericStorageQuery;
935
+ };
936
+ /**
937
+ * Pallet `Authorship`'s storage queries
938
+ **/
939
+ authorship: {
940
+ /**
941
+ * Author of current block.
942
+ *
943
+ * @param {Callback<AccountId32 | undefined> =} callback
944
+ **/
945
+ author: GenericStorageQuery<() => AccountId32 | undefined>;
946
+
947
+ /**
948
+ * Generic pallet storage query
949
+ **/
950
+ [storage: string]: GenericStorageQuery;
951
+ };
952
+ /**
953
+ * Pallet `CollatorSelection`'s storage queries
954
+ **/
955
+ collatorSelection: {
956
+ /**
957
+ * The invulnerable, fixed collators.
958
+ *
959
+ * @param {Callback<Array<AccountId32>> =} callback
960
+ **/
961
+ invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
962
+
963
+ /**
964
+ * The (community, limited) collation candidates.
965
+ *
966
+ * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
967
+ **/
968
+ candidates: GenericStorageQuery<() => Array<PalletCollatorSelectionCandidateInfo>>;
969
+
970
+ /**
971
+ * Last block authored by collator.
972
+ *
973
+ * @param {AccountId32Like} arg
974
+ * @param {Callback<number> =} callback
975
+ **/
976
+ lastAuthoredBlock: GenericStorageQuery<(arg: AccountId32Like) => number>;
977
+
978
+ /**
979
+ * Desired number of candidates.
980
+ *
981
+ * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
982
+ *
983
+ * @param {Callback<number> =} callback
984
+ **/
985
+ desiredCandidates: GenericStorageQuery<() => number>;
986
+
987
+ /**
988
+ * Fixed amount to deposit to become a collator.
989
+ *
990
+ * When a collator calls `leave_intent` they immediately receive the deposit back.
991
+ *
992
+ * @param {Callback<bigint> =} callback
993
+ **/
994
+ candidacyBond: GenericStorageQuery<() => bigint>;
995
+
996
+ /**
997
+ * Destination account for slashed amount.
998
+ *
999
+ * @param {Callback<AccountId32 | undefined> =} callback
1000
+ **/
1001
+ slashDestination: GenericStorageQuery<() => AccountId32 | undefined>;
1002
+
1003
+ /**
1004
+ * Generic pallet storage query
1005
+ **/
1006
+ [storage: string]: GenericStorageQuery;
1007
+ };
1008
+ /**
1009
+ * Pallet `Session`'s storage queries
1010
+ **/
1011
+ session: {
1012
+ /**
1013
+ * The current set of validators.
1014
+ *
1015
+ * @param {Callback<Array<AccountId32>> =} callback
1016
+ **/
1017
+ validators: GenericStorageQuery<() => Array<AccountId32>>;
1018
+
1019
+ /**
1020
+ * Current index of the session.
1021
+ *
1022
+ * @param {Callback<number> =} callback
1023
+ **/
1024
+ currentIndex: GenericStorageQuery<() => number>;
1025
+
1026
+ /**
1027
+ * True if the underlying economic identities or weighting behind the validators
1028
+ * has changed in the queued validator set.
1029
+ *
1030
+ * @param {Callback<boolean> =} callback
1031
+ **/
1032
+ queuedChanged: GenericStorageQuery<() => boolean>;
1033
+
1034
+ /**
1035
+ * The queued keys for the next session. When the next session begins, these keys
1036
+ * will be used to determine the validator's session keys.
1037
+ *
1038
+ * @param {Callback<Array<[AccountId32, AstarRuntimeSessionKeys]>> =} callback
1039
+ **/
1040
+ queuedKeys: GenericStorageQuery<() => Array<[AccountId32, AstarRuntimeSessionKeys]>>;
1041
+
1042
+ /**
1043
+ * Indices of disabled validators.
1044
+ *
1045
+ * The vec is always kept sorted so that we can find whether a given validator is
1046
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
1047
+ * a new set of identities.
1048
+ *
1049
+ * @param {Callback<Array<number>> =} callback
1050
+ **/
1051
+ disabledValidators: GenericStorageQuery<() => Array<number>>;
1052
+
1053
+ /**
1054
+ * The next session keys for a validator.
1055
+ *
1056
+ * @param {AccountId32Like} arg
1057
+ * @param {Callback<AstarRuntimeSessionKeys | undefined> =} callback
1058
+ **/
1059
+ nextKeys: GenericStorageQuery<(arg: AccountId32Like) => AstarRuntimeSessionKeys | undefined>;
1060
+
1061
+ /**
1062
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
1063
+ *
1064
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
1065
+ * @param {Callback<AccountId32 | undefined> =} callback
1066
+ **/
1067
+ keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined>;
1068
+
1069
+ /**
1070
+ * Generic pallet storage query
1071
+ **/
1072
+ [storage: string]: GenericStorageQuery;
1073
+ };
1074
+ /**
1075
+ * Pallet `Aura`'s storage queries
1076
+ **/
1077
+ aura: {
1078
+ /**
1079
+ * The current authority set.
1080
+ *
1081
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
1082
+ **/
1083
+ authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
1084
+
1085
+ /**
1086
+ * The current slot of this block.
1087
+ *
1088
+ * This will be set in `on_initialize`.
1089
+ *
1090
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
1091
+ **/
1092
+ currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
1093
+
1094
+ /**
1095
+ * Generic pallet storage query
1096
+ **/
1097
+ [storage: string]: GenericStorageQuery;
1098
+ };
1099
+ /**
1100
+ * Pallet `AuraExt`'s storage queries
1101
+ **/
1102
+ auraExt: {
1103
+ /**
1104
+ * Serves as cache for the authorities.
1105
+ *
1106
+ * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
1107
+ * but we require the old authorities to verify the seal when validating a PoV. This will always
1108
+ * be updated to the latest AuRa authorities in `on_finalize`.
1109
+ *
1110
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
1111
+ **/
1112
+ authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
1113
+
1114
+ /**
1115
+ * Generic pallet storage query
1116
+ **/
1117
+ [storage: string]: GenericStorageQuery;
1118
+ };
1119
+ /**
1120
+ * Pallet `XcmpQueue`'s storage queries
1121
+ **/
1122
+ xcmpQueue: {
1123
+ /**
1124
+ * Status of the inbound XCMP channels.
1125
+ *
1126
+ * @param {Callback<Array<CumulusPalletXcmpQueueInboundChannelDetails>> =} callback
1127
+ **/
1128
+ inboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueInboundChannelDetails>>;
1129
+
1130
+ /**
1131
+ * Inbound aggregate XCMP messages. It can only be one per ParaId/block.
1132
+ *
1133
+ * @param {[PolkadotParachainPrimitivesId, number]} arg
1134
+ * @param {Callback<Bytes> =} callback
1135
+ **/
1136
+ inboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesId, number]) => Bytes>;
1137
+
1138
+ /**
1139
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
1140
+ * and last outbound message. If the two indices are equal, then it indicates an empty
1141
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
1142
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
1143
+ * case of the need to send a high-priority signal message this block.
1144
+ * The bool is true if there is a signal message waiting to be sent.
1145
+ *
1146
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
1147
+ **/
1148
+ outboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
1149
+
1150
+ /**
1151
+ * The messages outbound in a given XCMP channel.
1152
+ *
1153
+ * @param {[PolkadotParachainPrimitivesId, number]} arg
1154
+ * @param {Callback<Bytes> =} callback
1155
+ **/
1156
+ outboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesId, number]) => Bytes>;
1157
+
1158
+ /**
1159
+ * Any signal messages waiting to be sent.
1160
+ *
1161
+ * @param {PolkadotParachainPrimitivesId} arg
1162
+ * @param {Callback<Bytes> =} callback
1163
+ **/
1164
+ signalMessages: GenericStorageQuery<(arg: PolkadotParachainPrimitivesId) => Bytes>;
1165
+
1166
+ /**
1167
+ * The configuration which controls the dynamics of the outbound queue.
1168
+ *
1169
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
1170
+ **/
1171
+ queueConfig: GenericStorageQuery<() => CumulusPalletXcmpQueueQueueConfigData>;
1172
+
1173
+ /**
1174
+ * The messages that exceeded max individual message weight budget.
1175
+ *
1176
+ * These message stay in this storage map until they are manually dispatched via
1177
+ * `service_overweight`.
1178
+ *
1179
+ * @param {bigint} arg
1180
+ * @param {Callback<[PolkadotParachainPrimitivesId, number, Bytes] | undefined> =} callback
1181
+ **/
1182
+ overweight: GenericStorageQuery<(arg: bigint) => [PolkadotParachainPrimitivesId, number, Bytes] | undefined>;
1183
+
1184
+ /**
1185
+ * Counter for the related counted storage map
1186
+ *
1187
+ * @param {Callback<number> =} callback
1188
+ **/
1189
+ counterForOverweight: GenericStorageQuery<() => number>;
1190
+
1191
+ /**
1192
+ * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next
1193
+ * available free overweight index.
1194
+ *
1195
+ * @param {Callback<bigint> =} callback
1196
+ **/
1197
+ overweightCount: GenericStorageQuery<() => bigint>;
1198
+
1199
+ /**
1200
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
1201
+ *
1202
+ * @param {Callback<boolean> =} callback
1203
+ **/
1204
+ queueSuspended: GenericStorageQuery<() => boolean>;
1205
+
1206
+ /**
1207
+ * Generic pallet storage query
1208
+ **/
1209
+ [storage: string]: GenericStorageQuery;
1210
+ };
1211
+ /**
1212
+ * Pallet `PolkadotXcm`'s storage queries
1213
+ **/
1214
+ polkadotXcm: {
1215
+ /**
1216
+ * The latest available query index.
1217
+ *
1218
+ * @param {Callback<bigint> =} callback
1219
+ **/
1220
+ queryCounter: GenericStorageQuery<() => bigint>;
1221
+
1222
+ /**
1223
+ * The ongoing queries.
1224
+ *
1225
+ * @param {bigint} arg
1226
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
1227
+ **/
1228
+ queries: GenericStorageQuery<(arg: bigint) => PalletXcmQueryStatus | undefined>;
1229
+
1230
+ /**
1231
+ * The existing asset traps.
1232
+ *
1233
+ * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
1234
+ * times this pair has been trapped (usually just 1 if it exists at all).
1235
+ *
1236
+ * @param {H256} arg
1237
+ * @param {Callback<number> =} callback
1238
+ **/
1239
+ assetTraps: GenericStorageQuery<(arg: H256) => number>;
1240
+
1241
+ /**
1242
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
1243
+ * then the destinations whose XCM version is unknown are considered unreachable.
1244
+ *
1245
+ * @param {Callback<number | undefined> =} callback
1246
+ **/
1247
+ safeXcmVersion: GenericStorageQuery<() => number | undefined>;
1248
+
1249
+ /**
1250
+ * The Latest versions that we know various locations support.
1251
+ *
1252
+ * @param {[number, XcmVersionedMultiLocation]} arg
1253
+ * @param {Callback<number | undefined> =} callback
1254
+ **/
1255
+ supportedVersion: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => number | undefined>;
1256
+
1257
+ /**
1258
+ * All locations that we have requested version notifications from.
1259
+ *
1260
+ * @param {[number, XcmVersionedMultiLocation]} arg
1261
+ * @param {Callback<bigint | undefined> =} callback
1262
+ **/
1263
+ versionNotifiers: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => bigint | undefined>;
1264
+
1265
+ /**
1266
+ * The target locations that are subscribed to our version changes, as well as the most recent
1267
+ * of our versions we informed them of.
1268
+ *
1269
+ * @param {[number, XcmVersionedMultiLocation]} arg
1270
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
1271
+ **/
1272
+ versionNotifyTargets: GenericStorageQuery<
1273
+ (arg: [number, XcmVersionedMultiLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined
1274
+ >;
1275
+
1276
+ /**
1277
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
1278
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
1279
+ * which is used as a prioritization.
1280
+ *
1281
+ * @param {Callback<Array<[XcmVersionedMultiLocation, number]>> =} callback
1282
+ **/
1283
+ versionDiscoveryQueue: GenericStorageQuery<() => Array<[XcmVersionedMultiLocation, number]>>;
1284
+
1285
+ /**
1286
+ * The current migration's stage, if any.
1287
+ *
1288
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
1289
+ **/
1290
+ currentMigration: GenericStorageQuery<() => PalletXcmVersionMigrationStage | undefined>;
1291
+
1292
+ /**
1293
+ * Fungible assets which we know are locked on a remote chain.
1294
+ *
1295
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
1296
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1297
+ **/
1298
+ remoteLockedFungibles: GenericStorageQuery<
1299
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined
1300
+ >;
1301
+
1302
+ /**
1303
+ * Fungible assets which we know are locked on this chain.
1304
+ *
1305
+ * @param {AccountId32Like} arg
1306
+ * @param {Callback<Array<[bigint, XcmVersionedMultiLocation]> | undefined> =} callback
1307
+ **/
1308
+ lockedFungibles: GenericStorageQuery<
1309
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedMultiLocation]> | undefined
1310
+ >;
1311
+
1312
+ /**
1313
+ * Global suspension state of the XCM executor.
1314
+ *
1315
+ * @param {Callback<boolean> =} callback
1316
+ **/
1317
+ xcmExecutionSuspended: GenericStorageQuery<() => boolean>;
1318
+
1319
+ /**
1320
+ * Generic pallet storage query
1321
+ **/
1322
+ [storage: string]: GenericStorageQuery;
1323
+ };
1324
+ /**
1325
+ * Pallet `DmpQueue`'s storage queries
1326
+ **/
1327
+ dmpQueue: {
1328
+ /**
1329
+ * The configuration.
1330
+ *
1331
+ * @param {Callback<CumulusPalletDmpQueueConfigData> =} callback
1332
+ **/
1333
+ configuration: GenericStorageQuery<() => CumulusPalletDmpQueueConfigData>;
1334
+
1335
+ /**
1336
+ * The page index.
1337
+ *
1338
+ * @param {Callback<CumulusPalletDmpQueuePageIndexData> =} callback
1339
+ **/
1340
+ pageIndex: GenericStorageQuery<() => CumulusPalletDmpQueuePageIndexData>;
1341
+
1342
+ /**
1343
+ * The queue pages.
1344
+ *
1345
+ * @param {number} arg
1346
+ * @param {Callback<Array<[number, Bytes]>> =} callback
1347
+ **/
1348
+ pages: GenericStorageQuery<(arg: number) => Array<[number, Bytes]>>;
1349
+
1350
+ /**
1351
+ * The overweight messages.
1352
+ *
1353
+ * @param {bigint} arg
1354
+ * @param {Callback<[number, Bytes] | undefined> =} callback
1355
+ **/
1356
+ overweight: GenericStorageQuery<(arg: bigint) => [number, Bytes] | undefined>;
1357
+
1358
+ /**
1359
+ * Counter for the related counted storage map
1360
+ *
1361
+ * @param {Callback<number> =} callback
1362
+ **/
1363
+ counterForOverweight: GenericStorageQuery<() => number>;
1364
+
1365
+ /**
1366
+ * Generic pallet storage query
1367
+ **/
1368
+ [storage: string]: GenericStorageQuery;
1369
+ };
1370
+ /**
1371
+ * Pallet `XcAssetConfig`'s storage queries
1372
+ **/
1373
+ xcAssetConfig: {
1374
+ /**
1375
+ * Mapping from an asset id to asset type.
1376
+ * Can be used when receiving transaction specifying an asset directly,
1377
+ * like transferring an asset from this chain to another.
1378
+ *
1379
+ * @param {bigint} arg
1380
+ * @param {Callback<XcmVersionedMultiLocation | undefined> =} callback
1381
+ **/
1382
+ assetIdToLocation: GenericStorageQuery<(arg: bigint) => XcmVersionedMultiLocation | undefined>;
1383
+
1384
+ /**
1385
+ * Mapping from an asset type to an asset id.
1386
+ * Can be used when receiving a multilocation XCM message to retrieve
1387
+ * the corresponding asset in which tokens should me minted.
1388
+ *
1389
+ * @param {XcmVersionedMultiLocation} arg
1390
+ * @param {Callback<bigint | undefined> =} callback
1391
+ **/
1392
+ assetLocationToId: GenericStorageQuery<(arg: XcmVersionedMultiLocation) => bigint | undefined>;
1393
+
1394
+ /**
1395
+ * Stores the units per second for local execution for a AssetLocation.
1396
+ * This is used to know how to charge for XCM execution in a particular asset.
1397
+ *
1398
+ * Not all asset types are supported for payment. If value exists here, it means it is supported.
1399
+ *
1400
+ * @param {XcmVersionedMultiLocation} arg
1401
+ * @param {Callback<bigint | undefined> =} callback
1402
+ **/
1403
+ assetLocationUnitsPerSecond: GenericStorageQuery<(arg: XcmVersionedMultiLocation) => bigint | undefined>;
1404
+
1405
+ /**
1406
+ * Generic pallet storage query
1407
+ **/
1408
+ [storage: string]: GenericStorageQuery;
1409
+ };
1410
+ /**
1411
+ * Pallet `EVM`'s storage queries
1412
+ **/
1413
+ eVM: {
1414
+ /**
1415
+ *
1416
+ * @param {H160} arg
1417
+ * @param {Callback<Bytes> =} callback
1418
+ **/
1419
+ accountCodes: GenericStorageQuery<(arg: H160) => Bytes>;
1420
+
1421
+ /**
1422
+ *
1423
+ * @param {H160} arg
1424
+ * @param {Callback<PalletEvmCodeMetadata | undefined> =} callback
1425
+ **/
1426
+ accountCodesMetadata: GenericStorageQuery<(arg: H160) => PalletEvmCodeMetadata | undefined>;
1427
+
1428
+ /**
1429
+ *
1430
+ * @param {[H160, H256]} arg
1431
+ * @param {Callback<H256> =} callback
1432
+ **/
1433
+ accountStorages: GenericStorageQuery<(arg: [H160, H256]) => H256>;
1434
+
1435
+ /**
1436
+ * Generic pallet storage query
1437
+ **/
1438
+ [storage: string]: GenericStorageQuery;
1439
+ };
1440
+ /**
1441
+ * Pallet `Ethereum`'s storage queries
1442
+ **/
1443
+ ethereum: {
1444
+ /**
1445
+ * Current building block's transactions and receipts.
1446
+ *
1447
+ * @param {Callback<Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>> =} callback
1448
+ **/
1449
+ pending: GenericStorageQuery<
1450
+ () => Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>
1451
+ >;
1452
+
1453
+ /**
1454
+ * The current Ethereum block.
1455
+ *
1456
+ * @param {Callback<EthereumBlock | undefined> =} callback
1457
+ **/
1458
+ currentBlock: GenericStorageQuery<() => EthereumBlock | undefined>;
1459
+
1460
+ /**
1461
+ * The current Ethereum receipts.
1462
+ *
1463
+ * @param {Callback<Array<EthereumReceiptReceiptV3> | undefined> =} callback
1464
+ **/
1465
+ currentReceipts: GenericStorageQuery<() => Array<EthereumReceiptReceiptV3> | undefined>;
1466
+
1467
+ /**
1468
+ * The current transaction statuses.
1469
+ *
1470
+ * @param {Callback<Array<FpRpcTransactionStatus> | undefined> =} callback
1471
+ **/
1472
+ currentTransactionStatuses: GenericStorageQuery<() => Array<FpRpcTransactionStatus> | undefined>;
1473
+
1474
+ /**
1475
+ *
1476
+ * @param {U256} arg
1477
+ * @param {Callback<H256> =} callback
1478
+ **/
1479
+ blockHash: GenericStorageQuery<(arg: U256) => H256>;
1480
+
1481
+ /**
1482
+ * Generic pallet storage query
1483
+ **/
1484
+ [storage: string]: GenericStorageQuery;
1485
+ };
1486
+ /**
1487
+ * Pallet `DynamicEvmBaseFee`'s storage queries
1488
+ **/
1489
+ dynamicEvmBaseFee: {
1490
+ /**
1491
+ *
1492
+ * @param {Callback<U256> =} callback
1493
+ **/
1494
+ baseFeePerGas: GenericStorageQuery<() => U256>;
1495
+
1496
+ /**
1497
+ * Generic pallet storage query
1498
+ **/
1499
+ [storage: string]: GenericStorageQuery;
1500
+ };
1501
+ /**
1502
+ * Pallet `Contracts`'s storage queries
1503
+ **/
1504
+ contracts: {
1505
+ /**
1506
+ * A mapping from an original code hash to the original code, untouched by instrumentation.
1507
+ *
1508
+ * @param {H256} arg
1509
+ * @param {Callback<Bytes | undefined> =} callback
1510
+ **/
1511
+ pristineCode: GenericStorageQuery<(arg: H256) => Bytes | undefined>;
1512
+
1513
+ /**
1514
+ * A mapping between an original code hash and instrumented wasm code, ready for execution.
1515
+ *
1516
+ * @param {H256} arg
1517
+ * @param {Callback<PalletContractsWasmPrefabWasmModule | undefined> =} callback
1518
+ **/
1519
+ codeStorage: GenericStorageQuery<(arg: H256) => PalletContractsWasmPrefabWasmModule | undefined>;
1520
+
1521
+ /**
1522
+ * A mapping between an original code hash and its owner information.
1523
+ *
1524
+ * @param {H256} arg
1525
+ * @param {Callback<PalletContractsWasmOwnerInfo | undefined> =} callback
1526
+ **/
1527
+ ownerInfoOf: GenericStorageQuery<(arg: H256) => PalletContractsWasmOwnerInfo | undefined>;
1528
+
1529
+ /**
1530
+ * This is a **monotonic** counter incremented on contract instantiation.
1531
+ *
1532
+ * This is used in order to generate unique trie ids for contracts.
1533
+ * The trie id of a new contract is calculated from hash(account_id, nonce).
1534
+ * The nonce is required because otherwise the following sequence would lead to
1535
+ * a possible collision of storage:
1536
+ *
1537
+ * 1. Create a new contract.
1538
+ * 2. Terminate the contract.
1539
+ * 3. Immediately recreate the contract with the same account_id.
1540
+ *
1541
+ * This is bad because the contents of a trie are deleted lazily and there might be
1542
+ * storage of the old instantiation still in it when the new contract is created. Please
1543
+ * note that we can't replace the counter by the block number because the sequence above
1544
+ * can happen in the same block. We also can't keep the account counter in memory only
1545
+ * because storage is the only way to communicate across different extrinsics in the
1546
+ * same block.
1547
+ *
1548
+ * # Note
1549
+ *
1550
+ * Do not use it to determine the number of contracts. It won't be decremented if
1551
+ * a contract is destroyed.
1552
+ *
1553
+ * @param {Callback<bigint> =} callback
1554
+ **/
1555
+ nonce: GenericStorageQuery<() => bigint>;
1556
+
1557
+ /**
1558
+ * The code associated with a given account.
1559
+ *
1560
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1561
+ *
1562
+ * @param {AccountId32Like} arg
1563
+ * @param {Callback<PalletContractsStorageContractInfo | undefined> =} callback
1564
+ **/
1565
+ contractInfoOf: GenericStorageQuery<(arg: AccountId32Like) => PalletContractsStorageContractInfo | undefined>;
1566
+
1567
+ /**
1568
+ * Evicted contracts that await child trie deletion.
1569
+ *
1570
+ * Child trie deletion is a heavy operation depending on the amount of storage items
1571
+ * stored in said trie. Therefore this operation is performed lazily in `on_idle`.
1572
+ *
1573
+ * @param {number} arg
1574
+ * @param {Callback<Bytes | undefined> =} callback
1575
+ **/
1576
+ deletionQueue: GenericStorageQuery<(arg: number) => Bytes | undefined>;
1577
+
1578
+ /**
1579
+ * A pair of monotonic counters used to track the latest contract marked for deletion
1580
+ * and the latest deleted contract in queue.
1581
+ *
1582
+ * @param {Callback<PalletContractsStorageDeletionQueueManager> =} callback
1583
+ **/
1584
+ deletionQueueCounter: GenericStorageQuery<() => PalletContractsStorageDeletionQueueManager>;
1585
+
1586
+ /**
1587
+ *
1588
+ * @param {Callback<Bytes | undefined> =} callback
1589
+ **/
1590
+ migrationInProgress: GenericStorageQuery<() => Bytes | undefined>;
1591
+
1592
+ /**
1593
+ * Generic pallet storage query
1594
+ **/
1595
+ [storage: string]: GenericStorageQuery;
1596
+ };
1597
+ /**
1598
+ * Pallet `Sudo`'s storage queries
1599
+ **/
1600
+ sudo: {
1601
+ /**
1602
+ * The `AccountId` of the sudo key.
1603
+ *
1604
+ * @param {Callback<AccountId32 | undefined> =} callback
1605
+ **/
1606
+ key: GenericStorageQuery<() => AccountId32 | undefined>;
1607
+
1608
+ /**
1609
+ * Generic pallet storage query
1610
+ **/
1611
+ [storage: string]: GenericStorageQuery;
1612
+ };
1613
+ /**
1614
+ * Pallet `StaticPriceProvider`'s storage queries
1615
+ **/
1616
+ staticPriceProvider: {
1617
+ /**
1618
+ * Current active native currency price.
1619
+ *
1620
+ * @param {Callback<FixedU64> =} callback
1621
+ **/
1622
+ activePrice: GenericStorageQuery<() => FixedU64>;
1623
+
1624
+ /**
1625
+ * Generic pallet storage query
1626
+ **/
1627
+ [storage: string]: GenericStorageQuery;
1628
+ };
1629
+ /**
1630
+ * Pallet `DappStakingMigration`'s storage queries
1631
+ **/
1632
+ dappStakingMigration: {
1633
+ /**
1634
+ * Used to store the current migration state.
1635
+ *
1636
+ * @param {Callback<PalletDappStakingMigrationMigrationState> =} callback
1637
+ **/
1638
+ migrationStateStorage: GenericStorageQuery<() => PalletDappStakingMigrationMigrationState>;
1639
+
1640
+ /**
1641
+ * Generic pallet storage query
1642
+ **/
1643
+ [storage: string]: GenericStorageQuery;
1644
+ };
1645
+ /**
1646
+ * Pallet `DappsStaking`'s storage queries
1647
+ **/
1648
+ dappsStaking: {
1649
+ /**
1650
+ * Denotes whether pallet is disabled (in maintenance mode) or not
1651
+ *
1652
+ * @param {Callback<boolean> =} callback
1653
+ **/
1654
+ palletDisabled: GenericStorageQuery<() => boolean>;
1655
+
1656
+ /**
1657
+ * Denotes whether pallet decommissioning has started or not.
1658
+ *
1659
+ * @param {Callback<boolean> =} callback
1660
+ **/
1661
+ decommissionStarted: GenericStorageQuery<() => boolean>;
1662
+
1663
+ /**
1664
+ * General information about the staker (non-smart-contract specific).
1665
+ *
1666
+ * @param {AccountId32Like} arg
1667
+ * @param {Callback<PalletDappsStakingAccountLedger> =} callback
1668
+ **/
1669
+ ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletDappsStakingAccountLedger>;
1670
+
1671
+ /**
1672
+ * The current era index.
1673
+ *
1674
+ * @param {Callback<number> =} callback
1675
+ **/
1676
+ currentEra: GenericStorageQuery<() => number>;
1677
+
1678
+ /**
1679
+ * Accumulator for block rewards during an era. It is reset at every new era
1680
+ *
1681
+ * @param {Callback<PalletDappsStakingRewardInfo> =} callback
1682
+ **/
1683
+ blockRewardAccumulator: GenericStorageQuery<() => PalletDappsStakingRewardInfo>;
1684
+
1685
+ /**
1686
+ * Mode of era forcing.
1687
+ *
1688
+ * @param {Callback<PalletDappsStakingForcing> =} callback
1689
+ **/
1690
+ forceEra: GenericStorageQuery<() => PalletDappsStakingForcing>;
1691
+
1692
+ /**
1693
+ * Stores the block number of when the next era starts
1694
+ *
1695
+ * @param {Callback<number> =} callback
1696
+ **/
1697
+ nextEraStartingBlock: GenericStorageQuery<() => number>;
1698
+
1699
+ /**
1700
+ * Simple map where developer account points to their smart contract
1701
+ *
1702
+ * @param {AccountId32Like} arg
1703
+ * @param {Callback<AstarPrimitivesDappStakingSmartContract | undefined> =} callback
1704
+ **/
1705
+ registeredDevelopers: GenericStorageQuery<
1706
+ (arg: AccountId32Like) => AstarPrimitivesDappStakingSmartContract | undefined
1707
+ >;
1708
+
1709
+ /**
1710
+ * Simple map where smart contract points to basic info about it (e.g. developer address, state)
1711
+ *
1712
+ * @param {AstarPrimitivesDappStakingSmartContract} arg
1713
+ * @param {Callback<PalletDappsStakingDAppInfo | undefined> =} callback
1714
+ **/
1715
+ registeredDapps: GenericStorageQuery<
1716
+ (arg: AstarPrimitivesDappStakingSmartContract) => PalletDappsStakingDAppInfo | undefined
1717
+ >;
1718
+
1719
+ /**
1720
+ * General information about an era like TVL, total staked value, rewards.
1721
+ *
1722
+ * @param {number} arg
1723
+ * @param {Callback<PalletDappsStakingEraInfo | undefined> =} callback
1724
+ **/
1725
+ generalEraInfo: GenericStorageQuery<(arg: number) => PalletDappsStakingEraInfo | undefined>;
1726
+
1727
+ /**
1728
+ * Staking information about contract in a particular era.
1729
+ *
1730
+ * @param {[AstarPrimitivesDappStakingSmartContract, number]} arg
1731
+ * @param {Callback<PalletDappsStakingContractStakeInfo | undefined> =} callback
1732
+ **/
1733
+ contractEraStake: GenericStorageQuery<
1734
+ (arg: [AstarPrimitivesDappStakingSmartContract, number]) => PalletDappsStakingContractStakeInfo | undefined
1735
+ >;
1736
+
1737
+ /**
1738
+ * Info about stakers stakes on particular contracts.
1739
+ *
1740
+ * @param {[AccountId32Like, AstarPrimitivesDappStakingSmartContract]} arg
1741
+ * @param {Callback<PalletDappsStakingStakerInfo> =} callback
1742
+ **/
1743
+ generalStakerInfo: GenericStorageQuery<
1744
+ (arg: [AccountId32Like, AstarPrimitivesDappStakingSmartContract]) => PalletDappsStakingStakerInfo
1745
+ >;
1746
+
1747
+ /**
1748
+ * Stores the current pallet storage version.
1749
+ *
1750
+ * @param {Callback<PalletDappsStakingVersion> =} callback
1751
+ **/
1752
+ storageVersion: GenericStorageQuery<() => PalletDappsStakingVersion>;
1753
+
1754
+ /**
1755
+ * Generic pallet storage query
1756
+ **/
1757
+ [storage: string]: GenericStorageQuery;
1758
+ };
1759
+ }