@storagehub/api-augment 0.1.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 (86) hide show
  1. package/README.md +54 -0
  2. package/biome.json +10 -0
  3. package/dist/index.js +4 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/interfaces/augment-api-consts.js +6 -0
  6. package/dist/interfaces/augment-api-consts.js.map +1 -0
  7. package/dist/interfaces/augment-api-errors.js +6 -0
  8. package/dist/interfaces/augment-api-errors.js.map +1 -0
  9. package/dist/interfaces/augment-api-events.js +6 -0
  10. package/dist/interfaces/augment-api-events.js.map +1 -0
  11. package/dist/interfaces/augment-api-query.js +6 -0
  12. package/dist/interfaces/augment-api-query.js.map +1 -0
  13. package/dist/interfaces/augment-api-rpc.js +6 -0
  14. package/dist/interfaces/augment-api-rpc.js.map +1 -0
  15. package/dist/interfaces/augment-api-runtime.js +6 -0
  16. package/dist/interfaces/augment-api-runtime.js.map +1 -0
  17. package/dist/interfaces/augment-api-tx.js +6 -0
  18. package/dist/interfaces/augment-api-tx.js.map +1 -0
  19. package/dist/interfaces/augment-api.js +10 -0
  20. package/dist/interfaces/augment-api.js.map +1 -0
  21. package/dist/interfaces/augment-types.js +6 -0
  22. package/dist/interfaces/augment-types.js.map +1 -0
  23. package/dist/interfaces/definitions.js +2 -0
  24. package/dist/interfaces/definitions.js.map +1 -0
  25. package/dist/interfaces/index.js +4 -0
  26. package/dist/interfaces/index.js.map +1 -0
  27. package/dist/interfaces/lookup.js +4504 -0
  28. package/dist/interfaces/lookup.js.map +1 -0
  29. package/dist/interfaces/registry.js +6 -0
  30. package/dist/interfaces/registry.js.map +1 -0
  31. package/dist/interfaces/storagehubclient/definitions.js +7 -0
  32. package/dist/interfaces/storagehubclient/definitions.js.map +1 -0
  33. package/dist/interfaces/storagehubclient/index.js +4 -0
  34. package/dist/interfaces/storagehubclient/index.js.map +1 -0
  35. package/dist/interfaces/storagehubclient/runtime.js +152 -0
  36. package/dist/interfaces/storagehubclient/runtime.js.map +1 -0
  37. package/dist/interfaces/storagehubclient/types.js +4 -0
  38. package/dist/interfaces/storagehubclient/types.js.map +1 -0
  39. package/dist/interfaces/types-lookup.js +6 -0
  40. package/dist/interfaces/types-lookup.js.map +1 -0
  41. package/dist/interfaces/types.js +4 -0
  42. package/dist/interfaces/types.js.map +1 -0
  43. package/dist/types/index.d.ts +3 -0
  44. package/dist/types/interfaces/augment-api-consts.d.ts +556 -0
  45. package/dist/types/interfaces/augment-api-errors.d.ts +1195 -0
  46. package/dist/types/interfaces/augment-api-events.d.ts +2070 -0
  47. package/dist/types/interfaces/augment-api-query.d.ts +1439 -0
  48. package/dist/types/interfaces/augment-api-rpc.d.ts +718 -0
  49. package/dist/types/interfaces/augment-api-runtime.d.ts +441 -0
  50. package/dist/types/interfaces/augment-api-tx.d.ts +3039 -0
  51. package/dist/types/interfaces/augment-api.d.ts +7 -0
  52. package/dist/types/interfaces/augment-types.d.ts +1285 -0
  53. package/dist/types/interfaces/definitions.d.ts +1 -0
  54. package/dist/types/interfaces/index.d.ts +1 -0
  55. package/dist/types/interfaces/lookup.d.ts +4179 -0
  56. package/dist/types/interfaces/registry.d.ts +272 -0
  57. package/dist/types/interfaces/storagehubclient/definitions.d.ts +6 -0
  58. package/dist/types/interfaces/storagehubclient/index.d.ts +1 -0
  59. package/dist/types/interfaces/storagehubclient/runtime.d.ts +2 -0
  60. package/dist/types/interfaces/storagehubclient/types.d.ts +198 -0
  61. package/dist/types/interfaces/types-lookup.d.ts +4457 -0
  62. package/dist/types/interfaces/types.d.ts +1 -0
  63. package/package.json +38 -0
  64. package/scripts/scrapeMetadata.ts +77 -0
  65. package/src/index.ts +3 -0
  66. package/src/interfaces/augment-api-consts.ts +570 -0
  67. package/src/interfaces/augment-api-errors.ts +1203 -0
  68. package/src/interfaces/augment-api-events.ts +1836 -0
  69. package/src/interfaces/augment-api-query.ts +1975 -0
  70. package/src/interfaces/augment-api-rpc.ts +1201 -0
  71. package/src/interfaces/augment-api-runtime.ts +707 -0
  72. package/src/interfaces/augment-api-tx.ts +3418 -0
  73. package/src/interfaces/augment-api.ts +10 -0
  74. package/src/interfaces/augment-types.ts +2508 -0
  75. package/src/interfaces/definitions.ts +1 -0
  76. package/src/interfaces/index.ts +4 -0
  77. package/src/interfaces/lookup.ts +4511 -0
  78. package/src/interfaces/registry.ts +546 -0
  79. package/src/interfaces/storagehubclient/definitions.ts +7 -0
  80. package/src/interfaces/storagehubclient/index.ts +4 -0
  81. package/src/interfaces/storagehubclient/runtime.ts +156 -0
  82. package/src/interfaces/storagehubclient/types.ts +241 -0
  83. package/src/interfaces/types-lookup.ts +5623 -0
  84. package/src/interfaces/types.ts +4 -0
  85. package/storagehub.json +1 -0
  86. package/tsconfig.json +22 -0
@@ -0,0 +1,1975 @@
1
+ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
3
+
4
+ // import type lookup before we augment - in some environments
5
+ // this is required to allow for ambient/previous definitions
6
+ import "@polkadot/api-base/types/storage";
7
+
8
+ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from "@polkadot/api-base/types";
9
+ import type {
10
+ BTreeMap,
11
+ BTreeSet,
12
+ Bytes,
13
+ Null,
14
+ Option,
15
+ Struct,
16
+ Vec,
17
+ bool,
18
+ u128,
19
+ u16,
20
+ u32,
21
+ u64,
22
+ u8
23
+ } from "@polkadot/types-codec";
24
+ import type { AnyNumber, ITuple } from "@polkadot/types-codec/types";
25
+ import type { AccountId32, H256 } from "@polkadot/types/interfaces/runtime";
26
+ import type {
27
+ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
28
+ CumulusPalletParachainSystemUnincludedSegmentAncestor,
29
+ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
30
+ CumulusPalletXcmpQueueOutboundChannelDetails,
31
+ CumulusPalletXcmpQueueQueueConfigData,
32
+ CumulusPrimitivesCoreAggregateMessageOrigin,
33
+ FrameSupportDispatchPerDispatchClassWeight,
34
+ FrameSupportTokensMiscIdAmount,
35
+ FrameSystemAccountInfo,
36
+ FrameSystemCodeUpgradeAuthorization,
37
+ FrameSystemEventRecord,
38
+ FrameSystemLastRuntimeUpgradeInfo,
39
+ FrameSystemPhase,
40
+ PalletBalancesAccountData,
41
+ PalletBalancesBalanceLock,
42
+ PalletBalancesReserveData,
43
+ PalletCollatorSelectionCandidateInfo,
44
+ PalletFileSystemMoveBucketRequestMetadata,
45
+ PalletFileSystemStorageRequestBspsMetadata,
46
+ PalletFileSystemStorageRequestMetadata,
47
+ PalletMessageQueueBookState,
48
+ PalletMessageQueuePage,
49
+ PalletNftsAttributeDeposit,
50
+ PalletNftsAttributeNamespace,
51
+ PalletNftsCollectionConfig,
52
+ PalletNftsCollectionDetails,
53
+ PalletNftsCollectionMetadata,
54
+ PalletNftsItemConfig,
55
+ PalletNftsItemDetails,
56
+ PalletNftsItemMetadata,
57
+ PalletNftsPendingSwap,
58
+ PalletPaymentStreamsDynamicRatePaymentStream,
59
+ PalletPaymentStreamsFixedRatePaymentStream,
60
+ PalletPaymentStreamsProviderLastChargeableInfo,
61
+ PalletStorageProvidersBackupStorageProvider,
62
+ PalletStorageProvidersBucket,
63
+ PalletStorageProvidersMainStorageProvider,
64
+ PalletStorageProvidersStorageProvider,
65
+ PalletTransactionPaymentReleases,
66
+ PalletXcmQueryStatus,
67
+ PalletXcmRemoteLockedFungibleRecord,
68
+ PalletXcmVersionMigrationStage,
69
+ PolkadotCorePrimitivesOutboundHrmpMessage,
70
+ PolkadotPrimitivesV7AbridgedHostConfiguration,
71
+ PolkadotPrimitivesV7PersistedValidationData,
72
+ PolkadotPrimitivesV7UpgradeGoAhead,
73
+ PolkadotPrimitivesV7UpgradeRestriction,
74
+ ShpTraitsTrieRemoveMutation,
75
+ SpConsensusAuraSr25519AppSr25519Public,
76
+ SpCoreCryptoKeyTypeId,
77
+ SpRuntimeDigest,
78
+ SpTrieStorageProof,
79
+ SpWeightsWeightV2Weight,
80
+ StagingXcmV4Instruction,
81
+ StagingXcmV4Xcm,
82
+ StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey,
83
+ StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue,
84
+ StorageHubRuntimeRuntimeHoldReason,
85
+ StorageHubRuntimeSessionKeys,
86
+ XcmVersionedAssetId,
87
+ XcmVersionedLocation
88
+ } from "@polkadot/types/lookup";
89
+ import type { Observable } from "@polkadot/types/types";
90
+
91
+ export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
92
+ export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
93
+
94
+ declare module "@polkadot/api-base/types/storage" {
95
+ interface AugmentedQueries<ApiType extends ApiTypes> {
96
+ aura: {
97
+ /**
98
+ * The current authority set.
99
+ **/
100
+ authorities: AugmentedQuery<
101
+ ApiType,
102
+ () => Observable<Vec<SpConsensusAuraSr25519AppSr25519Public>>,
103
+ []
104
+ > &
105
+ QueryableStorageEntry<ApiType, []>;
106
+ /**
107
+ * The current slot of this block.
108
+ *
109
+ * This will be set in `on_initialize`.
110
+ **/
111
+ currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> &
112
+ QueryableStorageEntry<ApiType, []>;
113
+ /**
114
+ * Generic query
115
+ **/
116
+ [key: string]: QueryableStorageEntry<ApiType>;
117
+ };
118
+ auraExt: {
119
+ /**
120
+ * Serves as cache for the authorities.
121
+ *
122
+ * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
123
+ * but we require the old authorities to verify the seal when validating a PoV. This will
124
+ * always be updated to the latest AuRa authorities in `on_finalize`.
125
+ **/
126
+ authorities: AugmentedQuery<
127
+ ApiType,
128
+ () => Observable<Vec<SpConsensusAuraSr25519AppSr25519Public>>,
129
+ []
130
+ > &
131
+ QueryableStorageEntry<ApiType, []>;
132
+ /**
133
+ * Current slot paired with a number of authored blocks.
134
+ *
135
+ * Updated on each block initialization.
136
+ **/
137
+ slotInfo: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u64, u32]>>>, []> &
138
+ QueryableStorageEntry<ApiType, []>;
139
+ /**
140
+ * Generic query
141
+ **/
142
+ [key: string]: QueryableStorageEntry<ApiType>;
143
+ };
144
+ authorship: {
145
+ /**
146
+ * Author of current block.
147
+ **/
148
+ author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> &
149
+ QueryableStorageEntry<ApiType, []>;
150
+ /**
151
+ * Generic query
152
+ **/
153
+ [key: string]: QueryableStorageEntry<ApiType>;
154
+ };
155
+ balances: {
156
+ /**
157
+ * The Balances pallet example of storing the balance of an account.
158
+ *
159
+ * # Example
160
+ *
161
+ * ```nocompile
162
+ * impl pallet_balances::Config for Runtime {
163
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
164
+ * }
165
+ * ```
166
+ *
167
+ * You can also store the balance of an account in the `System` pallet.
168
+ *
169
+ * # Example
170
+ *
171
+ * ```nocompile
172
+ * impl pallet_balances::Config for Runtime {
173
+ * type AccountStore = System
174
+ * }
175
+ * ```
176
+ *
177
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
178
+ * `frame_system` data alongside the account data contrary to storing account balances in the
179
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
180
+ * NOTE: This is only used in the case that this pallet is used to store balances.
181
+ **/
182
+ account: AugmentedQuery<
183
+ ApiType,
184
+ (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>,
185
+ [AccountId32]
186
+ > &
187
+ QueryableStorageEntry<ApiType, [AccountId32]>;
188
+ /**
189
+ * Freeze locks on account balances.
190
+ **/
191
+ freezes: AugmentedQuery<
192
+ ApiType,
193
+ (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmount>>,
194
+ [AccountId32]
195
+ > &
196
+ QueryableStorageEntry<ApiType, [AccountId32]>;
197
+ /**
198
+ * Holds on account balances.
199
+ **/
200
+ holds: AugmentedQuery<
201
+ ApiType,
202
+ (arg: AccountId32 | string | Uint8Array) => Observable<
203
+ Vec<
204
+ {
205
+ readonly id: StorageHubRuntimeRuntimeHoldReason;
206
+ readonly amount: u128;
207
+ } & Struct
208
+ >
209
+ >,
210
+ [AccountId32]
211
+ > &
212
+ QueryableStorageEntry<ApiType, [AccountId32]>;
213
+ /**
214
+ * The total units of outstanding deactivated balance in the system.
215
+ **/
216
+ inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> &
217
+ QueryableStorageEntry<ApiType, []>;
218
+ /**
219
+ * Any liquidity locks on some account balances.
220
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
221
+ *
222
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
223
+ **/
224
+ locks: AugmentedQuery<
225
+ ApiType,
226
+ (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>,
227
+ [AccountId32]
228
+ > &
229
+ QueryableStorageEntry<ApiType, [AccountId32]>;
230
+ /**
231
+ * Named reserves on some account balances.
232
+ *
233
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
234
+ **/
235
+ reserves: AugmentedQuery<
236
+ ApiType,
237
+ (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>,
238
+ [AccountId32]
239
+ > &
240
+ QueryableStorageEntry<ApiType, [AccountId32]>;
241
+ /**
242
+ * The total units issued in the system.
243
+ **/
244
+ totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> &
245
+ QueryableStorageEntry<ApiType, []>;
246
+ /**
247
+ * Generic query
248
+ **/
249
+ [key: string]: QueryableStorageEntry<ApiType>;
250
+ };
251
+ collatorSelection: {
252
+ /**
253
+ * Fixed amount to deposit to become a collator.
254
+ *
255
+ * When a collator calls `leave_intent` they immediately receive the deposit back.
256
+ **/
257
+ candidacyBond: AugmentedQuery<ApiType, () => Observable<u128>, []> &
258
+ QueryableStorageEntry<ApiType, []>;
259
+ /**
260
+ * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
261
+ * mutually exclusive.
262
+ *
263
+ * This list is sorted in ascending order by deposit and when the deposits are equal, the least
264
+ * recently updated is considered greater.
265
+ **/
266
+ candidateList: AugmentedQuery<
267
+ ApiType,
268
+ () => Observable<Vec<PalletCollatorSelectionCandidateInfo>>,
269
+ []
270
+ > &
271
+ QueryableStorageEntry<ApiType, []>;
272
+ /**
273
+ * Desired number of candidates.
274
+ *
275
+ * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
276
+ **/
277
+ desiredCandidates: AugmentedQuery<ApiType, () => Observable<u32>, []> &
278
+ QueryableStorageEntry<ApiType, []>;
279
+ /**
280
+ * The invulnerable, permissioned collators. This list must be sorted.
281
+ **/
282
+ invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> &
283
+ QueryableStorageEntry<ApiType, []>;
284
+ /**
285
+ * Last block authored by collator.
286
+ **/
287
+ lastAuthoredBlock: AugmentedQuery<
288
+ ApiType,
289
+ (arg: AccountId32 | string | Uint8Array) => Observable<u32>,
290
+ [AccountId32]
291
+ > &
292
+ QueryableStorageEntry<ApiType, [AccountId32]>;
293
+ /**
294
+ * Generic query
295
+ **/
296
+ [key: string]: QueryableStorageEntry<ApiType>;
297
+ };
298
+ fileSystem: {
299
+ /**
300
+ * Bookkeeping of the buckets containing open storage requests.
301
+ **/
302
+ bucketsWithStorageRequests: AugmentedQuery<
303
+ ApiType,
304
+ (
305
+ arg1: H256 | string | Uint8Array,
306
+ arg2: H256 | string | Uint8Array
307
+ ) => Observable<Option<Null>>,
308
+ [H256, H256]
309
+ > &
310
+ QueryableStorageEntry<ApiType, [H256, H256]>;
311
+ /**
312
+ * BSP data servers for move bucket requests.
313
+ **/
314
+ dataServersForMoveBucket: AugmentedQuery<
315
+ ApiType,
316
+ (
317
+ arg1: H256 | string | Uint8Array,
318
+ arg2: H256 | string | Uint8Array
319
+ ) => Observable<Option<Null>>,
320
+ [H256, H256]
321
+ > &
322
+ QueryableStorageEntry<ApiType, [H256, H256]>;
323
+ /**
324
+ * A map of blocks to expired file deletion requests.
325
+ **/
326
+ fileDeletionRequestExpirations: AugmentedQuery<
327
+ ApiType,
328
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[AccountId32, H256]>>>,
329
+ [u32]
330
+ > &
331
+ QueryableStorageEntry<ApiType, [u32]>;
332
+ /**
333
+ * A map of blocks to expired move bucket requests.
334
+ **/
335
+ moveBucketRequestExpirations: AugmentedQuery<
336
+ ApiType,
337
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[H256, H256]>>>,
338
+ [u32]
339
+ > &
340
+ QueryableStorageEntry<ApiType, [u32]>;
341
+ /**
342
+ * A pointer to the earliest available block to insert a new file deletion request expiration.
343
+ *
344
+ * This should always be greater or equal than current block + [`Config::PendingFileDeletionRequestTtl`].
345
+ **/
346
+ nextAvailableFileDeletionRequestExpirationBlock: AugmentedQuery<
347
+ ApiType,
348
+ () => Observable<u32>,
349
+ []
350
+ > &
351
+ QueryableStorageEntry<ApiType, []>;
352
+ /**
353
+ * A pointer to the earliest available block to insert a new move bucket request expiration.
354
+ *
355
+ * This should always be greater or equal than current block + [`Config::MoveBucketRequestTtl`].
356
+ **/
357
+ nextAvailableMoveBucketRequestExpirationBlock: AugmentedQuery<
358
+ ApiType,
359
+ () => Observable<u32>,
360
+ []
361
+ > &
362
+ QueryableStorageEntry<ApiType, []>;
363
+ /**
364
+ * A pointer to the earliest available block to insert a new storage request expiration.
365
+ *
366
+ * This should always be greater or equal than current block + [`Config::StorageRequestTtl`].
367
+ **/
368
+ nextAvailableStorageRequestExpirationBlock: AugmentedQuery<
369
+ ApiType,
370
+ () => Observable<u32>,
371
+ []
372
+ > &
373
+ QueryableStorageEntry<ApiType, []>;
374
+ /**
375
+ * A pointer to the starting block to clean up expired storage requests.
376
+ *
377
+ * If this block is behind the current block number, the cleanup algorithm in `on_idle` will
378
+ * attempt to accelerate this block pointer as close to or up to the current block number. This
379
+ * will execute provided that there is enough remaining weight to do so.
380
+ **/
381
+ nextStartingBlockToCleanUp: AugmentedQuery<ApiType, () => Observable<u32>, []> &
382
+ QueryableStorageEntry<ApiType, []>;
383
+ /**
384
+ * Bookkeeping of buckets that are pending to be moved to a new MSP.
385
+ **/
386
+ pendingBucketsToMove: AugmentedQuery<
387
+ ApiType,
388
+ (arg: H256 | string | Uint8Array) => Observable<Null>,
389
+ [H256]
390
+ > &
391
+ QueryableStorageEntry<ApiType, [H256]>;
392
+ /**
393
+ * Pending file deletion requests.
394
+ *
395
+ * A mapping from a user account id to a list of pending file deletion requests, holding a tuple of the file key and bucket id.
396
+ **/
397
+ pendingFileDeletionRequests: AugmentedQuery<
398
+ ApiType,
399
+ (arg: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[H256, H256]>>>,
400
+ [AccountId32]
401
+ > &
402
+ QueryableStorageEntry<ApiType, [AccountId32]>;
403
+ /**
404
+ * Pending move bucket requests.
405
+ *
406
+ * A double mapping from MSP IDs to a list of bucket IDs which they can accept or decline to take over.
407
+ * The value is the user who requested the move.
408
+ **/
409
+ pendingMoveBucketRequests: AugmentedQuery<
410
+ ApiType,
411
+ (
412
+ arg1: H256 | string | Uint8Array,
413
+ arg2: H256 | string | Uint8Array
414
+ ) => Observable<Option<PalletFileSystemMoveBucketRequestMetadata>>,
415
+ [H256, H256]
416
+ > &
417
+ QueryableStorageEntry<ApiType, [H256, H256]>;
418
+ /**
419
+ * Pending file stop storing requests.
420
+ *
421
+ * A double mapping from BSP IDs to a list of file keys pending stop storing requests to the block in which those requests were opened
422
+ * and the proven size of the file.
423
+ * The block number is used to avoid BSPs being able to stop storing files immediately which would allow them to avoid challenges
424
+ * of missing files. The size is to be able to decrease their used capacity when they confirm to stop storing the file.
425
+ **/
426
+ pendingStopStoringRequests: AugmentedQuery<
427
+ ApiType,
428
+ (
429
+ arg1: H256 | string | Uint8Array,
430
+ arg2: H256 | string | Uint8Array
431
+ ) => Observable<Option<ITuple<[u32, u64]>>>,
432
+ [H256, H256]
433
+ > &
434
+ QueryableStorageEntry<ApiType, [H256, H256]>;
435
+ /**
436
+ * Number of BSPs required to fulfill a storage request
437
+ *
438
+ * This is also used as a default value if the BSPs required are not specified when creating a storage request.
439
+ **/
440
+ replicationTarget: AugmentedQuery<ApiType, () => Observable<u32>, []> &
441
+ QueryableStorageEntry<ApiType, []>;
442
+ /**
443
+ * A double map from storage request to BSP `AccountId`s that volunteered to store the file.
444
+ *
445
+ * Any BSP under a storage request prefix is considered to be a volunteer and can be removed at any time.
446
+ * Once a BSP submits a valid proof to the via the `bsp_confirm_storing` extrinsic, the `confirmed` field in [`StorageRequestBspsMetadata`] will be set to `true`.
447
+ *
448
+ * When a storage request is expired or removed, the corresponding storage request prefix in this map is removed.
449
+ **/
450
+ storageRequestBsps: AugmentedQuery<
451
+ ApiType,
452
+ (
453
+ arg1: H256 | string | Uint8Array,
454
+ arg2: H256 | string | Uint8Array
455
+ ) => Observable<Option<PalletFileSystemStorageRequestBspsMetadata>>,
456
+ [H256, H256]
457
+ > &
458
+ QueryableStorageEntry<ApiType, [H256, H256]>;
459
+ /**
460
+ * A map of blocks to expired storage requests.
461
+ **/
462
+ storageRequestExpirations: AugmentedQuery<
463
+ ApiType,
464
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>,
465
+ [u32]
466
+ > &
467
+ QueryableStorageEntry<ApiType, [u32]>;
468
+ storageRequests: AugmentedQuery<
469
+ ApiType,
470
+ (
471
+ arg: H256 | string | Uint8Array
472
+ ) => Observable<Option<PalletFileSystemStorageRequestMetadata>>,
473
+ [H256]
474
+ > &
475
+ QueryableStorageEntry<ApiType, [H256]>;
476
+ /**
477
+ * Number of ticks until all BSPs would reach the [`Config::MaximumThreshold`] to ensure that all BSPs are able to volunteer.
478
+ **/
479
+ tickRangeToMaximumThreshold: AugmentedQuery<ApiType, () => Observable<u32>, []> &
480
+ QueryableStorageEntry<ApiType, []>;
481
+ /**
482
+ * Generic query
483
+ **/
484
+ [key: string]: QueryableStorageEntry<ApiType>;
485
+ };
486
+ messageQueue: {
487
+ /**
488
+ * The index of the first and last (non-empty) pages.
489
+ **/
490
+ bookStateFor: AugmentedQuery<
491
+ ApiType,
492
+ (
493
+ arg:
494
+ | CumulusPrimitivesCoreAggregateMessageOrigin
495
+ | { Here: any }
496
+ | { Parent: any }
497
+ | { Sibling: any }
498
+ | string
499
+ | Uint8Array
500
+ ) => Observable<PalletMessageQueueBookState>,
501
+ [CumulusPrimitivesCoreAggregateMessageOrigin]
502
+ > &
503
+ QueryableStorageEntry<ApiType, [CumulusPrimitivesCoreAggregateMessageOrigin]>;
504
+ /**
505
+ * The map of page indices to pages.
506
+ **/
507
+ pages: AugmentedQuery<
508
+ ApiType,
509
+ (
510
+ arg1:
511
+ | CumulusPrimitivesCoreAggregateMessageOrigin
512
+ | { Here: any }
513
+ | { Parent: any }
514
+ | { Sibling: any }
515
+ | string
516
+ | Uint8Array,
517
+ arg2: u32 | AnyNumber | Uint8Array
518
+ ) => Observable<Option<PalletMessageQueuePage>>,
519
+ [CumulusPrimitivesCoreAggregateMessageOrigin, u32]
520
+ > &
521
+ QueryableStorageEntry<ApiType, [CumulusPrimitivesCoreAggregateMessageOrigin, u32]>;
522
+ /**
523
+ * The origin at which we should begin servicing.
524
+ **/
525
+ serviceHead: AugmentedQuery<
526
+ ApiType,
527
+ () => Observable<Option<CumulusPrimitivesCoreAggregateMessageOrigin>>,
528
+ []
529
+ > &
530
+ QueryableStorageEntry<ApiType, []>;
531
+ /**
532
+ * Generic query
533
+ **/
534
+ [key: string]: QueryableStorageEntry<ApiType>;
535
+ };
536
+ nfts: {
537
+ /**
538
+ * The items held by any given account; set out this way so that items owned by a single
539
+ * account can be enumerated.
540
+ **/
541
+ account: AugmentedQuery<
542
+ ApiType,
543
+ (
544
+ arg1: AccountId32 | string | Uint8Array,
545
+ arg2: u32 | AnyNumber | Uint8Array,
546
+ arg3: u32 | AnyNumber | Uint8Array
547
+ ) => Observable<Option<Null>>,
548
+ [AccountId32, u32, u32]
549
+ > &
550
+ QueryableStorageEntry<ApiType, [AccountId32, u32, u32]>;
551
+ /**
552
+ * Attributes of a collection.
553
+ **/
554
+ attribute: AugmentedQuery<
555
+ ApiType,
556
+ (
557
+ arg1: u32 | AnyNumber | Uint8Array,
558
+ arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber,
559
+ arg3:
560
+ | PalletNftsAttributeNamespace
561
+ | { Pallet: any }
562
+ | { CollectionOwner: any }
563
+ | { ItemOwner: any }
564
+ | { Account: any }
565
+ | string
566
+ | Uint8Array,
567
+ arg4: Bytes | string | Uint8Array
568
+ ) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>,
569
+ [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]
570
+ > &
571
+ QueryableStorageEntry<ApiType, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
572
+ /**
573
+ * Details of a collection.
574
+ **/
575
+ collection: AugmentedQuery<
576
+ ApiType,
577
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionDetails>>,
578
+ [u32]
579
+ > &
580
+ QueryableStorageEntry<ApiType, [u32]>;
581
+ /**
582
+ * The collections owned by any given account; set out this way so that collections owned by
583
+ * a single account can be enumerated.
584
+ **/
585
+ collectionAccount: AugmentedQuery<
586
+ ApiType,
587
+ (
588
+ arg1: AccountId32 | string | Uint8Array,
589
+ arg2: u32 | AnyNumber | Uint8Array
590
+ ) => Observable<Option<Null>>,
591
+ [AccountId32, u32]
592
+ > &
593
+ QueryableStorageEntry<ApiType, [AccountId32, u32]>;
594
+ /**
595
+ * Config of a collection.
596
+ **/
597
+ collectionConfigOf: AugmentedQuery<
598
+ ApiType,
599
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionConfig>>,
600
+ [u32]
601
+ > &
602
+ QueryableStorageEntry<ApiType, [u32]>;
603
+ /**
604
+ * Metadata of a collection.
605
+ **/
606
+ collectionMetadataOf: AugmentedQuery<
607
+ ApiType,
608
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionMetadata>>,
609
+ [u32]
610
+ > &
611
+ QueryableStorageEntry<ApiType, [u32]>;
612
+ /**
613
+ * The items in existence and their ownership details.
614
+ * Stores collection roles as per account.
615
+ **/
616
+ collectionRoleOf: AugmentedQuery<
617
+ ApiType,
618
+ (
619
+ arg1: u32 | AnyNumber | Uint8Array,
620
+ arg2: AccountId32 | string | Uint8Array
621
+ ) => Observable<Option<u8>>,
622
+ [u32, AccountId32]
623
+ > &
624
+ QueryableStorageEntry<ApiType, [u32, AccountId32]>;
625
+ /**
626
+ * The items in existence and their ownership details.
627
+ **/
628
+ item: AugmentedQuery<
629
+ ApiType,
630
+ (
631
+ arg1: u32 | AnyNumber | Uint8Array,
632
+ arg2: u32 | AnyNumber | Uint8Array
633
+ ) => Observable<Option<PalletNftsItemDetails>>,
634
+ [u32, u32]
635
+ > &
636
+ QueryableStorageEntry<ApiType, [u32, u32]>;
637
+ /**
638
+ * Item attribute approvals.
639
+ **/
640
+ itemAttributesApprovalsOf: AugmentedQuery<
641
+ ApiType,
642
+ (
643
+ arg1: u32 | AnyNumber | Uint8Array,
644
+ arg2: u32 | AnyNumber | Uint8Array
645
+ ) => Observable<BTreeSet<AccountId32>>,
646
+ [u32, u32]
647
+ > &
648
+ QueryableStorageEntry<ApiType, [u32, u32]>;
649
+ /**
650
+ * Config of an item.
651
+ **/
652
+ itemConfigOf: AugmentedQuery<
653
+ ApiType,
654
+ (
655
+ arg1: u32 | AnyNumber | Uint8Array,
656
+ arg2: u32 | AnyNumber | Uint8Array
657
+ ) => Observable<Option<PalletNftsItemConfig>>,
658
+ [u32, u32]
659
+ > &
660
+ QueryableStorageEntry<ApiType, [u32, u32]>;
661
+ /**
662
+ * Metadata of an item.
663
+ **/
664
+ itemMetadataOf: AugmentedQuery<
665
+ ApiType,
666
+ (
667
+ arg1: u32 | AnyNumber | Uint8Array,
668
+ arg2: u32 | AnyNumber | Uint8Array
669
+ ) => Observable<Option<PalletNftsItemMetadata>>,
670
+ [u32, u32]
671
+ > &
672
+ QueryableStorageEntry<ApiType, [u32, u32]>;
673
+ /**
674
+ * A price of an item.
675
+ **/
676
+ itemPriceOf: AugmentedQuery<
677
+ ApiType,
678
+ (
679
+ arg1: u32 | AnyNumber | Uint8Array,
680
+ arg2: u32 | AnyNumber | Uint8Array
681
+ ) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>,
682
+ [u32, u32]
683
+ > &
684
+ QueryableStorageEntry<ApiType, [u32, u32]>;
685
+ /**
686
+ * Stores the `CollectionId` that is going to be used for the next collection.
687
+ * This gets incremented whenever a new collection is created.
688
+ **/
689
+ nextCollectionId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> &
690
+ QueryableStorageEntry<ApiType, []>;
691
+ /**
692
+ * The collection, if any, of which an account is willing to take ownership.
693
+ **/
694
+ ownershipAcceptance: AugmentedQuery<
695
+ ApiType,
696
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>,
697
+ [AccountId32]
698
+ > &
699
+ QueryableStorageEntry<ApiType, [AccountId32]>;
700
+ /**
701
+ * Handles all the pending swaps.
702
+ **/
703
+ pendingSwapOf: AugmentedQuery<
704
+ ApiType,
705
+ (
706
+ arg1: u32 | AnyNumber | Uint8Array,
707
+ arg2: u32 | AnyNumber | Uint8Array
708
+ ) => Observable<Option<PalletNftsPendingSwap>>,
709
+ [u32, u32]
710
+ > &
711
+ QueryableStorageEntry<ApiType, [u32, u32]>;
712
+ /**
713
+ * Generic query
714
+ **/
715
+ [key: string]: QueryableStorageEntry<ApiType>;
716
+ };
717
+ parachainInfo: {
718
+ parachainId: AugmentedQuery<ApiType, () => Observable<u32>, []> &
719
+ QueryableStorageEntry<ApiType, []>;
720
+ /**
721
+ * Generic query
722
+ **/
723
+ [key: string]: QueryableStorageEntry<ApiType>;
724
+ };
725
+ parachainSystem: {
726
+ /**
727
+ * Storage field that keeps track of bandwidth used by the unincluded segment along with the
728
+ * latest HRMP watermark. Used for limiting the acceptance of new blocks with
729
+ * respect to relay chain constraints.
730
+ **/
731
+ aggregatedUnincludedSegment: AugmentedQuery<
732
+ ApiType,
733
+ () => Observable<Option<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker>>,
734
+ []
735
+ > &
736
+ QueryableStorageEntry<ApiType, []>;
737
+ /**
738
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
739
+ * announcing the weight of `on_initialize` and `on_finalize`.
740
+ **/
741
+ announcedHrmpMessagesPerCandidate: AugmentedQuery<ApiType, () => Observable<u32>, []> &
742
+ QueryableStorageEntry<ApiType, []>;
743
+ /**
744
+ * A custom head data that should be returned as result of `validate_block`.
745
+ *
746
+ * See `Pallet::set_custom_validation_head_data` for more information.
747
+ **/
748
+ customValidationHeadData: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> &
749
+ QueryableStorageEntry<ApiType, []>;
750
+ /**
751
+ * Were the validation data set to notify the relay chain?
752
+ **/
753
+ didSetValidationCode: AugmentedQuery<ApiType, () => Observable<bool>, []> &
754
+ QueryableStorageEntry<ApiType, []>;
755
+ /**
756
+ * The parachain host configuration that was obtained from the relay parent.
757
+ *
758
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
759
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
760
+ *
761
+ * This data is also absent from the genesis.
762
+ **/
763
+ hostConfiguration: AugmentedQuery<
764
+ ApiType,
765
+ () => Observable<Option<PolkadotPrimitivesV7AbridgedHostConfiguration>>,
766
+ []
767
+ > &
768
+ QueryableStorageEntry<ApiType, []>;
769
+ /**
770
+ * HRMP messages that were sent in a block.
771
+ *
772
+ * This will be cleared in `on_initialize` of each new block.
773
+ **/
774
+ hrmpOutboundMessages: AugmentedQuery<
775
+ ApiType,
776
+ () => Observable<Vec<PolkadotCorePrimitivesOutboundHrmpMessage>>,
777
+ []
778
+ > &
779
+ QueryableStorageEntry<ApiType, []>;
780
+ /**
781
+ * HRMP watermark that was set in a block.
782
+ *
783
+ * This will be cleared in `on_initialize` of each new block.
784
+ **/
785
+ hrmpWatermark: AugmentedQuery<ApiType, () => Observable<u32>, []> &
786
+ QueryableStorageEntry<ApiType, []>;
787
+ /**
788
+ * The last downward message queue chain head we have observed.
789
+ *
790
+ * This value is loaded before and saved after processing inbound downward messages carried
791
+ * by the system inherent.
792
+ **/
793
+ lastDmqMqcHead: AugmentedQuery<ApiType, () => Observable<H256>, []> &
794
+ QueryableStorageEntry<ApiType, []>;
795
+ /**
796
+ * The message queue chain heads we have observed per each channel incoming channel.
797
+ *
798
+ * This value is loaded before and saved after processing inbound downward messages carried
799
+ * by the system inherent.
800
+ **/
801
+ lastHrmpMqcHeads: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, H256>>, []> &
802
+ QueryableStorageEntry<ApiType, []>;
803
+ /**
804
+ * The relay chain block number associated with the last parachain block.
805
+ *
806
+ * This is updated in `on_finalize`.
807
+ **/
808
+ lastRelayChainBlockNumber: AugmentedQuery<ApiType, () => Observable<u32>, []> &
809
+ QueryableStorageEntry<ApiType, []>;
810
+ /**
811
+ * Validation code that is set by the parachain and is to be communicated to collator and
812
+ * consequently the relay-chain.
813
+ *
814
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
815
+ * the value.
816
+ **/
817
+ newValidationCode: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> &
818
+ QueryableStorageEntry<ApiType, []>;
819
+ /**
820
+ * Upward messages that are still pending and not yet send to the relay chain.
821
+ **/
822
+ pendingUpwardMessages: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> &
823
+ QueryableStorageEntry<ApiType, []>;
824
+ /**
825
+ * In case of a scheduled upgrade, this storage field contains the validation code to be
826
+ * applied.
827
+ *
828
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
829
+ * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
830
+ * with the new validation code. This concludes the upgrade process.
831
+ **/
832
+ pendingValidationCode: AugmentedQuery<ApiType, () => Observable<Bytes>, []> &
833
+ QueryableStorageEntry<ApiType, []>;
834
+ /**
835
+ * Number of downward messages processed in a block.
836
+ *
837
+ * This will be cleared in `on_initialize` of each new block.
838
+ **/
839
+ processedDownwardMessages: AugmentedQuery<ApiType, () => Observable<u32>, []> &
840
+ QueryableStorageEntry<ApiType, []>;
841
+ /**
842
+ * The state proof for the last relay parent block.
843
+ *
844
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
845
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
846
+ *
847
+ * This data is also absent from the genesis.
848
+ **/
849
+ relayStateProof: AugmentedQuery<ApiType, () => Observable<Option<SpTrieStorageProof>>, []> &
850
+ QueryableStorageEntry<ApiType, []>;
851
+ /**
852
+ * The snapshot of some state related to messaging relevant to the current parachain as per
853
+ * the relay parent.
854
+ *
855
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
856
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
857
+ *
858
+ * This data is also absent from the genesis.
859
+ **/
860
+ relevantMessagingState: AugmentedQuery<
861
+ ApiType,
862
+ () => Observable<
863
+ Option<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot>
864
+ >,
865
+ []
866
+ > &
867
+ QueryableStorageEntry<ApiType, []>;
868
+ /**
869
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
870
+ * overrides the amount set in the Config trait.
871
+ **/
872
+ reservedDmpWeightOverride: AugmentedQuery<
873
+ ApiType,
874
+ () => Observable<Option<SpWeightsWeightV2Weight>>,
875
+ []
876
+ > &
877
+ QueryableStorageEntry<ApiType, []>;
878
+ /**
879
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
880
+ * overrides the amount set in the Config trait.
881
+ **/
882
+ reservedXcmpWeightOverride: AugmentedQuery<
883
+ ApiType,
884
+ () => Observable<Option<SpWeightsWeightV2Weight>>,
885
+ []
886
+ > &
887
+ QueryableStorageEntry<ApiType, []>;
888
+ /**
889
+ * Latest included block descendants the runtime accepted. In other words, these are
890
+ * ancestors of the currently executing block which have not been included in the observed
891
+ * relay-chain state.
892
+ *
893
+ * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
894
+ * in the pallet.
895
+ **/
896
+ unincludedSegment: AugmentedQuery<
897
+ ApiType,
898
+ () => Observable<Vec<CumulusPalletParachainSystemUnincludedSegmentAncestor>>,
899
+ []
900
+ > &
901
+ QueryableStorageEntry<ApiType, []>;
902
+ /**
903
+ * Optional upgrade go-ahead signal from the relay-chain.
904
+ *
905
+ * This storage item is a mirror of the corresponding value for the current parachain from the
906
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
907
+ * set after the inherent.
908
+ **/
909
+ upgradeGoAhead: AugmentedQuery<
910
+ ApiType,
911
+ () => Observable<Option<PolkadotPrimitivesV7UpgradeGoAhead>>,
912
+ []
913
+ > &
914
+ QueryableStorageEntry<ApiType, []>;
915
+ /**
916
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
917
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
918
+ * candidate will be invalid.
919
+ *
920
+ * This storage item is a mirror of the corresponding value for the current parachain from the
921
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
922
+ * set after the inherent.
923
+ **/
924
+ upgradeRestrictionSignal: AugmentedQuery<
925
+ ApiType,
926
+ () => Observable<Option<PolkadotPrimitivesV7UpgradeRestriction>>,
927
+ []
928
+ > &
929
+ QueryableStorageEntry<ApiType, []>;
930
+ /**
931
+ * The factor to multiply the base delivery fee by for UMP.
932
+ **/
933
+ upwardDeliveryFeeFactor: AugmentedQuery<ApiType, () => Observable<u128>, []> &
934
+ QueryableStorageEntry<ApiType, []>;
935
+ /**
936
+ * Upward messages that were sent in a block.
937
+ *
938
+ * This will be cleared in `on_initialize` of each new block.
939
+ **/
940
+ upwardMessages: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> &
941
+ QueryableStorageEntry<ApiType, []>;
942
+ /**
943
+ * The [`PersistedValidationData`] set for this block.
944
+ * This value is expected to be set only once per block and it's never stored
945
+ * in the trie.
946
+ **/
947
+ validationData: AugmentedQuery<
948
+ ApiType,
949
+ () => Observable<Option<PolkadotPrimitivesV7PersistedValidationData>>,
950
+ []
951
+ > &
952
+ QueryableStorageEntry<ApiType, []>;
953
+ /**
954
+ * Generic query
955
+ **/
956
+ [key: string]: QueryableStorageEntry<ApiType>;
957
+ };
958
+ parameters: {
959
+ /**
960
+ * Stored parameters.
961
+ **/
962
+ parameters: AugmentedQuery<
963
+ ApiType,
964
+ (
965
+ arg:
966
+ | StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey
967
+ | { RuntimeConfig: any }
968
+ | string
969
+ | Uint8Array
970
+ ) => Observable<Option<StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue>>,
971
+ [StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey]
972
+ > &
973
+ QueryableStorageEntry<ApiType, [StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey]>;
974
+ /**
975
+ * Generic query
976
+ **/
977
+ [key: string]: QueryableStorageEntry<ApiType>;
978
+ };
979
+ paymentStreams: {
980
+ /**
981
+ * The accumulated price index since genesis, used to calculate the amount to charge for dynamic-rate payment streams.
982
+ *
983
+ * This is equivalent to what it would have cost to store one unit of the provided service since the beginning of the network.
984
+ * We use this to calculate the amount to charge for dynamic-rate payment streams, by checking out the difference between the index
985
+ * when the payment stream was last charged, and the index at the last chargeable tick.
986
+ *
987
+ * This storage is updated in:
988
+ * - [do_update_price_index](crate::utils::do_update_price_index), which updates the accumulated price index, adding to it the current price.
989
+ **/
990
+ accumulatedPriceIndex: AugmentedQuery<ApiType, () => Observable<u128>, []> &
991
+ QueryableStorageEntry<ApiType, []>;
992
+ /**
993
+ * The current price per unit per tick of the provided service, used to calculate the amount to charge for dynamic-rate payment streams.
994
+ *
995
+ * This is updated each tick using the formula that considers current system capacity (total storage of the system) and system availability (total storage available).
996
+ *
997
+ * This storage is updated in:
998
+ * - [do_update_current_price_per_unit_per_tick](crate::utils::do_update_current_price_per_unit_per_tick), which updates the current price per unit per tick.
999
+ **/
1000
+ currentPricePerUnitPerTick: AugmentedQuery<ApiType, () => Observable<u128>, []> &
1001
+ QueryableStorageEntry<ApiType, []>;
1002
+ /**
1003
+ * The double mapping from a Provider, to its provided Users, to their dynamic-rate payment streams.
1004
+ *
1005
+ * This is used to store and manage dynamic-rate payment streams between Users and Providers.
1006
+ *
1007
+ * This storage is updated in:
1008
+ * - [add_dynamic_rate_payment_stream](crate::dispatchables::add_dynamic_rate_payment_stream), which adds a new entry to the map.
1009
+ * - [delete_dynamic_rate_payment_stream](crate::dispatchables::delete_dynamic_rate_payment_stream), which removes the corresponding entry from the map.
1010
+ * - [update_dynamic_rate_payment_stream](crate::dispatchables::update_dynamic_rate_payment_stream), which updates the entry's `amount_provided`.
1011
+ * - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which updates the entry's `price_index_when_last_charged`.
1012
+ **/
1013
+ dynamicRatePaymentStreams: AugmentedQuery<
1014
+ ApiType,
1015
+ (
1016
+ arg1: H256 | string | Uint8Array,
1017
+ arg2: AccountId32 | string | Uint8Array
1018
+ ) => Observable<Option<PalletPaymentStreamsDynamicRatePaymentStream>>,
1019
+ [H256, AccountId32]
1020
+ > &
1021
+ QueryableStorageEntry<ApiType, [H256, AccountId32]>;
1022
+ /**
1023
+ * The double mapping from a Provider, to its provided Users, to their fixed-rate payment streams.
1024
+ *
1025
+ * This is used to store and manage fixed-rate payment streams between Users and Providers.
1026
+ *
1027
+ * This storage is updated in:
1028
+ * - [add_fixed_rate_payment_stream](crate::dispatchables::add_fixed_rate_payment_stream), which adds a new entry to the map.
1029
+ * - [delete_fixed_rate_payment_stream](crate::dispatchables::delete_fixed_rate_payment_stream), which removes the corresponding entry from the map.
1030
+ * - [update_fixed_rate_payment_stream](crate::dispatchables::update_fixed_rate_payment_stream), which updates the entry's `rate`.
1031
+ * - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which updates the entry's `last_charged_tick`.
1032
+ **/
1033
+ fixedRatePaymentStreams: AugmentedQuery<
1034
+ ApiType,
1035
+ (
1036
+ arg1: H256 | string | Uint8Array,
1037
+ arg2: AccountId32 | string | Uint8Array
1038
+ ) => Observable<Option<PalletPaymentStreamsFixedRatePaymentStream>>,
1039
+ [H256, AccountId32]
1040
+ > &
1041
+ QueryableStorageEntry<ApiType, [H256, AccountId32]>;
1042
+ /**
1043
+ * The mapping from a Provider to its last chargeable price index (for dynamic-rate payment streams) and last chargeable tick (for fixed-rate payment streams).
1044
+ *
1045
+ * This is used to keep track of the last chargeable price index and tick number for each Provider, so this pallet can charge the payment streams correctly.
1046
+ *
1047
+ * This storage is updated in:
1048
+ * - [update_last_chargeable_info](crate::PaymentManager::update_last_chargeable_info), which updates the entry's `last_chargeable_tick` and `price_index`.
1049
+ **/
1050
+ lastChargeableInfo: AugmentedQuery<
1051
+ ApiType,
1052
+ (
1053
+ arg: H256 | string | Uint8Array
1054
+ ) => Observable<PalletPaymentStreamsProviderLastChargeableInfo>,
1055
+ [H256]
1056
+ > &
1057
+ QueryableStorageEntry<ApiType, [H256]>;
1058
+ /**
1059
+ * The last tick from the Providers Proof Submitters pallet that was registered.
1060
+ *
1061
+ * This is used to keep track of the last tick from the Providers Proof Submitters pallet, that this pallet
1062
+ * registered. For the tick in this storage element, this pallet already knows the Providers that submitted
1063
+ * a valid proof.
1064
+ **/
1065
+ lastSubmittersTickRegistered: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1066
+ QueryableStorageEntry<ApiType, []>;
1067
+ /**
1068
+ * A counter of blocks for which Providers can charge their streams.
1069
+ *
1070
+ * This counter is not necessarily the same as the block number, as the last chargeable info of Providers
1071
+ * (and the global price index) are updated in the `on_poll` hook, which happens at the beginning of every block,
1072
+ * so long as the block is not part of a [Multi-Block-Migration](https://github.com/paritytech/polkadot-sdk/pull/1781) (MBM).
1073
+ * During MBMs, the block number increases, but `OnPollTicker` does not.
1074
+ **/
1075
+ onPollTicker: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1076
+ QueryableStorageEntry<ApiType, []>;
1077
+ /**
1078
+ * The mapping from a user to if it has been registered to the network and the amount of payment streams it has.
1079
+ *
1080
+ * Since users have to provide a deposit to be able to open each payment stream, this is used to keep track of the amount of payment streams
1081
+ * that a user has and it is also useful to check if a user has registered to the network.
1082
+ *
1083
+ * This storage is updated in:
1084
+ * - [add_fixed_rate_payment_stream](crate::dispatchables::add_fixed_rate_payment_stream), which holds the deposit of the user and adds one to this storage.
1085
+ * - [add_dynamic_rate_payment_stream](crate::dispatchables::add_dynamic_rate_payment_stream), which holds the deposit of the user and adds one to this storage.
1086
+ * - [remove_fixed_rate_payment_stream](crate::dispatchables::remove_fixed_rate_payment_stream), which removes one from this storage and releases the deposit.
1087
+ * - [remove_dynamic_rate_payment_stream](crate::dispatchables::remove_dynamic_rate_payment_stream), which removes one from this storage and releases the deposit.
1088
+ **/
1089
+ registeredUsers: AugmentedQuery<
1090
+ ApiType,
1091
+ (arg: AccountId32 | string | Uint8Array) => Observable<u32>,
1092
+ [AccountId32]
1093
+ > &
1094
+ QueryableStorageEntry<ApiType, [AccountId32]>;
1095
+ /**
1096
+ * The mapping from a user to if it has been flagged for not having enough funds to pay for its requested services.
1097
+ *
1098
+ * This is used to flag users that do not have enough funds to pay for their requested services, so other Providers
1099
+ * can stop providing services to them.
1100
+ *
1101
+ * This storage is updated in:
1102
+ * - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which emits a `UserWithoutFunds` event and sets the user's entry in this map if it does not
1103
+ * have enough funds, and clears the entry if it was set and the user has enough funds.
1104
+ **/
1105
+ usersWithoutFunds: AugmentedQuery<
1106
+ ApiType,
1107
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>,
1108
+ [AccountId32]
1109
+ > &
1110
+ QueryableStorageEntry<ApiType, [AccountId32]>;
1111
+ /**
1112
+ * Generic query
1113
+ **/
1114
+ [key: string]: QueryableStorageEntry<ApiType>;
1115
+ };
1116
+ polkadotXcm: {
1117
+ /**
1118
+ * The existing asset traps.
1119
+ *
1120
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
1121
+ * times this pair has been trapped (usually just 1 if it exists at all).
1122
+ **/
1123
+ assetTraps: AugmentedQuery<
1124
+ ApiType,
1125
+ (arg: H256 | string | Uint8Array) => Observable<u32>,
1126
+ [H256]
1127
+ > &
1128
+ QueryableStorageEntry<ApiType, [H256]>;
1129
+ /**
1130
+ * The current migration's stage, if any.
1131
+ **/
1132
+ currentMigration: AugmentedQuery<
1133
+ ApiType,
1134
+ () => Observable<Option<PalletXcmVersionMigrationStage>>,
1135
+ []
1136
+ > &
1137
+ QueryableStorageEntry<ApiType, []>;
1138
+ /**
1139
+ * Fungible assets which we know are locked on this chain.
1140
+ **/
1141
+ lockedFungibles: AugmentedQuery<
1142
+ ApiType,
1143
+ (
1144
+ arg: AccountId32 | string | Uint8Array
1145
+ ) => Observable<Option<Vec<ITuple<[u128, XcmVersionedLocation]>>>>,
1146
+ [AccountId32]
1147
+ > &
1148
+ QueryableStorageEntry<ApiType, [AccountId32]>;
1149
+ /**
1150
+ * The ongoing queries.
1151
+ **/
1152
+ queries: AugmentedQuery<
1153
+ ApiType,
1154
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletXcmQueryStatus>>,
1155
+ [u64]
1156
+ > &
1157
+ QueryableStorageEntry<ApiType, [u64]>;
1158
+ /**
1159
+ * The latest available query index.
1160
+ **/
1161
+ queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> &
1162
+ QueryableStorageEntry<ApiType, []>;
1163
+ /**
1164
+ * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
1165
+ * will be stored here.
1166
+ * Runtime APIs can fetch the XCM that was executed by accessing this value.
1167
+ *
1168
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1169
+ * implementation in the XCM executor configuration.
1170
+ **/
1171
+ recordedXcm: AugmentedQuery<
1172
+ ApiType,
1173
+ () => Observable<Option<Vec<StagingXcmV4Instruction>>>,
1174
+ []
1175
+ > &
1176
+ QueryableStorageEntry<ApiType, []>;
1177
+ /**
1178
+ * Fungible assets which we know are locked on a remote chain.
1179
+ **/
1180
+ remoteLockedFungibles: AugmentedQuery<
1181
+ ApiType,
1182
+ (
1183
+ arg1: u32 | AnyNumber | Uint8Array,
1184
+ arg2: AccountId32 | string | Uint8Array,
1185
+ arg3: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array
1186
+ ) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>,
1187
+ [u32, AccountId32, XcmVersionedAssetId]
1188
+ > &
1189
+ QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
1190
+ /**
1191
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
1192
+ * then the destinations whose XCM version is unknown are considered unreachable.
1193
+ **/
1194
+ safeXcmVersion: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> &
1195
+ QueryableStorageEntry<ApiType, []>;
1196
+ /**
1197
+ * Whether or not incoming XCMs (both executed locally and received) should be recorded.
1198
+ * Only one XCM program will be recorded at a time.
1199
+ * This is meant to be used in runtime APIs, and it's advised it stays false
1200
+ * for all other use cases, so as to not degrade regular performance.
1201
+ *
1202
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1203
+ * implementation in the XCM executor configuration.
1204
+ **/
1205
+ shouldRecordXcm: AugmentedQuery<ApiType, () => Observable<bool>, []> &
1206
+ QueryableStorageEntry<ApiType, []>;
1207
+ /**
1208
+ * The Latest versions that we know various locations support.
1209
+ **/
1210
+ supportedVersion: AugmentedQuery<
1211
+ ApiType,
1212
+ (
1213
+ arg1: u32 | AnyNumber | Uint8Array,
1214
+ arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array
1215
+ ) => Observable<Option<u32>>,
1216
+ [u32, XcmVersionedLocation]
1217
+ > &
1218
+ QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
1219
+ /**
1220
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
1221
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
1222
+ * which is used as a prioritization.
1223
+ **/
1224
+ versionDiscoveryQueue: AugmentedQuery<
1225
+ ApiType,
1226
+ () => Observable<Vec<ITuple<[XcmVersionedLocation, u32]>>>,
1227
+ []
1228
+ > &
1229
+ QueryableStorageEntry<ApiType, []>;
1230
+ /**
1231
+ * All locations that we have requested version notifications from.
1232
+ **/
1233
+ versionNotifiers: AugmentedQuery<
1234
+ ApiType,
1235
+ (
1236
+ arg1: u32 | AnyNumber | Uint8Array,
1237
+ arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array
1238
+ ) => Observable<Option<u64>>,
1239
+ [u32, XcmVersionedLocation]
1240
+ > &
1241
+ QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
1242
+ /**
1243
+ * The target locations that are subscribed to our version changes, as well as the most recent
1244
+ * of our versions we informed them of.
1245
+ **/
1246
+ versionNotifyTargets: AugmentedQuery<
1247
+ ApiType,
1248
+ (
1249
+ arg1: u32 | AnyNumber | Uint8Array,
1250
+ arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array
1251
+ ) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>,
1252
+ [u32, XcmVersionedLocation]
1253
+ > &
1254
+ QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
1255
+ /**
1256
+ * Global suspension state of the XCM executor.
1257
+ **/
1258
+ xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> &
1259
+ QueryableStorageEntry<ApiType, []>;
1260
+ /**
1261
+ * Generic query
1262
+ **/
1263
+ [key: string]: QueryableStorageEntry<ApiType>;
1264
+ };
1265
+ proofsDealer: {
1266
+ /**
1267
+ * A queue of keys that have been challenged manually.
1268
+ *
1269
+ * The elements in this queue will be challenged in the coming blocks,
1270
+ * always ensuring that the maximum number of challenges per block is not exceeded.
1271
+ * A `BoundedVec` is used because the `parity_scale_codec::MaxEncodedLen` trait
1272
+ * is required, but using a `VecDeque` would be more efficient as this is a FIFO queue.
1273
+ **/
1274
+ challengesQueue: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> &
1275
+ QueryableStorageEntry<ApiType, []>;
1276
+ /**
1277
+ * A counter of blocks in which challenges were distributed.
1278
+ *
1279
+ * This counter is not necessarily the same as the block number, as challenges are
1280
+ * distributed in the `on_poll` hook, which happens at the beginning of every block,
1281
+ * so long as the block is not part of a [Multi-Block-Migration](https://github.com/paritytech/polkadot-sdk/pull/1781) (MBM).
1282
+ * During MBMsm, the block number increases, but [`ChallengesTicker`] does not.
1283
+ **/
1284
+ challengesTicker: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1285
+ QueryableStorageEntry<ApiType, []>;
1286
+ /**
1287
+ * A boolean that represents whether the [`ChallengesTicker`] is paused.
1288
+ *
1289
+ * By default, this is `false`, meaning that the [`ChallengesTicker`] is incremented every time `on_poll` is called.
1290
+ * This can be set to `true` which would pause the [`ChallengesTicker`], preventing `do_new_challenges_round` from
1291
+ * being executed. Therefore:
1292
+ * - No new random challenges would be emitted and added to [`TickToChallengesSeed`].
1293
+ * - No new checkpoint challenges would be emitted and added to [`TickToCheckpointChallenges`].
1294
+ * - Deadlines for proof submissions are indefinitely postponed.
1295
+ **/
1296
+ challengesTickerPaused: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> &
1297
+ QueryableStorageEntry<ApiType, []>;
1298
+ /**
1299
+ * The challenge tick of the last checkpoint challenge round.
1300
+ *
1301
+ * This is used to determine when to include the challenges from the [`ChallengesQueue`] and
1302
+ * [`PriorityChallengesQueue`] in the [`TickToCheckpointChallenges`] StorageMap. These checkpoint
1303
+ * challenge rounds have to be answered by ALL Providers, and this is enforced by the
1304
+ * `submit_proof` extrinsic.
1305
+ **/
1306
+ lastCheckpointTick: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1307
+ QueryableStorageEntry<ApiType, []>;
1308
+ /**
1309
+ * A value that represents the last tick that was deleted from the [`ValidProofSubmittersLastTicks`] StorageMap.
1310
+ *
1311
+ * This is used to know which tick to delete from the [`ValidProofSubmittersLastTicks`] StorageMap when the
1312
+ * `on_idle` hook is called.
1313
+ **/
1314
+ lastDeletedTick: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1315
+ QueryableStorageEntry<ApiType, []>;
1316
+ /**
1317
+ * A mapping from a Provider to the last tick for which they SHOULD have submitted a proof.
1318
+ * If for a Provider `p`, `LastTickProviderSubmittedAProofFor[p]` is `n`, then the
1319
+ * Provider should submit a proof for tick `n + stake_to_challenge_period(p)`.
1320
+ *
1321
+ * This gets updated when a Provider submits a proof successfully and is used to determine the
1322
+ * next tick for which the Provider should submit a proof, and it's deadline.
1323
+ *
1324
+ * If the Provider fails to submit a proof in time and is slashed, this will still get updated
1325
+ * to the tick it should have submitted a proof for.
1326
+ **/
1327
+ lastTickProviderSubmittedAProofFor: AugmentedQuery<
1328
+ ApiType,
1329
+ (arg: H256 | string | Uint8Array) => Observable<Option<u32>>,
1330
+ [H256]
1331
+ > &
1332
+ QueryableStorageEntry<ApiType, [H256]>;
1333
+ /**
1334
+ * The number of blocks that have been considered _not_ full in the last [`Config::BlockFullnessPeriod`].
1335
+ *
1336
+ * This is used to check if the network is presumably under a spam attack.
1337
+ **/
1338
+ notFullBlocksCount: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1339
+ QueryableStorageEntry<ApiType, []>;
1340
+ /**
1341
+ * A mapping from block number to the weight used in that block.
1342
+ *
1343
+ * This is used to check if the network is presumably under a spam attack.
1344
+ * It is cleared for blocks older than `current_block` - ([`Config::BlockFullnessPeriod`] + 1).
1345
+ **/
1346
+ pastBlocksWeight: AugmentedQuery<
1347
+ ApiType,
1348
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<SpWeightsWeightV2Weight>>,
1349
+ [u32]
1350
+ > &
1351
+ QueryableStorageEntry<ApiType, [u32]>;
1352
+ /**
1353
+ * A priority queue of keys that have been challenged manually.
1354
+ *
1355
+ * The difference between this and `ChallengesQueue` is that the challenges
1356
+ * in this queue are given priority over the others. So this queue should be
1357
+ * emptied before any of the challenges in the `ChallengesQueue` are dispatched.
1358
+ * This queue should not be accessible to the public.
1359
+ * The elements in this queue will be challenged in the coming blocks,
1360
+ * always ensuring that the maximum number of challenges per block is not exceeded.
1361
+ * A `BoundedVec` is used because the `parity_scale_codec::MaxEncodedLen` trait
1362
+ * is required, but using a `VecDeque` would be more efficient as this is a FIFO queue.
1363
+ **/
1364
+ priorityChallengesQueue: AugmentedQuery<
1365
+ ApiType,
1366
+ () => Observable<Vec<ITuple<[H256, Option<ShpTraitsTrieRemoveMutation>]>>>,
1367
+ []
1368
+ > &
1369
+ QueryableStorageEntry<ApiType, []>;
1370
+ slashableProviders: AugmentedQuery<
1371
+ ApiType,
1372
+ (arg: H256 | string | Uint8Array) => Observable<Option<u32>>,
1373
+ [H256]
1374
+ > &
1375
+ QueryableStorageEntry<ApiType, [H256]>;
1376
+ /**
1377
+ * A mapping from challenges tick to a random seed used for generating the challenges in that tick.
1378
+ *
1379
+ * This is used to keep track of the challenges' seed in the past.
1380
+ * This mapping goes back only [`ChallengeHistoryLengthFor`] blocks. Previous challenges are removed.
1381
+ **/
1382
+ tickToChallengesSeed: AugmentedQuery<
1383
+ ApiType,
1384
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>,
1385
+ [u32]
1386
+ > &
1387
+ QueryableStorageEntry<ApiType, [u32]>;
1388
+ /**
1389
+ * A mapping from challenges tick to a vector of custom challenged keys for that tick.
1390
+ *
1391
+ * This is used to keep track of the challenges that have been made in the past, specifically
1392
+ * in the checkpoint challenge rounds.
1393
+ * The vector is bounded by [`MaxCustomChallengesPerBlockFor`].
1394
+ * This mapping goes back only [`ChallengeHistoryLengthFor`] ticks. Previous challenges are removed.
1395
+ **/
1396
+ tickToCheckpointChallenges: AugmentedQuery<
1397
+ ApiType,
1398
+ (
1399
+ arg: u32 | AnyNumber | Uint8Array
1400
+ ) => Observable<Option<Vec<ITuple<[H256, Option<ShpTraitsTrieRemoveMutation>]>>>>,
1401
+ [u32]
1402
+ > &
1403
+ QueryableStorageEntry<ApiType, [u32]>;
1404
+ /**
1405
+ * A mapping from challenge tick to a vector of challenged Providers for that tick.
1406
+ *
1407
+ * This is used to keep track of the Providers that have been challenged, and should
1408
+ * submit a proof by the time of the [`ChallengesTicker`] reaches the number used as
1409
+ * key in the mapping. Providers who do submit a proof are removed from their respective
1410
+ * entry and pushed forward to the next tick in which they should submit a proof.
1411
+ * Those who are still in the entry by the time the tick is reached are considered to
1412
+ * have failed to submit a proof and subject to slashing.
1413
+ **/
1414
+ tickToProvidersDeadlines: AugmentedQuery<
1415
+ ApiType,
1416
+ (
1417
+ arg1: u32 | AnyNumber | Uint8Array,
1418
+ arg2: H256 | string | Uint8Array
1419
+ ) => Observable<Option<Null>>,
1420
+ [u32, H256]
1421
+ > &
1422
+ QueryableStorageEntry<ApiType, [u32, H256]>;
1423
+ /**
1424
+ * A mapping from tick to Providers, which is set if the Provider submitted a valid proof in that tick.
1425
+ *
1426
+ * This is used to keep track of the Providers that have submitted proofs in the last few
1427
+ * ticks, where availability only up to the last [`Config::TargetTicksStorageOfSubmitters`] ticks is guaranteed.
1428
+ * This storage is then made available for other pallets to use through the `ProofSubmittersInterface`.
1429
+ **/
1430
+ validProofSubmittersLastTicks: AugmentedQuery<
1431
+ ApiType,
1432
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<BTreeSet<H256>>>,
1433
+ [u32]
1434
+ > &
1435
+ QueryableStorageEntry<ApiType, [u32]>;
1436
+ /**
1437
+ * Generic query
1438
+ **/
1439
+ [key: string]: QueryableStorageEntry<ApiType>;
1440
+ };
1441
+ providers: {
1442
+ /**
1443
+ * The mapping from an AccountId to a BackupStorageProviderId.
1444
+ *
1445
+ * This is used to get a Backup Storage Provider's unique identifier needed to access its metadata.
1446
+ *
1447
+ * This storage is updated in:
1448
+ *
1449
+ * - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds a new entry to the map if the account to confirm is a Backup Storage Provider.
1450
+ * - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which removes the corresponding entry from the map.
1451
+ **/
1452
+ accountIdToBackupStorageProviderId: AugmentedQuery<
1453
+ ApiType,
1454
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<H256>>,
1455
+ [AccountId32]
1456
+ > &
1457
+ QueryableStorageEntry<ApiType, [AccountId32]>;
1458
+ /**
1459
+ * The mapping from an AccountId to a MainStorageProviderId.
1460
+ *
1461
+ * This is used to get a Main Storage Provider's unique identifier needed to access its metadata.
1462
+ *
1463
+ * This storage is updated in:
1464
+ * - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds a new entry to the map if the account to confirm is a Main Storage Provider.
1465
+ * - [msp_sign_off](crate::dispatchables::msp_sign_off), which removes the corresponding entry from the map.
1466
+ **/
1467
+ accountIdToMainStorageProviderId: AugmentedQuery<
1468
+ ApiType,
1469
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<H256>>,
1470
+ [AccountId32]
1471
+ > &
1472
+ QueryableStorageEntry<ApiType, [AccountId32]>;
1473
+ /**
1474
+ * The mapping from a BackupStorageProviderId to a BackupStorageProvider.
1475
+ *
1476
+ * This is used to get a Backup Storage Provider's metadata.
1477
+ * It returns `None` if the Backup Storage Provider ID does not correspond to any registered Backup Storage Provider.
1478
+ *
1479
+ * This storage is updated in:
1480
+ * - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds a new entry to the map if the account to confirm is a Backup Storage Provider.
1481
+ * - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which removes the corresponding entry from the map.
1482
+ * - [change_capacity](crate::dispatchables::change_capacity), which changes the entry's `capacity`.
1483
+ **/
1484
+ backupStorageProviders: AugmentedQuery<
1485
+ ApiType,
1486
+ (
1487
+ arg: H256 | string | Uint8Array
1488
+ ) => Observable<Option<PalletStorageProvidersBackupStorageProvider>>,
1489
+ [H256]
1490
+ > &
1491
+ QueryableStorageEntry<ApiType, [H256]>;
1492
+ /**
1493
+ * The amount of Backup Storage Providers that are currently registered in the runtime.
1494
+ *
1495
+ * This is used to keep track of the total amount of BSPs in the system.
1496
+ *
1497
+ * This storage is updated in:
1498
+ * - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds one to this storage if the account to confirm is a Backup Storage Provider.
1499
+ * - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which subtracts one from this storage.
1500
+ **/
1501
+ bspCount: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1502
+ QueryableStorageEntry<ApiType, []>;
1503
+ /**
1504
+ * The mapping from a BucketId to that bucket's metadata.
1505
+ *
1506
+ * This is used to get a bucket's metadata, such as root, user ID, and MSP ID.
1507
+ * It returns `None` if the Bucket ID does not correspond to any registered bucket.
1508
+ *
1509
+ * This storage is updated in:
1510
+ * - [add_bucket](shp_traits::MutateProvidersInterface::add_bucket), which adds a new entry to the map.
1511
+ * - [change_root_bucket](shp_traits::MutateProvidersInterface::change_root_bucket), which changes the corresponding bucket's root.
1512
+ * - [remove_root_bucket](shp_traits::MutateProvidersInterface::remove_root_bucket), which removes the entry of the corresponding bucket.
1513
+ **/
1514
+ buckets: AugmentedQuery<
1515
+ ApiType,
1516
+ (arg: H256 | string | Uint8Array) => Observable<Option<PalletStorageProvidersBucket>>,
1517
+ [H256]
1518
+ > &
1519
+ QueryableStorageEntry<ApiType, [H256]>;
1520
+ /**
1521
+ * The total global reputation weight of all BSPs.
1522
+ **/
1523
+ globalBspsReputationWeight: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1524
+ QueryableStorageEntry<ApiType, []>;
1525
+ /**
1526
+ * The mapping from a MainStorageProviderId to a vector of BucketIds.
1527
+ *
1528
+ * This is used to efficiently retrieve the list of buckets that a Main Storage Provider is currently storing.
1529
+ *
1530
+ * This storage is updated in:
1531
+ * - [add_bucket](shp_traits::MutateProvidersInterface::add_bucket)
1532
+ * - [remove_root_bucket](shp_traits::MutateProvidersInterface::remove_root_bucket)
1533
+ **/
1534
+ mainStorageProviderIdsToBuckets: AugmentedQuery<
1535
+ ApiType,
1536
+ (arg: H256 | string | Uint8Array) => Observable<Option<Vec<H256>>>,
1537
+ [H256]
1538
+ > &
1539
+ QueryableStorageEntry<ApiType, [H256]>;
1540
+ /**
1541
+ * The mapping from a MainStorageProviderId to a MainStorageProvider.
1542
+ *
1543
+ * This is used to get a Main Storage Provider's metadata.
1544
+ * It returns `None` if the Main Storage Provider ID does not correspond to any registered Main Storage Provider.
1545
+ *
1546
+ * This storage is updated in:
1547
+ * - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds a new entry to the map if the account to confirm is a Main Storage Provider.
1548
+ * - [msp_sign_off](crate::dispatchables::msp_sign_off), which removes the corresponding entry from the map.
1549
+ * - [change_capacity](crate::dispatchables::change_capacity), which changes the entry's `capacity`.
1550
+ * - [add_value_prop](crate::dispatchables::add_value_prop), which appends a new value proposition to the entry's existing `value_prop` bounded vector.
1551
+ **/
1552
+ mainStorageProviders: AugmentedQuery<
1553
+ ApiType,
1554
+ (
1555
+ arg: H256 | string | Uint8Array
1556
+ ) => Observable<Option<PalletStorageProvidersMainStorageProvider>>,
1557
+ [H256]
1558
+ > &
1559
+ QueryableStorageEntry<ApiType, [H256]>;
1560
+ /**
1561
+ * The amount of Main Storage Providers that are currently registered in the runtime.
1562
+ *
1563
+ * This is used to keep track of the total amount of MSPs in the system.
1564
+ *
1565
+ * This storage is updated in:
1566
+ * - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds one to this storage if the account to confirm is a Main Storage Provider.
1567
+ * - [msp_sign_off](crate::dispatchables::msp_sign_off), which subtracts one from this storage.
1568
+ **/
1569
+ mspCount: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1570
+ QueryableStorageEntry<ApiType, []>;
1571
+ /**
1572
+ * The mapping from an AccountId that requested to sign up to a tuple of the metadata with type of the request, and the block
1573
+ * number when the request was made.
1574
+ *
1575
+ * This is used for the two-step process of registering: when a user requests to register as a SP (either MSP or BSP),
1576
+ * that request with the metadata and the deposit held is stored here. When the user confirms the sign up, the
1577
+ * request is removed from this storage and the user is registered as a SP.
1578
+ *
1579
+ * This storage is updated in:
1580
+ * - [request_msp_sign_up](crate::dispatchables::request_msp_sign_up) and [request_bsp_sign_up](crate::dispatchables::request_bsp_sign_up), which add a new entry to the map.
1581
+ * - [confirm_sign_up](crate::dispatchables::confirm_sign_up) and [cancel_sign_up](crate::dispatchables::cancel_sign_up), which remove an existing entry from the map.
1582
+ **/
1583
+ signUpRequests: AugmentedQuery<
1584
+ ApiType,
1585
+ (
1586
+ arg: AccountId32 | string | Uint8Array
1587
+ ) => Observable<Option<ITuple<[PalletStorageProvidersStorageProvider, u32]>>>,
1588
+ [AccountId32]
1589
+ > &
1590
+ QueryableStorageEntry<ApiType, [AccountId32]>;
1591
+ /**
1592
+ * The total amount of storage capacity all BSPs have.
1593
+ *
1594
+ * This is used to keep track of the total amount of storage capacity all BSPs have in the system, which is also the
1595
+ * total amount of storage capacity that can be used by users if we factor in the replication factor.
1596
+ *
1597
+ * This storage is updated in:
1598
+ * - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds the capacity of the registered Storage Provider to this storage if the account to confirm is a Backup Storage Provider.
1599
+ * - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which subtracts the capacity of the Backup Storage Provider to sign off from this storage.
1600
+ **/
1601
+ totalBspsCapacity: AugmentedQuery<ApiType, () => Observable<u64>, []> &
1602
+ QueryableStorageEntry<ApiType, []>;
1603
+ /**
1604
+ * The total amount of storage capacity of BSPs that is currently in use.
1605
+ *
1606
+ * This is used to keep track of the total amount of storage capacity that is currently in use by users, which is useful for
1607
+ * system metrics and also to calculate the current price of storage.
1608
+ **/
1609
+ usedBspsCapacity: AugmentedQuery<ApiType, () => Observable<u64>, []> &
1610
+ QueryableStorageEntry<ApiType, []>;
1611
+ /**
1612
+ * Generic query
1613
+ **/
1614
+ [key: string]: QueryableStorageEntry<ApiType>;
1615
+ };
1616
+ randomness: {
1617
+ /**
1618
+ * Ensures the mandatory inherent was included in the block
1619
+ **/
1620
+ inherentIncluded: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> &
1621
+ QueryableStorageEntry<ApiType, []>;
1622
+ /**
1623
+ * Latest random seed obtained from the one epoch ago randomness from BABE, and the latest block that it can process randomness requests from
1624
+ **/
1625
+ latestOneEpochAgoRandomness: AugmentedQuery<
1626
+ ApiType,
1627
+ () => Observable<Option<ITuple<[H256, u32]>>>,
1628
+ []
1629
+ > &
1630
+ QueryableStorageEntry<ApiType, []>;
1631
+ /**
1632
+ * Latest random seed obtained from the parent block randomness from BABE, and the latest block that it can process randomness requests from
1633
+ **/
1634
+ latestParentBlockRandomness: AugmentedQuery<
1635
+ ApiType,
1636
+ () => Observable<Option<ITuple<[H256, u32]>>>,
1637
+ []
1638
+ > &
1639
+ QueryableStorageEntry<ApiType, []>;
1640
+ /**
1641
+ * Current relay epoch
1642
+ **/
1643
+ relayEpoch: AugmentedQuery<ApiType, () => Observable<u64>, []> &
1644
+ QueryableStorageEntry<ApiType, []>;
1645
+ /**
1646
+ * Generic query
1647
+ **/
1648
+ [key: string]: QueryableStorageEntry<ApiType>;
1649
+ };
1650
+ session: {
1651
+ /**
1652
+ * Current index of the session.
1653
+ **/
1654
+ currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1655
+ QueryableStorageEntry<ApiType, []>;
1656
+ /**
1657
+ * Indices of disabled validators.
1658
+ *
1659
+ * The vec is always kept sorted so that we can find whether a given validator is
1660
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
1661
+ * a new set of identities.
1662
+ **/
1663
+ disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> &
1664
+ QueryableStorageEntry<ApiType, []>;
1665
+ /**
1666
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
1667
+ **/
1668
+ keyOwner: AugmentedQuery<
1669
+ ApiType,
1670
+ (
1671
+ arg:
1672
+ | ITuple<[SpCoreCryptoKeyTypeId, Bytes]>
1673
+ | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]
1674
+ ) => Observable<Option<AccountId32>>,
1675
+ [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]
1676
+ > &
1677
+ QueryableStorageEntry<ApiType, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>;
1678
+ /**
1679
+ * The next session keys for a validator.
1680
+ **/
1681
+ nextKeys: AugmentedQuery<
1682
+ ApiType,
1683
+ (
1684
+ arg: AccountId32 | string | Uint8Array
1685
+ ) => Observable<Option<StorageHubRuntimeSessionKeys>>,
1686
+ [AccountId32]
1687
+ > &
1688
+ QueryableStorageEntry<ApiType, [AccountId32]>;
1689
+ /**
1690
+ * True if the underlying economic identities or weighting behind the validators
1691
+ * has changed in the queued validator set.
1692
+ **/
1693
+ queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []> &
1694
+ QueryableStorageEntry<ApiType, []>;
1695
+ /**
1696
+ * The queued keys for the next session. When the next session begins, these keys
1697
+ * will be used to determine the validator's session keys.
1698
+ **/
1699
+ queuedKeys: AugmentedQuery<
1700
+ ApiType,
1701
+ () => Observable<Vec<ITuple<[AccountId32, StorageHubRuntimeSessionKeys]>>>,
1702
+ []
1703
+ > &
1704
+ QueryableStorageEntry<ApiType, []>;
1705
+ /**
1706
+ * The current set of validators.
1707
+ **/
1708
+ validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> &
1709
+ QueryableStorageEntry<ApiType, []>;
1710
+ /**
1711
+ * Generic query
1712
+ **/
1713
+ [key: string]: QueryableStorageEntry<ApiType>;
1714
+ };
1715
+ sudo: {
1716
+ /**
1717
+ * The `AccountId` of the sudo key.
1718
+ **/
1719
+ key: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> &
1720
+ QueryableStorageEntry<ApiType, []>;
1721
+ /**
1722
+ * Generic query
1723
+ **/
1724
+ [key: string]: QueryableStorageEntry<ApiType>;
1725
+ };
1726
+ system: {
1727
+ /**
1728
+ * The full account information for a particular account ID.
1729
+ **/
1730
+ account: AugmentedQuery<
1731
+ ApiType,
1732
+ (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>,
1733
+ [AccountId32]
1734
+ > &
1735
+ QueryableStorageEntry<ApiType, [AccountId32]>;
1736
+ /**
1737
+ * Total length (in bytes) for all extrinsics put together, for the current block.
1738
+ **/
1739
+ allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> &
1740
+ QueryableStorageEntry<ApiType, []>;
1741
+ /**
1742
+ * `Some` if a code upgrade has been authorized.
1743
+ **/
1744
+ authorizedUpgrade: AugmentedQuery<
1745
+ ApiType,
1746
+ () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>,
1747
+ []
1748
+ > &
1749
+ QueryableStorageEntry<ApiType, []>;
1750
+ /**
1751
+ * Map of block numbers to block hashes.
1752
+ **/
1753
+ blockHash: AugmentedQuery<
1754
+ ApiType,
1755
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>,
1756
+ [u32]
1757
+ > &
1758
+ QueryableStorageEntry<ApiType, [u32]>;
1759
+ /**
1760
+ * The current weight for the block.
1761
+ **/
1762
+ blockWeight: AugmentedQuery<
1763
+ ApiType,
1764
+ () => Observable<FrameSupportDispatchPerDispatchClassWeight>,
1765
+ []
1766
+ > &
1767
+ QueryableStorageEntry<ApiType, []>;
1768
+ /**
1769
+ * Digest of the current block, also part of the block header.
1770
+ **/
1771
+ digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []> &
1772
+ QueryableStorageEntry<ApiType, []>;
1773
+ /**
1774
+ * The number of events in the `Events<T>` list.
1775
+ **/
1776
+ eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1777
+ QueryableStorageEntry<ApiType, []>;
1778
+ /**
1779
+ * Events deposited for the current block.
1780
+ *
1781
+ * NOTE: The item is unbound and should therefore never be read on chain.
1782
+ * It could otherwise inflate the PoV size of a block.
1783
+ *
1784
+ * Events have a large in-memory size. Box the events to not go out-of-memory
1785
+ * just in case someone still reads them from within the runtime.
1786
+ **/
1787
+ events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> &
1788
+ QueryableStorageEntry<ApiType, []>;
1789
+ /**
1790
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
1791
+ * of events in the `<Events<T>>` list.
1792
+ *
1793
+ * All topic vectors have deterministic storage locations depending on the topic. This
1794
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
1795
+ * in case of changes fetch the list of events of interest.
1796
+ *
1797
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
1798
+ * the `EventIndex` then in case if the topic has the same contents on the next block
1799
+ * no notification will be triggered thus the event might be lost.
1800
+ **/
1801
+ eventTopics: AugmentedQuery<
1802
+ ApiType,
1803
+ (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>,
1804
+ [H256]
1805
+ > &
1806
+ QueryableStorageEntry<ApiType, [H256]>;
1807
+ /**
1808
+ * The execution phase of the block.
1809
+ **/
1810
+ executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []> &
1811
+ QueryableStorageEntry<ApiType, []>;
1812
+ /**
1813
+ * Total extrinsics count for the current block.
1814
+ **/
1815
+ extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> &
1816
+ QueryableStorageEntry<ApiType, []>;
1817
+ /**
1818
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
1819
+ **/
1820
+ extrinsicData: AugmentedQuery<
1821
+ ApiType,
1822
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>,
1823
+ [u32]
1824
+ > &
1825
+ QueryableStorageEntry<ApiType, [u32]>;
1826
+ /**
1827
+ * Whether all inherents have been applied.
1828
+ **/
1829
+ inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> &
1830
+ QueryableStorageEntry<ApiType, []>;
1831
+ /**
1832
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
1833
+ **/
1834
+ lastRuntimeUpgrade: AugmentedQuery<
1835
+ ApiType,
1836
+ () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>,
1837
+ []
1838
+ > &
1839
+ QueryableStorageEntry<ApiType, []>;
1840
+ /**
1841
+ * The current block number being processed. Set by `execute_block`.
1842
+ **/
1843
+ number: AugmentedQuery<ApiType, () => Observable<u32>, []> &
1844
+ QueryableStorageEntry<ApiType, []>;
1845
+ /**
1846
+ * Hash of the previous block.
1847
+ **/
1848
+ parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []> &
1849
+ QueryableStorageEntry<ApiType, []>;
1850
+ /**
1851
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
1852
+ * (default) if not.
1853
+ **/
1854
+ upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> &
1855
+ QueryableStorageEntry<ApiType, []>;
1856
+ /**
1857
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
1858
+ **/
1859
+ upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> &
1860
+ QueryableStorageEntry<ApiType, []>;
1861
+ /**
1862
+ * Generic query
1863
+ **/
1864
+ [key: string]: QueryableStorageEntry<ApiType>;
1865
+ };
1866
+ timestamp: {
1867
+ /**
1868
+ * Whether the timestamp has been updated in this block.
1869
+ *
1870
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
1871
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
1872
+ **/
1873
+ didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> &
1874
+ QueryableStorageEntry<ApiType, []>;
1875
+ /**
1876
+ * The current time for the current block.
1877
+ **/
1878
+ now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
1879
+ /**
1880
+ * Generic query
1881
+ **/
1882
+ [key: string]: QueryableStorageEntry<ApiType>;
1883
+ };
1884
+ transactionPayment: {
1885
+ nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> &
1886
+ QueryableStorageEntry<ApiType, []>;
1887
+ storageVersion: AugmentedQuery<
1888
+ ApiType,
1889
+ () => Observable<PalletTransactionPaymentReleases>,
1890
+ []
1891
+ > &
1892
+ QueryableStorageEntry<ApiType, []>;
1893
+ /**
1894
+ * Generic query
1895
+ **/
1896
+ [key: string]: QueryableStorageEntry<ApiType>;
1897
+ };
1898
+ xcmpQueue: {
1899
+ /**
1900
+ * The factor to multiply the base delivery fee by.
1901
+ **/
1902
+ deliveryFeeFactor: AugmentedQuery<
1903
+ ApiType,
1904
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>,
1905
+ [u32]
1906
+ > &
1907
+ QueryableStorageEntry<ApiType, [u32]>;
1908
+ /**
1909
+ * The suspended inbound XCMP channels. All others are not suspended.
1910
+ *
1911
+ * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
1912
+ * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
1913
+ * within the block and therefore only included once in the proof size.
1914
+ *
1915
+ * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
1916
+ * will be smaller.
1917
+ **/
1918
+ inboundXcmpSuspended: AugmentedQuery<ApiType, () => Observable<BTreeSet<u32>>, []> &
1919
+ QueryableStorageEntry<ApiType, []>;
1920
+ /**
1921
+ * The messages outbound in a given XCMP channel.
1922
+ **/
1923
+ outboundXcmpMessages: AugmentedQuery<
1924
+ ApiType,
1925
+ (
1926
+ arg1: u32 | AnyNumber | Uint8Array,
1927
+ arg2: u16 | AnyNumber | Uint8Array
1928
+ ) => Observable<Bytes>,
1929
+ [u32, u16]
1930
+ > &
1931
+ QueryableStorageEntry<ApiType, [u32, u16]>;
1932
+ /**
1933
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
1934
+ * and last outbound message. If the two indices are equal, then it indicates an empty
1935
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
1936
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
1937
+ * case of the need to send a high-priority signal message this block.
1938
+ * The bool is true if there is a signal message waiting to be sent.
1939
+ **/
1940
+ outboundXcmpStatus: AugmentedQuery<
1941
+ ApiType,
1942
+ () => Observable<Vec<CumulusPalletXcmpQueueOutboundChannelDetails>>,
1943
+ []
1944
+ > &
1945
+ QueryableStorageEntry<ApiType, []>;
1946
+ /**
1947
+ * The configuration which controls the dynamics of the outbound queue.
1948
+ **/
1949
+ queueConfig: AugmentedQuery<
1950
+ ApiType,
1951
+ () => Observable<CumulusPalletXcmpQueueQueueConfigData>,
1952
+ []
1953
+ > &
1954
+ QueryableStorageEntry<ApiType, []>;
1955
+ /**
1956
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
1957
+ **/
1958
+ queueSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> &
1959
+ QueryableStorageEntry<ApiType, []>;
1960
+ /**
1961
+ * Any signal messages waiting to be sent.
1962
+ **/
1963
+ signalMessages: AugmentedQuery<
1964
+ ApiType,
1965
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>,
1966
+ [u32]
1967
+ > &
1968
+ QueryableStorageEntry<ApiType, [u32]>;
1969
+ /**
1970
+ * Generic query
1971
+ **/
1972
+ [key: string]: QueryableStorageEntry<ApiType>;
1973
+ };
1974
+ } // AugmentedQueries
1975
+ } // declare module