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