@dedot/chaintypes 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/kusama-asset-hub/consts.d.ts +765 -0
  2. package/kusama-asset-hub/errors.d.ts +1529 -0
  3. package/kusama-asset-hub/events.d.ts +2443 -0
  4. package/kusama-asset-hub/index.d.ts +27 -0
  5. package/kusama-asset-hub/json-rpc.d.ts +90 -0
  6. package/kusama-asset-hub/query.d.ts +1677 -0
  7. package/kusama-asset-hub/runtime.d.ts +555 -0
  8. package/kusama-asset-hub/tx.d.ts +6364 -0
  9. package/kusama-asset-hub/types.d.ts +6921 -0
  10. package/package.json +3 -3
  11. package/polkadot-asset-hub/consts.d.ts +730 -0
  12. package/polkadot-asset-hub/errors.d.ts +1500 -0
  13. package/polkadot-asset-hub/events.d.ts +2414 -0
  14. package/polkadot-asset-hub/index.d.ts +27 -0
  15. package/polkadot-asset-hub/json-rpc.d.ts +90 -0
  16. package/polkadot-asset-hub/query.d.ts +1655 -0
  17. package/polkadot-asset-hub/runtime.d.ts +558 -0
  18. package/polkadot-asset-hub/tx.d.ts +6293 -0
  19. package/polkadot-asset-hub/types.d.ts +6829 -0
  20. package/rococo-asset-hub/consts.d.ts +835 -0
  21. package/rococo-asset-hub/errors.d.ts +1590 -0
  22. package/rococo-asset-hub/events.d.ts +2573 -0
  23. package/rococo-asset-hub/index.d.ts +27 -0
  24. package/rococo-asset-hub/json-rpc.d.ts +90 -0
  25. package/rococo-asset-hub/query.d.ts +1829 -0
  26. package/rococo-asset-hub/runtime.d.ts +726 -0
  27. package/rococo-asset-hub/tx.d.ts +9011 -0
  28. package/rococo-asset-hub/types.d.ts +12431 -0
  29. package/westend-asset-hub/consts.d.ts +869 -0
  30. package/westend-asset-hub/errors.d.ts +1635 -0
  31. package/westend-asset-hub/events.d.ts +2610 -0
  32. package/westend-asset-hub/index.d.ts +27 -0
  33. package/westend-asset-hub/json-rpc.d.ts +90 -0
  34. package/westend-asset-hub/query.d.ts +1868 -0
  35. package/westend-asset-hub/runtime.d.ts +798 -0
  36. package/westend-asset-hub/tx.d.ts +9199 -0
  37. package/westend-asset-hub/types.d.ts +12661 -0
  38. package/westend-people/consts.d.ts +434 -0
  39. package/westend-people/errors.d.ts +769 -0
  40. package/westend-people/events.d.ts +1082 -0
  41. package/westend-people/index.d.ts +27 -0
  42. package/westend-people/json-rpc.d.ts +89 -0
  43. package/westend-people/query.d.ts +1209 -0
  44. package/westend-people/runtime.d.ts +636 -0
  45. package/westend-people/tx.d.ts +2891 -0
  46. package/westend-people/types.d.ts +4984 -0
@@ -0,0 +1,1677 @@
1
+ // Generated by dedot cli
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
+ FixedU128,
12
+ BytesLike,
13
+ FixedBytes,
14
+ } from 'dedot/codecs';
15
+ import type {
16
+ FrameSystemAccountInfo,
17
+ FrameSupportDispatchPerDispatchClass,
18
+ FrameSystemEventRecord,
19
+ FrameSystemLastRuntimeUpgradeInfo,
20
+ FrameSystemCodeUpgradeAuthorization,
21
+ CumulusPalletParachainSystemUnincludedSegmentAncestor,
22
+ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
23
+ PolkadotPrimitivesV6PersistedValidationData,
24
+ PolkadotPrimitivesV6UpgradeRestriction,
25
+ PolkadotPrimitivesV6UpgradeGoAhead,
26
+ SpTrieStorageProof,
27
+ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
28
+ PolkadotPrimitivesV6AbridgedHostConfiguration,
29
+ CumulusPrimitivesParachainInherentMessageQueueChain,
30
+ PolkadotParachainPrimitivesPrimitivesId,
31
+ PolkadotCorePrimitivesOutboundHrmpMessage,
32
+ SpWeightsWeightV2Weight,
33
+ PalletBalancesAccountData,
34
+ PalletBalancesBalanceLock,
35
+ PalletBalancesReserveData,
36
+ PalletBalancesIdAmount,
37
+ PalletBalancesIdAmount002,
38
+ PalletTransactionPaymentReleases,
39
+ PalletVestingVestingInfo,
40
+ PalletVestingReleases,
41
+ PalletCollatorSelectionCandidateInfo,
42
+ AssetHubKusamaRuntimeSessionKeys,
43
+ SpCoreCryptoKeyTypeId,
44
+ SpConsensusAuraSr25519AppSr25519Public,
45
+ SpConsensusSlotsSlot,
46
+ CumulusPalletXcmpQueueOutboundChannelDetails,
47
+ CumulusPalletXcmpQueueQueueConfigData,
48
+ PalletXcmQueryStatus,
49
+ XcmVersionedLocation,
50
+ PalletXcmVersionMigrationStage,
51
+ PalletXcmRemoteLockedFungibleRecord,
52
+ XcmVersionedAssetId,
53
+ BpXcmBridgeHubRouterBridgeState,
54
+ PalletMessageQueueBookState,
55
+ CumulusPrimitivesCoreAggregateMessageOrigin,
56
+ PalletMessageQueuePage,
57
+ PalletMultisigMultisig,
58
+ PalletProxyProxyDefinition,
59
+ PalletProxyAnnouncement,
60
+ PalletAssetsAssetDetails,
61
+ PalletAssetsAssetAccount,
62
+ PalletAssetsApproval,
63
+ PalletAssetsAssetMetadata,
64
+ PalletUniquesCollectionDetails,
65
+ PalletUniquesItemDetails,
66
+ PalletUniquesCollectionMetadata,
67
+ PalletUniquesItemMetadata,
68
+ PalletNftsCollectionDetails,
69
+ PalletNftsBitFlagsCollectionRole,
70
+ PalletNftsItemDetails,
71
+ PalletNftsCollectionMetadata,
72
+ PalletNftsItemMetadata,
73
+ PalletNftsAttributeDeposit,
74
+ PalletNftsAttributeNamespace,
75
+ PalletNftsPendingSwap,
76
+ PalletNftsCollectionConfig,
77
+ PalletNftsItemConfig,
78
+ StagingXcmV3MultilocationMultiLocation,
79
+ PalletNftFractionalizationDetails,
80
+ PalletAssetConversionPoolInfo,
81
+ } from './types';
82
+
83
+ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
84
+ /**
85
+ * Pallet `System`'s storage queries
86
+ **/
87
+ system: {
88
+ /**
89
+ * The full account information for a particular account ID.
90
+ *
91
+ * @param {AccountId32Like} arg
92
+ * @param {Callback<FrameSystemAccountInfo> =} callback
93
+ **/
94
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
95
+
96
+ /**
97
+ * Total extrinsics count for the current block.
98
+ *
99
+ * @param {Callback<number | undefined> =} callback
100
+ **/
101
+ extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
102
+
103
+ /**
104
+ * The current weight for the block.
105
+ *
106
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
107
+ **/
108
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
109
+
110
+ /**
111
+ * Total length (in bytes) for all extrinsics put together, for the current block.
112
+ *
113
+ * @param {Callback<number | undefined> =} callback
114
+ **/
115
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
116
+
117
+ /**
118
+ * Map of block numbers to block hashes.
119
+ *
120
+ * @param {number} arg
121
+ * @param {Callback<H256> =} callback
122
+ **/
123
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
124
+
125
+ /**
126
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
127
+ *
128
+ * @param {number} arg
129
+ * @param {Callback<Bytes> =} callback
130
+ **/
131
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
132
+
133
+ /**
134
+ * The current block number being processed. Set by `execute_block`.
135
+ *
136
+ * @param {Callback<number> =} callback
137
+ **/
138
+ number: GenericStorageQuery<Rv, () => number>;
139
+
140
+ /**
141
+ * Hash of the previous block.
142
+ *
143
+ * @param {Callback<H256> =} callback
144
+ **/
145
+ parentHash: GenericStorageQuery<Rv, () => H256>;
146
+
147
+ /**
148
+ * Digest of the current block, also part of the block header.
149
+ *
150
+ * @param {Callback<Digest> =} callback
151
+ **/
152
+ digest: GenericStorageQuery<Rv, () => Digest>;
153
+
154
+ /**
155
+ * Events deposited for the current block.
156
+ *
157
+ * NOTE: The item is unbound and should therefore never be read on chain.
158
+ * It could otherwise inflate the PoV size of a block.
159
+ *
160
+ * Events have a large in-memory size. Box the events to not go out-of-memory
161
+ * just in case someone still reads them from within the runtime.
162
+ *
163
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
164
+ **/
165
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
166
+
167
+ /**
168
+ * The number of events in the `Events<T>` list.
169
+ *
170
+ * @param {Callback<number> =} callback
171
+ **/
172
+ eventCount: GenericStorageQuery<Rv, () => number>;
173
+
174
+ /**
175
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
176
+ * of events in the `<Events<T>>` list.
177
+ *
178
+ * All topic vectors have deterministic storage locations depending on the topic. This
179
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
180
+ * in case of changes fetch the list of events of interest.
181
+ *
182
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
183
+ * the `EventIndex` then in case if the topic has the same contents on the next block
184
+ * no notification will be triggered thus the event might be lost.
185
+ *
186
+ * @param {H256} arg
187
+ * @param {Callback<Array<[number, number]>> =} callback
188
+ **/
189
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
190
+
191
+ /**
192
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
193
+ *
194
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
195
+ **/
196
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
197
+
198
+ /**
199
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
200
+ *
201
+ * @param {Callback<boolean> =} callback
202
+ **/
203
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
204
+
205
+ /**
206
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
207
+ * (default) if not.
208
+ *
209
+ * @param {Callback<boolean> =} callback
210
+ **/
211
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
212
+
213
+ /**
214
+ * The execution phase of the block.
215
+ *
216
+ * @param {Callback<Phase | undefined> =} callback
217
+ **/
218
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
219
+
220
+ /**
221
+ * `Some` if a code upgrade has been authorized.
222
+ *
223
+ * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
224
+ **/
225
+ authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
226
+
227
+ /**
228
+ * Generic pallet storage query
229
+ **/
230
+ [storage: string]: GenericStorageQuery<Rv>;
231
+ };
232
+ /**
233
+ * Pallet `ParachainSystem`'s storage queries
234
+ **/
235
+ parachainSystem: {
236
+ /**
237
+ * Latest included block descendants the runtime accepted. In other words, these are
238
+ * ancestors of the currently executing block which have not been included in the observed
239
+ * relay-chain state.
240
+ *
241
+ * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
242
+ * in the pallet.
243
+ *
244
+ * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
245
+ **/
246
+ unincludedSegment: GenericStorageQuery<Rv, () => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
247
+
248
+ /**
249
+ * Storage field that keeps track of bandwidth used by the unincluded segment along with the
250
+ * latest HRMP watermark. Used for limiting the acceptance of new blocks with
251
+ * respect to relay chain constraints.
252
+ *
253
+ * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
254
+ **/
255
+ aggregatedUnincludedSegment: GenericStorageQuery<
256
+ Rv,
257
+ () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
258
+ >;
259
+
260
+ /**
261
+ * In case of a scheduled upgrade, this storage field contains the validation code to be
262
+ * applied.
263
+ *
264
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
265
+ * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
266
+ * with the new validation code. This concludes the upgrade process.
267
+ *
268
+ * @param {Callback<Bytes> =} callback
269
+ **/
270
+ pendingValidationCode: GenericStorageQuery<Rv, () => Bytes>;
271
+
272
+ /**
273
+ * Validation code that is set by the parachain and is to be communicated to collator and
274
+ * consequently the relay-chain.
275
+ *
276
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
277
+ * the value.
278
+ *
279
+ * @param {Callback<Bytes | undefined> =} callback
280
+ **/
281
+ newValidationCode: GenericStorageQuery<Rv, () => Bytes | undefined>;
282
+
283
+ /**
284
+ * The [`PersistedValidationData`] set for this block.
285
+ * This value is expected to be set only once per block and it's never stored
286
+ * in the trie.
287
+ *
288
+ * @param {Callback<PolkadotPrimitivesV6PersistedValidationData | undefined> =} callback
289
+ **/
290
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6PersistedValidationData | undefined>;
291
+
292
+ /**
293
+ * Were the validation data set to notify the relay chain?
294
+ *
295
+ * @param {Callback<boolean> =} callback
296
+ **/
297
+ didSetValidationCode: GenericStorageQuery<Rv, () => boolean>;
298
+
299
+ /**
300
+ * The relay chain block number associated with the last parachain block.
301
+ *
302
+ * This is updated in `on_finalize`.
303
+ *
304
+ * @param {Callback<number> =} callback
305
+ **/
306
+ lastRelayChainBlockNumber: GenericStorageQuery<Rv, () => number>;
307
+
308
+ /**
309
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
310
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
311
+ * candidate will be invalid.
312
+ *
313
+ * This storage item is a mirror of the corresponding value for the current parachain from the
314
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
315
+ * set after the inherent.
316
+ *
317
+ * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
318
+ **/
319
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
320
+
321
+ /**
322
+ * Optional upgrade go-ahead signal from the relay-chain.
323
+ *
324
+ * This storage item is a mirror of the corresponding value for the current parachain from the
325
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
326
+ * set after the inherent.
327
+ *
328
+ * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
329
+ **/
330
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
331
+
332
+ /**
333
+ * The state proof for the last relay parent block.
334
+ *
335
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
336
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
337
+ *
338
+ * This data is also absent from the genesis.
339
+ *
340
+ * @param {Callback<SpTrieStorageProof | undefined> =} callback
341
+ **/
342
+ relayStateProof: GenericStorageQuery<Rv, () => SpTrieStorageProof | undefined>;
343
+
344
+ /**
345
+ * The snapshot of some state related to messaging relevant to the current parachain as per
346
+ * the relay parent.
347
+ *
348
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
349
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
350
+ *
351
+ * This data is also absent from the genesis.
352
+ *
353
+ * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
354
+ **/
355
+ relevantMessagingState: GenericStorageQuery<
356
+ Rv,
357
+ () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
358
+ >;
359
+
360
+ /**
361
+ * The parachain host configuration that was obtained from the relay parent.
362
+ *
363
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
364
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
365
+ *
366
+ * This data is also absent from the genesis.
367
+ *
368
+ * @param {Callback<PolkadotPrimitivesV6AbridgedHostConfiguration | undefined> =} callback
369
+ **/
370
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>;
371
+
372
+ /**
373
+ * The last downward message queue chain head we have observed.
374
+ *
375
+ * This value is loaded before and saved after processing inbound downward messages carried
376
+ * by the system inherent.
377
+ *
378
+ * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
379
+ **/
380
+ lastDmqMqcHead: GenericStorageQuery<Rv, () => CumulusPrimitivesParachainInherentMessageQueueChain>;
381
+
382
+ /**
383
+ * The message queue chain heads we have observed per each channel incoming channel.
384
+ *
385
+ * This value is loaded before and saved after processing inbound downward messages carried
386
+ * by the system inherent.
387
+ *
388
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
389
+ **/
390
+ lastHrmpMqcHeads: GenericStorageQuery<
391
+ Rv,
392
+ () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
393
+ >;
394
+
395
+ /**
396
+ * Number of downward messages processed in a block.
397
+ *
398
+ * This will be cleared in `on_initialize` of each new block.
399
+ *
400
+ * @param {Callback<number> =} callback
401
+ **/
402
+ processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
403
+
404
+ /**
405
+ * HRMP watermark that was set in a block.
406
+ *
407
+ * This will be cleared in `on_initialize` of each new block.
408
+ *
409
+ * @param {Callback<number> =} callback
410
+ **/
411
+ hrmpWatermark: GenericStorageQuery<Rv, () => number>;
412
+
413
+ /**
414
+ * HRMP messages that were sent in a block.
415
+ *
416
+ * This will be cleared in `on_initialize` of each new block.
417
+ *
418
+ * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
419
+ **/
420
+ hrmpOutboundMessages: GenericStorageQuery<Rv, () => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
421
+
422
+ /**
423
+ * Upward messages that were sent in a block.
424
+ *
425
+ * This will be cleared in `on_initialize` of each new block.
426
+ *
427
+ * @param {Callback<Array<Bytes>> =} callback
428
+ **/
429
+ upwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
430
+
431
+ /**
432
+ * Upward messages that are still pending and not yet send to the relay chain.
433
+ *
434
+ * @param {Callback<Array<Bytes>> =} callback
435
+ **/
436
+ pendingUpwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
437
+
438
+ /**
439
+ * The factor to multiply the base delivery fee by for UMP.
440
+ *
441
+ * @param {Callback<FixedU128> =} callback
442
+ **/
443
+ upwardDeliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
444
+
445
+ /**
446
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
447
+ * announcing the weight of `on_initialize` and `on_finalize`.
448
+ *
449
+ * @param {Callback<number> =} callback
450
+ **/
451
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<Rv, () => number>;
452
+
453
+ /**
454
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
455
+ * overrides the amount set in the Config trait.
456
+ *
457
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
458
+ **/
459
+ reservedXcmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
460
+
461
+ /**
462
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
463
+ * overrides the amount set in the Config trait.
464
+ *
465
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
466
+ **/
467
+ reservedDmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
468
+
469
+ /**
470
+ * A custom head data that should be returned as result of `validate_block`.
471
+ *
472
+ * See `Pallet::set_custom_validation_head_data` for more information.
473
+ *
474
+ * @param {Callback<Bytes | undefined> =} callback
475
+ **/
476
+ customValidationHeadData: GenericStorageQuery<Rv, () => Bytes | undefined>;
477
+
478
+ /**
479
+ * Generic pallet storage query
480
+ **/
481
+ [storage: string]: GenericStorageQuery<Rv>;
482
+ };
483
+ /**
484
+ * Pallet `Timestamp`'s storage queries
485
+ **/
486
+ timestamp: {
487
+ /**
488
+ * The current time for the current block.
489
+ *
490
+ * @param {Callback<bigint> =} callback
491
+ **/
492
+ now: GenericStorageQuery<Rv, () => bigint>;
493
+
494
+ /**
495
+ * Whether the timestamp has been updated in this block.
496
+ *
497
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
498
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
499
+ *
500
+ * @param {Callback<boolean> =} callback
501
+ **/
502
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
503
+
504
+ /**
505
+ * Generic pallet storage query
506
+ **/
507
+ [storage: string]: GenericStorageQuery<Rv>;
508
+ };
509
+ /**
510
+ * Pallet `ParachainInfo`'s storage queries
511
+ **/
512
+ parachainInfo: {
513
+ /**
514
+ *
515
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
516
+ **/
517
+ parachainId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
518
+
519
+ /**
520
+ * Generic pallet storage query
521
+ **/
522
+ [storage: string]: GenericStorageQuery<Rv>;
523
+ };
524
+ /**
525
+ * Pallet `Balances`'s storage queries
526
+ **/
527
+ balances: {
528
+ /**
529
+ * The total units issued in the system.
530
+ *
531
+ * @param {Callback<bigint> =} callback
532
+ **/
533
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
534
+
535
+ /**
536
+ * The total units of outstanding deactivated balance in the system.
537
+ *
538
+ * @param {Callback<bigint> =} callback
539
+ **/
540
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
541
+
542
+ /**
543
+ * The Balances pallet example of storing the balance of an account.
544
+ *
545
+ * # Example
546
+ *
547
+ * ```nocompile
548
+ * impl pallet_balances::Config for Runtime {
549
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
550
+ * }
551
+ * ```
552
+ *
553
+ * You can also store the balance of an account in the `System` pallet.
554
+ *
555
+ * # Example
556
+ *
557
+ * ```nocompile
558
+ * impl pallet_balances::Config for Runtime {
559
+ * type AccountStore = System
560
+ * }
561
+ * ```
562
+ *
563
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
564
+ * `frame_system` data alongside the account data contrary to storing account balances in the
565
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
566
+ * NOTE: This is only used in the case that this pallet is used to store balances.
567
+ *
568
+ * @param {AccountId32Like} arg
569
+ * @param {Callback<PalletBalancesAccountData> =} callback
570
+ **/
571
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
572
+
573
+ /**
574
+ * Any liquidity locks on some account balances.
575
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
576
+ *
577
+ * @param {AccountId32Like} arg
578
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
579
+ **/
580
+ locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
581
+
582
+ /**
583
+ * Named reserves on some account balances.
584
+ *
585
+ * @param {AccountId32Like} arg
586
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
587
+ **/
588
+ reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
589
+
590
+ /**
591
+ * Holds on account balances.
592
+ *
593
+ * @param {AccountId32Like} arg
594
+ * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
595
+ **/
596
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
597
+
598
+ /**
599
+ * Freeze locks on account balances.
600
+ *
601
+ * @param {AccountId32Like} arg
602
+ * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
603
+ **/
604
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount002>, AccountId32>;
605
+
606
+ /**
607
+ * Generic pallet storage query
608
+ **/
609
+ [storage: string]: GenericStorageQuery<Rv>;
610
+ };
611
+ /**
612
+ * Pallet `TransactionPayment`'s storage queries
613
+ **/
614
+ transactionPayment: {
615
+ /**
616
+ *
617
+ * @param {Callback<FixedU128> =} callback
618
+ **/
619
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
620
+
621
+ /**
622
+ *
623
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
624
+ **/
625
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
626
+
627
+ /**
628
+ * Generic pallet storage query
629
+ **/
630
+ [storage: string]: GenericStorageQuery<Rv>;
631
+ };
632
+ /**
633
+ * Pallet `Vesting`'s storage queries
634
+ **/
635
+ vesting: {
636
+ /**
637
+ * Information regarding the vesting of a given account.
638
+ *
639
+ * @param {AccountId32Like} arg
640
+ * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
641
+ **/
642
+ vesting: GenericStorageQuery<
643
+ Rv,
644
+ (arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined,
645
+ AccountId32
646
+ >;
647
+
648
+ /**
649
+ * Storage version of the pallet.
650
+ *
651
+ * New networks start with latest version, as determined by the genesis build.
652
+ *
653
+ * @param {Callback<PalletVestingReleases> =} callback
654
+ **/
655
+ storageVersion: GenericStorageQuery<Rv, () => PalletVestingReleases>;
656
+
657
+ /**
658
+ * Generic pallet storage query
659
+ **/
660
+ [storage: string]: GenericStorageQuery<Rv>;
661
+ };
662
+ /**
663
+ * Pallet `Authorship`'s storage queries
664
+ **/
665
+ authorship: {
666
+ /**
667
+ * Author of current block.
668
+ *
669
+ * @param {Callback<AccountId32 | undefined> =} callback
670
+ **/
671
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
672
+
673
+ /**
674
+ * Generic pallet storage query
675
+ **/
676
+ [storage: string]: GenericStorageQuery<Rv>;
677
+ };
678
+ /**
679
+ * Pallet `CollatorSelection`'s storage queries
680
+ **/
681
+ collatorSelection: {
682
+ /**
683
+ * The invulnerable, permissioned collators. This list must be sorted.
684
+ *
685
+ * @param {Callback<Array<AccountId32>> =} callback
686
+ **/
687
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
688
+
689
+ /**
690
+ * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
691
+ * mutually exclusive.
692
+ *
693
+ * This list is sorted in ascending order by deposit and when the deposits are equal, the least
694
+ * recently updated is considered greater.
695
+ *
696
+ * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
697
+ **/
698
+ candidateList: GenericStorageQuery<Rv, () => Array<PalletCollatorSelectionCandidateInfo>>;
699
+
700
+ /**
701
+ * Last block authored by collator.
702
+ *
703
+ * @param {AccountId32Like} arg
704
+ * @param {Callback<number> =} callback
705
+ **/
706
+ lastAuthoredBlock: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
707
+
708
+ /**
709
+ * Desired number of candidates.
710
+ *
711
+ * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
712
+ *
713
+ * @param {Callback<number> =} callback
714
+ **/
715
+ desiredCandidates: GenericStorageQuery<Rv, () => number>;
716
+
717
+ /**
718
+ * Fixed amount to deposit to become a collator.
719
+ *
720
+ * When a collator calls `leave_intent` they immediately receive the deposit back.
721
+ *
722
+ * @param {Callback<bigint> =} callback
723
+ **/
724
+ candidacyBond: GenericStorageQuery<Rv, () => bigint>;
725
+
726
+ /**
727
+ * Generic pallet storage query
728
+ **/
729
+ [storage: string]: GenericStorageQuery<Rv>;
730
+ };
731
+ /**
732
+ * Pallet `Session`'s storage queries
733
+ **/
734
+ session: {
735
+ /**
736
+ * The current set of validators.
737
+ *
738
+ * @param {Callback<Array<AccountId32>> =} callback
739
+ **/
740
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
741
+
742
+ /**
743
+ * Current index of the session.
744
+ *
745
+ * @param {Callback<number> =} callback
746
+ **/
747
+ currentIndex: GenericStorageQuery<Rv, () => number>;
748
+
749
+ /**
750
+ * True if the underlying economic identities or weighting behind the validators
751
+ * has changed in the queued validator set.
752
+ *
753
+ * @param {Callback<boolean> =} callback
754
+ **/
755
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
756
+
757
+ /**
758
+ * The queued keys for the next session. When the next session begins, these keys
759
+ * will be used to determine the validator's session keys.
760
+ *
761
+ * @param {Callback<Array<[AccountId32, AssetHubKusamaRuntimeSessionKeys]>> =} callback
762
+ **/
763
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, AssetHubKusamaRuntimeSessionKeys]>>;
764
+
765
+ /**
766
+ * Indices of disabled validators.
767
+ *
768
+ * The vec is always kept sorted so that we can find whether a given validator is
769
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
770
+ * a new set of identities.
771
+ *
772
+ * @param {Callback<Array<number>> =} callback
773
+ **/
774
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
775
+
776
+ /**
777
+ * The next session keys for a validator.
778
+ *
779
+ * @param {AccountId32Like} arg
780
+ * @param {Callback<AssetHubKusamaRuntimeSessionKeys | undefined> =} callback
781
+ **/
782
+ nextKeys: GenericStorageQuery<
783
+ Rv,
784
+ (arg: AccountId32Like) => AssetHubKusamaRuntimeSessionKeys | undefined,
785
+ AccountId32
786
+ >;
787
+
788
+ /**
789
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
790
+ *
791
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
792
+ * @param {Callback<AccountId32 | undefined> =} callback
793
+ **/
794
+ keyOwner: GenericStorageQuery<
795
+ Rv,
796
+ (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
797
+ [SpCoreCryptoKeyTypeId, Bytes]
798
+ >;
799
+
800
+ /**
801
+ * Generic pallet storage query
802
+ **/
803
+ [storage: string]: GenericStorageQuery<Rv>;
804
+ };
805
+ /**
806
+ * Pallet `Aura`'s storage queries
807
+ **/
808
+ aura: {
809
+ /**
810
+ * The current authority set.
811
+ *
812
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
813
+ **/
814
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
815
+
816
+ /**
817
+ * The current slot of this block.
818
+ *
819
+ * This will be set in `on_initialize`.
820
+ *
821
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
822
+ **/
823
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
824
+
825
+ /**
826
+ * Generic pallet storage query
827
+ **/
828
+ [storage: string]: GenericStorageQuery<Rv>;
829
+ };
830
+ /**
831
+ * Pallet `AuraExt`'s storage queries
832
+ **/
833
+ auraExt: {
834
+ /**
835
+ * Serves as cache for the authorities.
836
+ *
837
+ * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
838
+ * but we require the old authorities to verify the seal when validating a PoV. This will
839
+ * always be updated to the latest AuRa authorities in `on_finalize`.
840
+ *
841
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
842
+ **/
843
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
844
+
845
+ /**
846
+ * Current slot paired with a number of authored blocks.
847
+ *
848
+ * Updated on each block initialization.
849
+ *
850
+ * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
851
+ **/
852
+ slotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
853
+
854
+ /**
855
+ * Generic pallet storage query
856
+ **/
857
+ [storage: string]: GenericStorageQuery<Rv>;
858
+ };
859
+ /**
860
+ * Pallet `XcmpQueue`'s storage queries
861
+ **/
862
+ xcmpQueue: {
863
+ /**
864
+ * The suspended inbound XCMP channels. All others are not suspended.
865
+ *
866
+ * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
867
+ * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
868
+ * within the block and therefore only included once in the proof size.
869
+ *
870
+ * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
871
+ * will be smaller.
872
+ *
873
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
874
+ **/
875
+ inboundXcmpSuspended: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
876
+
877
+ /**
878
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
879
+ * and last outbound message. If the two indices are equal, then it indicates an empty
880
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
881
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
882
+ * case of the need to send a high-priority signal message this block.
883
+ * The bool is true if there is a signal message waiting to be sent.
884
+ *
885
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
886
+ **/
887
+ outboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
888
+
889
+ /**
890
+ * The messages outbound in a given XCMP channel.
891
+ *
892
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
893
+ * @param {Callback<Bytes> =} callback
894
+ **/
895
+ outboundXcmpMessages: GenericStorageQuery<
896
+ Rv,
897
+ (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
898
+ [PolkadotParachainPrimitivesPrimitivesId, number]
899
+ >;
900
+
901
+ /**
902
+ * Any signal messages waiting to be sent.
903
+ *
904
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
905
+ * @param {Callback<Bytes> =} callback
906
+ **/
907
+ signalMessages: GenericStorageQuery<
908
+ Rv,
909
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes,
910
+ PolkadotParachainPrimitivesPrimitivesId
911
+ >;
912
+
913
+ /**
914
+ * The configuration which controls the dynamics of the outbound queue.
915
+ *
916
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
917
+ **/
918
+ queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
919
+
920
+ /**
921
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
922
+ *
923
+ * @param {Callback<boolean> =} callback
924
+ **/
925
+ queueSuspended: GenericStorageQuery<Rv, () => boolean>;
926
+
927
+ /**
928
+ * The factor to multiply the base delivery fee by.
929
+ *
930
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
931
+ * @param {Callback<FixedU128> =} callback
932
+ **/
933
+ deliveryFeeFactor: GenericStorageQuery<
934
+ Rv,
935
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
936
+ PolkadotParachainPrimitivesPrimitivesId
937
+ >;
938
+
939
+ /**
940
+ * Generic pallet storage query
941
+ **/
942
+ [storage: string]: GenericStorageQuery<Rv>;
943
+ };
944
+ /**
945
+ * Pallet `PolkadotXcm`'s storage queries
946
+ **/
947
+ polkadotXcm: {
948
+ /**
949
+ * The latest available query index.
950
+ *
951
+ * @param {Callback<bigint> =} callback
952
+ **/
953
+ queryCounter: GenericStorageQuery<Rv, () => bigint>;
954
+
955
+ /**
956
+ * The ongoing queries.
957
+ *
958
+ * @param {bigint} arg
959
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
960
+ **/
961
+ queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
962
+
963
+ /**
964
+ * The existing asset traps.
965
+ *
966
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
967
+ * times this pair has been trapped (usually just 1 if it exists at all).
968
+ *
969
+ * @param {H256} arg
970
+ * @param {Callback<number> =} callback
971
+ **/
972
+ assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
973
+
974
+ /**
975
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
976
+ * then the destinations whose XCM version is unknown are considered unreachable.
977
+ *
978
+ * @param {Callback<number | undefined> =} callback
979
+ **/
980
+ safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
981
+
982
+ /**
983
+ * The Latest versions that we know various locations support.
984
+ *
985
+ * @param {[number, XcmVersionedLocation]} arg
986
+ * @param {Callback<number | undefined> =} callback
987
+ **/
988
+ supportedVersion: GenericStorageQuery<
989
+ Rv,
990
+ (arg: [number, XcmVersionedLocation]) => number | undefined,
991
+ [number, XcmVersionedLocation]
992
+ >;
993
+
994
+ /**
995
+ * All locations that we have requested version notifications from.
996
+ *
997
+ * @param {[number, XcmVersionedLocation]} arg
998
+ * @param {Callback<bigint | undefined> =} callback
999
+ **/
1000
+ versionNotifiers: GenericStorageQuery<
1001
+ Rv,
1002
+ (arg: [number, XcmVersionedLocation]) => bigint | undefined,
1003
+ [number, XcmVersionedLocation]
1004
+ >;
1005
+
1006
+ /**
1007
+ * The target locations that are subscribed to our version changes, as well as the most recent
1008
+ * of our versions we informed them of.
1009
+ *
1010
+ * @param {[number, XcmVersionedLocation]} arg
1011
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
1012
+ **/
1013
+ versionNotifyTargets: GenericStorageQuery<
1014
+ Rv,
1015
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
1016
+ [number, XcmVersionedLocation]
1017
+ >;
1018
+
1019
+ /**
1020
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
1021
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
1022
+ * which is used as a prioritization.
1023
+ *
1024
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
1025
+ **/
1026
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
1027
+
1028
+ /**
1029
+ * The current migration's stage, if any.
1030
+ *
1031
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
1032
+ **/
1033
+ currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
1034
+
1035
+ /**
1036
+ * Fungible assets which we know are locked on a remote chain.
1037
+ *
1038
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
1039
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1040
+ **/
1041
+ remoteLockedFungibles: GenericStorageQuery<
1042
+ Rv,
1043
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
1044
+ [number, AccountId32, XcmVersionedAssetId]
1045
+ >;
1046
+
1047
+ /**
1048
+ * Fungible assets which we know are locked on this chain.
1049
+ *
1050
+ * @param {AccountId32Like} arg
1051
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
1052
+ **/
1053
+ lockedFungibles: GenericStorageQuery<
1054
+ Rv,
1055
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
1056
+ AccountId32
1057
+ >;
1058
+
1059
+ /**
1060
+ * Global suspension state of the XCM executor.
1061
+ *
1062
+ * @param {Callback<boolean> =} callback
1063
+ **/
1064
+ xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
1065
+
1066
+ /**
1067
+ * Generic pallet storage query
1068
+ **/
1069
+ [storage: string]: GenericStorageQuery<Rv>;
1070
+ };
1071
+ /**
1072
+ * Pallet `ToPolkadotXcmRouter`'s storage queries
1073
+ **/
1074
+ toPolkadotXcmRouter: {
1075
+ /**
1076
+ * Bridge that we are using.
1077
+ *
1078
+ * **bridges-v1** assumptions: all outbound messages through this router are using single lane
1079
+ * and to single remote consensus. If there is some other remote consensus that uses the same
1080
+ * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required
1081
+ * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges
1082
+ * by the same pallet instance.
1083
+ *
1084
+ * @param {Callback<BpXcmBridgeHubRouterBridgeState> =} callback
1085
+ **/
1086
+ bridge: GenericStorageQuery<Rv, () => BpXcmBridgeHubRouterBridgeState>;
1087
+
1088
+ /**
1089
+ * Generic pallet storage query
1090
+ **/
1091
+ [storage: string]: GenericStorageQuery<Rv>;
1092
+ };
1093
+ /**
1094
+ * Pallet `MessageQueue`'s storage queries
1095
+ **/
1096
+ messageQueue: {
1097
+ /**
1098
+ * The index of the first and last (non-empty) pages.
1099
+ *
1100
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg
1101
+ * @param {Callback<PalletMessageQueueBookState> =} callback
1102
+ **/
1103
+ bookStateFor: GenericStorageQuery<
1104
+ Rv,
1105
+ (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState,
1106
+ CumulusPrimitivesCoreAggregateMessageOrigin
1107
+ >;
1108
+
1109
+ /**
1110
+ * The origin at which we should begin servicing.
1111
+ *
1112
+ * @param {Callback<CumulusPrimitivesCoreAggregateMessageOrigin | undefined> =} callback
1113
+ **/
1114
+ serviceHead: GenericStorageQuery<Rv, () => CumulusPrimitivesCoreAggregateMessageOrigin | undefined>;
1115
+
1116
+ /**
1117
+ * The map of page indices to pages.
1118
+ *
1119
+ * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg
1120
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
1121
+ **/
1122
+ pages: GenericStorageQuery<
1123
+ Rv,
1124
+ (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
1125
+ [CumulusPrimitivesCoreAggregateMessageOrigin, number]
1126
+ >;
1127
+
1128
+ /**
1129
+ * Generic pallet storage query
1130
+ **/
1131
+ [storage: string]: GenericStorageQuery<Rv>;
1132
+ };
1133
+ /**
1134
+ * Pallet `Multisig`'s storage queries
1135
+ **/
1136
+ multisig: {
1137
+ /**
1138
+ * The set of open multisig operations.
1139
+ *
1140
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
1141
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1142
+ **/
1143
+ multisigs: GenericStorageQuery<
1144
+ Rv,
1145
+ (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1146
+ [AccountId32, FixedBytes<32>]
1147
+ >;
1148
+
1149
+ /**
1150
+ * Generic pallet storage query
1151
+ **/
1152
+ [storage: string]: GenericStorageQuery<Rv>;
1153
+ };
1154
+ /**
1155
+ * Pallet `Proxy`'s storage queries
1156
+ **/
1157
+ proxy: {
1158
+ /**
1159
+ * The set of account proxies. Maps the account which has delegated to the accounts
1160
+ * which are being delegated to, together with the amount held on deposit.
1161
+ *
1162
+ * @param {AccountId32Like} arg
1163
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1164
+ **/
1165
+ proxies: GenericStorageQuery<
1166
+ Rv,
1167
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
1168
+ AccountId32
1169
+ >;
1170
+
1171
+ /**
1172
+ * The announcements made by the proxy (key).
1173
+ *
1174
+ * @param {AccountId32Like} arg
1175
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1176
+ **/
1177
+ announcements: GenericStorageQuery<
1178
+ Rv,
1179
+ (arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
1180
+ AccountId32
1181
+ >;
1182
+
1183
+ /**
1184
+ * Generic pallet storage query
1185
+ **/
1186
+ [storage: string]: GenericStorageQuery<Rv>;
1187
+ };
1188
+ /**
1189
+ * Pallet `Assets`'s storage queries
1190
+ **/
1191
+ assets: {
1192
+ /**
1193
+ * Details of an asset.
1194
+ *
1195
+ * @param {number} arg
1196
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1197
+ **/
1198
+ asset: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetDetails | undefined, number>;
1199
+
1200
+ /**
1201
+ * The holdings of a specific account for a specific asset.
1202
+ *
1203
+ * @param {[number, AccountId32Like]} arg
1204
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1205
+ **/
1206
+ account: GenericStorageQuery<
1207
+ Rv,
1208
+ (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1209
+ [number, AccountId32]
1210
+ >;
1211
+
1212
+ /**
1213
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1214
+ * is the amount of `T::Currency` reserved for storing this.
1215
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1216
+ *
1217
+ * @param {[number, AccountId32Like, AccountId32Like]} arg
1218
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1219
+ **/
1220
+ approvals: GenericStorageQuery<
1221
+ Rv,
1222
+ (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
1223
+ [number, AccountId32, AccountId32]
1224
+ >;
1225
+
1226
+ /**
1227
+ * Metadata of an asset.
1228
+ *
1229
+ * @param {number} arg
1230
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1231
+ **/
1232
+ metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
1233
+
1234
+ /**
1235
+ * Generic pallet storage query
1236
+ **/
1237
+ [storage: string]: GenericStorageQuery<Rv>;
1238
+ };
1239
+ /**
1240
+ * Pallet `Uniques`'s storage queries
1241
+ **/
1242
+ uniques: {
1243
+ /**
1244
+ * Details of a collection.
1245
+ *
1246
+ * @param {number} arg
1247
+ * @param {Callback<PalletUniquesCollectionDetails | undefined> =} callback
1248
+ **/
1249
+ class: GenericStorageQuery<Rv, (arg: number) => PalletUniquesCollectionDetails | undefined, number>;
1250
+
1251
+ /**
1252
+ * The collection, if any, of which an account is willing to take ownership.
1253
+ *
1254
+ * @param {AccountId32Like} arg
1255
+ * @param {Callback<number | undefined> =} callback
1256
+ **/
1257
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
1258
+
1259
+ /**
1260
+ * The items held by any given account; set out this way so that items owned by a single
1261
+ * account can be enumerated.
1262
+ *
1263
+ * @param {[AccountId32Like, number, number]} arg
1264
+ * @param {Callback<[] | undefined> =} callback
1265
+ **/
1266
+ account: GenericStorageQuery<
1267
+ Rv,
1268
+ (arg: [AccountId32Like, number, number]) => [] | undefined,
1269
+ [AccountId32, number, number]
1270
+ >;
1271
+
1272
+ /**
1273
+ * The collections owned by any given account; set out this way so that collections owned by
1274
+ * a single account can be enumerated.
1275
+ *
1276
+ * @param {[AccountId32Like, number]} arg
1277
+ * @param {Callback<[] | undefined> =} callback
1278
+ **/
1279
+ classAccount: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => [] | undefined, [AccountId32, number]>;
1280
+
1281
+ /**
1282
+ * The items in existence and their ownership details.
1283
+ *
1284
+ * @param {[number, number]} arg
1285
+ * @param {Callback<PalletUniquesItemDetails | undefined> =} callback
1286
+ **/
1287
+ asset: GenericStorageQuery<Rv, (arg: [number, number]) => PalletUniquesItemDetails | undefined, [number, number]>;
1288
+
1289
+ /**
1290
+ * Metadata of a collection.
1291
+ *
1292
+ * @param {number} arg
1293
+ * @param {Callback<PalletUniquesCollectionMetadata | undefined> =} callback
1294
+ **/
1295
+ classMetadataOf: GenericStorageQuery<Rv, (arg: number) => PalletUniquesCollectionMetadata | undefined, number>;
1296
+
1297
+ /**
1298
+ * Metadata of an item.
1299
+ *
1300
+ * @param {[number, number]} arg
1301
+ * @param {Callback<PalletUniquesItemMetadata | undefined> =} callback
1302
+ **/
1303
+ instanceMetadataOf: GenericStorageQuery<
1304
+ Rv,
1305
+ (arg: [number, number]) => PalletUniquesItemMetadata | undefined,
1306
+ [number, number]
1307
+ >;
1308
+
1309
+ /**
1310
+ * Attributes of a collection.
1311
+ *
1312
+ * @param {[number, number | undefined, BytesLike]} arg
1313
+ * @param {Callback<[Bytes, bigint] | undefined> =} callback
1314
+ **/
1315
+ attribute: GenericStorageQuery<
1316
+ Rv,
1317
+ (arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined,
1318
+ [number, number | undefined, Bytes]
1319
+ >;
1320
+
1321
+ /**
1322
+ * Price of an asset instance.
1323
+ *
1324
+ * @param {[number, number]} arg
1325
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1326
+ **/
1327
+ itemPriceOf: GenericStorageQuery<
1328
+ Rv,
1329
+ (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined,
1330
+ [number, number]
1331
+ >;
1332
+
1333
+ /**
1334
+ * Keeps track of the number of items a collection might have.
1335
+ *
1336
+ * @param {number} arg
1337
+ * @param {Callback<number | undefined> =} callback
1338
+ **/
1339
+ collectionMaxSupply: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
1340
+
1341
+ /**
1342
+ * Generic pallet storage query
1343
+ **/
1344
+ [storage: string]: GenericStorageQuery<Rv>;
1345
+ };
1346
+ /**
1347
+ * Pallet `Nfts`'s storage queries
1348
+ **/
1349
+ nfts: {
1350
+ /**
1351
+ * Details of a collection.
1352
+ *
1353
+ * @param {number} arg
1354
+ * @param {Callback<PalletNftsCollectionDetails | undefined> =} callback
1355
+ **/
1356
+ collection: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionDetails | undefined, number>;
1357
+
1358
+ /**
1359
+ * The collection, if any, of which an account is willing to take ownership.
1360
+ *
1361
+ * @param {AccountId32Like} arg
1362
+ * @param {Callback<number | undefined> =} callback
1363
+ **/
1364
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
1365
+
1366
+ /**
1367
+ * The items held by any given account; set out this way so that items owned by a single
1368
+ * account can be enumerated.
1369
+ *
1370
+ * @param {[AccountId32Like, number, number]} arg
1371
+ * @param {Callback<[] | undefined> =} callback
1372
+ **/
1373
+ account: GenericStorageQuery<
1374
+ Rv,
1375
+ (arg: [AccountId32Like, number, number]) => [] | undefined,
1376
+ [AccountId32, number, number]
1377
+ >;
1378
+
1379
+ /**
1380
+ * The collections owned by any given account; set out this way so that collections owned by
1381
+ * a single account can be enumerated.
1382
+ *
1383
+ * @param {[AccountId32Like, number]} arg
1384
+ * @param {Callback<[] | undefined> =} callback
1385
+ **/
1386
+ collectionAccount: GenericStorageQuery<
1387
+ Rv,
1388
+ (arg: [AccountId32Like, number]) => [] | undefined,
1389
+ [AccountId32, number]
1390
+ >;
1391
+
1392
+ /**
1393
+ * The items in existence and their ownership details.
1394
+ * Stores collection roles as per account.
1395
+ *
1396
+ * @param {[number, AccountId32Like]} arg
1397
+ * @param {Callback<PalletNftsBitFlagsCollectionRole | undefined> =} callback
1398
+ **/
1399
+ collectionRoleOf: GenericStorageQuery<
1400
+ Rv,
1401
+ (arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined,
1402
+ [number, AccountId32]
1403
+ >;
1404
+
1405
+ /**
1406
+ * The items in existence and their ownership details.
1407
+ *
1408
+ * @param {[number, number]} arg
1409
+ * @param {Callback<PalletNftsItemDetails | undefined> =} callback
1410
+ **/
1411
+ item: GenericStorageQuery<Rv, (arg: [number, number]) => PalletNftsItemDetails | undefined, [number, number]>;
1412
+
1413
+ /**
1414
+ * Metadata of a collection.
1415
+ *
1416
+ * @param {number} arg
1417
+ * @param {Callback<PalletNftsCollectionMetadata | undefined> =} callback
1418
+ **/
1419
+ collectionMetadataOf: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionMetadata | undefined, number>;
1420
+
1421
+ /**
1422
+ * Metadata of an item.
1423
+ *
1424
+ * @param {[number, number]} arg
1425
+ * @param {Callback<PalletNftsItemMetadata | undefined> =} callback
1426
+ **/
1427
+ itemMetadataOf: GenericStorageQuery<
1428
+ Rv,
1429
+ (arg: [number, number]) => PalletNftsItemMetadata | undefined,
1430
+ [number, number]
1431
+ >;
1432
+
1433
+ /**
1434
+ * Attributes of a collection.
1435
+ *
1436
+ * @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg
1437
+ * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback
1438
+ **/
1439
+ attribute: GenericStorageQuery<
1440
+ Rv,
1441
+ (
1442
+ arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike],
1443
+ ) => [Bytes, PalletNftsAttributeDeposit] | undefined,
1444
+ [number, number | undefined, PalletNftsAttributeNamespace, Bytes]
1445
+ >;
1446
+
1447
+ /**
1448
+ * A price of an item.
1449
+ *
1450
+ * @param {[number, number]} arg
1451
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1452
+ **/
1453
+ itemPriceOf: GenericStorageQuery<
1454
+ Rv,
1455
+ (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined,
1456
+ [number, number]
1457
+ >;
1458
+
1459
+ /**
1460
+ * Item attribute approvals.
1461
+ *
1462
+ * @param {[number, number]} arg
1463
+ * @param {Callback<Array<AccountId32>> =} callback
1464
+ **/
1465
+ itemAttributesApprovalsOf: GenericStorageQuery<Rv, (arg: [number, number]) => Array<AccountId32>, [number, number]>;
1466
+
1467
+ /**
1468
+ * Stores the `CollectionId` that is going to be used for the next collection.
1469
+ * This gets incremented whenever a new collection is created.
1470
+ *
1471
+ * @param {Callback<number | undefined> =} callback
1472
+ **/
1473
+ nextCollectionId: GenericStorageQuery<Rv, () => number | undefined>;
1474
+
1475
+ /**
1476
+ * Handles all the pending swaps.
1477
+ *
1478
+ * @param {[number, number]} arg
1479
+ * @param {Callback<PalletNftsPendingSwap | undefined> =} callback
1480
+ **/
1481
+ pendingSwapOf: GenericStorageQuery<
1482
+ Rv,
1483
+ (arg: [number, number]) => PalletNftsPendingSwap | undefined,
1484
+ [number, number]
1485
+ >;
1486
+
1487
+ /**
1488
+ * Config of a collection.
1489
+ *
1490
+ * @param {number} arg
1491
+ * @param {Callback<PalletNftsCollectionConfig | undefined> =} callback
1492
+ **/
1493
+ collectionConfigOf: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionConfig | undefined, number>;
1494
+
1495
+ /**
1496
+ * Config of an item.
1497
+ *
1498
+ * @param {[number, number]} arg
1499
+ * @param {Callback<PalletNftsItemConfig | undefined> =} callback
1500
+ **/
1501
+ itemConfigOf: GenericStorageQuery<
1502
+ Rv,
1503
+ (arg: [number, number]) => PalletNftsItemConfig | undefined,
1504
+ [number, number]
1505
+ >;
1506
+
1507
+ /**
1508
+ * Generic pallet storage query
1509
+ **/
1510
+ [storage: string]: GenericStorageQuery<Rv>;
1511
+ };
1512
+ /**
1513
+ * Pallet `ForeignAssets`'s storage queries
1514
+ **/
1515
+ foreignAssets: {
1516
+ /**
1517
+ * Details of an asset.
1518
+ *
1519
+ * @param {StagingXcmV3MultilocationMultiLocation} arg
1520
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1521
+ **/
1522
+ asset: GenericStorageQuery<
1523
+ Rv,
1524
+ (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined,
1525
+ StagingXcmV3MultilocationMultiLocation
1526
+ >;
1527
+
1528
+ /**
1529
+ * The holdings of a specific account for a specific asset.
1530
+ *
1531
+ * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
1532
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1533
+ **/
1534
+ account: GenericStorageQuery<
1535
+ Rv,
1536
+ (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1537
+ [StagingXcmV3MultilocationMultiLocation, AccountId32]
1538
+ >;
1539
+
1540
+ /**
1541
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1542
+ * is the amount of `T::Currency` reserved for storing this.
1543
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1544
+ *
1545
+ * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like]} arg
1546
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1547
+ **/
1548
+ approvals: GenericStorageQuery<
1549
+ Rv,
1550
+ (
1551
+ arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like],
1552
+ ) => PalletAssetsApproval | undefined,
1553
+ [StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32]
1554
+ >;
1555
+
1556
+ /**
1557
+ * Metadata of an asset.
1558
+ *
1559
+ * @param {StagingXcmV3MultilocationMultiLocation} arg
1560
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1561
+ **/
1562
+ metadata: GenericStorageQuery<
1563
+ Rv,
1564
+ (arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata,
1565
+ StagingXcmV3MultilocationMultiLocation
1566
+ >;
1567
+
1568
+ /**
1569
+ * Generic pallet storage query
1570
+ **/
1571
+ [storage: string]: GenericStorageQuery<Rv>;
1572
+ };
1573
+ /**
1574
+ * Pallet `NftFractionalization`'s storage queries
1575
+ **/
1576
+ nftFractionalization: {
1577
+ /**
1578
+ * Keeps track of the corresponding NFT ID, asset ID and amount minted.
1579
+ *
1580
+ * @param {[number, number]} arg
1581
+ * @param {Callback<PalletNftFractionalizationDetails | undefined> =} callback
1582
+ **/
1583
+ nftToAsset: GenericStorageQuery<
1584
+ Rv,
1585
+ (arg: [number, number]) => PalletNftFractionalizationDetails | undefined,
1586
+ [number, number]
1587
+ >;
1588
+
1589
+ /**
1590
+ * Generic pallet storage query
1591
+ **/
1592
+ [storage: string]: GenericStorageQuery<Rv>;
1593
+ };
1594
+ /**
1595
+ * Pallet `PoolAssets`'s storage queries
1596
+ **/
1597
+ poolAssets: {
1598
+ /**
1599
+ * Details of an asset.
1600
+ *
1601
+ * @param {number} arg
1602
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1603
+ **/
1604
+ asset: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetDetails | undefined, number>;
1605
+
1606
+ /**
1607
+ * The holdings of a specific account for a specific asset.
1608
+ *
1609
+ * @param {[number, AccountId32Like]} arg
1610
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1611
+ **/
1612
+ account: GenericStorageQuery<
1613
+ Rv,
1614
+ (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1615
+ [number, AccountId32]
1616
+ >;
1617
+
1618
+ /**
1619
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1620
+ * is the amount of `T::Currency` reserved for storing this.
1621
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1622
+ *
1623
+ * @param {[number, AccountId32Like, AccountId32Like]} arg
1624
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1625
+ **/
1626
+ approvals: GenericStorageQuery<
1627
+ Rv,
1628
+ (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
1629
+ [number, AccountId32, AccountId32]
1630
+ >;
1631
+
1632
+ /**
1633
+ * Metadata of an asset.
1634
+ *
1635
+ * @param {number} arg
1636
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1637
+ **/
1638
+ metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
1639
+
1640
+ /**
1641
+ * Generic pallet storage query
1642
+ **/
1643
+ [storage: string]: GenericStorageQuery<Rv>;
1644
+ };
1645
+ /**
1646
+ * Pallet `AssetConversion`'s storage queries
1647
+ **/
1648
+ assetConversion: {
1649
+ /**
1650
+ * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
1651
+ * created rather than people sending tokens directly to a pool's public account.
1652
+ *
1653
+ * @param {[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]} arg
1654
+ * @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
1655
+ **/
1656
+ pools: GenericStorageQuery<
1657
+ Rv,
1658
+ (
1659
+ arg: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation],
1660
+ ) => PalletAssetConversionPoolInfo | undefined,
1661
+ [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]
1662
+ >;
1663
+
1664
+ /**
1665
+ * Stores the `PoolAssetId` that is going to be used for the next lp token.
1666
+ * This gets incremented whenever a new lp pool is created.
1667
+ *
1668
+ * @param {Callback<number | undefined> =} callback
1669
+ **/
1670
+ nextPoolAssetId: GenericStorageQuery<Rv, () => number | undefined>;
1671
+
1672
+ /**
1673
+ * Generic pallet storage query
1674
+ **/
1675
+ [storage: string]: GenericStorageQuery<Rv>;
1676
+ };
1677
+ }