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