@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,2282 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types';
4
+ import type {
5
+ AccountId20,
6
+ AccountId20Like,
7
+ H256,
8
+ Bytes,
9
+ Digest,
10
+ Phase,
11
+ FixedU128,
12
+ Perbill,
13
+ Percent,
14
+ Data,
15
+ BytesLike,
16
+ FixedBytes,
17
+ H160,
18
+ U256,
19
+ } from 'dedot/codecs';
20
+ import type {
21
+ FrameSystemAccountInfo,
22
+ FrameSupportDispatchPerDispatchClass,
23
+ FrameSystemEventRecord,
24
+ FrameSystemLastRuntimeUpgradeInfo,
25
+ FrameSystemCodeUpgradeAuthorization,
26
+ CumulusPalletParachainSystemUnincludedSegmentAncestor,
27
+ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
28
+ PolkadotPrimitivesV6PersistedValidationData,
29
+ PolkadotPrimitivesV6UpgradeRestriction,
30
+ PolkadotPrimitivesV6UpgradeGoAhead,
31
+ SpTrieStorageProof,
32
+ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
33
+ PolkadotPrimitivesV6AbridgedHostConfiguration,
34
+ CumulusPrimitivesParachainInherentMessageQueueChain,
35
+ PolkadotParachainPrimitivesPrimitivesId,
36
+ PolkadotCorePrimitivesOutboundHrmpMessage,
37
+ SpWeightsWeightV2Weight,
38
+ PalletBalancesAccountData,
39
+ PalletBalancesBalanceLock,
40
+ PalletBalancesReserveData,
41
+ PalletBalancesIdAmount,
42
+ PalletBalancesIdAmount002,
43
+ PalletTransactionPaymentReleases,
44
+ PalletParachainStakingParachainBondConfig,
45
+ PalletParachainStakingRoundInfo,
46
+ PalletParachainStakingDelegator,
47
+ PalletParachainStakingCandidateMetadata,
48
+ PalletParachainStakingDelegationRequestsScheduledRequest,
49
+ PalletParachainStakingAutoCompoundAutoCompoundConfig,
50
+ PalletParachainStakingDelegations,
51
+ PalletParachainStakingSetBoundedOrderedSet,
52
+ PalletParachainStakingCollatorSnapshot,
53
+ PalletParachainStakingDelayedPayout,
54
+ PalletParachainStakingInflationInflationInfo,
55
+ PalletAuthorSlotFilterNumNonZeroU32,
56
+ PalletAuthorMappingRegistrationInfo,
57
+ NimbusPrimitivesNimbusCryptoPublic,
58
+ PalletMoonbeamOrbitersCollatorPoolInfo,
59
+ PalletProxyProxyDefinition,
60
+ PalletProxyAnnouncement,
61
+ PalletIdentityRegistration,
62
+ PalletIdentityRegistrarInfo,
63
+ PalletIdentityAuthorityProperties,
64
+ PalletMultisigMultisig,
65
+ PalletEvmCodeMetadata,
66
+ EthereumTransactionTransactionV2,
67
+ FpRpcTransactionStatus,
68
+ EthereumReceiptReceiptV3,
69
+ EthereumBlock,
70
+ PalletSchedulerScheduled,
71
+ PalletPreimageOldRequestStatus,
72
+ PalletPreimageRequestStatus,
73
+ PalletConvictionVotingVoteVoting,
74
+ PalletReferendaReferendumInfo,
75
+ MoonbeamRuntimeRuntimeCall,
76
+ PalletCollectiveVotes,
77
+ PalletTreasuryProposal,
78
+ PalletTreasurySpendStatus,
79
+ PalletCrowdloanRewardsRewardInfo,
80
+ CumulusPalletXcmpQueueOutboundChannelDetails,
81
+ CumulusPalletXcmpQueueQueueConfigData,
82
+ CumulusPalletDmpQueueMigrationState,
83
+ PalletXcmQueryStatus,
84
+ XcmVersionedLocation,
85
+ PalletXcmVersionMigrationStage,
86
+ PalletXcmRemoteLockedFungibleRecord,
87
+ XcmVersionedAssetId,
88
+ PalletAssetsAssetDetails,
89
+ PalletAssetsAssetAccount,
90
+ PalletAssetsApproval,
91
+ PalletAssetsAssetMetadata,
92
+ MoonbeamRuntimeXcmConfigAssetType,
93
+ PalletXcmTransactorRemoteTransactInfoWithMaxWeight,
94
+ StagingXcmV4Location,
95
+ PalletXcmTransactorRelayIndicesRelayChainIndices,
96
+ PalletMessageQueueBookState,
97
+ CumulusPrimitivesCoreAggregateMessageOrigin,
98
+ PalletMessageQueuePage,
99
+ PalletRandomnessRequestState,
100
+ PalletRandomnessRandomnessResult,
101
+ PalletRandomnessRequestType,
102
+ } from './types';
103
+
104
+ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
105
+ /**
106
+ * Pallet `System`'s storage queries
107
+ **/
108
+ system: {
109
+ /**
110
+ * The full account information for a particular account ID.
111
+ *
112
+ * @param {AccountId20Like} arg
113
+ * @param {Callback<FrameSystemAccountInfo> =} callback
114
+ **/
115
+ account: GenericStorageQuery<Rv, (arg: AccountId20Like) => FrameSystemAccountInfo, AccountId20>;
116
+
117
+ /**
118
+ * Total extrinsics count for the current block.
119
+ *
120
+ * @param {Callback<number | undefined> =} callback
121
+ **/
122
+ extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
123
+
124
+ /**
125
+ * The current weight for the block.
126
+ *
127
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
128
+ **/
129
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
130
+
131
+ /**
132
+ * Total length (in bytes) for all extrinsics put together, for the current block.
133
+ *
134
+ * @param {Callback<number | undefined> =} callback
135
+ **/
136
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
137
+
138
+ /**
139
+ * Map of block numbers to block hashes.
140
+ *
141
+ * @param {number} arg
142
+ * @param {Callback<H256> =} callback
143
+ **/
144
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
145
+
146
+ /**
147
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
148
+ *
149
+ * @param {number} arg
150
+ * @param {Callback<Bytes> =} callback
151
+ **/
152
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
153
+
154
+ /**
155
+ * The current block number being processed. Set by `execute_block`.
156
+ *
157
+ * @param {Callback<number> =} callback
158
+ **/
159
+ number: GenericStorageQuery<Rv, () => number>;
160
+
161
+ /**
162
+ * Hash of the previous block.
163
+ *
164
+ * @param {Callback<H256> =} callback
165
+ **/
166
+ parentHash: GenericStorageQuery<Rv, () => H256>;
167
+
168
+ /**
169
+ * Digest of the current block, also part of the block header.
170
+ *
171
+ * @param {Callback<Digest> =} callback
172
+ **/
173
+ digest: GenericStorageQuery<Rv, () => Digest>;
174
+
175
+ /**
176
+ * Events deposited for the current block.
177
+ *
178
+ * NOTE: The item is unbound and should therefore never be read on chain.
179
+ * It could otherwise inflate the PoV size of a block.
180
+ *
181
+ * Events have a large in-memory size. Box the events to not go out-of-memory
182
+ * just in case someone still reads them from within the runtime.
183
+ *
184
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
185
+ **/
186
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
187
+
188
+ /**
189
+ * The number of events in the `Events<T>` list.
190
+ *
191
+ * @param {Callback<number> =} callback
192
+ **/
193
+ eventCount: GenericStorageQuery<Rv, () => number>;
194
+
195
+ /**
196
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
197
+ * of events in the `<Events<T>>` list.
198
+ *
199
+ * All topic vectors have deterministic storage locations depending on the topic. This
200
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
201
+ * in case of changes fetch the list of events of interest.
202
+ *
203
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
204
+ * the `EventIndex` then in case if the topic has the same contents on the next block
205
+ * no notification will be triggered thus the event might be lost.
206
+ *
207
+ * @param {H256} arg
208
+ * @param {Callback<Array<[number, number]>> =} callback
209
+ **/
210
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
211
+
212
+ /**
213
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
214
+ *
215
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
216
+ **/
217
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
218
+
219
+ /**
220
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
221
+ *
222
+ * @param {Callback<boolean> =} callback
223
+ **/
224
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
225
+
226
+ /**
227
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
228
+ * (default) if not.
229
+ *
230
+ * @param {Callback<boolean> =} callback
231
+ **/
232
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
233
+
234
+ /**
235
+ * The execution phase of the block.
236
+ *
237
+ * @param {Callback<Phase | undefined> =} callback
238
+ **/
239
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
240
+
241
+ /**
242
+ * `Some` if a code upgrade has been authorized.
243
+ *
244
+ * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
245
+ **/
246
+ authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
247
+
248
+ /**
249
+ * Generic pallet storage query
250
+ **/
251
+ [storage: string]: GenericStorageQuery<Rv>;
252
+ };
253
+ /**
254
+ * Pallet `ParachainSystem`'s storage queries
255
+ **/
256
+ parachainSystem: {
257
+ /**
258
+ * Latest included block descendants the runtime accepted. In other words, these are
259
+ * ancestors of the currently executing block which have not been included in the observed
260
+ * relay-chain state.
261
+ *
262
+ * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
263
+ * in the pallet.
264
+ *
265
+ * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
266
+ **/
267
+ unincludedSegment: GenericStorageQuery<Rv, () => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
268
+
269
+ /**
270
+ * Storage field that keeps track of bandwidth used by the unincluded segment along with the
271
+ * latest HRMP watermark. Used for limiting the acceptance of new blocks with
272
+ * respect to relay chain constraints.
273
+ *
274
+ * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
275
+ **/
276
+ aggregatedUnincludedSegment: GenericStorageQuery<
277
+ Rv,
278
+ () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
279
+ >;
280
+
281
+ /**
282
+ * In case of a scheduled upgrade, this storage field contains the validation code to be
283
+ * applied.
284
+ *
285
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
286
+ * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
287
+ * with the new validation code. This concludes the upgrade process.
288
+ *
289
+ * @param {Callback<Bytes> =} callback
290
+ **/
291
+ pendingValidationCode: GenericStorageQuery<Rv, () => Bytes>;
292
+
293
+ /**
294
+ * Validation code that is set by the parachain and is to be communicated to collator and
295
+ * consequently the relay-chain.
296
+ *
297
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
298
+ * the value.
299
+ *
300
+ * @param {Callback<Bytes | undefined> =} callback
301
+ **/
302
+ newValidationCode: GenericStorageQuery<Rv, () => Bytes | undefined>;
303
+
304
+ /**
305
+ * The [`PersistedValidationData`] set for this block.
306
+ * This value is expected to be set only once per block and it's never stored
307
+ * in the trie.
308
+ *
309
+ * @param {Callback<PolkadotPrimitivesV6PersistedValidationData | undefined> =} callback
310
+ **/
311
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6PersistedValidationData | undefined>;
312
+
313
+ /**
314
+ * Were the validation data set to notify the relay chain?
315
+ *
316
+ * @param {Callback<boolean> =} callback
317
+ **/
318
+ didSetValidationCode: GenericStorageQuery<Rv, () => boolean>;
319
+
320
+ /**
321
+ * The relay chain block number associated with the last parachain block.
322
+ *
323
+ * This is updated in `on_finalize`.
324
+ *
325
+ * @param {Callback<number> =} callback
326
+ **/
327
+ lastRelayChainBlockNumber: GenericStorageQuery<Rv, () => number>;
328
+
329
+ /**
330
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
331
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
332
+ * candidate will be invalid.
333
+ *
334
+ * This storage item is a mirror of the corresponding value for the current parachain from the
335
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
336
+ * set after the inherent.
337
+ *
338
+ * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
339
+ **/
340
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
341
+
342
+ /**
343
+ * Optional upgrade go-ahead signal from the relay-chain.
344
+ *
345
+ * This storage item is a mirror of the corresponding value for the current parachain from the
346
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
347
+ * set after the inherent.
348
+ *
349
+ * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
350
+ **/
351
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
352
+
353
+ /**
354
+ * The state proof for the last relay parent block.
355
+ *
356
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
357
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
358
+ *
359
+ * This data is also absent from the genesis.
360
+ *
361
+ * @param {Callback<SpTrieStorageProof | undefined> =} callback
362
+ **/
363
+ relayStateProof: GenericStorageQuery<Rv, () => SpTrieStorageProof | undefined>;
364
+
365
+ /**
366
+ * The snapshot of some state related to messaging relevant to the current parachain as per
367
+ * the relay parent.
368
+ *
369
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
370
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
371
+ *
372
+ * This data is also absent from the genesis.
373
+ *
374
+ * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
375
+ **/
376
+ relevantMessagingState: GenericStorageQuery<
377
+ Rv,
378
+ () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
379
+ >;
380
+
381
+ /**
382
+ * The parachain host configuration that was obtained from the relay parent.
383
+ *
384
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
385
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
386
+ *
387
+ * This data is also absent from the genesis.
388
+ *
389
+ * @param {Callback<PolkadotPrimitivesV6AbridgedHostConfiguration | undefined> =} callback
390
+ **/
391
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>;
392
+
393
+ /**
394
+ * The last downward message queue chain head we have observed.
395
+ *
396
+ * This value is loaded before and saved after processing inbound downward messages carried
397
+ * by the system inherent.
398
+ *
399
+ * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
400
+ **/
401
+ lastDmqMqcHead: GenericStorageQuery<Rv, () => CumulusPrimitivesParachainInherentMessageQueueChain>;
402
+
403
+ /**
404
+ * The message queue chain heads we have observed per each channel incoming channel.
405
+ *
406
+ * This value is loaded before and saved after processing inbound downward messages carried
407
+ * by the system inherent.
408
+ *
409
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
410
+ **/
411
+ lastHrmpMqcHeads: GenericStorageQuery<
412
+ Rv,
413
+ () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
414
+ >;
415
+
416
+ /**
417
+ * Number of downward messages processed in a block.
418
+ *
419
+ * This will be cleared in `on_initialize` of each new block.
420
+ *
421
+ * @param {Callback<number> =} callback
422
+ **/
423
+ processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
424
+
425
+ /**
426
+ * HRMP watermark that was set in a block.
427
+ *
428
+ * This will be cleared in `on_initialize` of each new block.
429
+ *
430
+ * @param {Callback<number> =} callback
431
+ **/
432
+ hrmpWatermark: GenericStorageQuery<Rv, () => number>;
433
+
434
+ /**
435
+ * HRMP messages that were sent in a block.
436
+ *
437
+ * This will be cleared in `on_initialize` of each new block.
438
+ *
439
+ * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
440
+ **/
441
+ hrmpOutboundMessages: GenericStorageQuery<Rv, () => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
442
+
443
+ /**
444
+ * Upward messages that were sent in a block.
445
+ *
446
+ * This will be cleared in `on_initialize` of each new block.
447
+ *
448
+ * @param {Callback<Array<Bytes>> =} callback
449
+ **/
450
+ upwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
451
+
452
+ /**
453
+ * Upward messages that are still pending and not yet send to the relay chain.
454
+ *
455
+ * @param {Callback<Array<Bytes>> =} callback
456
+ **/
457
+ pendingUpwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
458
+
459
+ /**
460
+ * The factor to multiply the base delivery fee by for UMP.
461
+ *
462
+ * @param {Callback<FixedU128> =} callback
463
+ **/
464
+ upwardDeliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
465
+
466
+ /**
467
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
468
+ * announcing the weight of `on_initialize` and `on_finalize`.
469
+ *
470
+ * @param {Callback<number> =} callback
471
+ **/
472
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<Rv, () => number>;
473
+
474
+ /**
475
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
476
+ * overrides the amount set in the Config trait.
477
+ *
478
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
479
+ **/
480
+ reservedXcmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
481
+
482
+ /**
483
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
484
+ * overrides the amount set in the Config trait.
485
+ *
486
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
487
+ **/
488
+ reservedDmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
489
+
490
+ /**
491
+ * A custom head data that should be returned as result of `validate_block`.
492
+ *
493
+ * See `Pallet::set_custom_validation_head_data` for more information.
494
+ *
495
+ * @param {Callback<Bytes | undefined> =} callback
496
+ **/
497
+ customValidationHeadData: GenericStorageQuery<Rv, () => Bytes | undefined>;
498
+
499
+ /**
500
+ * Generic pallet storage query
501
+ **/
502
+ [storage: string]: GenericStorageQuery<Rv>;
503
+ };
504
+ /**
505
+ * Pallet `Timestamp`'s storage queries
506
+ **/
507
+ timestamp: {
508
+ /**
509
+ * The current time for the current block.
510
+ *
511
+ * @param {Callback<bigint> =} callback
512
+ **/
513
+ now: GenericStorageQuery<Rv, () => bigint>;
514
+
515
+ /**
516
+ * Whether the timestamp has been updated in this block.
517
+ *
518
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
519
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
520
+ *
521
+ * @param {Callback<boolean> =} callback
522
+ **/
523
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
524
+
525
+ /**
526
+ * Generic pallet storage query
527
+ **/
528
+ [storage: string]: GenericStorageQuery<Rv>;
529
+ };
530
+ /**
531
+ * Pallet `ParachainInfo`'s storage queries
532
+ **/
533
+ parachainInfo: {
534
+ /**
535
+ *
536
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
537
+ **/
538
+ parachainId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
539
+
540
+ /**
541
+ * Generic pallet storage query
542
+ **/
543
+ [storage: string]: GenericStorageQuery<Rv>;
544
+ };
545
+ /**
546
+ * Pallet `RootTesting`'s storage queries
547
+ **/
548
+ rootTesting: {
549
+ /**
550
+ * Generic pallet storage query
551
+ **/
552
+ [storage: string]: GenericStorageQuery<Rv>;
553
+ };
554
+ /**
555
+ * Pallet `Balances`'s storage queries
556
+ **/
557
+ balances: {
558
+ /**
559
+ * The total units issued in the system.
560
+ *
561
+ * @param {Callback<bigint> =} callback
562
+ **/
563
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
564
+
565
+ /**
566
+ * The total units of outstanding deactivated balance in the system.
567
+ *
568
+ * @param {Callback<bigint> =} callback
569
+ **/
570
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
571
+
572
+ /**
573
+ * The Balances pallet example of storing the balance of an account.
574
+ *
575
+ * # Example
576
+ *
577
+ * ```nocompile
578
+ * impl pallet_balances::Config for Runtime {
579
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
580
+ * }
581
+ * ```
582
+ *
583
+ * You can also store the balance of an account in the `System` pallet.
584
+ *
585
+ * # Example
586
+ *
587
+ * ```nocompile
588
+ * impl pallet_balances::Config for Runtime {
589
+ * type AccountStore = System
590
+ * }
591
+ * ```
592
+ *
593
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
594
+ * `frame_system` data alongside the account data contrary to storing account balances in the
595
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
596
+ * NOTE: This is only used in the case that this pallet is used to store balances.
597
+ *
598
+ * @param {AccountId20Like} arg
599
+ * @param {Callback<PalletBalancesAccountData> =} callback
600
+ **/
601
+ account: GenericStorageQuery<Rv, (arg: AccountId20Like) => PalletBalancesAccountData, AccountId20>;
602
+
603
+ /**
604
+ * Any liquidity locks on some account balances.
605
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
606
+ *
607
+ * @param {AccountId20Like} arg
608
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
609
+ **/
610
+ locks: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<PalletBalancesBalanceLock>, AccountId20>;
611
+
612
+ /**
613
+ * Named reserves on some account balances.
614
+ *
615
+ * @param {AccountId20Like} arg
616
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
617
+ **/
618
+ reserves: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<PalletBalancesReserveData>, AccountId20>;
619
+
620
+ /**
621
+ * Holds on account balances.
622
+ *
623
+ * @param {AccountId20Like} arg
624
+ * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
625
+ **/
626
+ holds: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<PalletBalancesIdAmount>, AccountId20>;
627
+
628
+ /**
629
+ * Freeze locks on account balances.
630
+ *
631
+ * @param {AccountId20Like} arg
632
+ * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
633
+ **/
634
+ freezes: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<PalletBalancesIdAmount002>, AccountId20>;
635
+
636
+ /**
637
+ * Generic pallet storage query
638
+ **/
639
+ [storage: string]: GenericStorageQuery<Rv>;
640
+ };
641
+ /**
642
+ * Pallet `TransactionPayment`'s storage queries
643
+ **/
644
+ transactionPayment: {
645
+ /**
646
+ *
647
+ * @param {Callback<FixedU128> =} callback
648
+ **/
649
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
650
+
651
+ /**
652
+ *
653
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
654
+ **/
655
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
656
+
657
+ /**
658
+ * Generic pallet storage query
659
+ **/
660
+ [storage: string]: GenericStorageQuery<Rv>;
661
+ };
662
+ /**
663
+ * Pallet `ParachainStaking`'s storage queries
664
+ **/
665
+ parachainStaking: {
666
+ /**
667
+ * Commission percent taken off of rewards for all collators
668
+ *
669
+ * @param {Callback<Perbill> =} callback
670
+ **/
671
+ collatorCommission: GenericStorageQuery<Rv, () => Perbill>;
672
+
673
+ /**
674
+ * The total candidates selected every round
675
+ *
676
+ * @param {Callback<number> =} callback
677
+ **/
678
+ totalSelected: GenericStorageQuery<Rv, () => number>;
679
+
680
+ /**
681
+ * Parachain bond config info { account, percent_of_inflation }
682
+ *
683
+ * @param {Callback<PalletParachainStakingParachainBondConfig> =} callback
684
+ **/
685
+ parachainBondInfo: GenericStorageQuery<Rv, () => PalletParachainStakingParachainBondConfig>;
686
+
687
+ /**
688
+ * Current round index and next round scheduled transition
689
+ *
690
+ * @param {Callback<PalletParachainStakingRoundInfo> =} callback
691
+ **/
692
+ round: GenericStorageQuery<Rv, () => PalletParachainStakingRoundInfo>;
693
+
694
+ /**
695
+ * Get delegator state associated with an account if account is delegating else None
696
+ *
697
+ * @param {AccountId20Like} arg
698
+ * @param {Callback<PalletParachainStakingDelegator | undefined> =} callback
699
+ **/
700
+ delegatorState: GenericStorageQuery<
701
+ Rv,
702
+ (arg: AccountId20Like) => PalletParachainStakingDelegator | undefined,
703
+ AccountId20
704
+ >;
705
+
706
+ /**
707
+ * Get collator candidate info associated with an account if account is candidate else None
708
+ *
709
+ * @param {AccountId20Like} arg
710
+ * @param {Callback<PalletParachainStakingCandidateMetadata | undefined> =} callback
711
+ **/
712
+ candidateInfo: GenericStorageQuery<
713
+ Rv,
714
+ (arg: AccountId20Like) => PalletParachainStakingCandidateMetadata | undefined,
715
+ AccountId20
716
+ >;
717
+
718
+ /**
719
+ * Stores outstanding delegation requests per collator.
720
+ *
721
+ * @param {AccountId20Like} arg
722
+ * @param {Callback<Array<PalletParachainStakingDelegationRequestsScheduledRequest>> =} callback
723
+ **/
724
+ delegationScheduledRequests: GenericStorageQuery<
725
+ Rv,
726
+ (arg: AccountId20Like) => Array<PalletParachainStakingDelegationRequestsScheduledRequest>,
727
+ AccountId20
728
+ >;
729
+
730
+ /**
731
+ * Stores auto-compounding configuration per collator.
732
+ *
733
+ * @param {AccountId20Like} arg
734
+ * @param {Callback<Array<PalletParachainStakingAutoCompoundAutoCompoundConfig>> =} callback
735
+ **/
736
+ autoCompoundingDelegations: GenericStorageQuery<
737
+ Rv,
738
+ (arg: AccountId20Like) => Array<PalletParachainStakingAutoCompoundAutoCompoundConfig>,
739
+ AccountId20
740
+ >;
741
+
742
+ /**
743
+ * Top delegations for collator candidate
744
+ *
745
+ * @param {AccountId20Like} arg
746
+ * @param {Callback<PalletParachainStakingDelegations | undefined> =} callback
747
+ **/
748
+ topDelegations: GenericStorageQuery<
749
+ Rv,
750
+ (arg: AccountId20Like) => PalletParachainStakingDelegations | undefined,
751
+ AccountId20
752
+ >;
753
+
754
+ /**
755
+ * Bottom delegations for collator candidate
756
+ *
757
+ * @param {AccountId20Like} arg
758
+ * @param {Callback<PalletParachainStakingDelegations | undefined> =} callback
759
+ **/
760
+ bottomDelegations: GenericStorageQuery<
761
+ Rv,
762
+ (arg: AccountId20Like) => PalletParachainStakingDelegations | undefined,
763
+ AccountId20
764
+ >;
765
+
766
+ /**
767
+ * The collator candidates selected for the current round
768
+ *
769
+ * @param {Callback<Array<AccountId20>> =} callback
770
+ **/
771
+ selectedCandidates: GenericStorageQuery<Rv, () => Array<AccountId20>>;
772
+
773
+ /**
774
+ * Total capital locked by this staking pallet
775
+ *
776
+ * @param {Callback<bigint> =} callback
777
+ **/
778
+ total: GenericStorageQuery<Rv, () => bigint>;
779
+
780
+ /**
781
+ * The pool of collator candidates, each with their total backing stake
782
+ *
783
+ * @param {Callback<PalletParachainStakingSetBoundedOrderedSet> =} callback
784
+ **/
785
+ candidatePool: GenericStorageQuery<Rv, () => PalletParachainStakingSetBoundedOrderedSet>;
786
+
787
+ /**
788
+ * Snapshot of collator delegation stake at the start of the round
789
+ *
790
+ * @param {[number, AccountId20Like]} arg
791
+ * @param {Callback<PalletParachainStakingCollatorSnapshot | undefined> =} callback
792
+ **/
793
+ atStake: GenericStorageQuery<
794
+ Rv,
795
+ (arg: [number, AccountId20Like]) => PalletParachainStakingCollatorSnapshot | undefined,
796
+ [number, AccountId20]
797
+ >;
798
+
799
+ /**
800
+ * Delayed payouts
801
+ *
802
+ * @param {number} arg
803
+ * @param {Callback<PalletParachainStakingDelayedPayout | undefined> =} callback
804
+ **/
805
+ delayedPayouts: GenericStorageQuery<Rv, (arg: number) => PalletParachainStakingDelayedPayout | undefined, number>;
806
+
807
+ /**
808
+ * Inflation configuration
809
+ *
810
+ * @param {Callback<PalletParachainStakingInflationInflationInfo> =} callback
811
+ **/
812
+ inflationConfig: GenericStorageQuery<Rv, () => PalletParachainStakingInflationInflationInfo>;
813
+
814
+ /**
815
+ * Total points awarded to collators for block production in the round
816
+ *
817
+ * @param {number} arg
818
+ * @param {Callback<number> =} callback
819
+ **/
820
+ points: GenericStorageQuery<Rv, (arg: number) => number, number>;
821
+
822
+ /**
823
+ * Points for each collator per round
824
+ *
825
+ * @param {[number, AccountId20Like]} arg
826
+ * @param {Callback<number> =} callback
827
+ **/
828
+ awardedPts: GenericStorageQuery<Rv, (arg: [number, AccountId20Like]) => number, [number, AccountId20]>;
829
+
830
+ /**
831
+ * Killswitch to enable/disable marking offline feature.
832
+ *
833
+ * @param {Callback<boolean> =} callback
834
+ **/
835
+ enableMarkingOffline: GenericStorageQuery<Rv, () => boolean>;
836
+
837
+ /**
838
+ * Generic pallet storage query
839
+ **/
840
+ [storage: string]: GenericStorageQuery<Rv>;
841
+ };
842
+ /**
843
+ * Pallet `AuthorInherent`'s storage queries
844
+ **/
845
+ authorInherent: {
846
+ /**
847
+ * Author of current block.
848
+ *
849
+ * @param {Callback<AccountId20 | undefined> =} callback
850
+ **/
851
+ author: GenericStorageQuery<Rv, () => AccountId20 | undefined>;
852
+
853
+ /**
854
+ * Check if the inherent was included
855
+ *
856
+ * @param {Callback<boolean> =} callback
857
+ **/
858
+ inherentIncluded: GenericStorageQuery<Rv, () => boolean>;
859
+
860
+ /**
861
+ * Generic pallet storage query
862
+ **/
863
+ [storage: string]: GenericStorageQuery<Rv>;
864
+ };
865
+ /**
866
+ * Pallet `AuthorFilter`'s storage queries
867
+ **/
868
+ authorFilter: {
869
+ /**
870
+ *
871
+ * @param {Callback<Percent> =} callback
872
+ **/
873
+ eligibleRatio: GenericStorageQuery<Rv, () => Percent>;
874
+
875
+ /**
876
+ * The number of active authors that will be eligible at each height.
877
+ *
878
+ * @param {Callback<PalletAuthorSlotFilterNumNonZeroU32> =} callback
879
+ **/
880
+ eligibleCount: GenericStorageQuery<Rv, () => PalletAuthorSlotFilterNumNonZeroU32>;
881
+
882
+ /**
883
+ * Generic pallet storage query
884
+ **/
885
+ [storage: string]: GenericStorageQuery<Rv>;
886
+ };
887
+ /**
888
+ * Pallet `AuthorMapping`'s storage queries
889
+ **/
890
+ authorMapping: {
891
+ /**
892
+ * We maintain a mapping from the NimbusIds used in the consensus layer
893
+ * to the AccountIds runtime.
894
+ *
895
+ * @param {NimbusPrimitivesNimbusCryptoPublic} arg
896
+ * @param {Callback<PalletAuthorMappingRegistrationInfo | undefined> =} callback
897
+ **/
898
+ mappingWithDeposit: GenericStorageQuery<
899
+ Rv,
900
+ (arg: NimbusPrimitivesNimbusCryptoPublic) => PalletAuthorMappingRegistrationInfo | undefined,
901
+ NimbusPrimitivesNimbusCryptoPublic
902
+ >;
903
+
904
+ /**
905
+ * We maintain a reverse mapping from AccountIds to NimbusIDS
906
+ *
907
+ * @param {AccountId20Like} arg
908
+ * @param {Callback<NimbusPrimitivesNimbusCryptoPublic | undefined> =} callback
909
+ **/
910
+ nimbusLookup: GenericStorageQuery<
911
+ Rv,
912
+ (arg: AccountId20Like) => NimbusPrimitivesNimbusCryptoPublic | undefined,
913
+ AccountId20
914
+ >;
915
+
916
+ /**
917
+ * Generic pallet storage query
918
+ **/
919
+ [storage: string]: GenericStorageQuery<Rv>;
920
+ };
921
+ /**
922
+ * Pallet `MoonbeamOrbiters`'s storage queries
923
+ **/
924
+ moonbeamOrbiters: {
925
+ /**
926
+ * Account lookup override
927
+ *
928
+ * @param {AccountId20Like} arg
929
+ * @param {Callback<AccountId20 | undefined | undefined> =} callback
930
+ **/
931
+ accountLookupOverride: GenericStorageQuery<
932
+ Rv,
933
+ (arg: AccountId20Like) => AccountId20 | undefined | undefined,
934
+ AccountId20
935
+ >;
936
+
937
+ /**
938
+ * Current orbiters, with their "parent" collator
939
+ *
940
+ * @param {AccountId20Like} arg
941
+ * @param {Callback<PalletMoonbeamOrbitersCollatorPoolInfo | undefined> =} callback
942
+ **/
943
+ collatorsPool: GenericStorageQuery<
944
+ Rv,
945
+ (arg: AccountId20Like) => PalletMoonbeamOrbitersCollatorPoolInfo | undefined,
946
+ AccountId20
947
+ >;
948
+
949
+ /**
950
+ * Counter for the related counted storage map
951
+ *
952
+ * @param {Callback<number> =} callback
953
+ **/
954
+ counterForCollatorsPool: GenericStorageQuery<Rv, () => number>;
955
+
956
+ /**
957
+ * Current round index
958
+ *
959
+ * @param {Callback<number> =} callback
960
+ **/
961
+ currentRound: GenericStorageQuery<Rv, () => number>;
962
+
963
+ /**
964
+ * If true, it forces the rotation at the next round.
965
+ * A use case: when changing RotatePeriod, you need a migration code that sets this value to
966
+ * true to avoid holes in OrbiterPerRound.
967
+ *
968
+ * @param {Callback<boolean> =} callback
969
+ **/
970
+ forceRotation: GenericStorageQuery<Rv, () => boolean>;
971
+
972
+ /**
973
+ * Minimum deposit required to be registered as an orbiter
974
+ *
975
+ * @param {Callback<bigint | undefined> =} callback
976
+ **/
977
+ minOrbiterDeposit: GenericStorageQuery<Rv, () => bigint | undefined>;
978
+
979
+ /**
980
+ * Store active orbiter per round and per parent collator
981
+ *
982
+ * @param {[number, AccountId20Like]} arg
983
+ * @param {Callback<AccountId20 | undefined> =} callback
984
+ **/
985
+ orbiterPerRound: GenericStorageQuery<
986
+ Rv,
987
+ (arg: [number, AccountId20Like]) => AccountId20 | undefined,
988
+ [number, AccountId20]
989
+ >;
990
+
991
+ /**
992
+ * Check if account is an orbiter
993
+ *
994
+ * @param {AccountId20Like} arg
995
+ * @param {Callback<boolean | undefined> =} callback
996
+ **/
997
+ registeredOrbiter: GenericStorageQuery<Rv, (arg: AccountId20Like) => boolean | undefined, AccountId20>;
998
+
999
+ /**
1000
+ * Generic pallet storage query
1001
+ **/
1002
+ [storage: string]: GenericStorageQuery<Rv>;
1003
+ };
1004
+ /**
1005
+ * Pallet `Proxy`'s storage queries
1006
+ **/
1007
+ proxy: {
1008
+ /**
1009
+ * The set of account proxies. Maps the account which has delegated to the accounts
1010
+ * which are being delegated to, together with the amount held on deposit.
1011
+ *
1012
+ * @param {AccountId20Like} arg
1013
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1014
+ **/
1015
+ proxies: GenericStorageQuery<
1016
+ Rv,
1017
+ (arg: AccountId20Like) => [Array<PalletProxyProxyDefinition>, bigint],
1018
+ AccountId20
1019
+ >;
1020
+
1021
+ /**
1022
+ * The announcements made by the proxy (key).
1023
+ *
1024
+ * @param {AccountId20Like} arg
1025
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1026
+ **/
1027
+ announcements: GenericStorageQuery<
1028
+ Rv,
1029
+ (arg: AccountId20Like) => [Array<PalletProxyAnnouncement>, bigint],
1030
+ AccountId20
1031
+ >;
1032
+
1033
+ /**
1034
+ * Generic pallet storage query
1035
+ **/
1036
+ [storage: string]: GenericStorageQuery<Rv>;
1037
+ };
1038
+ /**
1039
+ * Pallet `MaintenanceMode`'s storage queries
1040
+ **/
1041
+ maintenanceMode: {
1042
+ /**
1043
+ * Whether the site is in maintenance mode
1044
+ *
1045
+ * @param {Callback<boolean> =} callback
1046
+ **/
1047
+ maintenanceMode: GenericStorageQuery<Rv, () => boolean>;
1048
+
1049
+ /**
1050
+ * Generic pallet storage query
1051
+ **/
1052
+ [storage: string]: GenericStorageQuery<Rv>;
1053
+ };
1054
+ /**
1055
+ * Pallet `Identity`'s storage queries
1056
+ **/
1057
+ identity: {
1058
+ /**
1059
+ * Information that is pertinent to identify the entity behind an account. First item is the
1060
+ * registration, second is the account's primary username.
1061
+ *
1062
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1063
+ *
1064
+ * @param {AccountId20Like} arg
1065
+ * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
1066
+ **/
1067
+ identityOf: GenericStorageQuery<
1068
+ Rv,
1069
+ (arg: AccountId20Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
1070
+ AccountId20
1071
+ >;
1072
+
1073
+ /**
1074
+ * The super-identity of an alternative "sub" identity together with its name, within that
1075
+ * context. If the account is not some other account's sub-identity, then just `None`.
1076
+ *
1077
+ * @param {AccountId20Like} arg
1078
+ * @param {Callback<[AccountId20, Data] | undefined> =} callback
1079
+ **/
1080
+ superOf: GenericStorageQuery<Rv, (arg: AccountId20Like) => [AccountId20, Data] | undefined, AccountId20>;
1081
+
1082
+ /**
1083
+ * Alternative "sub" identities of this account.
1084
+ *
1085
+ * The first item is the deposit, the second is a vector of the accounts.
1086
+ *
1087
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1088
+ *
1089
+ * @param {AccountId20Like} arg
1090
+ * @param {Callback<[bigint, Array<AccountId20>]> =} callback
1091
+ **/
1092
+ subsOf: GenericStorageQuery<Rv, (arg: AccountId20Like) => [bigint, Array<AccountId20>], AccountId20>;
1093
+
1094
+ /**
1095
+ * The set of registrars. Not expected to get very big as can only be added through a
1096
+ * special origin (likely a council motion).
1097
+ *
1098
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
1099
+ *
1100
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1101
+ **/
1102
+ registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
1103
+
1104
+ /**
1105
+ * A map of the accounts who are authorized to grant usernames.
1106
+ *
1107
+ * @param {AccountId20Like} arg
1108
+ * @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
1109
+ **/
1110
+ usernameAuthorities: GenericStorageQuery<
1111
+ Rv,
1112
+ (arg: AccountId20Like) => PalletIdentityAuthorityProperties | undefined,
1113
+ AccountId20
1114
+ >;
1115
+
1116
+ /**
1117
+ * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
1118
+ * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
1119
+ *
1120
+ * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
1121
+ * primary username.
1122
+ *
1123
+ * @param {BytesLike} arg
1124
+ * @param {Callback<AccountId20 | undefined> =} callback
1125
+ **/
1126
+ accountOfUsername: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId20 | undefined, Bytes>;
1127
+
1128
+ /**
1129
+ * Usernames that an authority has granted, but that the account controller has not confirmed
1130
+ * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
1131
+ * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
1132
+ * [`Call::accept_username`].
1133
+ *
1134
+ * First tuple item is the account and second is the acceptance deadline.
1135
+ *
1136
+ * @param {BytesLike} arg
1137
+ * @param {Callback<[AccountId20, number] | undefined> =} callback
1138
+ **/
1139
+ pendingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => [AccountId20, number] | undefined, Bytes>;
1140
+
1141
+ /**
1142
+ * Generic pallet storage query
1143
+ **/
1144
+ [storage: string]: GenericStorageQuery<Rv>;
1145
+ };
1146
+ /**
1147
+ * Pallet `Migrations`'s storage queries
1148
+ **/
1149
+ migrations: {
1150
+ /**
1151
+ * True if all required migrations have completed
1152
+ *
1153
+ * @param {Callback<boolean> =} callback
1154
+ **/
1155
+ fullyUpgraded: GenericStorageQuery<Rv, () => boolean>;
1156
+
1157
+ /**
1158
+ * MigrationState tracks the progress of a migration.
1159
+ * Maps name (Vec<u8>) -> whether or not migration has been completed (bool)
1160
+ *
1161
+ * @param {BytesLike} arg
1162
+ * @param {Callback<boolean> =} callback
1163
+ **/
1164
+ migrationState: GenericStorageQuery<Rv, (arg: BytesLike) => boolean, Bytes>;
1165
+
1166
+ /**
1167
+ * Temporary value that is set to true at the beginning of the block during which the execution
1168
+ * of xcm messages must be paused.
1169
+ *
1170
+ * @param {Callback<boolean> =} callback
1171
+ **/
1172
+ shouldPauseXcm: GenericStorageQuery<Rv, () => boolean>;
1173
+
1174
+ /**
1175
+ * Generic pallet storage query
1176
+ **/
1177
+ [storage: string]: GenericStorageQuery<Rv>;
1178
+ };
1179
+ /**
1180
+ * Pallet `Multisig`'s storage queries
1181
+ **/
1182
+ multisig: {
1183
+ /**
1184
+ * The set of open multisig operations.
1185
+ *
1186
+ * @param {[AccountId20Like, FixedBytes<32>]} arg
1187
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1188
+ **/
1189
+ multisigs: GenericStorageQuery<
1190
+ Rv,
1191
+ (arg: [AccountId20Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1192
+ [AccountId20, FixedBytes<32>]
1193
+ >;
1194
+
1195
+ /**
1196
+ * Generic pallet storage query
1197
+ **/
1198
+ [storage: string]: GenericStorageQuery<Rv>;
1199
+ };
1200
+ /**
1201
+ * Pallet `MoonbeamLazyMigrations`'s storage queries
1202
+ **/
1203
+ moonbeamLazyMigrations: {
1204
+ /**
1205
+ * If true, it means that LocalAssets storage has been removed.
1206
+ *
1207
+ * @param {Callback<boolean> =} callback
1208
+ **/
1209
+ localAssetsMigrationCompleted: GenericStorageQuery<Rv, () => boolean>;
1210
+
1211
+ /**
1212
+ * The total number of suicided contracts that were removed
1213
+ *
1214
+ * @param {Callback<number> =} callback
1215
+ **/
1216
+ suicidedContractsRemoved: GenericStorageQuery<Rv, () => number>;
1217
+
1218
+ /**
1219
+ * Generic pallet storage query
1220
+ **/
1221
+ [storage: string]: GenericStorageQuery<Rv>;
1222
+ };
1223
+ /**
1224
+ * Pallet `EthereumChainId`'s storage queries
1225
+ **/
1226
+ ethereumChainId: {
1227
+ /**
1228
+ * The EVM chain ID.
1229
+ *
1230
+ * @param {Callback<bigint> =} callback
1231
+ **/
1232
+ chainId: GenericStorageQuery<Rv, () => bigint>;
1233
+
1234
+ /**
1235
+ * Generic pallet storage query
1236
+ **/
1237
+ [storage: string]: GenericStorageQuery<Rv>;
1238
+ };
1239
+ /**
1240
+ * Pallet `EVM`'s storage queries
1241
+ **/
1242
+ evm: {
1243
+ /**
1244
+ *
1245
+ * @param {H160} arg
1246
+ * @param {Callback<Bytes> =} callback
1247
+ **/
1248
+ accountCodes: GenericStorageQuery<Rv, (arg: H160) => Bytes, H160>;
1249
+
1250
+ /**
1251
+ *
1252
+ * @param {H160} arg
1253
+ * @param {Callback<PalletEvmCodeMetadata | undefined> =} callback
1254
+ **/
1255
+ accountCodesMetadata: GenericStorageQuery<Rv, (arg: H160) => PalletEvmCodeMetadata | undefined, H160>;
1256
+
1257
+ /**
1258
+ *
1259
+ * @param {[H160, H256]} arg
1260
+ * @param {Callback<H256> =} callback
1261
+ **/
1262
+ accountStorages: GenericStorageQuery<Rv, (arg: [H160, H256]) => H256, [H160, H256]>;
1263
+
1264
+ /**
1265
+ *
1266
+ * @param {H160} arg
1267
+ * @param {Callback<[] | undefined> =} callback
1268
+ **/
1269
+ suicided: GenericStorageQuery<Rv, (arg: H160) => [] | undefined, H160>;
1270
+
1271
+ /**
1272
+ * Generic pallet storage query
1273
+ **/
1274
+ [storage: string]: GenericStorageQuery<Rv>;
1275
+ };
1276
+ /**
1277
+ * Pallet `Ethereum`'s storage queries
1278
+ **/
1279
+ ethereum: {
1280
+ /**
1281
+ * Current building block's transactions and receipts.
1282
+ *
1283
+ * @param {Callback<Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>> =} callback
1284
+ **/
1285
+ pending: GenericStorageQuery<
1286
+ Rv,
1287
+ () => Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>
1288
+ >;
1289
+
1290
+ /**
1291
+ * The current Ethereum block.
1292
+ *
1293
+ * @param {Callback<EthereumBlock | undefined> =} callback
1294
+ **/
1295
+ currentBlock: GenericStorageQuery<Rv, () => EthereumBlock | undefined>;
1296
+
1297
+ /**
1298
+ * The current Ethereum receipts.
1299
+ *
1300
+ * @param {Callback<Array<EthereumReceiptReceiptV3> | undefined> =} callback
1301
+ **/
1302
+ currentReceipts: GenericStorageQuery<Rv, () => Array<EthereumReceiptReceiptV3> | undefined>;
1303
+
1304
+ /**
1305
+ * The current transaction statuses.
1306
+ *
1307
+ * @param {Callback<Array<FpRpcTransactionStatus> | undefined> =} callback
1308
+ **/
1309
+ currentTransactionStatuses: GenericStorageQuery<Rv, () => Array<FpRpcTransactionStatus> | undefined>;
1310
+
1311
+ /**
1312
+ *
1313
+ * @param {U256} arg
1314
+ * @param {Callback<H256> =} callback
1315
+ **/
1316
+ blockHash: GenericStorageQuery<Rv, (arg: U256) => H256, U256>;
1317
+
1318
+ /**
1319
+ * Generic pallet storage query
1320
+ **/
1321
+ [storage: string]: GenericStorageQuery<Rv>;
1322
+ };
1323
+ /**
1324
+ * Pallet `Scheduler`'s storage queries
1325
+ **/
1326
+ scheduler: {
1327
+ /**
1328
+ *
1329
+ * @param {Callback<number | undefined> =} callback
1330
+ **/
1331
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
1332
+
1333
+ /**
1334
+ * Items to be executed, indexed by the block number that they should be executed on.
1335
+ *
1336
+ * @param {number} arg
1337
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
1338
+ **/
1339
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
1340
+
1341
+ /**
1342
+ * Lookup from a name to the block number and index of the task.
1343
+ *
1344
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
1345
+ * identities.
1346
+ *
1347
+ * @param {FixedBytes<32>} arg
1348
+ * @param {Callback<[number, number] | undefined> =} callback
1349
+ **/
1350
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
1351
+
1352
+ /**
1353
+ * Generic pallet storage query
1354
+ **/
1355
+ [storage: string]: GenericStorageQuery<Rv>;
1356
+ };
1357
+ /**
1358
+ * Pallet `Preimage`'s storage queries
1359
+ **/
1360
+ preimage: {
1361
+ /**
1362
+ * The request status of a given hash.
1363
+ *
1364
+ * @param {H256} arg
1365
+ * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
1366
+ **/
1367
+ statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
1368
+
1369
+ /**
1370
+ * The request status of a given hash.
1371
+ *
1372
+ * @param {H256} arg
1373
+ * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
1374
+ **/
1375
+ requestStatusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
1376
+
1377
+ /**
1378
+ *
1379
+ * @param {[H256, number]} arg
1380
+ * @param {Callback<Bytes | undefined> =} callback
1381
+ **/
1382
+ preimageFor: GenericStorageQuery<Rv, (arg: [H256, number]) => Bytes | undefined, [H256, number]>;
1383
+
1384
+ /**
1385
+ * Generic pallet storage query
1386
+ **/
1387
+ [storage: string]: GenericStorageQuery<Rv>;
1388
+ };
1389
+ /**
1390
+ * Pallet `ConvictionVoting`'s storage queries
1391
+ **/
1392
+ convictionVoting: {
1393
+ /**
1394
+ * All voting for a particular voter in a particular voting class. We store the balance for the
1395
+ * number of votes that we have recorded.
1396
+ *
1397
+ * @param {[AccountId20Like, number]} arg
1398
+ * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
1399
+ **/
1400
+ votingFor: GenericStorageQuery<
1401
+ Rv,
1402
+ (arg: [AccountId20Like, number]) => PalletConvictionVotingVoteVoting,
1403
+ [AccountId20, number]
1404
+ >;
1405
+
1406
+ /**
1407
+ * The voting classes which have a non-zero lock requirement and the lock amounts which they
1408
+ * require. The actual amount locked on behalf of this pallet should always be the maximum of
1409
+ * this list.
1410
+ *
1411
+ * @param {AccountId20Like} arg
1412
+ * @param {Callback<Array<[number, bigint]>> =} callback
1413
+ **/
1414
+ classLocksFor: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<[number, bigint]>, AccountId20>;
1415
+
1416
+ /**
1417
+ * Generic pallet storage query
1418
+ **/
1419
+ [storage: string]: GenericStorageQuery<Rv>;
1420
+ };
1421
+ /**
1422
+ * Pallet `Referenda`'s storage queries
1423
+ **/
1424
+ referenda: {
1425
+ /**
1426
+ * The next free referendum index, aka the number of referenda started so far.
1427
+ *
1428
+ * @param {Callback<number> =} callback
1429
+ **/
1430
+ referendumCount: GenericStorageQuery<Rv, () => number>;
1431
+
1432
+ /**
1433
+ * Information concerning any given referendum.
1434
+ *
1435
+ * @param {number} arg
1436
+ * @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
1437
+ **/
1438
+ referendumInfoFor: GenericStorageQuery<Rv, (arg: number) => PalletReferendaReferendumInfo | undefined, number>;
1439
+
1440
+ /**
1441
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
1442
+ * conviction-weighted approvals.
1443
+ *
1444
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
1445
+ *
1446
+ * @param {number} arg
1447
+ * @param {Callback<Array<[number, bigint]>> =} callback
1448
+ **/
1449
+ trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, bigint]>, number>;
1450
+
1451
+ /**
1452
+ * The number of referenda being decided currently.
1453
+ *
1454
+ * @param {number} arg
1455
+ * @param {Callback<number> =} callback
1456
+ **/
1457
+ decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
1458
+
1459
+ /**
1460
+ * The metadata is a general information concerning the referendum.
1461
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
1462
+ * dump or IPFS hash of a JSON file.
1463
+ *
1464
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1465
+ * large preimages.
1466
+ *
1467
+ * @param {number} arg
1468
+ * @param {Callback<H256 | undefined> =} callback
1469
+ **/
1470
+ metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
1471
+
1472
+ /**
1473
+ * Generic pallet storage query
1474
+ **/
1475
+ [storage: string]: GenericStorageQuery<Rv>;
1476
+ };
1477
+ /**
1478
+ * Pallet `Whitelist`'s storage queries
1479
+ **/
1480
+ whitelist: {
1481
+ /**
1482
+ *
1483
+ * @param {H256} arg
1484
+ * @param {Callback<[] | undefined> =} callback
1485
+ **/
1486
+ whitelistedCall: GenericStorageQuery<Rv, (arg: H256) => [] | undefined, H256>;
1487
+
1488
+ /**
1489
+ * Generic pallet storage query
1490
+ **/
1491
+ [storage: string]: GenericStorageQuery<Rv>;
1492
+ };
1493
+ /**
1494
+ * Pallet `TreasuryCouncilCollective`'s storage queries
1495
+ **/
1496
+ treasuryCouncilCollective: {
1497
+ /**
1498
+ * The hashes of the active proposals.
1499
+ *
1500
+ * @param {Callback<Array<H256>> =} callback
1501
+ **/
1502
+ proposals: GenericStorageQuery<Rv, () => Array<H256>>;
1503
+
1504
+ /**
1505
+ * Actual proposal for a given hash, if it's current.
1506
+ *
1507
+ * @param {H256} arg
1508
+ * @param {Callback<MoonbeamRuntimeRuntimeCall | undefined> =} callback
1509
+ **/
1510
+ proposalOf: GenericStorageQuery<Rv, (arg: H256) => MoonbeamRuntimeRuntimeCall | undefined, H256>;
1511
+
1512
+ /**
1513
+ * Votes on a given proposal, if it is ongoing.
1514
+ *
1515
+ * @param {H256} arg
1516
+ * @param {Callback<PalletCollectiveVotes | undefined> =} callback
1517
+ **/
1518
+ voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
1519
+
1520
+ /**
1521
+ * Proposals so far.
1522
+ *
1523
+ * @param {Callback<number> =} callback
1524
+ **/
1525
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1526
+
1527
+ /**
1528
+ * The current members of the collective. This is stored sorted (just by value).
1529
+ *
1530
+ * @param {Callback<Array<AccountId20>> =} callback
1531
+ **/
1532
+ members: GenericStorageQuery<Rv, () => Array<AccountId20>>;
1533
+
1534
+ /**
1535
+ * The prime member that helps determine the default vote behavior in case of absentations.
1536
+ *
1537
+ * @param {Callback<AccountId20 | undefined> =} callback
1538
+ **/
1539
+ prime: GenericStorageQuery<Rv, () => AccountId20 | undefined>;
1540
+
1541
+ /**
1542
+ * Generic pallet storage query
1543
+ **/
1544
+ [storage: string]: GenericStorageQuery<Rv>;
1545
+ };
1546
+ /**
1547
+ * Pallet `OpenTechCommitteeCollective`'s storage queries
1548
+ **/
1549
+ openTechCommitteeCollective: {
1550
+ /**
1551
+ * The hashes of the active proposals.
1552
+ *
1553
+ * @param {Callback<Array<H256>> =} callback
1554
+ **/
1555
+ proposals: GenericStorageQuery<Rv, () => Array<H256>>;
1556
+
1557
+ /**
1558
+ * Actual proposal for a given hash, if it's current.
1559
+ *
1560
+ * @param {H256} arg
1561
+ * @param {Callback<MoonbeamRuntimeRuntimeCall | undefined> =} callback
1562
+ **/
1563
+ proposalOf: GenericStorageQuery<Rv, (arg: H256) => MoonbeamRuntimeRuntimeCall | undefined, H256>;
1564
+
1565
+ /**
1566
+ * Votes on a given proposal, if it is ongoing.
1567
+ *
1568
+ * @param {H256} arg
1569
+ * @param {Callback<PalletCollectiveVotes | undefined> =} callback
1570
+ **/
1571
+ voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
1572
+
1573
+ /**
1574
+ * Proposals so far.
1575
+ *
1576
+ * @param {Callback<number> =} callback
1577
+ **/
1578
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1579
+
1580
+ /**
1581
+ * The current members of the collective. This is stored sorted (just by value).
1582
+ *
1583
+ * @param {Callback<Array<AccountId20>> =} callback
1584
+ **/
1585
+ members: GenericStorageQuery<Rv, () => Array<AccountId20>>;
1586
+
1587
+ /**
1588
+ * The prime member that helps determine the default vote behavior in case of absentations.
1589
+ *
1590
+ * @param {Callback<AccountId20 | undefined> =} callback
1591
+ **/
1592
+ prime: GenericStorageQuery<Rv, () => AccountId20 | undefined>;
1593
+
1594
+ /**
1595
+ * Generic pallet storage query
1596
+ **/
1597
+ [storage: string]: GenericStorageQuery<Rv>;
1598
+ };
1599
+ /**
1600
+ * Pallet `Treasury`'s storage queries
1601
+ **/
1602
+ treasury: {
1603
+ /**
1604
+ * Number of proposals that have been made.
1605
+ *
1606
+ * @param {Callback<number> =} callback
1607
+ **/
1608
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1609
+
1610
+ /**
1611
+ * Proposals that have been made.
1612
+ *
1613
+ * @param {number} arg
1614
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
1615
+ **/
1616
+ proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
1617
+
1618
+ /**
1619
+ * The amount which has been reported as inactive to Currency.
1620
+ *
1621
+ * @param {Callback<bigint> =} callback
1622
+ **/
1623
+ deactivated: GenericStorageQuery<Rv, () => bigint>;
1624
+
1625
+ /**
1626
+ * Proposal indices that have been approved but not yet awarded.
1627
+ *
1628
+ * @param {Callback<Array<number>> =} callback
1629
+ **/
1630
+ approvals: GenericStorageQuery<Rv, () => Array<number>>;
1631
+
1632
+ /**
1633
+ * The count of spends that have been made.
1634
+ *
1635
+ * @param {Callback<number> =} callback
1636
+ **/
1637
+ spendCount: GenericStorageQuery<Rv, () => number>;
1638
+
1639
+ /**
1640
+ * Spends that have been approved and being processed.
1641
+ *
1642
+ * @param {number} arg
1643
+ * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
1644
+ **/
1645
+ spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
1646
+
1647
+ /**
1648
+ * Generic pallet storage query
1649
+ **/
1650
+ [storage: string]: GenericStorageQuery<Rv>;
1651
+ };
1652
+ /**
1653
+ * Pallet `CrowdloanRewards`'s storage queries
1654
+ **/
1655
+ crowdloanRewards: {
1656
+ /**
1657
+ *
1658
+ * @param {AccountId20Like} arg
1659
+ * @param {Callback<PalletCrowdloanRewardsRewardInfo | undefined> =} callback
1660
+ **/
1661
+ accountsPayable: GenericStorageQuery<
1662
+ Rv,
1663
+ (arg: AccountId20Like) => PalletCrowdloanRewardsRewardInfo | undefined,
1664
+ AccountId20
1665
+ >;
1666
+
1667
+ /**
1668
+ *
1669
+ * @param {FixedBytes<32>} arg
1670
+ * @param {Callback<[] | undefined> =} callback
1671
+ **/
1672
+ claimedRelayChainIds: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [] | undefined, FixedBytes<32>>;
1673
+
1674
+ /**
1675
+ *
1676
+ * @param {FixedBytes<32>} arg
1677
+ * @param {Callback<PalletCrowdloanRewardsRewardInfo | undefined> =} callback
1678
+ **/
1679
+ unassociatedContributions: GenericStorageQuery<
1680
+ Rv,
1681
+ (arg: FixedBytes<32>) => PalletCrowdloanRewardsRewardInfo | undefined,
1682
+ FixedBytes<32>
1683
+ >;
1684
+
1685
+ /**
1686
+ *
1687
+ * @param {Callback<boolean> =} callback
1688
+ **/
1689
+ initialized: GenericStorageQuery<Rv, () => boolean>;
1690
+
1691
+ /**
1692
+ * Vesting block height at the initialization of the pallet
1693
+ *
1694
+ * @param {Callback<number> =} callback
1695
+ **/
1696
+ initRelayBlock: GenericStorageQuery<Rv, () => number>;
1697
+
1698
+ /**
1699
+ * Vesting block height at the initialization of the pallet
1700
+ *
1701
+ * @param {Callback<number> =} callback
1702
+ **/
1703
+ endRelayBlock: GenericStorageQuery<Rv, () => number>;
1704
+
1705
+ /**
1706
+ * Total initialized amount so far. We store this to make pallet funds == contributors reward
1707
+ * check easier and more efficient
1708
+ *
1709
+ * @param {Callback<bigint> =} callback
1710
+ **/
1711
+ initializedRewardAmount: GenericStorageQuery<Rv, () => bigint>;
1712
+
1713
+ /**
1714
+ * Total number of contributors to aid hinting benchmarking
1715
+ *
1716
+ * @param {Callback<number> =} callback
1717
+ **/
1718
+ totalContributors: GenericStorageQuery<Rv, () => number>;
1719
+
1720
+ /**
1721
+ * Generic pallet storage query
1722
+ **/
1723
+ [storage: string]: GenericStorageQuery<Rv>;
1724
+ };
1725
+ /**
1726
+ * Pallet `XcmpQueue`'s storage queries
1727
+ **/
1728
+ xcmpQueue: {
1729
+ /**
1730
+ * The suspended inbound XCMP channels. All others are not suspended.
1731
+ *
1732
+ * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
1733
+ * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
1734
+ * within the block and therefore only included once in the proof size.
1735
+ *
1736
+ * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
1737
+ * will be smaller.
1738
+ *
1739
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
1740
+ **/
1741
+ inboundXcmpSuspended: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
1742
+
1743
+ /**
1744
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
1745
+ * and last outbound message. If the two indices are equal, then it indicates an empty
1746
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
1747
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
1748
+ * case of the need to send a high-priority signal message this block.
1749
+ * The bool is true if there is a signal message waiting to be sent.
1750
+ *
1751
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
1752
+ **/
1753
+ outboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
1754
+
1755
+ /**
1756
+ * The messages outbound in a given XCMP channel.
1757
+ *
1758
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
1759
+ * @param {Callback<Bytes> =} callback
1760
+ **/
1761
+ outboundXcmpMessages: GenericStorageQuery<
1762
+ Rv,
1763
+ (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
1764
+ [PolkadotParachainPrimitivesPrimitivesId, number]
1765
+ >;
1766
+
1767
+ /**
1768
+ * Any signal messages waiting to be sent.
1769
+ *
1770
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1771
+ * @param {Callback<Bytes> =} callback
1772
+ **/
1773
+ signalMessages: GenericStorageQuery<
1774
+ Rv,
1775
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes,
1776
+ PolkadotParachainPrimitivesPrimitivesId
1777
+ >;
1778
+
1779
+ /**
1780
+ * The configuration which controls the dynamics of the outbound queue.
1781
+ *
1782
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
1783
+ **/
1784
+ queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
1785
+
1786
+ /**
1787
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
1788
+ *
1789
+ * @param {Callback<boolean> =} callback
1790
+ **/
1791
+ queueSuspended: GenericStorageQuery<Rv, () => boolean>;
1792
+
1793
+ /**
1794
+ * The factor to multiply the base delivery fee by.
1795
+ *
1796
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1797
+ * @param {Callback<FixedU128> =} callback
1798
+ **/
1799
+ deliveryFeeFactor: GenericStorageQuery<
1800
+ Rv,
1801
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
1802
+ PolkadotParachainPrimitivesPrimitivesId
1803
+ >;
1804
+
1805
+ /**
1806
+ * Generic pallet storage query
1807
+ **/
1808
+ [storage: string]: GenericStorageQuery<Rv>;
1809
+ };
1810
+ /**
1811
+ * Pallet `DmpQueue`'s storage queries
1812
+ **/
1813
+ dmpQueue: {
1814
+ /**
1815
+ * The migration state of this pallet.
1816
+ *
1817
+ * @param {Callback<CumulusPalletDmpQueueMigrationState> =} callback
1818
+ **/
1819
+ migrationStatus: GenericStorageQuery<Rv, () => CumulusPalletDmpQueueMigrationState>;
1820
+
1821
+ /**
1822
+ * Generic pallet storage query
1823
+ **/
1824
+ [storage: string]: GenericStorageQuery<Rv>;
1825
+ };
1826
+ /**
1827
+ * Pallet `PolkadotXcm`'s storage queries
1828
+ **/
1829
+ polkadotXcm: {
1830
+ /**
1831
+ * The latest available query index.
1832
+ *
1833
+ * @param {Callback<bigint> =} callback
1834
+ **/
1835
+ queryCounter: GenericStorageQuery<Rv, () => bigint>;
1836
+
1837
+ /**
1838
+ * The ongoing queries.
1839
+ *
1840
+ * @param {bigint} arg
1841
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
1842
+ **/
1843
+ queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
1844
+
1845
+ /**
1846
+ * The existing asset traps.
1847
+ *
1848
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
1849
+ * times this pair has been trapped (usually just 1 if it exists at all).
1850
+ *
1851
+ * @param {H256} arg
1852
+ * @param {Callback<number> =} callback
1853
+ **/
1854
+ assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
1855
+
1856
+ /**
1857
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
1858
+ * then the destinations whose XCM version is unknown are considered unreachable.
1859
+ *
1860
+ * @param {Callback<number | undefined> =} callback
1861
+ **/
1862
+ safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
1863
+
1864
+ /**
1865
+ * The Latest versions that we know various locations support.
1866
+ *
1867
+ * @param {[number, XcmVersionedLocation]} arg
1868
+ * @param {Callback<number | undefined> =} callback
1869
+ **/
1870
+ supportedVersion: GenericStorageQuery<
1871
+ Rv,
1872
+ (arg: [number, XcmVersionedLocation]) => number | undefined,
1873
+ [number, XcmVersionedLocation]
1874
+ >;
1875
+
1876
+ /**
1877
+ * All locations that we have requested version notifications from.
1878
+ *
1879
+ * @param {[number, XcmVersionedLocation]} arg
1880
+ * @param {Callback<bigint | undefined> =} callback
1881
+ **/
1882
+ versionNotifiers: GenericStorageQuery<
1883
+ Rv,
1884
+ (arg: [number, XcmVersionedLocation]) => bigint | undefined,
1885
+ [number, XcmVersionedLocation]
1886
+ >;
1887
+
1888
+ /**
1889
+ * The target locations that are subscribed to our version changes, as well as the most recent
1890
+ * of our versions we informed them of.
1891
+ *
1892
+ * @param {[number, XcmVersionedLocation]} arg
1893
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
1894
+ **/
1895
+ versionNotifyTargets: GenericStorageQuery<
1896
+ Rv,
1897
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
1898
+ [number, XcmVersionedLocation]
1899
+ >;
1900
+
1901
+ /**
1902
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
1903
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
1904
+ * which is used as a prioritization.
1905
+ *
1906
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
1907
+ **/
1908
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
1909
+
1910
+ /**
1911
+ * The current migration's stage, if any.
1912
+ *
1913
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
1914
+ **/
1915
+ currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
1916
+
1917
+ /**
1918
+ * Fungible assets which we know are locked on a remote chain.
1919
+ *
1920
+ * @param {[number, AccountId20Like, XcmVersionedAssetId]} arg
1921
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1922
+ **/
1923
+ remoteLockedFungibles: GenericStorageQuery<
1924
+ Rv,
1925
+ (arg: [number, AccountId20Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
1926
+ [number, AccountId20, XcmVersionedAssetId]
1927
+ >;
1928
+
1929
+ /**
1930
+ * Fungible assets which we know are locked on this chain.
1931
+ *
1932
+ * @param {AccountId20Like} arg
1933
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
1934
+ **/
1935
+ lockedFungibles: GenericStorageQuery<
1936
+ Rv,
1937
+ (arg: AccountId20Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
1938
+ AccountId20
1939
+ >;
1940
+
1941
+ /**
1942
+ * Global suspension state of the XCM executor.
1943
+ *
1944
+ * @param {Callback<boolean> =} callback
1945
+ **/
1946
+ xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
1947
+
1948
+ /**
1949
+ * Generic pallet storage query
1950
+ **/
1951
+ [storage: string]: GenericStorageQuery<Rv>;
1952
+ };
1953
+ /**
1954
+ * Pallet `Assets`'s storage queries
1955
+ **/
1956
+ assets: {
1957
+ /**
1958
+ * Details of an asset.
1959
+ *
1960
+ * @param {bigint} arg
1961
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1962
+ **/
1963
+ asset: GenericStorageQuery<Rv, (arg: bigint) => PalletAssetsAssetDetails | undefined, bigint>;
1964
+
1965
+ /**
1966
+ * The holdings of a specific account for a specific asset.
1967
+ *
1968
+ * @param {[bigint, AccountId20Like]} arg
1969
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1970
+ **/
1971
+ account: GenericStorageQuery<
1972
+ Rv,
1973
+ (arg: [bigint, AccountId20Like]) => PalletAssetsAssetAccount | undefined,
1974
+ [bigint, AccountId20]
1975
+ >;
1976
+
1977
+ /**
1978
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1979
+ * is the amount of `T::Currency` reserved for storing this.
1980
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1981
+ *
1982
+ * @param {[bigint, AccountId20Like, AccountId20Like]} arg
1983
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1984
+ **/
1985
+ approvals: GenericStorageQuery<
1986
+ Rv,
1987
+ (arg: [bigint, AccountId20Like, AccountId20Like]) => PalletAssetsApproval | undefined,
1988
+ [bigint, AccountId20, AccountId20]
1989
+ >;
1990
+
1991
+ /**
1992
+ * Metadata of an asset.
1993
+ *
1994
+ * @param {bigint} arg
1995
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1996
+ **/
1997
+ metadata: GenericStorageQuery<Rv, (arg: bigint) => PalletAssetsAssetMetadata, bigint>;
1998
+
1999
+ /**
2000
+ * Generic pallet storage query
2001
+ **/
2002
+ [storage: string]: GenericStorageQuery<Rv>;
2003
+ };
2004
+ /**
2005
+ * Pallet `AssetManager`'s storage queries
2006
+ **/
2007
+ assetManager: {
2008
+ /**
2009
+ * Mapping from an asset id to asset type.
2010
+ * This is mostly used when receiving transaction specifying an asset directly,
2011
+ * like transferring an asset from this chain to another.
2012
+ *
2013
+ * @param {bigint} arg
2014
+ * @param {Callback<MoonbeamRuntimeXcmConfigAssetType | undefined> =} callback
2015
+ **/
2016
+ assetIdType: GenericStorageQuery<Rv, (arg: bigint) => MoonbeamRuntimeXcmConfigAssetType | undefined, bigint>;
2017
+
2018
+ /**
2019
+ * Reverse mapping of AssetIdType. Mapping from an asset type to an asset id.
2020
+ * This is mostly used when receiving a multilocation XCM message to retrieve
2021
+ * the corresponding asset in which tokens should me minted.
2022
+ *
2023
+ * @param {MoonbeamRuntimeXcmConfigAssetType} arg
2024
+ * @param {Callback<bigint | undefined> =} callback
2025
+ **/
2026
+ assetTypeId: GenericStorageQuery<
2027
+ Rv,
2028
+ (arg: MoonbeamRuntimeXcmConfigAssetType) => bigint | undefined,
2029
+ MoonbeamRuntimeXcmConfigAssetType
2030
+ >;
2031
+
2032
+ /**
2033
+ * Stores the units per second for local execution for a AssetType.
2034
+ * This is used to know how to charge for XCM execution in a particular
2035
+ * asset
2036
+ * Not all assets might contain units per second, hence the different storage
2037
+ *
2038
+ * @param {MoonbeamRuntimeXcmConfigAssetType} arg
2039
+ * @param {Callback<bigint | undefined> =} callback
2040
+ **/
2041
+ assetTypeUnitsPerSecond: GenericStorageQuery<
2042
+ Rv,
2043
+ (arg: MoonbeamRuntimeXcmConfigAssetType) => bigint | undefined,
2044
+ MoonbeamRuntimeXcmConfigAssetType
2045
+ >;
2046
+
2047
+ /**
2048
+ *
2049
+ * @param {Callback<Array<MoonbeamRuntimeXcmConfigAssetType>> =} callback
2050
+ **/
2051
+ supportedFeePaymentAssets: GenericStorageQuery<Rv, () => Array<MoonbeamRuntimeXcmConfigAssetType>>;
2052
+
2053
+ /**
2054
+ * Generic pallet storage query
2055
+ **/
2056
+ [storage: string]: GenericStorageQuery<Rv>;
2057
+ };
2058
+ /**
2059
+ * Pallet `XTokens`'s storage queries
2060
+ **/
2061
+ xTokens: {
2062
+ /**
2063
+ * Generic pallet storage query
2064
+ **/
2065
+ [storage: string]: GenericStorageQuery<Rv>;
2066
+ };
2067
+ /**
2068
+ * Pallet `XcmTransactor`'s storage queries
2069
+ **/
2070
+ xcmTransactor: {
2071
+ /**
2072
+ * Since we are using pallet-utility for account derivation (through AsDerivative),
2073
+ * we need to provide an index for the account derivation. This storage item stores the index
2074
+ * assigned for a given local account. These indices are usable as derivative in the relay chain
2075
+ *
2076
+ * @param {number} arg
2077
+ * @param {Callback<AccountId20 | undefined> =} callback
2078
+ **/
2079
+ indexToAccount: GenericStorageQuery<Rv, (arg: number) => AccountId20 | undefined, number>;
2080
+
2081
+ /**
2082
+ * Stores the transact info of a Location. This defines how much extra weight we need to
2083
+ * add when we want to transact in the destination chain and maximum amount of weight allowed
2084
+ * by the destination chain
2085
+ *
2086
+ * @param {StagingXcmV4Location} arg
2087
+ * @param {Callback<PalletXcmTransactorRemoteTransactInfoWithMaxWeight | undefined> =} callback
2088
+ **/
2089
+ transactInfoWithWeightLimit: GenericStorageQuery<
2090
+ Rv,
2091
+ (arg: StagingXcmV4Location) => PalletXcmTransactorRemoteTransactInfoWithMaxWeight | undefined,
2092
+ StagingXcmV4Location
2093
+ >;
2094
+
2095
+ /**
2096
+ * Stores the fee per second for an asset in its reserve chain. This allows us to convert
2097
+ * from weight to fee
2098
+ *
2099
+ * @param {StagingXcmV4Location} arg
2100
+ * @param {Callback<bigint | undefined> =} callback
2101
+ **/
2102
+ destinationAssetFeePerSecond: GenericStorageQuery<
2103
+ Rv,
2104
+ (arg: StagingXcmV4Location) => bigint | undefined,
2105
+ StagingXcmV4Location
2106
+ >;
2107
+
2108
+ /**
2109
+ * Stores the indices of relay chain pallets
2110
+ *
2111
+ * @param {Callback<PalletXcmTransactorRelayIndicesRelayChainIndices> =} callback
2112
+ **/
2113
+ relayIndices: GenericStorageQuery<Rv, () => PalletXcmTransactorRelayIndicesRelayChainIndices>;
2114
+
2115
+ /**
2116
+ * Generic pallet storage query
2117
+ **/
2118
+ [storage: string]: GenericStorageQuery<Rv>;
2119
+ };
2120
+ /**
2121
+ * Pallet `EthereumXcm`'s storage queries
2122
+ **/
2123
+ ethereumXcm: {
2124
+ /**
2125
+ * Global nonce used for building Ethereum transaction payload.
2126
+ *
2127
+ * @param {Callback<U256> =} callback
2128
+ **/
2129
+ nonce: GenericStorageQuery<Rv, () => U256>;
2130
+
2131
+ /**
2132
+ * Whether or not Ethereum-XCM is suspended from executing
2133
+ *
2134
+ * @param {Callback<boolean> =} callback
2135
+ **/
2136
+ ethereumXcmSuspended: GenericStorageQuery<Rv, () => boolean>;
2137
+
2138
+ /**
2139
+ * Generic pallet storage query
2140
+ **/
2141
+ [storage: string]: GenericStorageQuery<Rv>;
2142
+ };
2143
+ /**
2144
+ * Pallet `MessageQueue`'s storage queries
2145
+ **/
2146
+ messageQueue: {
2147
+ /**
2148
+ * The index of the first and last (non-empty) pages.
2149
+ *
2150
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg
2151
+ * @param {Callback<PalletMessageQueueBookState> =} callback
2152
+ **/
2153
+ bookStateFor: GenericStorageQuery<
2154
+ Rv,
2155
+ (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState,
2156
+ CumulusPrimitivesCoreAggregateMessageOrigin
2157
+ >;
2158
+
2159
+ /**
2160
+ * The origin at which we should begin servicing.
2161
+ *
2162
+ * @param {Callback<CumulusPrimitivesCoreAggregateMessageOrigin | undefined> =} callback
2163
+ **/
2164
+ serviceHead: GenericStorageQuery<Rv, () => CumulusPrimitivesCoreAggregateMessageOrigin | undefined>;
2165
+
2166
+ /**
2167
+ * The map of page indices to pages.
2168
+ *
2169
+ * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg
2170
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
2171
+ **/
2172
+ pages: GenericStorageQuery<
2173
+ Rv,
2174
+ (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
2175
+ [CumulusPrimitivesCoreAggregateMessageOrigin, number]
2176
+ >;
2177
+
2178
+ /**
2179
+ * Generic pallet storage query
2180
+ **/
2181
+ [storage: string]: GenericStorageQuery<Rv>;
2182
+ };
2183
+ /**
2184
+ * Pallet `RelayStorageRoots`'s storage queries
2185
+ **/
2186
+ relayStorageRoots: {
2187
+ /**
2188
+ * Map of relay block number to relay storage root
2189
+ *
2190
+ * @param {number} arg
2191
+ * @param {Callback<H256 | undefined> =} callback
2192
+ **/
2193
+ relayStorageRoot: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
2194
+
2195
+ /**
2196
+ * List of all the keys in `RelayStorageRoot`.
2197
+ * Used to remove the oldest key without having to iterate over all of them.
2198
+ *
2199
+ * @param {Callback<Array<number>> =} callback
2200
+ **/
2201
+ relayStorageRootKeys: GenericStorageQuery<Rv, () => Array<number>>;
2202
+
2203
+ /**
2204
+ * Generic pallet storage query
2205
+ **/
2206
+ [storage: string]: GenericStorageQuery<Rv>;
2207
+ };
2208
+ /**
2209
+ * Pallet `Randomness`'s storage queries
2210
+ **/
2211
+ randomness: {
2212
+ /**
2213
+ * Randomness requests not yet fulfilled or purged
2214
+ *
2215
+ * @param {bigint} arg
2216
+ * @param {Callback<PalletRandomnessRequestState | undefined> =} callback
2217
+ **/
2218
+ requests: GenericStorageQuery<Rv, (arg: bigint) => PalletRandomnessRequestState | undefined, bigint>;
2219
+
2220
+ /**
2221
+ * Number of randomness requests made so far, used to generate the next request's uid
2222
+ *
2223
+ * @param {Callback<bigint> =} callback
2224
+ **/
2225
+ requestCount: GenericStorageQuery<Rv, () => bigint>;
2226
+
2227
+ /**
2228
+ * Current local per-block VRF randomness
2229
+ * Set in `on_initialize`
2230
+ *
2231
+ * @param {Callback<H256 | undefined> =} callback
2232
+ **/
2233
+ localVrfOutput: GenericStorageQuery<Rv, () => H256 | undefined>;
2234
+
2235
+ /**
2236
+ * Relay epoch
2237
+ *
2238
+ * @param {Callback<bigint> =} callback
2239
+ **/
2240
+ relayEpoch: GenericStorageQuery<Rv, () => bigint>;
2241
+
2242
+ /**
2243
+ * Ensures the mandatory inherent was included in the block
2244
+ *
2245
+ * @param {Callback<[] | undefined> =} callback
2246
+ **/
2247
+ inherentIncluded: GenericStorageQuery<Rv, () => [] | undefined>;
2248
+
2249
+ /**
2250
+ * Records whether this is the first block (genesis or runtime upgrade)
2251
+ *
2252
+ * @param {Callback<[] | undefined> =} callback
2253
+ **/
2254
+ notFirstBlock: GenericStorageQuery<Rv, () => [] | undefined>;
2255
+
2256
+ /**
2257
+ * Snapshot of randomness to fulfill all requests that are for the same raw randomness
2258
+ * Removed once $value.request_count == 0
2259
+ *
2260
+ * @param {PalletRandomnessRequestType} arg
2261
+ * @param {Callback<PalletRandomnessRandomnessResult | undefined> =} callback
2262
+ **/
2263
+ randomnessResults: GenericStorageQuery<
2264
+ Rv,
2265
+ (arg: PalletRandomnessRequestType) => PalletRandomnessRandomnessResult | undefined,
2266
+ PalletRandomnessRequestType
2267
+ >;
2268
+
2269
+ /**
2270
+ * Previous local per-block VRF randomness
2271
+ * Set in `on_finalize` of last block
2272
+ *
2273
+ * @param {Callback<H256> =} callback
2274
+ **/
2275
+ previousLocalVrfOutput: GenericStorageQuery<Rv, () => H256>;
2276
+
2277
+ /**
2278
+ * Generic pallet storage query
2279
+ **/
2280
+ [storage: string]: GenericStorageQuery<Rv>;
2281
+ };
2282
+ }