@dedot/chaintypes 0.5.0 → 0.7.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 (47) hide show
  1. package/astar/json-rpc.d.ts +8 -3
  2. package/kusama-asset-hub/consts.d.ts +765 -0
  3. package/kusama-asset-hub/errors.d.ts +1529 -0
  4. package/kusama-asset-hub/events.d.ts +2443 -0
  5. package/kusama-asset-hub/index.d.ts +27 -0
  6. package/kusama-asset-hub/json-rpc.d.ts +90 -0
  7. package/kusama-asset-hub/query.d.ts +1677 -0
  8. package/kusama-asset-hub/runtime.d.ts +555 -0
  9. package/kusama-asset-hub/tx.d.ts +6364 -0
  10. package/kusama-asset-hub/types.d.ts +6921 -0
  11. package/package.json +3 -3
  12. package/polkadot-asset-hub/consts.d.ts +730 -0
  13. package/polkadot-asset-hub/errors.d.ts +1500 -0
  14. package/polkadot-asset-hub/events.d.ts +2414 -0
  15. package/polkadot-asset-hub/index.d.ts +27 -0
  16. package/polkadot-asset-hub/json-rpc.d.ts +90 -0
  17. package/polkadot-asset-hub/query.d.ts +1655 -0
  18. package/polkadot-asset-hub/runtime.d.ts +558 -0
  19. package/polkadot-asset-hub/tx.d.ts +6293 -0
  20. package/polkadot-asset-hub/types.d.ts +6829 -0
  21. package/rococo-asset-hub/consts.d.ts +835 -0
  22. package/rococo-asset-hub/errors.d.ts +1590 -0
  23. package/rococo-asset-hub/events.d.ts +2573 -0
  24. package/rococo-asset-hub/index.d.ts +27 -0
  25. package/rococo-asset-hub/json-rpc.d.ts +90 -0
  26. package/rococo-asset-hub/query.d.ts +1829 -0
  27. package/rococo-asset-hub/runtime.d.ts +726 -0
  28. package/rococo-asset-hub/tx.d.ts +9011 -0
  29. package/rococo-asset-hub/types.d.ts +12431 -0
  30. package/westend-asset-hub/consts.d.ts +869 -0
  31. package/westend-asset-hub/errors.d.ts +1635 -0
  32. package/westend-asset-hub/events.d.ts +2610 -0
  33. package/westend-asset-hub/index.d.ts +27 -0
  34. package/westend-asset-hub/json-rpc.d.ts +90 -0
  35. package/westend-asset-hub/query.d.ts +1868 -0
  36. package/westend-asset-hub/runtime.d.ts +798 -0
  37. package/westend-asset-hub/tx.d.ts +9199 -0
  38. package/westend-asset-hub/types.d.ts +12661 -0
  39. package/westend-people/consts.d.ts +434 -0
  40. package/westend-people/errors.d.ts +769 -0
  41. package/westend-people/events.d.ts +1082 -0
  42. package/westend-people/index.d.ts +27 -0
  43. package/westend-people/json-rpc.d.ts +89 -0
  44. package/westend-people/query.d.ts +1209 -0
  45. package/westend-people/runtime.d.ts +636 -0
  46. package/westend-people/tx.d.ts +2891 -0
  47. package/westend-people/types.d.ts +4984 -0
@@ -0,0 +1,1209 @@
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
+ Data,
15
+ } from 'dedot/codecs';
16
+ import type {
17
+ FrameSystemAccountInfo,
18
+ FrameSupportDispatchPerDispatchClass,
19
+ FrameSystemEventRecord,
20
+ FrameSystemLastRuntimeUpgradeInfo,
21
+ FrameSystemCodeUpgradeAuthorization,
22
+ CumulusPalletParachainSystemUnincludedSegmentAncestor,
23
+ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
24
+ PolkadotPrimitivesV7PersistedValidationData,
25
+ PolkadotPrimitivesV7UpgradeRestriction,
26
+ PolkadotPrimitivesV7UpgradeGoAhead,
27
+ SpTrieStorageProof,
28
+ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
29
+ PolkadotPrimitivesV7AbridgedHostConfiguration,
30
+ CumulusPrimitivesParachainInherentMessageQueueChain,
31
+ PolkadotParachainPrimitivesPrimitivesId,
32
+ PolkadotCorePrimitivesOutboundHrmpMessage,
33
+ SpWeightsWeightV2Weight,
34
+ PalletBalancesAccountData,
35
+ PalletBalancesBalanceLock,
36
+ PalletBalancesReserveData,
37
+ FrameSupportTokensMiscIdAmount,
38
+ FrameSupportTokensMiscIdAmount002,
39
+ PalletTransactionPaymentReleases,
40
+ PalletCollatorSelectionCandidateInfo,
41
+ PeopleWestendRuntimeSessionKeys,
42
+ SpCoreCryptoKeyTypeId,
43
+ SpConsensusAuraSr25519AppSr25519Public,
44
+ SpConsensusSlotsSlot,
45
+ CumulusPalletXcmpQueueOutboundChannelDetails,
46
+ CumulusPalletXcmpQueueQueueConfigData,
47
+ PalletXcmQueryStatus,
48
+ XcmVersionedLocation,
49
+ PalletXcmVersionMigrationStage,
50
+ PalletXcmRemoteLockedFungibleRecord,
51
+ XcmVersionedAssetId,
52
+ StagingXcmV4Xcm,
53
+ PalletMessageQueueBookState,
54
+ CumulusPrimitivesCoreAggregateMessageOrigin,
55
+ PalletMessageQueuePage,
56
+ PalletMultisigMultisig,
57
+ PalletIdentityRegistration,
58
+ PalletIdentityRegistrarInfo,
59
+ PalletIdentityAuthorityProperties,
60
+ } from './types';
61
+
62
+ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
63
+ /**
64
+ * Pallet `System`'s storage queries
65
+ **/
66
+ system: {
67
+ /**
68
+ * The full account information for a particular account ID.
69
+ *
70
+ * @param {AccountId32Like} arg
71
+ * @param {Callback<FrameSystemAccountInfo> =} callback
72
+ **/
73
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
74
+
75
+ /**
76
+ * Total extrinsics count for the current block.
77
+ *
78
+ * @param {Callback<number | undefined> =} callback
79
+ **/
80
+ extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
81
+
82
+ /**
83
+ * Whether all inherents have been applied.
84
+ *
85
+ * @param {Callback<boolean> =} callback
86
+ **/
87
+ inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
88
+
89
+ /**
90
+ * The current weight for the block.
91
+ *
92
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
93
+ **/
94
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
95
+
96
+ /**
97
+ * Total length (in bytes) for all extrinsics put together, for the current block.
98
+ *
99
+ * @param {Callback<number | undefined> =} callback
100
+ **/
101
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
102
+
103
+ /**
104
+ * Map of block numbers to block hashes.
105
+ *
106
+ * @param {number} arg
107
+ * @param {Callback<H256> =} callback
108
+ **/
109
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
110
+
111
+ /**
112
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
113
+ *
114
+ * @param {number} arg
115
+ * @param {Callback<Bytes> =} callback
116
+ **/
117
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
118
+
119
+ /**
120
+ * The current block number being processed. Set by `execute_block`.
121
+ *
122
+ * @param {Callback<number> =} callback
123
+ **/
124
+ number: GenericStorageQuery<Rv, () => number>;
125
+
126
+ /**
127
+ * Hash of the previous block.
128
+ *
129
+ * @param {Callback<H256> =} callback
130
+ **/
131
+ parentHash: GenericStorageQuery<Rv, () => H256>;
132
+
133
+ /**
134
+ * Digest of the current block, also part of the block header.
135
+ *
136
+ * @param {Callback<Digest> =} callback
137
+ **/
138
+ digest: GenericStorageQuery<Rv, () => Digest>;
139
+
140
+ /**
141
+ * Events deposited for the current block.
142
+ *
143
+ * NOTE: The item is unbound and should therefore never be read on chain.
144
+ * It could otherwise inflate the PoV size of a block.
145
+ *
146
+ * Events have a large in-memory size. Box the events to not go out-of-memory
147
+ * just in case someone still reads them from within the runtime.
148
+ *
149
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
150
+ **/
151
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
152
+
153
+ /**
154
+ * The number of events in the `Events<T>` list.
155
+ *
156
+ * @param {Callback<number> =} callback
157
+ **/
158
+ eventCount: GenericStorageQuery<Rv, () => number>;
159
+
160
+ /**
161
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
162
+ * of events in the `<Events<T>>` list.
163
+ *
164
+ * All topic vectors have deterministic storage locations depending on the topic. This
165
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
166
+ * in case of changes fetch the list of events of interest.
167
+ *
168
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
169
+ * the `EventIndex` then in case if the topic has the same contents on the next block
170
+ * no notification will be triggered thus the event might be lost.
171
+ *
172
+ * @param {H256} arg
173
+ * @param {Callback<Array<[number, number]>> =} callback
174
+ **/
175
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
176
+
177
+ /**
178
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
179
+ *
180
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
181
+ **/
182
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
183
+
184
+ /**
185
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
186
+ *
187
+ * @param {Callback<boolean> =} callback
188
+ **/
189
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
190
+
191
+ /**
192
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
193
+ * (default) if not.
194
+ *
195
+ * @param {Callback<boolean> =} callback
196
+ **/
197
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
198
+
199
+ /**
200
+ * The execution phase of the block.
201
+ *
202
+ * @param {Callback<Phase | undefined> =} callback
203
+ **/
204
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
205
+
206
+ /**
207
+ * `Some` if a code upgrade has been authorized.
208
+ *
209
+ * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
210
+ **/
211
+ authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
212
+
213
+ /**
214
+ * Generic pallet storage query
215
+ **/
216
+ [storage: string]: GenericStorageQuery<Rv>;
217
+ };
218
+ /**
219
+ * Pallet `ParachainSystem`'s storage queries
220
+ **/
221
+ parachainSystem: {
222
+ /**
223
+ * Latest included block descendants the runtime accepted. In other words, these are
224
+ * ancestors of the currently executing block which have not been included in the observed
225
+ * relay-chain state.
226
+ *
227
+ * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
228
+ * in the pallet.
229
+ *
230
+ * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
231
+ **/
232
+ unincludedSegment: GenericStorageQuery<Rv, () => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
233
+
234
+ /**
235
+ * Storage field that keeps track of bandwidth used by the unincluded segment along with the
236
+ * latest HRMP watermark. Used for limiting the acceptance of new blocks with
237
+ * respect to relay chain constraints.
238
+ *
239
+ * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
240
+ **/
241
+ aggregatedUnincludedSegment: GenericStorageQuery<
242
+ Rv,
243
+ () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
244
+ >;
245
+
246
+ /**
247
+ * In case of a scheduled upgrade, this storage field contains the validation code to be
248
+ * applied.
249
+ *
250
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
251
+ * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
252
+ * with the new validation code. This concludes the upgrade process.
253
+ *
254
+ * @param {Callback<Bytes> =} callback
255
+ **/
256
+ pendingValidationCode: GenericStorageQuery<Rv, () => Bytes>;
257
+
258
+ /**
259
+ * Validation code that is set by the parachain and is to be communicated to collator and
260
+ * consequently the relay-chain.
261
+ *
262
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
263
+ * the value.
264
+ *
265
+ * @param {Callback<Bytes | undefined> =} callback
266
+ **/
267
+ newValidationCode: GenericStorageQuery<Rv, () => Bytes | undefined>;
268
+
269
+ /**
270
+ * The [`PersistedValidationData`] set for this block.
271
+ * This value is expected to be set only once per block and it's never stored
272
+ * in the trie.
273
+ *
274
+ * @param {Callback<PolkadotPrimitivesV7PersistedValidationData | undefined> =} callback
275
+ **/
276
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7PersistedValidationData | undefined>;
277
+
278
+ /**
279
+ * Were the validation data set to notify the relay chain?
280
+ *
281
+ * @param {Callback<boolean> =} callback
282
+ **/
283
+ didSetValidationCode: GenericStorageQuery<Rv, () => boolean>;
284
+
285
+ /**
286
+ * The relay chain block number associated with the last parachain block.
287
+ *
288
+ * This is updated in `on_finalize`.
289
+ *
290
+ * @param {Callback<number> =} callback
291
+ **/
292
+ lastRelayChainBlockNumber: GenericStorageQuery<Rv, () => number>;
293
+
294
+ /**
295
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
296
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
297
+ * candidate will be invalid.
298
+ *
299
+ * This storage item is a mirror of the corresponding value for the current parachain from the
300
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
301
+ * set after the inherent.
302
+ *
303
+ * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
304
+ **/
305
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeRestriction | undefined>;
306
+
307
+ /**
308
+ * Optional upgrade go-ahead signal from the relay-chain.
309
+ *
310
+ * This storage item is a mirror of the corresponding value for the current parachain from the
311
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
312
+ * set after the inherent.
313
+ *
314
+ * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
315
+ **/
316
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeGoAhead | undefined>;
317
+
318
+ /**
319
+ * The state proof for the last relay parent block.
320
+ *
321
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
322
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
323
+ *
324
+ * This data is also absent from the genesis.
325
+ *
326
+ * @param {Callback<SpTrieStorageProof | undefined> =} callback
327
+ **/
328
+ relayStateProof: GenericStorageQuery<Rv, () => SpTrieStorageProof | undefined>;
329
+
330
+ /**
331
+ * The snapshot of some state related to messaging relevant to the current parachain as per
332
+ * the relay parent.
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<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
340
+ **/
341
+ relevantMessagingState: GenericStorageQuery<
342
+ Rv,
343
+ () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
344
+ >;
345
+
346
+ /**
347
+ * The parachain host configuration that was obtained from the relay parent.
348
+ *
349
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
350
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
351
+ *
352
+ * This data is also absent from the genesis.
353
+ *
354
+ * @param {Callback<PolkadotPrimitivesV7AbridgedHostConfiguration | undefined> =} callback
355
+ **/
356
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>;
357
+
358
+ /**
359
+ * The last downward message queue chain head we have observed.
360
+ *
361
+ * This value is loaded before and saved after processing inbound downward messages carried
362
+ * by the system inherent.
363
+ *
364
+ * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
365
+ **/
366
+ lastDmqMqcHead: GenericStorageQuery<Rv, () => CumulusPrimitivesParachainInherentMessageQueueChain>;
367
+
368
+ /**
369
+ * The message queue chain heads we have observed per each channel incoming channel.
370
+ *
371
+ * This value is loaded before and saved after processing inbound downward messages carried
372
+ * by the system inherent.
373
+ *
374
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
375
+ **/
376
+ lastHrmpMqcHeads: GenericStorageQuery<
377
+ Rv,
378
+ () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
379
+ >;
380
+
381
+ /**
382
+ * Number of downward messages processed in a block.
383
+ *
384
+ * This will be cleared in `on_initialize` of each new block.
385
+ *
386
+ * @param {Callback<number> =} callback
387
+ **/
388
+ processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
389
+
390
+ /**
391
+ * HRMP watermark that was set in a block.
392
+ *
393
+ * This will be cleared in `on_initialize` of each new block.
394
+ *
395
+ * @param {Callback<number> =} callback
396
+ **/
397
+ hrmpWatermark: GenericStorageQuery<Rv, () => number>;
398
+
399
+ /**
400
+ * HRMP messages that were sent in a block.
401
+ *
402
+ * This will be cleared in `on_initialize` of each new block.
403
+ *
404
+ * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
405
+ **/
406
+ hrmpOutboundMessages: GenericStorageQuery<Rv, () => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
407
+
408
+ /**
409
+ * Upward messages that were sent in a block.
410
+ *
411
+ * This will be cleared in `on_initialize` of each new block.
412
+ *
413
+ * @param {Callback<Array<Bytes>> =} callback
414
+ **/
415
+ upwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
416
+
417
+ /**
418
+ * Upward messages that are still pending and not yet send to the relay chain.
419
+ *
420
+ * @param {Callback<Array<Bytes>> =} callback
421
+ **/
422
+ pendingUpwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
423
+
424
+ /**
425
+ * The factor to multiply the base delivery fee by for UMP.
426
+ *
427
+ * @param {Callback<FixedU128> =} callback
428
+ **/
429
+ upwardDeliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
430
+
431
+ /**
432
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
433
+ * announcing the weight of `on_initialize` and `on_finalize`.
434
+ *
435
+ * @param {Callback<number> =} callback
436
+ **/
437
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<Rv, () => number>;
438
+
439
+ /**
440
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
441
+ * overrides the amount set in the Config trait.
442
+ *
443
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
444
+ **/
445
+ reservedXcmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
446
+
447
+ /**
448
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
449
+ * overrides the amount set in the Config trait.
450
+ *
451
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
452
+ **/
453
+ reservedDmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
454
+
455
+ /**
456
+ * A custom head data that should be returned as result of `validate_block`.
457
+ *
458
+ * See `Pallet::set_custom_validation_head_data` for more information.
459
+ *
460
+ * @param {Callback<Bytes | undefined> =} callback
461
+ **/
462
+ customValidationHeadData: GenericStorageQuery<Rv, () => Bytes | undefined>;
463
+
464
+ /**
465
+ * Generic pallet storage query
466
+ **/
467
+ [storage: string]: GenericStorageQuery<Rv>;
468
+ };
469
+ /**
470
+ * Pallet `Timestamp`'s storage queries
471
+ **/
472
+ timestamp: {
473
+ /**
474
+ * The current time for the current block.
475
+ *
476
+ * @param {Callback<bigint> =} callback
477
+ **/
478
+ now: GenericStorageQuery<Rv, () => bigint>;
479
+
480
+ /**
481
+ * Whether the timestamp has been updated in this block.
482
+ *
483
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
484
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
485
+ *
486
+ * @param {Callback<boolean> =} callback
487
+ **/
488
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
489
+
490
+ /**
491
+ * Generic pallet storage query
492
+ **/
493
+ [storage: string]: GenericStorageQuery<Rv>;
494
+ };
495
+ /**
496
+ * Pallet `ParachainInfo`'s storage queries
497
+ **/
498
+ parachainInfo: {
499
+ /**
500
+ *
501
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
502
+ **/
503
+ parachainId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
504
+
505
+ /**
506
+ * Generic pallet storage query
507
+ **/
508
+ [storage: string]: GenericStorageQuery<Rv>;
509
+ };
510
+ /**
511
+ * Pallet `Balances`'s storage queries
512
+ **/
513
+ balances: {
514
+ /**
515
+ * The total units issued in the system.
516
+ *
517
+ * @param {Callback<bigint> =} callback
518
+ **/
519
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
520
+
521
+ /**
522
+ * The total units of outstanding deactivated balance in the system.
523
+ *
524
+ * @param {Callback<bigint> =} callback
525
+ **/
526
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
527
+
528
+ /**
529
+ * The Balances pallet example of storing the balance of an account.
530
+ *
531
+ * # Example
532
+ *
533
+ * ```nocompile
534
+ * impl pallet_balances::Config for Runtime {
535
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
536
+ * }
537
+ * ```
538
+ *
539
+ * You can also store the balance of an account in the `System` pallet.
540
+ *
541
+ * # Example
542
+ *
543
+ * ```nocompile
544
+ * impl pallet_balances::Config for Runtime {
545
+ * type AccountStore = System
546
+ * }
547
+ * ```
548
+ *
549
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
550
+ * `frame_system` data alongside the account data contrary to storing account balances in the
551
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
552
+ * NOTE: This is only used in the case that this pallet is used to store balances.
553
+ *
554
+ * @param {AccountId32Like} arg
555
+ * @param {Callback<PalletBalancesAccountData> =} callback
556
+ **/
557
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
558
+
559
+ /**
560
+ * Any liquidity locks on some account balances.
561
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
562
+ *
563
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
564
+ *
565
+ * @param {AccountId32Like} arg
566
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
567
+ **/
568
+ locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
569
+
570
+ /**
571
+ * Named reserves on some account balances.
572
+ *
573
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
574
+ *
575
+ * @param {AccountId32Like} arg
576
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
577
+ **/
578
+ reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
579
+
580
+ /**
581
+ * Holds on account balances.
582
+ *
583
+ * @param {AccountId32Like} arg
584
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
585
+ **/
586
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
587
+
588
+ /**
589
+ * Freeze locks on account balances.
590
+ *
591
+ * @param {AccountId32Like} arg
592
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount002>> =} callback
593
+ **/
594
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount002>, AccountId32>;
595
+
596
+ /**
597
+ * Generic pallet storage query
598
+ **/
599
+ [storage: string]: GenericStorageQuery<Rv>;
600
+ };
601
+ /**
602
+ * Pallet `TransactionPayment`'s storage queries
603
+ **/
604
+ transactionPayment: {
605
+ /**
606
+ *
607
+ * @param {Callback<FixedU128> =} callback
608
+ **/
609
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
610
+
611
+ /**
612
+ *
613
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
614
+ **/
615
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
616
+
617
+ /**
618
+ * Generic pallet storage query
619
+ **/
620
+ [storage: string]: GenericStorageQuery<Rv>;
621
+ };
622
+ /**
623
+ * Pallet `Authorship`'s storage queries
624
+ **/
625
+ authorship: {
626
+ /**
627
+ * Author of current block.
628
+ *
629
+ * @param {Callback<AccountId32 | undefined> =} callback
630
+ **/
631
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
632
+
633
+ /**
634
+ * Generic pallet storage query
635
+ **/
636
+ [storage: string]: GenericStorageQuery<Rv>;
637
+ };
638
+ /**
639
+ * Pallet `CollatorSelection`'s storage queries
640
+ **/
641
+ collatorSelection: {
642
+ /**
643
+ * The invulnerable, permissioned collators. This list must be sorted.
644
+ *
645
+ * @param {Callback<Array<AccountId32>> =} callback
646
+ **/
647
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
648
+
649
+ /**
650
+ * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
651
+ * mutually exclusive.
652
+ *
653
+ * This list is sorted in ascending order by deposit and when the deposits are equal, the least
654
+ * recently updated is considered greater.
655
+ *
656
+ * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
657
+ **/
658
+ candidateList: GenericStorageQuery<Rv, () => Array<PalletCollatorSelectionCandidateInfo>>;
659
+
660
+ /**
661
+ * Last block authored by collator.
662
+ *
663
+ * @param {AccountId32Like} arg
664
+ * @param {Callback<number> =} callback
665
+ **/
666
+ lastAuthoredBlock: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
667
+
668
+ /**
669
+ * Desired number of candidates.
670
+ *
671
+ * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
672
+ *
673
+ * @param {Callback<number> =} callback
674
+ **/
675
+ desiredCandidates: GenericStorageQuery<Rv, () => number>;
676
+
677
+ /**
678
+ * Fixed amount to deposit to become a collator.
679
+ *
680
+ * When a collator calls `leave_intent` they immediately receive the deposit back.
681
+ *
682
+ * @param {Callback<bigint> =} callback
683
+ **/
684
+ candidacyBond: GenericStorageQuery<Rv, () => bigint>;
685
+
686
+ /**
687
+ * Generic pallet storage query
688
+ **/
689
+ [storage: string]: GenericStorageQuery<Rv>;
690
+ };
691
+ /**
692
+ * Pallet `Session`'s storage queries
693
+ **/
694
+ session: {
695
+ /**
696
+ * The current set of validators.
697
+ *
698
+ * @param {Callback<Array<AccountId32>> =} callback
699
+ **/
700
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
701
+
702
+ /**
703
+ * Current index of the session.
704
+ *
705
+ * @param {Callback<number> =} callback
706
+ **/
707
+ currentIndex: GenericStorageQuery<Rv, () => number>;
708
+
709
+ /**
710
+ * True if the underlying economic identities or weighting behind the validators
711
+ * has changed in the queued validator set.
712
+ *
713
+ * @param {Callback<boolean> =} callback
714
+ **/
715
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
716
+
717
+ /**
718
+ * The queued keys for the next session. When the next session begins, these keys
719
+ * will be used to determine the validator's session keys.
720
+ *
721
+ * @param {Callback<Array<[AccountId32, PeopleWestendRuntimeSessionKeys]>> =} callback
722
+ **/
723
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, PeopleWestendRuntimeSessionKeys]>>;
724
+
725
+ /**
726
+ * Indices of disabled validators.
727
+ *
728
+ * The vec is always kept sorted so that we can find whether a given validator is
729
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
730
+ * a new set of identities.
731
+ *
732
+ * @param {Callback<Array<number>> =} callback
733
+ **/
734
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
735
+
736
+ /**
737
+ * The next session keys for a validator.
738
+ *
739
+ * @param {AccountId32Like} arg
740
+ * @param {Callback<PeopleWestendRuntimeSessionKeys | undefined> =} callback
741
+ **/
742
+ nextKeys: GenericStorageQuery<
743
+ Rv,
744
+ (arg: AccountId32Like) => PeopleWestendRuntimeSessionKeys | undefined,
745
+ AccountId32
746
+ >;
747
+
748
+ /**
749
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
750
+ *
751
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
752
+ * @param {Callback<AccountId32 | undefined> =} callback
753
+ **/
754
+ keyOwner: GenericStorageQuery<
755
+ Rv,
756
+ (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
757
+ [SpCoreCryptoKeyTypeId, Bytes]
758
+ >;
759
+
760
+ /**
761
+ * Generic pallet storage query
762
+ **/
763
+ [storage: string]: GenericStorageQuery<Rv>;
764
+ };
765
+ /**
766
+ * Pallet `Aura`'s storage queries
767
+ **/
768
+ aura: {
769
+ /**
770
+ * The current authority set.
771
+ *
772
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
773
+ **/
774
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
775
+
776
+ /**
777
+ * The current slot of this block.
778
+ *
779
+ * This will be set in `on_initialize`.
780
+ *
781
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
782
+ **/
783
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
784
+
785
+ /**
786
+ * Generic pallet storage query
787
+ **/
788
+ [storage: string]: GenericStorageQuery<Rv>;
789
+ };
790
+ /**
791
+ * Pallet `AuraExt`'s storage queries
792
+ **/
793
+ auraExt: {
794
+ /**
795
+ * Serves as cache for the authorities.
796
+ *
797
+ * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
798
+ * but we require the old authorities to verify the seal when validating a PoV. This will
799
+ * always be updated to the latest AuRa authorities in `on_finalize`.
800
+ *
801
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
802
+ **/
803
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
804
+
805
+ /**
806
+ * Current slot paired with a number of authored blocks.
807
+ *
808
+ * Updated on each block initialization.
809
+ *
810
+ * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
811
+ **/
812
+ slotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
813
+
814
+ /**
815
+ * Generic pallet storage query
816
+ **/
817
+ [storage: string]: GenericStorageQuery<Rv>;
818
+ };
819
+ /**
820
+ * Pallet `XcmpQueue`'s storage queries
821
+ **/
822
+ xcmpQueue: {
823
+ /**
824
+ * The suspended inbound XCMP channels. All others are not suspended.
825
+ *
826
+ * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
827
+ * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
828
+ * within the block and therefore only included once in the proof size.
829
+ *
830
+ * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
831
+ * will be smaller.
832
+ *
833
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
834
+ **/
835
+ inboundXcmpSuspended: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
836
+
837
+ /**
838
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
839
+ * and last outbound message. If the two indices are equal, then it indicates an empty
840
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
841
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
842
+ * case of the need to send a high-priority signal message this block.
843
+ * The bool is true if there is a signal message waiting to be sent.
844
+ *
845
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
846
+ **/
847
+ outboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
848
+
849
+ /**
850
+ * The messages outbound in a given XCMP channel.
851
+ *
852
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
853
+ * @param {Callback<Bytes> =} callback
854
+ **/
855
+ outboundXcmpMessages: GenericStorageQuery<
856
+ Rv,
857
+ (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
858
+ [PolkadotParachainPrimitivesPrimitivesId, number]
859
+ >;
860
+
861
+ /**
862
+ * Any signal messages waiting to be sent.
863
+ *
864
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
865
+ * @param {Callback<Bytes> =} callback
866
+ **/
867
+ signalMessages: GenericStorageQuery<
868
+ Rv,
869
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes,
870
+ PolkadotParachainPrimitivesPrimitivesId
871
+ >;
872
+
873
+ /**
874
+ * The configuration which controls the dynamics of the outbound queue.
875
+ *
876
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
877
+ **/
878
+ queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
879
+
880
+ /**
881
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
882
+ *
883
+ * @param {Callback<boolean> =} callback
884
+ **/
885
+ queueSuspended: GenericStorageQuery<Rv, () => boolean>;
886
+
887
+ /**
888
+ * The factor to multiply the base delivery fee by.
889
+ *
890
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
891
+ * @param {Callback<FixedU128> =} callback
892
+ **/
893
+ deliveryFeeFactor: GenericStorageQuery<
894
+ Rv,
895
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
896
+ PolkadotParachainPrimitivesPrimitivesId
897
+ >;
898
+
899
+ /**
900
+ * Generic pallet storage query
901
+ **/
902
+ [storage: string]: GenericStorageQuery<Rv>;
903
+ };
904
+ /**
905
+ * Pallet `PolkadotXcm`'s storage queries
906
+ **/
907
+ polkadotXcm: {
908
+ /**
909
+ * The latest available query index.
910
+ *
911
+ * @param {Callback<bigint> =} callback
912
+ **/
913
+ queryCounter: GenericStorageQuery<Rv, () => bigint>;
914
+
915
+ /**
916
+ * The ongoing queries.
917
+ *
918
+ * @param {bigint} arg
919
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
920
+ **/
921
+ queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
922
+
923
+ /**
924
+ * The existing asset traps.
925
+ *
926
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
927
+ * times this pair has been trapped (usually just 1 if it exists at all).
928
+ *
929
+ * @param {H256} arg
930
+ * @param {Callback<number> =} callback
931
+ **/
932
+ assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
933
+
934
+ /**
935
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
936
+ * then the destinations whose XCM version is unknown are considered unreachable.
937
+ *
938
+ * @param {Callback<number | undefined> =} callback
939
+ **/
940
+ safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
941
+
942
+ /**
943
+ * The Latest versions that we know various locations support.
944
+ *
945
+ * @param {[number, XcmVersionedLocation]} arg
946
+ * @param {Callback<number | undefined> =} callback
947
+ **/
948
+ supportedVersion: GenericStorageQuery<
949
+ Rv,
950
+ (arg: [number, XcmVersionedLocation]) => number | undefined,
951
+ [number, XcmVersionedLocation]
952
+ >;
953
+
954
+ /**
955
+ * All locations that we have requested version notifications from.
956
+ *
957
+ * @param {[number, XcmVersionedLocation]} arg
958
+ * @param {Callback<bigint | undefined> =} callback
959
+ **/
960
+ versionNotifiers: GenericStorageQuery<
961
+ Rv,
962
+ (arg: [number, XcmVersionedLocation]) => bigint | undefined,
963
+ [number, XcmVersionedLocation]
964
+ >;
965
+
966
+ /**
967
+ * The target locations that are subscribed to our version changes, as well as the most recent
968
+ * of our versions we informed them of.
969
+ *
970
+ * @param {[number, XcmVersionedLocation]} arg
971
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
972
+ **/
973
+ versionNotifyTargets: GenericStorageQuery<
974
+ Rv,
975
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
976
+ [number, XcmVersionedLocation]
977
+ >;
978
+
979
+ /**
980
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
981
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
982
+ * which is used as a prioritization.
983
+ *
984
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
985
+ **/
986
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
987
+
988
+ /**
989
+ * The current migration's stage, if any.
990
+ *
991
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
992
+ **/
993
+ currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
994
+
995
+ /**
996
+ * Fungible assets which we know are locked on a remote chain.
997
+ *
998
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
999
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1000
+ **/
1001
+ remoteLockedFungibles: GenericStorageQuery<
1002
+ Rv,
1003
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
1004
+ [number, AccountId32, XcmVersionedAssetId]
1005
+ >;
1006
+
1007
+ /**
1008
+ * Fungible assets which we know are locked on this chain.
1009
+ *
1010
+ * @param {AccountId32Like} arg
1011
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
1012
+ **/
1013
+ lockedFungibles: GenericStorageQuery<
1014
+ Rv,
1015
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
1016
+ AccountId32
1017
+ >;
1018
+
1019
+ /**
1020
+ * Global suspension state of the XCM executor.
1021
+ *
1022
+ * @param {Callback<boolean> =} callback
1023
+ **/
1024
+ xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
1025
+
1026
+ /**
1027
+ * Whether or not incoming XCMs (both executed locally and received) should be recorded.
1028
+ * Only one XCM program will be recorded at a time.
1029
+ * This is meant to be used in runtime APIs, and it's advised it stays false
1030
+ * for all other use cases, so as to not degrade regular performance.
1031
+ *
1032
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1033
+ * implementation in the XCM executor configuration.
1034
+ *
1035
+ * @param {Callback<boolean> =} callback
1036
+ **/
1037
+ shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
1038
+
1039
+ /**
1040
+ * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
1041
+ * will be stored here.
1042
+ * Runtime APIs can fetch the XCM that was executed by accessing this value.
1043
+ *
1044
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1045
+ * implementation in the XCM executor configuration.
1046
+ *
1047
+ * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
1048
+ **/
1049
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
1050
+
1051
+ /**
1052
+ * Generic pallet storage query
1053
+ **/
1054
+ [storage: string]: GenericStorageQuery<Rv>;
1055
+ };
1056
+ /**
1057
+ * Pallet `MessageQueue`'s storage queries
1058
+ **/
1059
+ messageQueue: {
1060
+ /**
1061
+ * The index of the first and last (non-empty) pages.
1062
+ *
1063
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg
1064
+ * @param {Callback<PalletMessageQueueBookState> =} callback
1065
+ **/
1066
+ bookStateFor: GenericStorageQuery<
1067
+ Rv,
1068
+ (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState,
1069
+ CumulusPrimitivesCoreAggregateMessageOrigin
1070
+ >;
1071
+
1072
+ /**
1073
+ * The origin at which we should begin servicing.
1074
+ *
1075
+ * @param {Callback<CumulusPrimitivesCoreAggregateMessageOrigin | undefined> =} callback
1076
+ **/
1077
+ serviceHead: GenericStorageQuery<Rv, () => CumulusPrimitivesCoreAggregateMessageOrigin | undefined>;
1078
+
1079
+ /**
1080
+ * The map of page indices to pages.
1081
+ *
1082
+ * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg
1083
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
1084
+ **/
1085
+ pages: GenericStorageQuery<
1086
+ Rv,
1087
+ (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
1088
+ [CumulusPrimitivesCoreAggregateMessageOrigin, number]
1089
+ >;
1090
+
1091
+ /**
1092
+ * Generic pallet storage query
1093
+ **/
1094
+ [storage: string]: GenericStorageQuery<Rv>;
1095
+ };
1096
+ /**
1097
+ * Pallet `Multisig`'s storage queries
1098
+ **/
1099
+ multisig: {
1100
+ /**
1101
+ * The set of open multisig operations.
1102
+ *
1103
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
1104
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1105
+ **/
1106
+ multisigs: GenericStorageQuery<
1107
+ Rv,
1108
+ (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1109
+ [AccountId32, FixedBytes<32>]
1110
+ >;
1111
+
1112
+ /**
1113
+ * Generic pallet storage query
1114
+ **/
1115
+ [storage: string]: GenericStorageQuery<Rv>;
1116
+ };
1117
+ /**
1118
+ * Pallet `Identity`'s storage queries
1119
+ **/
1120
+ identity: {
1121
+ /**
1122
+ * Information that is pertinent to identify the entity behind an account. First item is the
1123
+ * registration, second is the account's primary username.
1124
+ *
1125
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1126
+ *
1127
+ * @param {AccountId32Like} arg
1128
+ * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
1129
+ **/
1130
+ identityOf: GenericStorageQuery<
1131
+ Rv,
1132
+ (arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
1133
+ AccountId32
1134
+ >;
1135
+
1136
+ /**
1137
+ * The super-identity of an alternative "sub" identity together with its name, within that
1138
+ * context. If the account is not some other account's sub-identity, then just `None`.
1139
+ *
1140
+ * @param {AccountId32Like} arg
1141
+ * @param {Callback<[AccountId32, Data] | undefined> =} callback
1142
+ **/
1143
+ superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
1144
+
1145
+ /**
1146
+ * Alternative "sub" identities of this account.
1147
+ *
1148
+ * The first item is the deposit, the second is a vector of the accounts.
1149
+ *
1150
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1151
+ *
1152
+ * @param {AccountId32Like} arg
1153
+ * @param {Callback<[bigint, Array<AccountId32>]> =} callback
1154
+ **/
1155
+ subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
1156
+
1157
+ /**
1158
+ * The set of registrars. Not expected to get very big as can only be added through a
1159
+ * special origin (likely a council motion).
1160
+ *
1161
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
1162
+ *
1163
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1164
+ **/
1165
+ registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
1166
+
1167
+ /**
1168
+ * A map of the accounts who are authorized to grant usernames.
1169
+ *
1170
+ * @param {AccountId32Like} arg
1171
+ * @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
1172
+ **/
1173
+ usernameAuthorities: GenericStorageQuery<
1174
+ Rv,
1175
+ (arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
1176
+ AccountId32
1177
+ >;
1178
+
1179
+ /**
1180
+ * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
1181
+ * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
1182
+ *
1183
+ * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
1184
+ * primary username.
1185
+ *
1186
+ * @param {BytesLike} arg
1187
+ * @param {Callback<AccountId32 | undefined> =} callback
1188
+ **/
1189
+ accountOfUsername: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
1190
+
1191
+ /**
1192
+ * Usernames that an authority has granted, but that the account controller has not confirmed
1193
+ * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
1194
+ * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
1195
+ * [`Call::accept_username`].
1196
+ *
1197
+ * First tuple item is the account and second is the acceptance deadline.
1198
+ *
1199
+ * @param {BytesLike} arg
1200
+ * @param {Callback<[AccountId32, number] | undefined> =} callback
1201
+ **/
1202
+ pendingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
1203
+
1204
+ /**
1205
+ * Generic pallet storage query
1206
+ **/
1207
+ [storage: string]: GenericStorageQuery<Rv>;
1208
+ };
1209
+ }