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