@totochain/api-augment 0.0.0-stage → 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 (59) hide show
  1. package/README.md +70 -2
  2. package/dist/definitions/definitions.d.ts +1 -0
  3. package/dist/definitions/definitions.js +2 -0
  4. package/dist/definitions/totochain/definitions.d.ts +5 -0
  5. package/dist/definitions/totochain/definitions.js +7 -0
  6. package/dist/index.d.ts +4 -0
  7. package/dist/index.js +12 -0
  8. package/dist/interfaces/augment-api-consts.d.ts +819 -0
  9. package/dist/interfaces/augment-api-consts.js +5 -0
  10. package/dist/interfaces/augment-api-errors.d.ts +1156 -0
  11. package/dist/interfaces/augment-api-errors.js +5 -0
  12. package/dist/interfaces/augment-api-events.d.ts +1999 -0
  13. package/dist/interfaces/augment-api-events.js +5 -0
  14. package/dist/interfaces/augment-api-query.d.ts +1334 -0
  15. package/dist/interfaces/augment-api-query.js +5 -0
  16. package/dist/interfaces/augment-api-rpc.d.ts +683 -0
  17. package/dist/interfaces/augment-api-rpc.js +5 -0
  18. package/dist/interfaces/augment-api-runtime.d.ts +298 -0
  19. package/dist/interfaces/augment-api-runtime.js +5 -0
  20. package/dist/interfaces/augment-api-tx.d.ts +2333 -0
  21. package/dist/interfaces/augment-api-tx.js +5 -0
  22. package/dist/interfaces/augment-api.d.ts +7 -0
  23. package/dist/interfaces/augment-api.js +9 -0
  24. package/dist/interfaces/augment-types.d.ts +1368 -0
  25. package/dist/interfaces/augment-types.js +5 -0
  26. package/dist/interfaces/definitions.d.ts +1 -0
  27. package/dist/interfaces/definitions.js +2 -0
  28. package/dist/interfaces/index.d.ts +1 -0
  29. package/dist/interfaces/index.js +3 -0
  30. package/dist/interfaces/lookup.d.ts +3899 -0
  31. package/dist/interfaces/lookup.js +3901 -0
  32. package/dist/interfaces/registry.d.ts +278 -0
  33. package/dist/interfaces/registry.js +5 -0
  34. package/dist/interfaces/totochain/definitions.d.ts +5 -0
  35. package/dist/interfaces/totochain/definitions.js +7 -0
  36. package/dist/interfaces/types-lookup.d.ts +4026 -0
  37. package/dist/interfaces/types-lookup.js +5 -0
  38. package/dist/interfaces/types.d.ts +1 -0
  39. package/dist/interfaces/types.js +3 -0
  40. package/package.json +69 -4
  41. package/src/definitions/definitions.ts +2 -0
  42. package/src/definitions/totochain/definitions.ts +7 -0
  43. package/src/index.ts +15 -0
  44. package/src/interfaces/augment-api-consts.ts +827 -0
  45. package/src/interfaces/augment-api-errors.ts +1164 -0
  46. package/src/interfaces/augment-api-events.ts +1294 -0
  47. package/src/interfaces/augment-api-query.ts +1342 -0
  48. package/src/interfaces/augment-api-rpc.ts +621 -0
  49. package/src/interfaces/augment-api-runtime.ts +264 -0
  50. package/src/interfaces/augment-api-tx.ts +2152 -0
  51. package/src/interfaces/augment-api.ts +10 -0
  52. package/src/interfaces/augment-types.ts +1375 -0
  53. package/src/interfaces/definitions.ts +2 -0
  54. package/src/interfaces/index.ts +4 -0
  55. package/src/interfaces/lookup.ts +3903 -0
  56. package/src/interfaces/registry.ts +285 -0
  57. package/src/interfaces/totochain/definitions.ts +7 -0
  58. package/src/interfaces/types-lookup.ts +4292 -0
  59. package/src/interfaces/types.ts +4 -0
@@ -0,0 +1,1342 @@
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 { Data } from '@polkadot/types';
10
+ import type { BTreeSet, Bytes, Null, Option, U256, U8aFixed, Vec, bool, i32, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
11
+ import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
12
+ import type { AccountId20, Call, H160, H256, Perbill, Permill } from '@polkadot/types/interfaces/runtime';
13
+ import type { EthereumBlock, EthereumReceiptReceiptV4, EthereumTransactionTransactionV3, FpRpcTransactionStatus, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAttestationAttestationRecord, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollectiveVotes, PalletCtypeCtypeEntry, PalletDidDidRecord, PalletEvmCodeMetadata, PalletFractionalNftNftInfo, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletHandshakeHandshakeStatus, PalletIdentityAuthorityProperties, PalletIdentityProvider, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletIdentityUsernameInformation, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPotentialRewardSweepCursorState, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletReputationVotingProcessingState, PalletReputationVotingTally, PalletReputationVotingVoteDirection, PalletReputationVotingVoteRecord, PalletRuntimeParamsGovernanceParams, PalletRuntimeParamsRewardParams, PalletRuntimeParamsSafeModeParams, PalletRuntimeParamsTimingParams, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, TotochainRuntimeSessionKeys } from '@polkadot/types/lookup';
14
+ import type { Observable } from '@polkadot/types/types';
15
+
16
+ export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
17
+ export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
18
+
19
+ declare module '@polkadot/api-base/types/storage' {
20
+ interface AugmentedQueries<ApiType extends ApiTypes> {
21
+ activityTracker: {
22
+ /**
23
+ * Storage for tracking activity reputation per account
24
+ **/
25
+ activityReputation: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<u32>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
26
+ /**
27
+ * Resume key for incremental on_initialize cleanup. `None` means start from the beginning.
28
+ *
29
+ * Bounded by the size of a fully-hashed `LastActivityTime` key:
30
+ * 16 bytes (pallet prefix) + 16 bytes (storage prefix) + 16 bytes (Blake2_128Concat hash)
31
+ * + raw `AccountId`. 128 bytes leaves comfortable headroom for any reasonable account type.
32
+ **/
33
+ cleanupCursor: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
34
+ /**
35
+ * Storage for tracking last activity time per account
36
+ **/
37
+ lastActivityTime: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<u32>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
38
+ /**
39
+ * Generic query
40
+ **/
41
+ [key: string]: QueryableStorageEntry<ApiType>;
42
+ };
43
+ attestation: {
44
+ attestationProviderIds: AugmentedQuery<ApiType, () => Observable<Vec<AccountId20>>, []> & QueryableStorageEntry<ApiType, []>;
45
+ attestations: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletAttestationAttestationRecord>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
46
+ claimsBySubject: AugmentedQuery<ApiType, (arg1: AccountId20 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<ITuple<[H256, bool]>>>, [AccountId20, H256]> & QueryableStorageEntry<ApiType, [AccountId20, H256]>;
47
+ claimsCountBySubject: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<u32>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
48
+ ctypeWeights: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<u32>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
49
+ /**
50
+ * Generic query
51
+ **/
52
+ [key: string]: QueryableStorageEntry<ApiType>;
53
+ };
54
+ authorityDiscovery: {
55
+ /**
56
+ * Keys of the current authority set.
57
+ **/
58
+ keys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
59
+ /**
60
+ * Keys of the next authority set.
61
+ **/
62
+ nextKeys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
63
+ /**
64
+ * Generic query
65
+ **/
66
+ [key: string]: QueryableStorageEntry<ApiType>;
67
+ };
68
+ authorship: {
69
+ /**
70
+ * Author of current block.
71
+ **/
72
+ author: AugmentedQuery<ApiType, () => Observable<Option<AccountId20>>, []> & QueryableStorageEntry<ApiType, []>;
73
+ /**
74
+ * Generic query
75
+ **/
76
+ [key: string]: QueryableStorageEntry<ApiType>;
77
+ };
78
+ babe: {
79
+ /**
80
+ * Current epoch authorities.
81
+ **/
82
+ authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
83
+ /**
84
+ * This field should always be populated during block processing unless
85
+ * secondary plain slots are enabled (which don't contain a VRF output).
86
+ *
87
+ * It is set in `on_finalize`, before it will contain the value from the last block.
88
+ **/
89
+ authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []> & QueryableStorageEntry<ApiType, []>;
90
+ /**
91
+ * Current slot number.
92
+ **/
93
+ currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
94
+ /**
95
+ * The configuration for the current epoch. Should never be `None` as it is initialized in
96
+ * genesis.
97
+ **/
98
+ epochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, []> & QueryableStorageEntry<ApiType, []>;
99
+ /**
100
+ * Current epoch index.
101
+ **/
102
+ epochIndex: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
103
+ /**
104
+ * The block numbers when the last and current epoch have started, respectively `N-1` and
105
+ * `N`.
106
+ * NOTE: We track this is in order to annotate the block number when a given pool of
107
+ * entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
108
+ * slots, which may be skipped, the block numbers may not line up with the slot numbers.
109
+ **/
110
+ epochStart: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []> & QueryableStorageEntry<ApiType, []>;
111
+ /**
112
+ * The slot at which the first epoch actually started. This is 0
113
+ * until the first block of the chain.
114
+ **/
115
+ genesisSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
116
+ /**
117
+ * Temporary value (cleared at block finalization) which is `Some`
118
+ * if per-block initialization has already been called for current block.
119
+ **/
120
+ initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<SpConsensusBabeDigestsPreDigest>>>, []> & QueryableStorageEntry<ApiType, []>;
121
+ /**
122
+ * How late the current block is compared to its parent.
123
+ *
124
+ * This entry is populated as part of block execution and is cleaned up
125
+ * on block finalization. Querying this storage entry outside of block
126
+ * execution context should always yield zero.
127
+ **/
128
+ lateness: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
129
+ /**
130
+ * Next epoch authorities.
131
+ **/
132
+ nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
133
+ /**
134
+ * The configuration for the next epoch, `None` if the config will not change
135
+ * (you can fallback to `EpochConfig` instead in that case).
136
+ **/
137
+ nextEpochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, []> & QueryableStorageEntry<ApiType, []>;
138
+ /**
139
+ * Next epoch randomness.
140
+ **/
141
+ nextRandomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> & QueryableStorageEntry<ApiType, []>;
142
+ /**
143
+ * Pending epoch configuration change that will be applied when the next epoch is enacted.
144
+ **/
145
+ pendingEpochConfigChange: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeDigestsNextConfigDescriptor>>, []> & QueryableStorageEntry<ApiType, []>;
146
+ /**
147
+ * The epoch randomness for the *current* epoch.
148
+ *
149
+ * # Security
150
+ *
151
+ * This MUST NOT be used for gambling, as it can be influenced by a
152
+ * malicious validator in the short term. It MAY be used in many
153
+ * cryptographic protocols, however, so long as one remembers that this
154
+ * (like everything else on-chain) it is public. For example, it can be
155
+ * used where a number is needed that cannot have been chosen by an
156
+ * adversary, for purposes such as public-coin zero-knowledge proofs.
157
+ **/
158
+ randomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> & QueryableStorageEntry<ApiType, []>;
159
+ /**
160
+ * Randomness under construction.
161
+ *
162
+ * We make a trade-off between storage accesses and list length.
163
+ * We store the under-construction randomness in segments of up to
164
+ * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
165
+ *
166
+ * Once a segment reaches this length, we begin the next one.
167
+ * We reset all segments and return to `0` at the beginning of every
168
+ * epoch.
169
+ **/
170
+ segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
171
+ /**
172
+ * A list of the last 100 skipped epochs and the corresponding session index
173
+ * when the epoch was skipped.
174
+ *
175
+ * This is only used for validating equivocation proofs. An equivocation proof
176
+ * must contains a key-ownership proof for a given session, therefore we need a
177
+ * way to tie together sessions and epoch indices, i.e. we need to validate that
178
+ * a validator was the owner of a given key on a given session, and what the
179
+ * active epoch index was during that session.
180
+ **/
181
+ skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
182
+ /**
183
+ * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
184
+ **/
185
+ underConstruction: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<U8aFixed>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
186
+ /**
187
+ * Generic query
188
+ **/
189
+ [key: string]: QueryableStorageEntry<ApiType>;
190
+ };
191
+ balances: {
192
+ /**
193
+ * The Balances pallet example of storing the balance of an account.
194
+ *
195
+ * # Example
196
+ *
197
+ * ```nocompile
198
+ * impl pallet_balances::Config for Runtime {
199
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
200
+ * }
201
+ * ```
202
+ *
203
+ * You can also store the balance of an account in the `System` pallet.
204
+ *
205
+ * # Example
206
+ *
207
+ * ```nocompile
208
+ * impl pallet_balances::Config for Runtime {
209
+ * type AccountStore = System
210
+ * }
211
+ * ```
212
+ *
213
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
214
+ * `frame_system` data alongside the account data contrary to storing account balances in the
215
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
216
+ * NOTE: This is only used in the case that this pallet is used to store balances.
217
+ **/
218
+ account: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
219
+ /**
220
+ * Freeze locks on account balances.
221
+ **/
222
+ freezes: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
223
+ /**
224
+ * Holds on account balances.
225
+ **/
226
+ holds: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
227
+ /**
228
+ * The total units of outstanding deactivated balance in the system.
229
+ **/
230
+ inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
231
+ /**
232
+ * Any liquidity locks on some account balances.
233
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
234
+ *
235
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
236
+ **/
237
+ locks: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
238
+ /**
239
+ * Named reserves on some account balances.
240
+ *
241
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
242
+ **/
243
+ reserves: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
244
+ /**
245
+ * The total units issued in the system.
246
+ **/
247
+ totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
248
+ /**
249
+ * Generic query
250
+ **/
251
+ [key: string]: QueryableStorageEntry<ApiType>;
252
+ };
253
+ baseFee: {
254
+ baseFeePerGas: AugmentedQuery<ApiType, () => Observable<U256>, []> & QueryableStorageEntry<ApiType, []>;
255
+ elasticity: AugmentedQuery<ApiType, () => Observable<Permill>, []> & QueryableStorageEntry<ApiType, []>;
256
+ /**
257
+ * Generic query
258
+ **/
259
+ [key: string]: QueryableStorageEntry<ApiType>;
260
+ };
261
+ ctype: {
262
+ ctypes: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCtypeCtypeEntry>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
263
+ /**
264
+ * Generic query
265
+ **/
266
+ [key: string]: QueryableStorageEntry<ApiType>;
267
+ };
268
+ did: {
269
+ did: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<PalletDidDidRecord>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
270
+ /**
271
+ * Generic query
272
+ **/
273
+ [key: string]: QueryableStorageEntry<ApiType>;
274
+ };
275
+ ethereum: {
276
+ blockHash: AugmentedQuery<ApiType, (arg: U256 | AnyNumber | Uint8Array) => Observable<H256>, [U256]> & QueryableStorageEntry<ApiType, [U256]>;
277
+ /**
278
+ * Counter for the related counted storage map
279
+ **/
280
+ counterForPending: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
281
+ /**
282
+ * The current Ethereum block.
283
+ **/
284
+ currentBlock: AugmentedQuery<ApiType, () => Observable<Option<EthereumBlock>>, []> & QueryableStorageEntry<ApiType, []>;
285
+ /**
286
+ * The current Ethereum receipts.
287
+ **/
288
+ currentReceipts: AugmentedQuery<ApiType, () => Observable<Option<Vec<EthereumReceiptReceiptV4>>>, []> & QueryableStorageEntry<ApiType, []>;
289
+ /**
290
+ * The current transaction statuses.
291
+ **/
292
+ currentTransactionStatuses: AugmentedQuery<ApiType, () => Observable<Option<Vec<FpRpcTransactionStatus>>>, []> & QueryableStorageEntry<ApiType, []>;
293
+ /**
294
+ * Mapping from transaction index to transaction in the current building block.
295
+ **/
296
+ pending: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[EthereumTransactionTransactionV3, FpRpcTransactionStatus, EthereumReceiptReceiptV4]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
297
+ /**
298
+ * Generic query
299
+ **/
300
+ [key: string]: QueryableStorageEntry<ApiType>;
301
+ };
302
+ evm: {
303
+ accountCodes: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Bytes>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
304
+ accountCodesMetadata: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<PalletEvmCodeMetadata>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
305
+ accountStorages: AugmentedQuery<ApiType, (arg1: H160 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<H256>, [H160, H256]> & QueryableStorageEntry<ApiType, [H160, H256]>;
306
+ /**
307
+ * Generic query
308
+ **/
309
+ [key: string]: QueryableStorageEntry<ApiType>;
310
+ };
311
+ evmChainId: {
312
+ /**
313
+ * The EVM chain ID.
314
+ **/
315
+ chainId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
316
+ /**
317
+ * Generic query
318
+ **/
319
+ [key: string]: QueryableStorageEntry<ApiType>;
320
+ };
321
+ fractionalNft: {
322
+ collectionIdNftInfo: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletFractionalNftNftInfo>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
323
+ currentCollectionId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
324
+ currentItemId: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
325
+ /**
326
+ * Per-collection presence index of valid (live) fractional-NFT items.
327
+ *
328
+ * Replaces the previous `ValidItems: StorageMap<CollectionId, BoundedBTreeSet<ItemId>>`.
329
+ * Single-item insert/remove no longer decodes the whole per-collection set, so the
330
+ * per-call proof estimate drops from `MaxValidItems`-sized to a single small row.
331
+ * `ValidItemCount` is the source of truth for cardinality (the runtime-checked cap).
332
+ **/
333
+ isValidItem: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
334
+ /**
335
+ * Wildcards owed to the distribution queue but not yet minted or scheduled.
336
+ *
337
+ * `mint` credits this counter instead of inserting into `WildcardDistributionMap`
338
+ * inline, so a deposit can never fail on the state of the shared queue — including
339
+ * a queue filled by *other* accounts' deposits (BC-505).
340
+ * `process_pending_wildcards` (called from `on_finalize`) drains it into free queue
341
+ * slots, at most [`crate::MAX_WILDCARD_MINTS_PER_BLOCK`] per block.
342
+ *
343
+ * Effective wildcard throughput is bounded by the queue drain rate, not by this
344
+ * counter or the per-block mint cap: an entry holds its slot for the whole
345
+ * randomized 1–24 h delay while at most one leaves per block, so the queue sustains
346
+ * `MaxWildcardEntries / mean_delay_in_blocks` wildcards per block. Size the cap above
347
+ * the expected production rate or this counter grows without bound and wildcards
348
+ * arrive ever later — the backlog is bonus rewards running late, never a failed
349
+ * deposit, but it is unbounded. Monitor it via [`Event::WildcardMintDeferred`].
350
+ **/
351
+ pendingWildcards: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
352
+ totalfNFTsMinted: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
353
+ totalNonWildcardItems: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
354
+ /**
355
+ * Forward array of the unused-collections pool: `idx -> collection_id`.
356
+ **/
357
+ unusedCollectionAt: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
358
+ /**
359
+ * Reverse index of the unused-collections pool: `collection_id -> idx`. Used for
360
+ * O(1) arbitrary remove via swap-pop. `OptionQuery` because index `0` is valid.
361
+ **/
362
+ unusedCollectionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
363
+ /**
364
+ * Number of collections currently in the unused pool.
365
+ **/
366
+ unusedCollectionsCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
367
+ /**
368
+ * Forward array of the per-collection unused-items pool: `(collection_id, idx) -> item_id`.
369
+ **/
370
+ unusedItemAt: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
371
+ /**
372
+ * Reverse index of the per-collection unused-items pool: `(collection_id, item_id) -> idx`.
373
+ **/
374
+ unusedItemIndex: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
375
+ /**
376
+ * Number of items currently in the unused pool for each collection.
377
+ **/
378
+ unusedItemsCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
379
+ /**
380
+ * Live count of valid items per collection. Source of truth for the
381
+ * runtime-checked `MaxValidItems` cap.
382
+ **/
383
+ validItemCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
384
+ wildcardDistributionMap: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
385
+ wildcardThreshold: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
386
+ /**
387
+ * Generic query
388
+ **/
389
+ [key: string]: QueryableStorageEntry<ApiType>;
390
+ };
391
+ grandpa: {
392
+ /**
393
+ * The current list of authorities.
394
+ **/
395
+ authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
396
+ /**
397
+ * The number of changes (both in terms of keys and underlying economic responsibilities)
398
+ * in the "set" of Grandpa validators from genesis.
399
+ **/
400
+ currentSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
401
+ /**
402
+ * next block number where we can force a change.
403
+ **/
404
+ nextForced: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
405
+ /**
406
+ * Pending change: (signaled at, scheduled change).
407
+ **/
408
+ pendingChange: AugmentedQuery<ApiType, () => Observable<Option<PalletGrandpaStoredPendingChange>>, []> & QueryableStorageEntry<ApiType, []>;
409
+ /**
410
+ * A mapping from grandpa set ID to the index of the *most recent* session for which its
411
+ * members were responsible.
412
+ *
413
+ * This is only used for validating equivocation proofs. An equivocation proof must
414
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
415
+ * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
416
+ * was the owner of a given key on a given session, and what the active set ID was
417
+ * during that session.
418
+ *
419
+ * TWOX-NOTE: `SetId` is not under user control.
420
+ **/
421
+ setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
422
+ /**
423
+ * `true` if we are currently stalled.
424
+ **/
425
+ stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
426
+ /**
427
+ * State of the current authority set.
428
+ **/
429
+ state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []> & QueryableStorageEntry<ApiType, []>;
430
+ /**
431
+ * Generic query
432
+ **/
433
+ [key: string]: QueryableStorageEntry<ApiType>;
434
+ };
435
+ handshake: {
436
+ /**
437
+ * Directional adjacency index: `(account, partner) -> ()` for every account pair
438
+ * that has completed a handshake. Each completion writes two rows so that
439
+ * `iter_prefix(account)` can answer "all partners of this account" regardless of
440
+ * whether the account is the smaller or larger key in the canonical `Handshakes`
441
+ * pair. `Handshakes` remains the status source of truth; this map is purely a
442
+ * query index.
443
+ **/
444
+ completedHandshakePartners: AugmentedQuery<ApiType, (arg1: AccountId20 | string | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<Option<Null>>, [AccountId20, AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20, AccountId20]>;
445
+ /**
446
+ * Number of completed handshakes per account.
447
+ **/
448
+ handshakeCount: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<u32>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
449
+ /**
450
+ * Who initiated each handshake (present only while status is Pending).
451
+ **/
452
+ handshakeInitiators: AugmentedQuery<ApiType, (arg1: AccountId20 | string | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<Option<AccountId20>>, [AccountId20, AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20, AccountId20]>;
453
+ /**
454
+ * Handshake status between each account pair, keyed in canonical (smaller, larger) order.
455
+ **/
456
+ handshakes: AugmentedQuery<ApiType, (arg1: AccountId20 | string | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<PalletHandshakeHandshakeStatus>, [AccountId20, AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20, AccountId20]>;
457
+ /**
458
+ * Generic query
459
+ **/
460
+ [key: string]: QueryableStorageEntry<ApiType>;
461
+ };
462
+ historical: {
463
+ /**
464
+ * Mapping from historical session indices to session-data root hash and validator count.
465
+ **/
466
+ historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
467
+ /**
468
+ * The range of historical sessions we store. [first, last)
469
+ **/
470
+ storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
471
+ /**
472
+ * Generic query
473
+ **/
474
+ [key: string]: QueryableStorageEntry<ApiType>;
475
+ };
476
+ identity: {
477
+ /**
478
+ * A map of the accounts who are authorized to grant usernames.
479
+ **/
480
+ authorityOf: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
481
+ /**
482
+ * Information that is pertinent to identify the entity behind an account. First item is the
483
+ * registration, second is the account's primary username.
484
+ *
485
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
486
+ **/
487
+ identityOf: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<PalletIdentityRegistration>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
488
+ /**
489
+ * Usernames that an authority has granted, but that the account controller has not confirmed
490
+ * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
491
+ * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
492
+ * [accept_username](`Call::accept_username`).
493
+ *
494
+ * First tuple item is the account and second is the acceptance deadline.
495
+ **/
496
+ pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId20, u32, PalletIdentityProvider]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
497
+ /**
498
+ * The set of registrars. Not expected to get very big as can only be added through a
499
+ * special origin (likely a council motion).
500
+ *
501
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
502
+ **/
503
+ registrars: AugmentedQuery<ApiType, () => Observable<Vec<Option<PalletIdentityRegistrarInfo>>>, []> & QueryableStorageEntry<ApiType, []>;
504
+ /**
505
+ * Alternative "sub" identities of this account.
506
+ *
507
+ * The first item is the deposit, the second is a vector of the accounts.
508
+ *
509
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
510
+ **/
511
+ subsOf: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<ITuple<[u128, Vec<AccountId20>]>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
512
+ /**
513
+ * The super-identity of an alternative "sub" identity together with its name, within that
514
+ * context. If the account is not some other account's sub-identity, then just `None`.
515
+ **/
516
+ superOf: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<ITuple<[AccountId20, Data]>>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
517
+ /**
518
+ * Usernames for which the authority that granted them has started the removal process by
519
+ * unbinding them. Each unbinding username maps to its grace period expiry, which is the first
520
+ * block in which the username could be deleted through a
521
+ * [remove_username](`Call::remove_username`) call.
522
+ **/
523
+ unbindingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<u32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
524
+ /**
525
+ * Reverse lookup from `username` to the `AccountId` that has registered it and the provider of
526
+ * the username. The `owner` value should be a key in the `UsernameOf` map, but it may not if
527
+ * the user has cleared their username or it has been removed.
528
+ *
529
+ * Multiple usernames may map to the same `AccountId`, but `UsernameOf` will only map to one
530
+ * primary username.
531
+ **/
532
+ usernameInfoOf: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<PalletIdentityUsernameInformation>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
533
+ /**
534
+ * Identifies the primary username of an account.
535
+ **/
536
+ usernameOf: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<Bytes>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
537
+ /**
538
+ * Generic query
539
+ **/
540
+ [key: string]: QueryableStorageEntry<ApiType>;
541
+ };
542
+ imOnline: {
543
+ /**
544
+ * For each session index, we keep a mapping of `ValidatorId<T>` to the
545
+ * number of blocks authored by the given authority.
546
+ **/
547
+ authoredBlocks: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<u32>, [u32, AccountId20]> & QueryableStorageEntry<ApiType, [u32, AccountId20]>;
548
+ /**
549
+ * The block number after which it's ok to send heartbeats in the current
550
+ * session.
551
+ *
552
+ * At the beginning of each session we set this to a value that should fall
553
+ * roughly in the middle of the session duration. The idea is to first wait for
554
+ * the validators to produce a block in the current session, so that the
555
+ * heartbeat later on will not be necessary.
556
+ *
557
+ * This value will only be used as a fallback if we fail to get a proper session
558
+ * progress estimate from `NextSessionRotation`, as those estimates should be
559
+ * more accurate then the value we calculate for `HeartbeatAfter`.
560
+ **/
561
+ heartbeatAfter: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
562
+ /**
563
+ * The current set of keys that may issue a heartbeat.
564
+ **/
565
+ keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
566
+ /**
567
+ * For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
568
+ **/
569
+ receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
570
+ /**
571
+ * Generic query
572
+ **/
573
+ [key: string]: QueryableStorageEntry<ApiType>;
574
+ };
575
+ multisig: {
576
+ /**
577
+ * The set of open multisig operations.
578
+ **/
579
+ multisigs: AugmentedQuery<ApiType, (arg1: AccountId20 | string | Uint8Array, arg2: U8aFixed | string | Uint8Array) => Observable<Option<PalletMultisigMultisig>>, [AccountId20, U8aFixed]> & QueryableStorageEntry<ApiType, [AccountId20, U8aFixed]>;
580
+ /**
581
+ * Generic query
582
+ **/
583
+ [key: string]: QueryableStorageEntry<ApiType>;
584
+ };
585
+ offences: {
586
+ /**
587
+ * A vector of reports of the same kind that happened at the same time slot.
588
+ **/
589
+ concurrentReportsIndex: AugmentedQuery<ApiType, (arg1: U8aFixed | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Vec<H256>>, [U8aFixed, Bytes]> & QueryableStorageEntry<ApiType, [U8aFixed, Bytes]>;
590
+ /**
591
+ * The primary structure that holds all offence records keyed by report identifiers.
592
+ **/
593
+ reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
594
+ /**
595
+ * Generic query
596
+ **/
597
+ [key: string]: QueryableStorageEntry<ApiType>;
598
+ };
599
+ potential: {
600
+ /**
601
+ * Number of accounts in the current cycle for which `burn_for_account`
602
+ * returned a non-zero burned amount. Always `<= TotalProcessedInCycle`.
603
+ * Tracked separately so `BurnCycleCompleted` can distinguish "scanned" from
604
+ * "actually burned" without disturbing weight accounting (which keys on
605
+ * `TotalProcessedInCycle`).
606
+ **/
607
+ accountsWithBurnsInCycle: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
608
+ /**
609
+ * The active referral share for each block producer.
610
+ **/
611
+ activeReferralShare: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<u32>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
612
+ /**
613
+ * Snapshot of the parent's `SubtreeRewardIndex` already pushed through the
614
+ * `(parent, child)` edge. A child collects `SubtreeRewardIndex[parent]`
615
+ * minus this value, so reward accrued before the child joined (its snapshot
616
+ * is initialized to the parent's index at attach time) is never paid out.
617
+ **/
618
+ appliedChildRewardIndex: AugmentedQuery<ApiType, (arg1: AccountId20 | string | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<u128>, [AccountId20, AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20, AccountId20]>;
619
+ /**
620
+ * Cursor for burn iteration - stores last processed account.
621
+ **/
622
+ burnCursor: AugmentedQuery<ApiType, () => Observable<Option<AccountId20>>, []> & QueryableStorageEntry<ApiType, []>;
623
+ /**
624
+ * Whether a burn cycle is currently in progress.
625
+ **/
626
+ burnInProgress: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
627
+ /**
628
+ * The cycle number.
629
+ **/
630
+ cycleNumber: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
631
+ /**
632
+ * The amount of potential that has been minted in the given cycle.
633
+ **/
634
+ cyclePotentialMinted: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
635
+ /**
636
+ * The amount of potential that would be distributed in the given cycle.
637
+ **/
638
+ cycleSupply: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
639
+ /**
640
+ * The month number.
641
+ **/
642
+ monthNumber: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
643
+ /**
644
+ * The amount of potential that has been minted in the given month.
645
+ **/
646
+ monthPotentialMinted: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
647
+ /**
648
+ * The amount of potential that would be distributed in the given month.
649
+ **/
650
+ monthSupply: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
651
+ /**
652
+ * Cached potential amount per account, written exclusively by `set_potential`
653
+ * and kept in lockstep with the `POTENTIAL_LOCK_ID` balance lock. Read paths
654
+ * (`get_potential`) never write to this map — populating from a read would be
655
+ * unmetered weight on hot fee paths.
656
+ *
657
+ * Invariant: this map holds **only non-zero values**. `set_potential(_, 0)`
658
+ * removes the entry rather than storing `Some(0)`. A `None` value therefore
659
+ * means "this account has zero potential" — `get_potential` returns zero in
660
+ * that case. Do not insert `Some(0)` from any new code path: doing so leaves
661
+ * a stale row that the burn/payment flows would never clean up.
662
+ **/
663
+ potentialOf: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<u128>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
664
+ /**
665
+ * Descendant reward committed against the supply budget at accrual time but
666
+ * not yet credited to individual accounts. `mint_reserved` draws this down;
667
+ * it must reach zero once every queued edge has been swept.
668
+ **/
669
+ reservedRewardBudget: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
670
+ /**
671
+ * Membership marker for the reward parent queue: present while a parent is
672
+ * queued **or** currently being swept (cursor). Prevents duplicate enqueues;
673
+ * cleared when a parent's direct-child scan completes.
674
+ **/
675
+ rewardParentQueued: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<Null>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
676
+ /**
677
+ * FIFO queue slots: `queue_index -> parent`. Never stores the pending-parent
678
+ * set inline — one small row per queued parent.
679
+ **/
680
+ rewardQueueAt: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<AccountId20>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
681
+ /**
682
+ * Head index of the per-entry FIFO queue of parents with pending edge work.
683
+ **/
684
+ rewardQueueHead: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
685
+ /**
686
+ * Tail index (one past the last enqueued slot) of the reward parent queue.
687
+ **/
688
+ rewardQueueTail: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
689
+ /**
690
+ * Resumable cursor for a single parent's direct-child scan when one
691
+ * `on_idle` block cannot finish it (a parent may have up to
692
+ * `MaxChildrenPerNode` children).
693
+ **/
694
+ rewardSweepCursor: AugmentedQuery<ApiType, () => Observable<Option<PalletPotentialRewardSweepCursorState>>, []> & QueryableStorageEntry<ApiType, []>;
695
+ /**
696
+ * Cumulative per-descendant reward (in potential units) that has reached
697
+ * this node. Monotonically increasing while the node has accruing
698
+ * ancestors. Read at sweep time as the target each direct child catches up
699
+ * to.
700
+ **/
701
+ subtreeRewardIndex: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<u128>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
702
+ /**
703
+ * Total burned amount in the current burn cycle (cumulative across batches).
704
+ **/
705
+ totalBurnedInCycle: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
706
+ /**
707
+ * The amount of potential that has been minted so far.
708
+ **/
709
+ totalPotentialMinted: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
710
+ /**
711
+ * Total accounts processed (visited) in the current burn cycle. This is the
712
+ * weight-charge counter — it counts every account considered by
713
+ * `process_burn_batch`, including those with zero potential and those that
714
+ * failed individually.
715
+ **/
716
+ totalProcessedInCycle: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
717
+ /**
718
+ * Generic query
719
+ **/
720
+ [key: string]: QueryableStorageEntry<ApiType>;
721
+ };
722
+ preimage: {
723
+ preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [ITuple<[H256, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[H256, u32]>]>;
724
+ /**
725
+ * The request status of a given hash.
726
+ **/
727
+ requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
728
+ /**
729
+ * The request status of a given hash.
730
+ **/
731
+ statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
732
+ /**
733
+ * Generic query
734
+ **/
735
+ [key: string]: QueryableStorageEntry<ApiType>;
736
+ };
737
+ proxy: {
738
+ /**
739
+ * The announcements made by the proxy (key).
740
+ **/
741
+ announcements: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyAnnouncement>, u128]>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
742
+ /**
743
+ * The set of account proxies. Maps the account which has delegated to the accounts
744
+ * which are being delegated to, together with the amount held on deposit.
745
+ **/
746
+ proxies: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyProxyDefinition>, u128]>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
747
+ /**
748
+ * Generic query
749
+ **/
750
+ [key: string]: QueryableStorageEntry<ApiType>;
751
+ };
752
+ referenda: {
753
+ /**
754
+ * The number of referenda being decided currently.
755
+ **/
756
+ decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
757
+ /**
758
+ * The metadata is a general information concerning the referendum.
759
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
760
+ * dump or IPFS hash of a JSON file.
761
+ *
762
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
763
+ * large preimages.
764
+ **/
765
+ metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
766
+ /**
767
+ * The next free referendum index, aka the number of referenda started so far.
768
+ **/
769
+ referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
770
+ /**
771
+ * Information concerning any given referendum.
772
+ **/
773
+ referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReferendaReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
774
+ /**
775
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
776
+ * conviction-weighted approvals.
777
+ *
778
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
779
+ **/
780
+ trackQueue: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
781
+ /**
782
+ * Generic query
783
+ **/
784
+ [key: string]: QueryableStorageEntry<ApiType>;
785
+ };
786
+ referral: {
787
+ /**
788
+ * Precomputed direct-child count per active node. Kept in lockstep with
789
+ * `ActiveChildren` so the `MaxChildrenPerNode` cap in `add_referral` does
790
+ * not require iterating the edge map.
791
+ **/
792
+ activeChildCount: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<u32>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
793
+ /**
794
+ * Direct active edges. `(parent, child) -> ()` for every parent→child link
795
+ * in the active tree. Replaces the inline children `BoundedVec` so a single
796
+ * edge add/remove touches one small row instead of the full per-parent list.
797
+ **/
798
+ activeChildren: AugmentedQuery<ApiType, (arg1: AccountId20 | string | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<Option<Null>>, [AccountId20, AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20, AccountId20]>;
799
+ /**
800
+ * Active-tree membership marker. Present iff the account appears in the
801
+ * active referral tree (as a root, internal node, or leaf). One small row
802
+ * per account — no inline children blob.
803
+ **/
804
+ activeNodes: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<Null>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
805
+ /**
806
+ * Set of tree roots.
807
+ **/
808
+ activeReferralRoots: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<Null>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
809
+ /**
810
+ * Block-producer set. O(1) membership via `contains_key`.
811
+ **/
812
+ blockProducers: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<Null>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
813
+ /**
814
+ * Precomputed subtree size per account. Maintained by `add_child_with_chain`
815
+ * and `split_tree`; read in O(1) by `active_referrals_count`.
816
+ **/
817
+ descendantCount: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<u32>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
818
+ /**
819
+ * `account -> referrer`, write-once and **never removed** — including by
820
+ * `split_tree`. The full genealogy of who referred whom, preserved across
821
+ * validator splits. Sole consumer: upward fNFT distribution.
822
+ **/
823
+ lineageParent: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<AccountId20>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
824
+ /**
825
+ * `pending_account -> referrer` while waiting for `activate_referral`.
826
+ **/
827
+ pendingReferral: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<AccountId20>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
828
+ /**
829
+ * Reverse index of `PendingReferral` for O(1) lookup of one referrer's pending
830
+ * list. Bounded by `MaxPendingReferrals`. Kept in sync with `PendingReferral`.
831
+ **/
832
+ pendingReferralsByReferrer: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Vec<AccountId20>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
833
+ /**
834
+ * `account -> referrer`. Set on `add_referral`; cleared on `split_tree`.
835
+ **/
836
+ referrer: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<AccountId20>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
837
+ /**
838
+ * Generic query
839
+ **/
840
+ [key: string]: QueryableStorageEntry<ApiType>;
841
+ };
842
+ reputationVoting: {
843
+ /**
844
+ * Counter for the related counted storage map
845
+ **/
846
+ counterForPendingPolls: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
847
+ /**
848
+ * Number of voters still pending processing for each poll. A positive value means
849
+ * the poll is in the queue; the entry is removed when the last voter for the poll
850
+ * is processed. `CountedStorageMap`'s built-in counter (`CounterForPendingPolls`)
851
+ * tracks the number of pending polls and is used by `on_idle` to bail out quickly
852
+ * when the queue is empty.
853
+ *
854
+ * The actual per-voter records live in [`PendingPollVoters`]. Splitting the count
855
+ * from the records avoids decoding a multi-megabyte `BoundedVec` on every vote.
856
+ **/
857
+ pendingPolls: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
858
+ /**
859
+ * Per-voter records keyed by `(PollIndex, AccountId) -> VoteDirection`. Each vote
860
+ * is a single double-map entry; voting, removing, and updating are O(1) writes that
861
+ * no longer require decoding the full voter list. `on_idle` iterates via
862
+ * `iter_prefix(poll_index)` and removes processed entries, making batch resumption
863
+ * implicit.
864
+ **/
865
+ pendingPollVoters: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<Option<PalletReputationVotingVoteDirection>>, [u32, AccountId20]> & QueryableStorageEntry<ApiType, [u32, AccountId20]>;
866
+ /**
867
+ * Progress tracker for on_idle batch processing of completed polls.
868
+ * If Some, processing is in progress and will resume from this point.
869
+ * If None, no processing is in progress.
870
+ **/
871
+ processingProgress: AugmentedQuery<ApiType, () => Observable<Option<PalletReputationVotingProcessingState>>, []> & QueryableStorageEntry<ApiType, []>;
872
+ /**
873
+ * Tally for each poll
874
+ **/
875
+ tallyOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletReputationVotingTally>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
876
+ /**
877
+ * Votes cast by each account: (AccountId, PollIndex) -> VoteRecord
878
+ **/
879
+ voteOf: AugmentedQuery<ApiType, (arg1: AccountId20 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReputationVotingVoteRecord>>, [AccountId20, u32]> & QueryableStorageEntry<ApiType, [AccountId20, u32]>;
880
+ /**
881
+ * All polls an account has voted on
882
+ **/
883
+ votingFor: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Vec<u32>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
884
+ /**
885
+ * Voting reputation per account (can be negative, stored as i32)
886
+ * Positive values indicate successful voting history, negative indicates unsuccessful
887
+ **/
888
+ votingReputation: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<i32>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
889
+ /**
890
+ * Generic query
891
+ **/
892
+ [key: string]: QueryableStorageEntry<ApiType>;
893
+ };
894
+ rewardPool: {
895
+ /**
896
+ * The potential-sourced ("burnable") portion of the reward-pool balance.
897
+ *
898
+ * The pool commingles two kinds of native funds under a single account:
899
+ * potential-sourced inflow (daily potential burns + transaction/EVM fees), which
900
+ * the cycle boundary is meant to burn, and **core assets** (direct transfers,
901
+ * DID/CType fees, dust, slashes) which must be preserved (BC-104). A plain
902
+ * `free_balance` read cannot tell them apart, so this counter tracks the burnable
903
+ * portion explicitly: it is incremented on burnable inflow
904
+ * ([`Pallet::note_burnable_inflow`]), drained burnable-first on outflow
905
+ * ([`Pallet::consume_burnable`]), and consumed by the cycle burn in
906
+ * `pallet_potential::new_cycle`. Funds not recorded here — including transfers the
907
+ * pool cannot observe — default to core and are never burned.
908
+ *
909
+ * Invariant: `BurnablePoolBalance <= free_balance(pool) - GenesisRewardPoolBalance`
910
+ * under normal operation; the cycle burn additionally clamps the physical withdrawal
911
+ * to the surplus so accounting drift can never burn below the genesis floor, and it
912
+ * consumes the full tracker (not just the clamped amount) so no unbacked remainder
913
+ * survives the boundary.
914
+ **/
915
+ burnablePoolBalance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
916
+ /**
917
+ * Underlying ERC721 tokens currently claimed by a fractional-NFT collection, keyed by
918
+ * `(contract address, token id)`.
919
+ *
920
+ * Exists so one real NFT can back at most one collection. Two collections claiming the
921
+ * same `(address, token_id)` would let whoever unlocked first take both the payout **and**
922
+ * the physical ERC721 via the unlock callback, while the second unlock failed on its EVM
923
+ * call and rolled back — burning the loser's fractional NFTs for nothing (BC-493).
924
+ *
925
+ * Written by [`Pallet::record_nft_deposit`] and cleared by
926
+ * [`unlock`](crate::unlock::RewardPoolUnlockHandler::unlock) once the token leaves the
927
+ * pool, so a withdrawn NFT can be deposited again later.
928
+ **/
929
+ depositedNfts: AugmentedQuery<ApiType, (arg1: H160 | string | Uint8Array, arg2: U256 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [H160, U256]> & QueryableStorageEntry<ApiType, [H160, U256]>;
930
+ /**
931
+ * Share of each burnable inflow reserved for the cycle-boundary burn (recycle).
932
+ *
933
+ * The complement `(1 − RecycleShare)` flows into [`UnlockFundBalance`] for unlock
934
+ * payouts. Adjustable via `set_recycle_share`; changes affect only future inflows.
935
+ * Default: 90%.
936
+ **/
937
+ recycleShare: AugmentedQuery<ApiType, () => Observable<Permill>, []> & QueryableStorageEntry<ApiType, []>;
938
+ /**
939
+ * The sub-bucket of [`BurnablePoolBalance`] available for fNFT unlock payouts.
940
+ *
941
+ * Invariant: `UnlockFundBalance <= BurnablePoolBalance`. Each burnable inflow is
942
+ * split by [`RecycleShare`]: the recycle portion (`ρ · x`) stays in the burnable
943
+ * tracker for the cycle-boundary burn, while the unlock portion
944
+ * (`(1 − ρ) · x`, rounding dust favoring recycle) is added here. At the cycle
945
+ * boundary `pallet_potential::new_cycle` consumes the full burnable tracker via
946
+ * [`consume_burnable`], whose re-clamp zeroes this fund alongside it — no leftover
947
+ * unlock credit survives the boundary.
948
+ **/
949
+ unlockFundBalance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
950
+ /**
951
+ * Storage for tracking daily NFT submissions per account (account, day_index, count)
952
+ **/
953
+ userDailyNftSubmissions: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<ITuple<[u32, u32]>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
954
+ /**
955
+ * Storage for tracking number of NFTs submitted to reward pool per account
956
+ **/
957
+ userSubmittedNftsCount: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<u32>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
958
+ userUnlockedNfts: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<BTreeSet<u32>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
959
+ /**
960
+ * Generic query
961
+ **/
962
+ [key: string]: QueryableStorageEntry<ApiType>;
963
+ };
964
+ runtimeParams: {
965
+ governance: AugmentedQuery<ApiType, () => Observable<Option<PalletRuntimeParamsGovernanceParams>>, []> & QueryableStorageEntry<ApiType, []>;
966
+ rewards: AugmentedQuery<ApiType, () => Observable<Option<PalletRuntimeParamsRewardParams>>, []> & QueryableStorageEntry<ApiType, []>;
967
+ safeMode: AugmentedQuery<ApiType, () => Observable<Option<PalletRuntimeParamsSafeModeParams>>, []> & QueryableStorageEntry<ApiType, []>;
968
+ timing: AugmentedQuery<ApiType, () => Observable<PalletRuntimeParamsTimingParams>, []> & QueryableStorageEntry<ApiType, []>;
969
+ /**
970
+ * Generic query
971
+ **/
972
+ [key: string]: QueryableStorageEntry<ApiType>;
973
+ };
974
+ safeMode: {
975
+ /**
976
+ * Holds the reserve that was taken from an account at a specific block number.
977
+ *
978
+ * This helps governance to have an overview of outstanding deposits that should be returned or
979
+ * slashed.
980
+ **/
981
+ deposits: AugmentedQuery<ApiType, (arg1: AccountId20 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [AccountId20, u32]> & QueryableStorageEntry<ApiType, [AccountId20, u32]>;
982
+ /**
983
+ * Contains the last block number that the safe-mode will remain entered in.
984
+ *
985
+ * Set to `None` when safe-mode is exited.
986
+ *
987
+ * Safe-mode is automatically exited when the current block number exceeds this value.
988
+ **/
989
+ enteredUntil: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
990
+ /**
991
+ * Generic query
992
+ **/
993
+ [key: string]: QueryableStorageEntry<ApiType>;
994
+ };
995
+ scheduler: {
996
+ /**
997
+ * Items to be executed, indexed by the block number that they should be executed on.
998
+ **/
999
+ agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1000
+ /**
1001
+ * Block number at which the agenda began incomplete execution.
1002
+ **/
1003
+ incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1004
+ /**
1005
+ * Lookup from a name to the block number and index of the task.
1006
+ *
1007
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
1008
+ * identities.
1009
+ **/
1010
+ lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
1011
+ /**
1012
+ * Retry configurations for items to be executed, indexed by task address.
1013
+ **/
1014
+ retries: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletSchedulerRetryConfig>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
1015
+ /**
1016
+ * Generic query
1017
+ **/
1018
+ [key: string]: QueryableStorageEntry<ApiType>;
1019
+ };
1020
+ session: {
1021
+ /**
1022
+ * Current index of the session.
1023
+ **/
1024
+ currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1025
+ /**
1026
+ * Indices of disabled validators.
1027
+ *
1028
+ * The vec is always kept sorted so that we can find whether a given validator is
1029
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
1030
+ * a new set of identities.
1031
+ **/
1032
+ disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, Perbill]>>>, []> & QueryableStorageEntry<ApiType, []>;
1033
+ /**
1034
+ * Accounts whose keys were set via `SessionInterface` (external path) without
1035
+ * incrementing the consumer reference or placing a key deposit. `do_purge_keys`
1036
+ * only decrements consumers for accounts that were registered through the local
1037
+ * session pallet.
1038
+ **/
1039
+ externallySetKeys: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<Null>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
1040
+ /**
1041
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
1042
+ **/
1043
+ keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId20>>, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]> & QueryableStorageEntry<ApiType, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>;
1044
+ /**
1045
+ * The next session keys for a validator.
1046
+ **/
1047
+ nextKeys: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<TotochainRuntimeSessionKeys>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
1048
+ /**
1049
+ * True if the underlying economic identities or weighting behind the validators
1050
+ * has changed in the queued validator set.
1051
+ **/
1052
+ queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1053
+ /**
1054
+ * The queued keys for the next session. When the next session begins, these keys
1055
+ * will be used to determine the validator's session keys.
1056
+ **/
1057
+ queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId20, TotochainRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
1058
+ /**
1059
+ * The current set of validators.
1060
+ **/
1061
+ validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId20>>, []> & QueryableStorageEntry<ApiType, []>;
1062
+ /**
1063
+ * Generic query
1064
+ **/
1065
+ [key: string]: QueryableStorageEntry<ApiType>;
1066
+ };
1067
+ system: {
1068
+ /**
1069
+ * The full account information for a particular account ID.
1070
+ **/
1071
+ account: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
1072
+ /**
1073
+ * `Some` if a code upgrade has been authorized.
1074
+ **/
1075
+ authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []> & QueryableStorageEntry<ApiType, []>;
1076
+ /**
1077
+ * Map of block numbers to block hashes.
1078
+ **/
1079
+ blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1080
+ /**
1081
+ * Total size (in bytes) of the current block.
1082
+ *
1083
+ * Tracks the size of the header and all extrinsics.
1084
+ **/
1085
+ blockSize: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1086
+ /**
1087
+ * Number of blocks till the pending code upgrade is applied.
1088
+ **/
1089
+ blocksTillUpgrade: AugmentedQuery<ApiType, () => Observable<Option<u8>>, []> & QueryableStorageEntry<ApiType, []>;
1090
+ /**
1091
+ * The current weight for the block.
1092
+ **/
1093
+ blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
1094
+ /**
1095
+ * Digest of the current block, also part of the block header.
1096
+ **/
1097
+ digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []> & QueryableStorageEntry<ApiType, []>;
1098
+ /**
1099
+ * The number of events in the `Events<T>` list.
1100
+ **/
1101
+ eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1102
+ /**
1103
+ * Events deposited for the current block.
1104
+ *
1105
+ * NOTE: The item is unbound and should therefore never be read on chain.
1106
+ * It could otherwise inflate the PoV size of a block.
1107
+ *
1108
+ * Events have a large in-memory size. Box the events to not go out-of-memory
1109
+ * just in case someone still reads them from within the runtime.
1110
+ **/
1111
+ events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;
1112
+ /**
1113
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
1114
+ * of events in the `<Events<T>>` list.
1115
+ *
1116
+ * All topic vectors have deterministic storage locations depending on the topic. This
1117
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
1118
+ * in case of changes fetch the list of events of interest.
1119
+ *
1120
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
1121
+ * the `EventIndex` then in case if the topic has the same contents on the next block
1122
+ * no notification will be triggered thus the event might be lost.
1123
+ **/
1124
+ eventTopics: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1125
+ /**
1126
+ * The execution phase of the block.
1127
+ **/
1128
+ executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []> & QueryableStorageEntry<ApiType, []>;
1129
+ /**
1130
+ * Total extrinsics count for the current block.
1131
+ **/
1132
+ extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1133
+ /**
1134
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
1135
+ **/
1136
+ extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1137
+ /**
1138
+ * The weight reclaimed for the extrinsic.
1139
+ *
1140
+ * This information is available until the end of the extrinsic execution.
1141
+ * More precisely this information is removed in `note_applied_extrinsic`.
1142
+ *
1143
+ * Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
1144
+ * reduction.
1145
+ **/
1146
+ extrinsicWeightReclaimed: AugmentedQuery<ApiType, () => Observable<SpWeightsWeightV2Weight>, []> & QueryableStorageEntry<ApiType, []>;
1147
+ /**
1148
+ * Whether all inherents have been applied.
1149
+ **/
1150
+ inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1151
+ /**
1152
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
1153
+ **/
1154
+ lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>, []> & QueryableStorageEntry<ApiType, []>;
1155
+ /**
1156
+ * The current block number being processed. Set by `execute_block`.
1157
+ **/
1158
+ number: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1159
+ /**
1160
+ * Hash of the previous block.
1161
+ **/
1162
+ parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
1163
+ /**
1164
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
1165
+ * (default) if not.
1166
+ **/
1167
+ upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1168
+ /**
1169
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
1170
+ **/
1171
+ upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1172
+ /**
1173
+ * Generic query
1174
+ **/
1175
+ [key: string]: QueryableStorageEntry<ApiType>;
1176
+ };
1177
+ techCommitteeManager: {
1178
+ candidates: AugmentedQuery<ApiType, () => Observable<Vec<AccountId20>>, []> & QueryableStorageEntry<ApiType, []>;
1179
+ selectedCandidates: AugmentedQuery<ApiType, () => Observable<Vec<AccountId20>>, []> & QueryableStorageEntry<ApiType, []>;
1180
+ /**
1181
+ * Generic query
1182
+ **/
1183
+ [key: string]: QueryableStorageEntry<ApiType>;
1184
+ };
1185
+ technicalCommittee: {
1186
+ /**
1187
+ * Consideration cost created for publishing and storing a proposal.
1188
+ *
1189
+ * Determined by [Config::Consideration] and may be not present for certain proposals (e.g. if
1190
+ * the proposal count at the time of creation was below threshold N).
1191
+ **/
1192
+ costOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<ITuple<[AccountId20, Null]>>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1193
+ /**
1194
+ * The current members of the collective. This is stored sorted (just by value).
1195
+ **/
1196
+ members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId20>>, []> & QueryableStorageEntry<ApiType, []>;
1197
+ /**
1198
+ * The prime member that helps determine the default vote behavior in case of abstentions.
1199
+ **/
1200
+ prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId20>>, []> & QueryableStorageEntry<ApiType, []>;
1201
+ /**
1202
+ * Proposals so far.
1203
+ **/
1204
+ proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1205
+ /**
1206
+ * Actual proposal for a given hash, if it's current.
1207
+ **/
1208
+ proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1209
+ /**
1210
+ * The hashes of the active proposals.
1211
+ **/
1212
+ proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
1213
+ /**
1214
+ * Votes on a given proposal, if it is ongoing.
1215
+ **/
1216
+ voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1217
+ /**
1218
+ * Generic query
1219
+ **/
1220
+ [key: string]: QueryableStorageEntry<ApiType>;
1221
+ };
1222
+ timestamp: {
1223
+ /**
1224
+ * Whether the timestamp has been updated in this block.
1225
+ *
1226
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
1227
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
1228
+ **/
1229
+ didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1230
+ /**
1231
+ * The current time for the current block.
1232
+ **/
1233
+ now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
1234
+ /**
1235
+ * Generic query
1236
+ **/
1237
+ [key: string]: QueryableStorageEntry<ApiType>;
1238
+ };
1239
+ transactionPayment: {
1240
+ nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1241
+ storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
1242
+ /**
1243
+ * The `OnChargeTransaction` stores the withdrawn tx fee here.
1244
+ *
1245
+ * Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate.
1246
+ **/
1247
+ txPaymentCredit: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
1248
+ /**
1249
+ * Generic query
1250
+ **/
1251
+ [key: string]: QueryableStorageEntry<ApiType>;
1252
+ };
1253
+ txPause: {
1254
+ /**
1255
+ * The set of calls that are explicitly paused.
1256
+ **/
1257
+ pausedCalls: AugmentedQuery<ApiType, (arg: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<Null>>, [ITuple<[Bytes, Bytes]>]> & QueryableStorageEntry<ApiType, [ITuple<[Bytes, Bytes]>]>;
1258
+ /**
1259
+ * Generic query
1260
+ **/
1261
+ [key: string]: QueryableStorageEntry<ApiType>;
1262
+ };
1263
+ uniques: {
1264
+ /**
1265
+ * The items held by any given account; set out this way so that items owned by a single
1266
+ * account can be enumerated.
1267
+ **/
1268
+ account: AugmentedQuery<ApiType, (arg1: AccountId20 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [AccountId20, u32, u32]> & QueryableStorageEntry<ApiType, [AccountId20, u32, u32]>;
1269
+ /**
1270
+ * The items in existence and their ownership details.
1271
+ **/
1272
+ asset: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesItemDetails>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
1273
+ /**
1274
+ * Attributes of a collection.
1275
+ **/
1276
+ attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, u128]>>>, [u32, Option<u32>, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, Bytes]>;
1277
+ /**
1278
+ * Details of a collection.
1279
+ **/
1280
+ class: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesCollectionDetails>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1281
+ /**
1282
+ * The collections owned by any given account; set out this way so that collections owned by
1283
+ * a single account can be enumerated.
1284
+ **/
1285
+ classAccount: AugmentedQuery<ApiType, (arg1: AccountId20 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [AccountId20, u32]> & QueryableStorageEntry<ApiType, [AccountId20, u32]>;
1286
+ /**
1287
+ * Metadata of a collection.
1288
+ **/
1289
+ classMetadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesCollectionMetadata>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1290
+ /**
1291
+ * Keeps track of the number of items a collection might have.
1292
+ **/
1293
+ collectionMaxSupply: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1294
+ /**
1295
+ * Metadata of an item.
1296
+ **/
1297
+ instanceMetadataOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesItemMetadata>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
1298
+ /**
1299
+ * Price of an asset instance.
1300
+ **/
1301
+ itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId20>]>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
1302
+ /**
1303
+ * The collection, if any, of which an account is willing to take ownership.
1304
+ **/
1305
+ ownershipAcceptance: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<u32>>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
1306
+ /**
1307
+ * Generic query
1308
+ **/
1309
+ [key: string]: QueryableStorageEntry<ApiType>;
1310
+ };
1311
+ validatorManager: {
1312
+ /**
1313
+ * Counter for the related counted storage map
1314
+ **/
1315
+ counterForReputationPenalties: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1316
+ offenceValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId20, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
1317
+ offlineValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId20, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
1318
+ /**
1319
+ * Accumulated reputation penalties per validator account.
1320
+ * Incremented on each offence, decayed each session during maintenance.
1321
+ * Removed when penalty reaches 0 to avoid unbounded map growth.
1322
+ *
1323
+ * `CountedStorageMap` so `count()` is O(1) and can be used to charge the
1324
+ * actual decay weight on session boundaries instead of a fixed upper bound.
1325
+ **/
1326
+ reputationPenalties: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<u32>, [AccountId20]> & QueryableStorageEntry<ApiType, [AccountId20]>;
1327
+ selectedValidators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId20>>, []> & QueryableStorageEntry<ApiType, []>;
1328
+ validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId20>>, []> & QueryableStorageEntry<ApiType, []>;
1329
+ /**
1330
+ * Generic query
1331
+ **/
1332
+ [key: string]: QueryableStorageEntry<ApiType>;
1333
+ };
1334
+ whitelist: {
1335
+ whitelistedCall: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Null>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1336
+ /**
1337
+ * Generic query
1338
+ **/
1339
+ [key: string]: QueryableStorageEntry<ApiType>;
1340
+ };
1341
+ } // AugmentedQueries
1342
+ } // declare module