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