@polkadot/api-augment 7.0.3-8 → 7.0.3-9

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 (63) hide show
  1. package/base.cjs +5 -0
  2. package/base.d.ts +2 -0
  3. package/{augment/index.js → base.js} +1 -7
  4. package/bundle.cjs +1 -1
  5. package/bundle.d.ts +1 -1
  6. package/bundle.js +1 -1
  7. package/{augment → kusama}/consts.cjs +0 -0
  8. package/kusama/consts.d.ts +892 -0
  9. package/{augment → kusama}/consts.js +0 -0
  10. package/{augment → kusama}/errors.cjs +0 -0
  11. package/kusama/errors.d.ts +1855 -0
  12. package/{augment → kusama}/errors.js +0 -0
  13. package/{augment → kusama}/events.cjs +0 -0
  14. package/kusama/events.d.ts +1278 -0
  15. package/{augment → kusama}/events.js +0 -0
  16. package/{augment → kusama}/index.cjs +1 -3
  17. package/{augment → kusama}/index.d.ts +1 -2
  18. package/kusama/index.js +8 -0
  19. package/{augment → kusama}/query.cjs +0 -0
  20. package/kusama/query.d.ts +1913 -0
  21. package/{augment → kusama}/query.js +0 -0
  22. package/{augment → kusama}/tx.cjs +0 -0
  23. package/kusama/tx.d.ts +4877 -0
  24. package/{augment → kusama}/tx.js +0 -0
  25. package/package.json +100 -35
  26. package/packageInfo.cjs +1 -1
  27. package/packageInfo.js +1 -1
  28. package/polkadot/consts.cjs +1 -0
  29. package/polkadot/consts.d.ts +764 -0
  30. package/polkadot/consts.js +1 -0
  31. package/polkadot/errors.cjs +1 -0
  32. package/polkadot/errors.d.ts +1634 -0
  33. package/polkadot/errors.js +1 -0
  34. package/polkadot/events.cjs +1 -0
  35. package/polkadot/events.d.ts +1126 -0
  36. package/polkadot/events.js +1 -0
  37. package/polkadot/index.cjs +13 -0
  38. package/polkadot/index.d.ts +6 -0
  39. package/polkadot/index.js +8 -0
  40. package/polkadot/query.cjs +1 -0
  41. package/polkadot/query.d.ts +1758 -0
  42. package/polkadot/query.js +1 -0
  43. package/polkadot/tx.cjs +1 -0
  44. package/polkadot/tx.d.ts +4275 -0
  45. package/polkadot/tx.js +1 -0
  46. package/substrate/consts.cjs +1 -0
  47. package/{augment → substrate}/consts.d.ts +0 -0
  48. package/substrate/consts.js +1 -0
  49. package/substrate/errors.cjs +1 -0
  50. package/{augment → substrate}/errors.d.ts +0 -0
  51. package/substrate/errors.js +1 -0
  52. package/substrate/events.cjs +1 -0
  53. package/{augment → substrate}/events.d.ts +0 -0
  54. package/substrate/events.js +1 -0
  55. package/substrate/index.cjs +13 -0
  56. package/substrate/index.d.ts +6 -0
  57. package/substrate/index.js +8 -0
  58. package/substrate/query.cjs +1 -0
  59. package/{augment → substrate}/query.d.ts +0 -0
  60. package/substrate/query.js +1 -0
  61. package/substrate/tx.cjs +1 -0
  62. package/{augment → substrate}/tx.d.ts +0 -0
  63. package/substrate/tx.js +1 -0
@@ -0,0 +1,1758 @@
1
+ import type { ApiTypes } from '@polkadot/api-base/types';
2
+ import type { Data } from '@polkadot/types';
3
+ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
4
+ import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
+ import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
+ import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
+ import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1SessionInfo, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
+ import type { Observable } from '@polkadot/types/types';
9
+ declare module '@polkadot/api-base/types/storage' {
10
+ interface AugmentedQueries<ApiType extends ApiTypes> {
11
+ auctions: {
12
+ /**
13
+ * Number of auctions started so far.
14
+ **/
15
+ auctionCounter: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
16
+ /**
17
+ * Information relating to the current auction, if there is one.
18
+ *
19
+ * The first item in the tuple is the lease period index that the first of the four
20
+ * contiguous lease periods on auction is for. The second is the block number when the
21
+ * auction will "begin to end", i.e. the first block of the Ending Period of the auction.
22
+ **/
23
+ auctionInfo: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
24
+ /**
25
+ * Amounts currently reserved in the accounts of the bidders currently winning
26
+ * (sub-)ranges.
27
+ **/
28
+ reservedAmounts: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<u128>>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
29
+ /**
30
+ * The winning bids for each of the 10 ranges at each sample in the final Ending Period of
31
+ * the current auction. The map's key is the 0-based index into the Sample Size. The
32
+ * first sample of the ending period is 0; the last is `Sample Size - 1`.
33
+ **/
34
+ winning: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<Option<ITuple<[AccountId32, u32, u128]>>>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
35
+ /**
36
+ * Generic query
37
+ **/
38
+ [key: string]: QueryableStorageEntry<ApiType>;
39
+ };
40
+ authorship: {
41
+ /**
42
+ * Author of current block.
43
+ **/
44
+ author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
45
+ /**
46
+ * Whether uncles were already set in this block.
47
+ **/
48
+ didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
49
+ /**
50
+ * Uncles
51
+ **/
52
+ uncles: AugmentedQuery<ApiType, () => Observable<Vec<PalletAuthorshipUncleEntryItem>>, []> & QueryableStorageEntry<ApiType, []>;
53
+ /**
54
+ * Generic query
55
+ **/
56
+ [key: string]: QueryableStorageEntry<ApiType>;
57
+ };
58
+ babe: {
59
+ /**
60
+ * Current epoch authorities.
61
+ **/
62
+ authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
63
+ /**
64
+ * This field should always be populated during block processing unless
65
+ * secondary plain slots are enabled (which don't contain a VRF output).
66
+ *
67
+ * It is set in `on_initialize`, before it will contain the value from the last block.
68
+ **/
69
+ authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []> & QueryableStorageEntry<ApiType, []>;
70
+ /**
71
+ * Current slot number.
72
+ **/
73
+ currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
74
+ /**
75
+ * The configuration for the current epoch. Should never be `None` as it is initialized in
76
+ * genesis.
77
+ **/
78
+ epochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, []> & QueryableStorageEntry<ApiType, []>;
79
+ /**
80
+ * Current epoch index.
81
+ **/
82
+ epochIndex: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
83
+ /**
84
+ * The block numbers when the last and current epoch have started, respectively `N-1` and
85
+ * `N`.
86
+ * NOTE: We track this is in order to annotate the block number when a given pool of
87
+ * entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
88
+ * slots, which may be skipped, the block numbers may not line up with the slot numbers.
89
+ **/
90
+ epochStart: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []> & QueryableStorageEntry<ApiType, []>;
91
+ /**
92
+ * The slot at which the first epoch actually started. This is 0
93
+ * until the first block of the chain.
94
+ **/
95
+ genesisSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
96
+ /**
97
+ * Temporary value (cleared at block finalization) which is `Some`
98
+ * if per-block initialization has already been called for current block.
99
+ **/
100
+ initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<U8aFixed>>>, []> & QueryableStorageEntry<ApiType, []>;
101
+ /**
102
+ * How late the current block is compared to its parent.
103
+ *
104
+ * This entry is populated as part of block execution and is cleaned up
105
+ * on block finalization. Querying this storage entry outside of block
106
+ * execution context should always yield zero.
107
+ **/
108
+ lateness: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
109
+ /**
110
+ * Next epoch authorities.
111
+ **/
112
+ nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
113
+ /**
114
+ * The configuration for the next epoch, `None` if the config will not change
115
+ * (you can fallback to `EpochConfig` instead in that case).
116
+ **/
117
+ nextEpochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, []> & QueryableStorageEntry<ApiType, []>;
118
+ /**
119
+ * Next epoch randomness.
120
+ **/
121
+ nextRandomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> & QueryableStorageEntry<ApiType, []>;
122
+ /**
123
+ * Pending epoch configuration change that will be applied when the next epoch is enacted.
124
+ **/
125
+ pendingEpochConfigChange: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeDigestsNextConfigDescriptor>>, []> & QueryableStorageEntry<ApiType, []>;
126
+ /**
127
+ * The epoch randomness for the *current* epoch.
128
+ *
129
+ * # Security
130
+ *
131
+ * This MUST NOT be used for gambling, as it can be influenced by a
132
+ * malicious validator in the short term. It MAY be used in many
133
+ * cryptographic protocols, however, so long as one remembers that this
134
+ * (like everything else on-chain) it is public. For example, it can be
135
+ * used where a number is needed that cannot have been chosen by an
136
+ * adversary, for purposes such as public-coin zero-knowledge proofs.
137
+ **/
138
+ randomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> & QueryableStorageEntry<ApiType, []>;
139
+ /**
140
+ * Randomness under construction.
141
+ *
142
+ * We make a trade-off between storage accesses and list length.
143
+ * We store the under-construction randomness in segments of up to
144
+ * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
145
+ *
146
+ * Once a segment reaches this length, we begin the next one.
147
+ * We reset all segments and return to `0` at the beginning of every
148
+ * epoch.
149
+ **/
150
+ segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
151
+ /**
152
+ * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
153
+ **/
154
+ underConstruction: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<U8aFixed>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
155
+ /**
156
+ * Generic query
157
+ **/
158
+ [key: string]: QueryableStorageEntry<ApiType>;
159
+ };
160
+ bagsList: {
161
+ /**
162
+ * Counter for the related counted storage map
163
+ **/
164
+ counterForListNodes: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
165
+ /**
166
+ * A bag stored in storage.
167
+ *
168
+ * Stores a `Bag` struct, which stores head and tail pointers to itself.
169
+ **/
170
+ listBags: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBagsListListBag>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
171
+ /**
172
+ * A single node, within some bag.
173
+ *
174
+ * Nodes store links forward and back within their respective bags.
175
+ **/
176
+ listNodes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletBagsListListNode>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
177
+ /**
178
+ * Generic query
179
+ **/
180
+ [key: string]: QueryableStorageEntry<ApiType>;
181
+ };
182
+ balances: {
183
+ /**
184
+ * The balance of an account.
185
+ *
186
+ * NOTE: This is only used in the case that this pallet is used to store balances.
187
+ **/
188
+ account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
189
+ /**
190
+ * Any liquidity locks on some account balances.
191
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
192
+ **/
193
+ locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
194
+ /**
195
+ * Named reserves on some account balances.
196
+ **/
197
+ reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
198
+ /**
199
+ * Storage version of the pallet.
200
+ *
201
+ * This is set to v2.0.0 for new networks.
202
+ **/
203
+ storageVersion: AugmentedQuery<ApiType, () => Observable<PalletBalancesReleases>, []> & QueryableStorageEntry<ApiType, []>;
204
+ /**
205
+ * The total units issued in the system.
206
+ **/
207
+ totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
208
+ /**
209
+ * Generic query
210
+ **/
211
+ [key: string]: QueryableStorageEntry<ApiType>;
212
+ };
213
+ bounties: {
214
+ /**
215
+ * Bounties that have been made.
216
+ **/
217
+ bounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletBountiesBounty>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
218
+ /**
219
+ * Bounty indices that have been approved but not yet funded.
220
+ **/
221
+ bountyApprovals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
222
+ /**
223
+ * Number of bounty proposals that have been made.
224
+ **/
225
+ bountyCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
226
+ /**
227
+ * The description of each bounty.
228
+ **/
229
+ bountyDescriptions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
230
+ /**
231
+ * Generic query
232
+ **/
233
+ [key: string]: QueryableStorageEntry<ApiType>;
234
+ };
235
+ claims: {
236
+ claims: AugmentedQuery<ApiType, (arg: EthereumAddress | string | Uint8Array) => Observable<Option<u128>>, [EthereumAddress]> & QueryableStorageEntry<ApiType, [EthereumAddress]>;
237
+ /**
238
+ * Pre-claimed Ethereum accounts, by the Account ID that they are claimed to.
239
+ **/
240
+ preclaims: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<EthereumAddress>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
241
+ /**
242
+ * The statement kind that must be signed, if any.
243
+ **/
244
+ signing: AugmentedQuery<ApiType, (arg: EthereumAddress | string | Uint8Array) => Observable<Option<PolkadotRuntimeCommonClaimsStatementKind>>, [EthereumAddress]> & QueryableStorageEntry<ApiType, [EthereumAddress]>;
245
+ total: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
246
+ /**
247
+ * Vesting schedule for a claim.
248
+ * First balance is the total amount that should be held for vesting.
249
+ * Second balance is how much should be unlocked per block.
250
+ * The block number is when the vesting should start.
251
+ **/
252
+ vesting: AugmentedQuery<ApiType, (arg: EthereumAddress | string | Uint8Array) => Observable<Option<ITuple<[u128, u128, u32]>>>, [EthereumAddress]> & QueryableStorageEntry<ApiType, [EthereumAddress]>;
253
+ /**
254
+ * Generic query
255
+ **/
256
+ [key: string]: QueryableStorageEntry<ApiType>;
257
+ };
258
+ configuration: {
259
+ /**
260
+ * The active configuration for the current session.
261
+ **/
262
+ activeConfig: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsConfigurationHostConfiguration>, []> & QueryableStorageEntry<ApiType, []>;
263
+ /**
264
+ * Pending configuration (if any) for the next session.
265
+ **/
266
+ pendingConfig: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsConfigurationHostConfiguration>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
267
+ /**
268
+ * Generic query
269
+ **/
270
+ [key: string]: QueryableStorageEntry<ApiType>;
271
+ };
272
+ council: {
273
+ /**
274
+ * The current members of the collective. This is stored sorted (just by value).
275
+ **/
276
+ members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
277
+ /**
278
+ * The prime member that helps determine the default vote behavior in case of absentations.
279
+ **/
280
+ prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
281
+ /**
282
+ * Proposals so far.
283
+ **/
284
+ proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
285
+ /**
286
+ * Actual proposal for a given hash, if it's current.
287
+ **/
288
+ proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
289
+ /**
290
+ * The hashes of the active proposals.
291
+ **/
292
+ proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
293
+ /**
294
+ * Votes on a given proposal, if it is ongoing.
295
+ **/
296
+ voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
297
+ /**
298
+ * Generic query
299
+ **/
300
+ [key: string]: QueryableStorageEntry<ApiType>;
301
+ };
302
+ crowdloan: {
303
+ /**
304
+ * The number of auctions that have entered into their ending period so far.
305
+ **/
306
+ endingsCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
307
+ /**
308
+ * Info on all of the funds.
309
+ **/
310
+ funds: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeCommonCrowdloanFundInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
311
+ /**
312
+ * The funds that have had additional contributions during the last block. This is used
313
+ * in order to determine which funds should submit new or updated bids.
314
+ **/
315
+ newRaise: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
316
+ /**
317
+ * Tracker for the next available trie index
318
+ **/
319
+ nextTrieIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
320
+ /**
321
+ * Generic query
322
+ **/
323
+ [key: string]: QueryableStorageEntry<ApiType>;
324
+ };
325
+ democracy: {
326
+ /**
327
+ * A record of who vetoed what. Maps proposal hash to a possible existent block number
328
+ * (until when it may not be resubmitted) and who vetoed it.
329
+ **/
330
+ blacklist: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<ITuple<[u32, Vec<AccountId32>]>>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
331
+ /**
332
+ * Record of all proposals that have been subject to emergency cancellation.
333
+ **/
334
+ cancellations: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<bool>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
335
+ /**
336
+ * Those who have locked a deposit.
337
+ *
338
+ * TWOX-NOTE: Safe, as increasing integer keys are safe.
339
+ **/
340
+ depositOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[Vec<AccountId32>, u128]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
341
+ /**
342
+ * True if the last referendum tabled was submitted externally. False if it was a public
343
+ * proposal.
344
+ **/
345
+ lastTabledWasExternal: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
346
+ /**
347
+ * Accounts for which there are locks in action which may be removed at some point in the
348
+ * future. The value is the block number at which the lock expires and may be removed.
349
+ *
350
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
351
+ **/
352
+ locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
353
+ /**
354
+ * The lowest referendum index representing an unbaked referendum. Equal to
355
+ * `ReferendumCount` if there isn't a unbaked referendum.
356
+ **/
357
+ lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
358
+ /**
359
+ * The referendum to be tabled whenever it would be valid to table an external proposal.
360
+ * This happens when a referendum needs to be tabled and one of two conditions are met:
361
+ * - `LastTabledWasExternal` is `false`; or
362
+ * - `PublicProps` is empty.
363
+ **/
364
+ nextExternal: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[H256, PalletDemocracyVoteThreshold]>>>, []> & QueryableStorageEntry<ApiType, []>;
365
+ /**
366
+ * Map of hashes to the proposal preimage, along with who registered it and their deposit.
367
+ * The block number is the block at which it was deposited.
368
+ **/
369
+ preimages: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletDemocracyPreimageStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
370
+ /**
371
+ * The number of (public) proposals that have been made so far.
372
+ **/
373
+ publicPropCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
374
+ /**
375
+ * The public proposals. Unsorted. The second item is the proposal's hash.
376
+ **/
377
+ publicProps: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, H256, AccountId32]>>>, []> & QueryableStorageEntry<ApiType, []>;
378
+ /**
379
+ * The next free referendum index, aka the number of referenda started so far.
380
+ **/
381
+ referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
382
+ /**
383
+ * Information concerning any given referendum.
384
+ *
385
+ * TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
386
+ **/
387
+ referendumInfoOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletDemocracyReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
388
+ /**
389
+ * Storage version of the pallet.
390
+ *
391
+ * New networks start with last version.
392
+ **/
393
+ storageVersion: AugmentedQuery<ApiType, () => Observable<Option<PalletDemocracyReleases>>, []> & QueryableStorageEntry<ApiType, []>;
394
+ /**
395
+ * All votes for a particular voter. We store the balance for the number of votes that we
396
+ * have recorded. The second item is the total amount of delegations, that will be added.
397
+ *
398
+ * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
399
+ **/
400
+ votingOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletDemocracyVoteVoting>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
401
+ /**
402
+ * Generic query
403
+ **/
404
+ [key: string]: QueryableStorageEntry<ApiType>;
405
+ };
406
+ dmp: {
407
+ /**
408
+ * A mapping that stores the downward message queue MQC head for each para.
409
+ *
410
+ * Each link in this chain has a form:
411
+ * `(prev_head, B, H(M))`, where
412
+ * - `prev_head`: is the previous head hash or zero if none.
413
+ * - `B`: is the relay-chain block number in which a message was appended.
414
+ * - `H(M)`: is the hash of the message being appended.
415
+ **/
416
+ downwardMessageQueueHeads: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
417
+ /**
418
+ * The downward messages addressed for a certain para.
419
+ **/
420
+ downwardMessageQueues: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundDownwardMessage>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
421
+ /**
422
+ * Generic query
423
+ **/
424
+ [key: string]: QueryableStorageEntry<ApiType>;
425
+ };
426
+ electionProviderMultiPhase: {
427
+ /**
428
+ * Current phase.
429
+ **/
430
+ currentPhase: AugmentedQuery<ApiType, () => Observable<PalletElectionProviderMultiPhasePhase>, []> & QueryableStorageEntry<ApiType, []>;
431
+ /**
432
+ * Desired number of targets to elect for this round.
433
+ *
434
+ * Only exists when [`Snapshot`] is present.
435
+ **/
436
+ desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
437
+ /**
438
+ * The minimum score that each 'untrusted' solution must attain in order to be considered
439
+ * feasible.
440
+ *
441
+ * Can be set via `set_minimum_untrusted_score`.
442
+ **/
443
+ minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<Vec<u128>>>, []> & QueryableStorageEntry<ApiType, []>;
444
+ /**
445
+ * Current best solution, signed or unsigned, queued to be returned upon `elect`.
446
+ **/
447
+ queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
448
+ /**
449
+ * Internal counter for the number of rounds.
450
+ *
451
+ * This is useful for de-duplication of transactions submitted to the pool, and general
452
+ * diagnostics of the pallet.
453
+ *
454
+ * This is merely incremented once per every time that an upstream `elect` is called.
455
+ **/
456
+ round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
457
+ /**
458
+ * A sorted, bounded set of `(score, index)`, where each `index` points to a value in
459
+ * `SignedSubmissions`.
460
+ *
461
+ * We never need to process more than a single signed submission at a time. Signed submissions
462
+ * can be quite large, so we're willing to pay the cost of multiple database accesses to access
463
+ * them one at a time instead of reading and decoding all of them at once.
464
+ **/
465
+ signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<BTreeMap<Vec<u128>, u32>>, []> & QueryableStorageEntry<ApiType, []>;
466
+ /**
467
+ * The next index to be assigned to an incoming signed submission.
468
+ *
469
+ * Every accepted submission is assigned a unique index; that index is bound to that particular
470
+ * submission for the duration of the election. On election finalization, the next index is
471
+ * reset to 0.
472
+ *
473
+ * We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its
474
+ * capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,
475
+ * because iteration is slow. Instead, we store the value here.
476
+ **/
477
+ signedSubmissionNextIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
478
+ /**
479
+ * Unchecked, signed solutions.
480
+ *
481
+ * Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while
482
+ * allowing us to keep only a single one in memory at a time.
483
+ *
484
+ * Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
485
+ * affect; we shouldn't need a cryptographically secure hasher.
486
+ **/
487
+ signedSubmissionsMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletElectionProviderMultiPhaseSignedSignedSubmission>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
488
+ /**
489
+ * Snapshot data of the round.
490
+ *
491
+ * This is created at the beginning of the signed phase and cleared upon calling `elect`.
492
+ **/
493
+ snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
494
+ /**
495
+ * The metadata of the [`RoundSnapshot`]
496
+ *
497
+ * Only exists when [`Snapshot`] is present.
498
+ **/
499
+ snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
500
+ /**
501
+ * Generic query
502
+ **/
503
+ [key: string]: QueryableStorageEntry<ApiType>;
504
+ };
505
+ grandpa: {
506
+ /**
507
+ * The number of changes (both in terms of keys and underlying economic responsibilities)
508
+ * in the "set" of Grandpa validators from genesis.
509
+ **/
510
+ currentSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
511
+ /**
512
+ * next block number where we can force a change.
513
+ **/
514
+ nextForced: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
515
+ /**
516
+ * Pending change: (signaled at, scheduled change).
517
+ **/
518
+ pendingChange: AugmentedQuery<ApiType, () => Observable<Option<PalletGrandpaStoredPendingChange>>, []> & QueryableStorageEntry<ApiType, []>;
519
+ /**
520
+ * A mapping from grandpa set ID to the index of the *most recent* session for which its
521
+ * members were responsible.
522
+ *
523
+ * TWOX-NOTE: `SetId` is not under user control.
524
+ **/
525
+ setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
526
+ /**
527
+ * `true` if we are currently stalled.
528
+ **/
529
+ stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
530
+ /**
531
+ * State of the current authority set.
532
+ **/
533
+ state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []> & QueryableStorageEntry<ApiType, []>;
534
+ /**
535
+ * Generic query
536
+ **/
537
+ [key: string]: QueryableStorageEntry<ApiType>;
538
+ };
539
+ hrmp: {
540
+ /**
541
+ * This mapping tracks how many open channel requests were accepted by a given recipient para.
542
+ * Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with
543
+ * `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`.
544
+ **/
545
+ hrmpAcceptedChannelRequestCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
546
+ /**
547
+ * Storage for the messages for each channel.
548
+ * Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`.
549
+ **/
550
+ hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | {
551
+ sender?: any;
552
+ recipient?: any;
553
+ } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
554
+ /**
555
+ * Maintains a mapping that can be used to answer the question:
556
+ * What paras sent a message at the given block number for a given receiver.
557
+ * Invariants:
558
+ * - The inner `Vec<ParaId>` is never empty.
559
+ * - The inner `Vec<ParaId>` cannot store two same `ParaId`.
560
+ * - The outer vector is sorted ascending by block number and cannot store two items with the same
561
+ * block number.
562
+ **/
563
+ hrmpChannelDigests: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, Vec<u32>]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
564
+ /**
565
+ * HRMP channel data associated with each para.
566
+ * Invariant:
567
+ * - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session.
568
+ **/
569
+ hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | {
570
+ sender?: any;
571
+ recipient?: any;
572
+ } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
573
+ /**
574
+ * A set of pending HRMP close channel requests that are going to be closed during the session change.
575
+ * Used for checking if a given channel is registered for closure.
576
+ *
577
+ * The set is accompanied by a list for iteration.
578
+ *
579
+ * Invariant:
580
+ * - There are no channels that exists in list but not in the set and vice versa.
581
+ **/
582
+ hrmpCloseChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | {
583
+ sender?: any;
584
+ recipient?: any;
585
+ } | string | Uint8Array) => Observable<Option<Null>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
586
+ hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
587
+ hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
588
+ /**
589
+ * Ingress/egress indexes allow to find all the senders and receivers given the opposite
590
+ * side. I.e.
591
+ *
592
+ * (a) ingress index allows to find all the senders for a given recipient.
593
+ * (b) egress index allows to find all the recipients for a given sender.
594
+ *
595
+ * Invariants:
596
+ * - for each ingress index entry for `P` each item `I` in the index should present in `HrmpChannels`
597
+ * as `(I, P)`.
598
+ * - for each egress index entry for `P` each item `E` in the index should present in `HrmpChannels`
599
+ * as `(P, E)`.
600
+ * - there should be no other dangling channels in `HrmpChannels`.
601
+ * - the vectors are sorted.
602
+ **/
603
+ hrmpIngressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
604
+ /**
605
+ * This mapping tracks how many open channel requests are initiated by a given sender para.
606
+ * Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has `(X, _)`
607
+ * as the number of `HrmpOpenChannelRequestCount` for `X`.
608
+ **/
609
+ hrmpOpenChannelRequestCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
610
+ /**
611
+ * The set of pending HRMP open channel requests.
612
+ *
613
+ * The set is accompanied by a list for iteration.
614
+ *
615
+ * Invariant:
616
+ * - There are no channels that exists in list but not in the set and vice versa.
617
+ **/
618
+ hrmpOpenChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | {
619
+ sender?: any;
620
+ recipient?: any;
621
+ } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
622
+ hrmpOpenChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
623
+ /**
624
+ * The HRMP watermark associated with each para.
625
+ * Invariant:
626
+ * - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a session.
627
+ **/
628
+ hrmpWatermarks: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
629
+ /**
630
+ * Generic query
631
+ **/
632
+ [key: string]: QueryableStorageEntry<ApiType>;
633
+ };
634
+ identity: {
635
+ /**
636
+ * Information that is pertinent to identify the entity behind an account.
637
+ *
638
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
639
+ **/
640
+ identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityRegistration>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
641
+ /**
642
+ * The set of registrars. Not expected to get very big as can only be added through a
643
+ * special origin (likely a council motion).
644
+ *
645
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
646
+ **/
647
+ registrars: AugmentedQuery<ApiType, () => Observable<Vec<Option<PalletIdentityRegistrarInfo>>>, []> & QueryableStorageEntry<ApiType, []>;
648
+ /**
649
+ * Alternative "sub" identities of this account.
650
+ *
651
+ * The first item is the deposit, the second is a vector of the accounts.
652
+ *
653
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
654
+ **/
655
+ subsOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[u128, Vec<AccountId32>]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
656
+ /**
657
+ * The super-identity of an alternative "sub" identity together with its name, within that
658
+ * context. If the account is not some other account's sub-identity, then just `None`.
659
+ **/
660
+ superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
661
+ /**
662
+ * Generic query
663
+ **/
664
+ [key: string]: QueryableStorageEntry<ApiType>;
665
+ };
666
+ imOnline: {
667
+ /**
668
+ * For each session index, we keep a mapping of `ValidatorId<T>` to the
669
+ * number of blocks authored by the given authority.
670
+ **/
671
+ authoredBlocks: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<u32>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
672
+ /**
673
+ * The block number after which it's ok to send heartbeats in the current
674
+ * session.
675
+ *
676
+ * At the beginning of each session we set this to a value that should fall
677
+ * roughly in the middle of the session duration. The idea is to first wait for
678
+ * the validators to produce a block in the current session, so that the
679
+ * heartbeat later on will not be necessary.
680
+ *
681
+ * This value will only be used as a fallback if we fail to get a proper session
682
+ * progress estimate from `NextSessionRotation`, as those estimates should be
683
+ * more accurate then the value we calculate for `HeartbeatAfter`.
684
+ **/
685
+ heartbeatAfter: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
686
+ /**
687
+ * The current set of keys that may issue a heartbeat.
688
+ **/
689
+ keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
690
+ /**
691
+ * For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to
692
+ * `WrapperOpaque<BoundedOpaqueNetworkState>`.
693
+ **/
694
+ receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<WrapperOpaque<PalletImOnlineBoundedOpaqueNetworkState>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
695
+ /**
696
+ * Generic query
697
+ **/
698
+ [key: string]: QueryableStorageEntry<ApiType>;
699
+ };
700
+ indices: {
701
+ /**
702
+ * The lookup from index to account.
703
+ **/
704
+ accounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u128, bool]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
705
+ /**
706
+ * Generic query
707
+ **/
708
+ [key: string]: QueryableStorageEntry<ApiType>;
709
+ };
710
+ initializer: {
711
+ /**
712
+ * Buffered session changes along with the block number at which they should be applied.
713
+ *
714
+ * Typically this will be empty or one element long. Apart from that this item never hits
715
+ * the storage.
716
+ *
717
+ * However this is a `Vec` regardless to handle various edge cases that may occur at runtime
718
+ * upgrade boundaries or if governance intervenes.
719
+ **/
720
+ bufferedSessionChanges: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsInitializerBufferedSessionChange>>, []> & QueryableStorageEntry<ApiType, []>;
721
+ /**
722
+ * Whether the parachains modules have been initialized within this block.
723
+ *
724
+ * Semantically a `bool`, but this guarantees it should never hit the trie,
725
+ * as this is cleared in `on_finalize` and Frame optimizes `None` values to be empty values.
726
+ *
727
+ * As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one of
728
+ * them writes to the trie and one does not. This confusion makes `Option<()>` more suitable for
729
+ * the semantics of this variable.
730
+ **/
731
+ hasInitialized: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
732
+ /**
733
+ * Generic query
734
+ **/
735
+ [key: string]: QueryableStorageEntry<ApiType>;
736
+ };
737
+ multisig: {
738
+ calls: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[Bytes, AccountId32, u128]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
739
+ /**
740
+ * The set of open multisig operations.
741
+ **/
742
+ multisigs: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: U8aFixed | string | Uint8Array) => Observable<Option<PalletMultisigMultisig>>, [AccountId32, U8aFixed]> & QueryableStorageEntry<ApiType, [AccountId32, U8aFixed]>;
743
+ /**
744
+ * Generic query
745
+ **/
746
+ [key: string]: QueryableStorageEntry<ApiType>;
747
+ };
748
+ offences: {
749
+ /**
750
+ * A vector of reports of the same kind that happened at the same time slot.
751
+ **/
752
+ concurrentReportsIndex: AugmentedQuery<ApiType, (arg1: U8aFixed | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Vec<H256>>, [U8aFixed, Bytes]> & QueryableStorageEntry<ApiType, [U8aFixed, Bytes]>;
753
+ /**
754
+ * The primary structure that holds all offence records keyed by report identifiers.
755
+ **/
756
+ reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
757
+ /**
758
+ * Enumerates all reports of a kind along with the time they happened.
759
+ *
760
+ * All reports are sorted by the time of offence.
761
+ *
762
+ * Note that the actual type of this mapping is `Vec<u8>`, this is because values of
763
+ * different types are not supported at the moment so we are doing the manual serialization.
764
+ **/
765
+ reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
766
+ /**
767
+ * Generic query
768
+ **/
769
+ [key: string]: QueryableStorageEntry<ApiType>;
770
+ };
771
+ paraInclusion: {
772
+ /**
773
+ * The latest bitfield for each validator, referred to by their index in the validator set.
774
+ **/
775
+ availabilityBitfields: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
776
+ /**
777
+ * Candidates pending availability by `ParaId`.
778
+ **/
779
+ pendingAvailability: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
780
+ /**
781
+ * The commitments of candidates pending availability, by `ParaId`.
782
+ **/
783
+ pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV1CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
784
+ /**
785
+ * Generic query
786
+ **/
787
+ [key: string]: QueryableStorageEntry<ApiType>;
788
+ };
789
+ paraInherent: {
790
+ /**
791
+ * Whether the paras inherent was included within this block.
792
+ *
793
+ * The `Option<()>` is effectively a `bool`, but it never hits storage in the `None` variant
794
+ * due to the guarantees of FRAME's storage APIs.
795
+ *
796
+ * If this is `None` at the end of the block, we panic and render the block invalid.
797
+ **/
798
+ included: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
799
+ /**
800
+ * Scraped on chain data for extracting resolved disputes as well as backing votes.
801
+ **/
802
+ onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV1ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
803
+ /**
804
+ * Generic query
805
+ **/
806
+ [key: string]: QueryableStorageEntry<ApiType>;
807
+ };
808
+ paras: {
809
+ /**
810
+ * The actions to perform during the start of a specific session index.
811
+ **/
812
+ actionsQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
813
+ /**
814
+ * Validation code stored by its hash.
815
+ *
816
+ * This storage is consistent with [`FutureCodeHash`], [`CurrentCodeHash`] and
817
+ * [`PastCodeHash`].
818
+ **/
819
+ codeByHash: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
820
+ /**
821
+ * The number of reference on the validation code in [`CodeByHash`] storage.
822
+ **/
823
+ codeByHashRefs: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
824
+ /**
825
+ * The validation code hash of every live para.
826
+ *
827
+ * Corresponding code can be retrieved with [`CodeByHash`].
828
+ **/
829
+ currentCodeHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
830
+ /**
831
+ * The actual future code hash of a para.
832
+ *
833
+ * Corresponding code can be retrieved with [`CodeByHash`].
834
+ **/
835
+ futureCodeHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
836
+ /**
837
+ * The block number at which the planned code change is expected for a para.
838
+ * The change will be applied after the first parablock for this ID included which executes
839
+ * in the context of a relay chain block with a number >= `expected_at`.
840
+ **/
841
+ futureCodeUpgrades: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
842
+ /**
843
+ * The head-data of every registered para.
844
+ **/
845
+ heads: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
846
+ /**
847
+ * All parachains. Ordered ascending by `ParaId`. Parathreads are not included.
848
+ **/
849
+ parachains: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
850
+ /**
851
+ * The current lifecycle of a all known Para IDs.
852
+ **/
853
+ paraLifecycles: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasParaLifecycle>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
854
+ /**
855
+ * Actual past code hash, indicated by the para id as well as the block number at which it
856
+ * became outdated.
857
+ *
858
+ * Corresponding code can be retrieved with [`CodeByHash`].
859
+ **/
860
+ pastCodeHash: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<H256>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
861
+ /**
862
+ * Past code of parachains. The parachains themselves may not be registered anymore,
863
+ * but we also keep their code on-chain for the same amount of time as outdated code
864
+ * to keep it available for secondary checkers.
865
+ **/
866
+ pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
867
+ /**
868
+ * Which paras have past code that needs pruning and the relay-chain block at which the code was replaced.
869
+ * Note that this is the actual height of the included block, not the expected height at which the
870
+ * code upgrade would be applied, although they may be equal.
871
+ * This is to ensure the entire acceptance period is covered, not an offset acceptance period starting
872
+ * from the time at which the parachain perceives a code upgrade as having occurred.
873
+ * Multiple entries for a single para are permitted. Ordered ascending by block number.
874
+ **/
875
+ pastCodePruning: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
876
+ /**
877
+ * The list of all currently active PVF votes. Auxiliary to `PvfActiveVoteMap`.
878
+ **/
879
+ pvfActiveVoteList: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
880
+ /**
881
+ * All currently active PVF pre-checking votes.
882
+ *
883
+ * Invariant:
884
+ * - There are no PVF pre-checking votes that exists in list but not in the set and vice versa.
885
+ **/
886
+ pvfActiveVoteMap: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasPvfCheckActiveVoteState>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
887
+ /**
888
+ * Upcoming paras instantiation arguments.
889
+ *
890
+ * NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set
891
+ * to empty. Instead, the code will be saved into the storage right away via `CodeByHash`.
892
+ **/
893
+ upcomingParasGenesis: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasParaGenesisArgs>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
894
+ /**
895
+ * The list of upcoming code upgrades. Each item is a pair of which para performs a code
896
+ * upgrade and at which relay-chain block it is expected at.
897
+ *
898
+ * Ordered ascending by block number.
899
+ **/
900
+ upcomingUpgrades: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
901
+ /**
902
+ * The list of parachains that are awaiting for their upgrade restriction to cooldown.
903
+ *
904
+ * Ordered ascending by block number.
905
+ **/
906
+ upgradeCooldowns: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
907
+ /**
908
+ * This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade procedure.
909
+ *
910
+ * This value is absent when there are no upgrades scheduled or during the time the relay chain
911
+ * performs the checks. It is set at the first relay-chain block when the corresponding parachain
912
+ * can switch its upgrade function. As soon as the parachain's block is included, the value
913
+ * gets reset to `None`.
914
+ *
915
+ * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
916
+ * the format will require migration of parachains.
917
+ **/
918
+ upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV1UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
919
+ /**
920
+ * This is used by the relay-chain to communicate that there are restrictions for performing
921
+ * an upgrade for this parachain.
922
+ *
923
+ * This may be a because the parachain waits for the upgrade cooldown to expire. Another
924
+ * potential use case is when we want to perform some maintenance (such as storage migration)
925
+ * we could restrict upgrades to make the process simpler.
926
+ *
927
+ * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
928
+ * the format will require migration of parachains.
929
+ **/
930
+ upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV1UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
931
+ /**
932
+ * Generic query
933
+ **/
934
+ [key: string]: QueryableStorageEntry<ApiType>;
935
+ };
936
+ paraScheduler: {
937
+ /**
938
+ * One entry for each availability core. Entries are `None` if the core is not currently occupied. Can be
939
+ * temporarily `Some` if scheduled but not occupied.
940
+ * The i'th parachain belongs to the i'th core, with the remaining cores all being
941
+ * parathread-multiplexers.
942
+ *
943
+ * Bounded by the maximum of either of these two values:
944
+ * * The number of parachains and parathread multiplexers
945
+ * * The number of validators divided by `configuration.max_validators_per_core`.
946
+ **/
947
+ availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV1CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
948
+ /**
949
+ * An index used to ensure that only one claim on a parathread exists in the queue or is
950
+ * currently being handled by an occupied core.
951
+ *
952
+ * Bounded by the number of parathread cores and scheduling lookahead. Reasonably, 10 * 50 = 500.
953
+ **/
954
+ parathreadClaimIndex: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
955
+ /**
956
+ * A queue of upcoming claims and which core they should be mapped onto.
957
+ *
958
+ * The number of queued claims is bounded at the `scheduling_lookahead`
959
+ * multiplied by the number of parathread multiplexer cores. Reasonably, 10 * 50 = 500.
960
+ **/
961
+ parathreadQueue: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsSchedulerParathreadClaimQueue>, []> & QueryableStorageEntry<ApiType, []>;
962
+ /**
963
+ * Currently scheduled cores - free but up to be occupied.
964
+ *
965
+ * Bounded by the number of cores: one for each parachain and parathread multiplexer.
966
+ *
967
+ * The value contained here will not be valid after the end of a block. Runtime APIs should be used to determine scheduled cores/
968
+ * for the upcoming block.
969
+ **/
970
+ scheduled: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsSchedulerCoreAssignment>>, []> & QueryableStorageEntry<ApiType, []>;
971
+ /**
972
+ * The block number where the session start occurred. Used to track how many group rotations have occurred.
973
+ *
974
+ * Note that in the context of parachains modules the session change is signaled during
975
+ * the block and enacted at the end of the block (at the finalization stage, to be exact).
976
+ * Thus for all intents and purposes the effect of the session change is observed at the
977
+ * block following the session change, block number of which we save in this storage value.
978
+ **/
979
+ sessionStartBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
980
+ /**
981
+ * All the validator groups. One for each core. Indices are into `ActiveValidators` - not the
982
+ * broader set of Polkadot validators, but instead just the subset used for parachains during
983
+ * this session.
984
+ *
985
+ * Bound: The number of cores is the sum of the numbers of parachains and parathread multiplexers.
986
+ * Reasonably, 100-1000. The dominant factor is the number of validators: safe upper bound at 10k.
987
+ **/
988
+ validatorGroups: AugmentedQuery<ApiType, () => Observable<Vec<Vec<u32>>>, []> & QueryableStorageEntry<ApiType, []>;
989
+ /**
990
+ * Generic query
991
+ **/
992
+ [key: string]: QueryableStorageEntry<ApiType>;
993
+ };
994
+ paraSessionInfo: {
995
+ /**
996
+ * Assignment keys for the current session.
997
+ * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
998
+ * When in doubt, use `Sessions` API instead.
999
+ **/
1000
+ assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV1AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1001
+ /**
1002
+ * The earliest session for which previous session info is stored.
1003
+ **/
1004
+ earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1005
+ /**
1006
+ * Session information in a rolling window.
1007
+ * Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
1008
+ * Does not have any entries before the session index in the first session change notification.
1009
+ **/
1010
+ sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV1SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1011
+ /**
1012
+ * Generic query
1013
+ **/
1014
+ [key: string]: QueryableStorageEntry<ApiType>;
1015
+ };
1016
+ parasShared: {
1017
+ /**
1018
+ * All the validators actively participating in parachain consensus.
1019
+ * Indices are into the broader validator set.
1020
+ **/
1021
+ activeValidatorIndices: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1022
+ /**
1023
+ * The parachain attestation keys of the validators actively participating in parachain consensus.
1024
+ * This should be the same length as `ActiveValidatorIndices`.
1025
+ **/
1026
+ activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV0ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1027
+ /**
1028
+ * The current session index.
1029
+ **/
1030
+ currentSessionIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1031
+ /**
1032
+ * Generic query
1033
+ **/
1034
+ [key: string]: QueryableStorageEntry<ApiType>;
1035
+ };
1036
+ phragmenElection: {
1037
+ /**
1038
+ * The present candidate list. A current member or runner-up can never enter this vector
1039
+ * and is always implicitly assumed to be a candidate.
1040
+ *
1041
+ * Second element is the deposit.
1042
+ *
1043
+ * Invariant: Always sorted based on account id.
1044
+ **/
1045
+ candidates: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, u128]>>>, []> & QueryableStorageEntry<ApiType, []>;
1046
+ /**
1047
+ * The total number of vote rounds that have happened, excluding the upcoming one.
1048
+ **/
1049
+ electionRounds: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1050
+ /**
1051
+ * The current elected members.
1052
+ *
1053
+ * Invariant: Always sorted based on account id.
1054
+ **/
1055
+ members: AugmentedQuery<ApiType, () => Observable<Vec<PalletElectionsPhragmenSeatHolder>>, []> & QueryableStorageEntry<ApiType, []>;
1056
+ /**
1057
+ * The current reserved runners-up.
1058
+ *
1059
+ * Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the
1060
+ * last (i.e. _best_) runner-up will be replaced.
1061
+ **/
1062
+ runnersUp: AugmentedQuery<ApiType, () => Observable<Vec<PalletElectionsPhragmenSeatHolder>>, []> & QueryableStorageEntry<ApiType, []>;
1063
+ /**
1064
+ * Votes and locked stake of a particular voter.
1065
+ *
1066
+ * TWOX-NOTE: SAFE as `AccountId` is a crypto hash.
1067
+ **/
1068
+ voting: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletElectionsPhragmenVoter>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1069
+ /**
1070
+ * Generic query
1071
+ **/
1072
+ [key: string]: QueryableStorageEntry<ApiType>;
1073
+ };
1074
+ preimage: {
1075
+ /**
1076
+ * The preimages stored by this pallet.
1077
+ **/
1078
+ preimageFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1079
+ /**
1080
+ * The request status of a given hash.
1081
+ **/
1082
+ statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1083
+ /**
1084
+ * Generic query
1085
+ **/
1086
+ [key: string]: QueryableStorageEntry<ApiType>;
1087
+ };
1088
+ proxy: {
1089
+ /**
1090
+ * The announcements made by the proxy (key).
1091
+ **/
1092
+ announcements: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyAnnouncement>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1093
+ /**
1094
+ * The set of account proxies. Maps the account which has delegated to the accounts
1095
+ * which are being delegated to, together with the amount held on deposit.
1096
+ **/
1097
+ proxies: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyProxyDefinition>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1098
+ /**
1099
+ * Generic query
1100
+ **/
1101
+ [key: string]: QueryableStorageEntry<ApiType>;
1102
+ };
1103
+ registrar: {
1104
+ /**
1105
+ * The next free `ParaId`.
1106
+ **/
1107
+ nextFreeParaId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1108
+ /**
1109
+ * Amount held on deposit for each para and the original depositor.
1110
+ *
1111
+ * The given account ID is responsible for registering the code and initial head data, but may only do
1112
+ * so if it isn't yet registered. (After that, it's up to governance to do so.)
1113
+ **/
1114
+ paras: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeCommonParasRegistrarParaInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1115
+ /**
1116
+ * Pending swap operations.
1117
+ **/
1118
+ pendingSwap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1119
+ /**
1120
+ * Generic query
1121
+ **/
1122
+ [key: string]: QueryableStorageEntry<ApiType>;
1123
+ };
1124
+ scheduler: {
1125
+ /**
1126
+ * Items to be executed, indexed by the block number that they should be executed on.
1127
+ **/
1128
+ agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduledV3>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1129
+ /**
1130
+ * Lookup from identity to the block number and index of the task.
1131
+ **/
1132
+ lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
1133
+ /**
1134
+ * Storage version of the pallet.
1135
+ *
1136
+ * New networks start with last version.
1137
+ **/
1138
+ storageVersion: AugmentedQuery<ApiType, () => Observable<PalletSchedulerReleases>, []> & QueryableStorageEntry<ApiType, []>;
1139
+ /**
1140
+ * Generic query
1141
+ **/
1142
+ [key: string]: QueryableStorageEntry<ApiType>;
1143
+ };
1144
+ session: {
1145
+ /**
1146
+ * Current index of the session.
1147
+ **/
1148
+ currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1149
+ /**
1150
+ * Indices of disabled validators.
1151
+ *
1152
+ * The vec is always kept sorted so that we can find whether a given validator is
1153
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
1154
+ * a new set of identities.
1155
+ **/
1156
+ disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1157
+ /**
1158
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
1159
+ **/
1160
+ keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]> & QueryableStorageEntry<ApiType, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>;
1161
+ /**
1162
+ * The next session keys for a validator.
1163
+ **/
1164
+ nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolkadotRuntimeSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1165
+ /**
1166
+ * True if the underlying economic identities or weighting behind the validators
1167
+ * has changed in the queued validator set.
1168
+ **/
1169
+ queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1170
+ /**
1171
+ * The queued keys for the next session. When the next session begins, these keys
1172
+ * will be used to determine the validator's session keys.
1173
+ **/
1174
+ queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, PolkadotRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
1175
+ /**
1176
+ * The current set of validators.
1177
+ **/
1178
+ validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
1179
+ /**
1180
+ * Generic query
1181
+ **/
1182
+ [key: string]: QueryableStorageEntry<ApiType>;
1183
+ };
1184
+ slots: {
1185
+ /**
1186
+ * Amounts held on deposit for each (possibly future) leased parachain.
1187
+ *
1188
+ * The actual amount locked on its behalf by any account at any time is the maximum of the second values
1189
+ * of the items in this list whose first value is the account.
1190
+ *
1191
+ * The first item in the list is the amount locked for the current Lease Period. Following
1192
+ * items are for the subsequent lease periods.
1193
+ *
1194
+ * The default value (an empty list) implies that the parachain no longer exists (or never
1195
+ * existed) as far as this pallet is concerned.
1196
+ *
1197
+ * If a parachain doesn't exist *yet* but is scheduled to exist in the future, then it
1198
+ * will be left-padded with one or more `None`s to denote the fact that nothing is held on
1199
+ * deposit for the non-existent chain currently, but is held at some point in the future.
1200
+ *
1201
+ * It is illegal for a `None` value to trail in the list.
1202
+ **/
1203
+ leases: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<ITuple<[AccountId32, u128]>>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1204
+ /**
1205
+ * Generic query
1206
+ **/
1207
+ [key: string]: QueryableStorageEntry<ApiType>;
1208
+ };
1209
+ staking: {
1210
+ /**
1211
+ * The active era information, it holds index and start.
1212
+ *
1213
+ * The active era is the era being currently rewarded. Validator set of this era must be
1214
+ * equal to [`SessionInterface::validators`].
1215
+ **/
1216
+ activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
1217
+ /**
1218
+ * Map from all locked "stash" accounts to the controller account.
1219
+ **/
1220
+ bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1221
+ /**
1222
+ * A mapping from still-bonded eras to the first session index of that era.
1223
+ *
1224
+ * Must contains information for eras for the range:
1225
+ * `[active_era - bounding_duration; active_era]`
1226
+ **/
1227
+ bondedEras: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
1228
+ /**
1229
+ * The amount of currency given to reporters of a slash event which was
1230
+ * canceled by extraordinary circumstances (e.g. governance).
1231
+ **/
1232
+ canceledSlashPayout: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1233
+ /**
1234
+ * The threshold for when users can start calling `chill_other` for other validators /
1235
+ * nominators. The threshold is compared to the actual number of validators / nominators
1236
+ * (`CountFor*`) in the system compared to the configured max (`Max*Count`).
1237
+ **/
1238
+ chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
1239
+ /**
1240
+ * Counter for the related counted storage map
1241
+ **/
1242
+ counterForNominators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1243
+ /**
1244
+ * Counter for the related counted storage map
1245
+ **/
1246
+ counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1247
+ /**
1248
+ * The current era index.
1249
+ *
1250
+ * This is the latest planned era, depending on how the Session pallet queues the validator
1251
+ * set, it might be active or not.
1252
+ **/
1253
+ currentEra: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1254
+ /**
1255
+ * The last planned session scheduled by the session pallet.
1256
+ *
1257
+ * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
1258
+ **/
1259
+ currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1260
+ /**
1261
+ * The earliest era for which we have a pending, unapplied slash.
1262
+ **/
1263
+ earliestUnappliedSlash: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1264
+ /**
1265
+ * Rewards for the last `HISTORY_DEPTH` eras.
1266
+ * If reward hasn't been set or has been removed then 0 reward is returned.
1267
+ **/
1268
+ erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1269
+ /**
1270
+ * Exposure of validator at era.
1271
+ *
1272
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
1273
+ *
1274
+ * Is it removed after `HISTORY_DEPTH` eras.
1275
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
1276
+ **/
1277
+ erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1278
+ /**
1279
+ * Clipped Exposure of validator at era.
1280
+ *
1281
+ * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
1282
+ * `T::MaxNominatorRewardedPerValidator` biggest stakers.
1283
+ * (Note: the field `total` and `own` of the exposure remains unchanged).
1284
+ * This is used to limit the i/o cost for the nominator payout.
1285
+ *
1286
+ * This is keyed fist by the era index to allow bulk deletion and then the stash account.
1287
+ *
1288
+ * Is it removed after `HISTORY_DEPTH` eras.
1289
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
1290
+ **/
1291
+ erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1292
+ /**
1293
+ * The session index at which the era start for the last `HISTORY_DEPTH` eras.
1294
+ *
1295
+ * Note: This tracks the starting session (i.e. session index when era start being active)
1296
+ * for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
1297
+ **/
1298
+ erasStartSessionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1299
+ /**
1300
+ * The total amount staked for the last `HISTORY_DEPTH` eras.
1301
+ * If total hasn't been set or has been removed then 0 stake is returned.
1302
+ **/
1303
+ erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1304
+ /**
1305
+ * Similar to `ErasStakers`, this holds the preferences of validators.
1306
+ *
1307
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
1308
+ *
1309
+ * Is it removed after `HISTORY_DEPTH` eras.
1310
+ **/
1311
+ erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1312
+ /**
1313
+ * The total validator era payout for the last `HISTORY_DEPTH` eras.
1314
+ *
1315
+ * Eras that haven't finished yet or has been removed doesn't have reward.
1316
+ **/
1317
+ erasValidatorReward: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1318
+ /**
1319
+ * Mode of era forcing.
1320
+ **/
1321
+ forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingForcing>, []> & QueryableStorageEntry<ApiType, []>;
1322
+ /**
1323
+ * Number of eras to keep in history.
1324
+ *
1325
+ * Information is kept for eras in `[current_era - history_depth; current_era]`.
1326
+ *
1327
+ * Must be more than the number of eras delayed by session otherwise. I.e. active era must
1328
+ * always be in history. I.e. `active_era > current_era - history_depth` must be
1329
+ * guaranteed.
1330
+ **/
1331
+ historyDepth: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1332
+ /**
1333
+ * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
1334
+ * easy to initialize and the performance hit is minimal (we expect no more than four
1335
+ * invulnerables) and restricted to testnets.
1336
+ **/
1337
+ invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
1338
+ /**
1339
+ * Map from all (unlocked) "controller" accounts to the info regarding the staking.
1340
+ **/
1341
+ ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1342
+ /**
1343
+ * The maximum nominator count before we stop allowing new validators to join.
1344
+ *
1345
+ * When this value is not set, no limits are enforced.
1346
+ **/
1347
+ maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1348
+ /**
1349
+ * The maximum validator count before we stop allowing new validators to join.
1350
+ *
1351
+ * When this value is not set, no limits are enforced.
1352
+ **/
1353
+ maxValidatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1354
+ /**
1355
+ * The minimum amount of commission that validators can set.
1356
+ *
1357
+ * If set to `0`, no limit exists.
1358
+ **/
1359
+ minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
1360
+ /**
1361
+ * Minimum number of staking participants before emergency conditions are imposed.
1362
+ **/
1363
+ minimumValidatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1364
+ /**
1365
+ * The minimum active bond to become and maintain the role of a nominator.
1366
+ **/
1367
+ minNominatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1368
+ /**
1369
+ * The minimum active bond to become and maintain the role of a validator.
1370
+ **/
1371
+ minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1372
+ /**
1373
+ * The map from nominator stash key to the set of stash keys of all validators to nominate.
1374
+ **/
1375
+ nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1376
+ /**
1377
+ * All slashing events on nominators, mapped by era to the highest slash value of the era.
1378
+ **/
1379
+ nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1380
+ /**
1381
+ * Indices of validators that have offended in the active era and whether they are currently
1382
+ * disabled.
1383
+ *
1384
+ * This value should be a superset of disabled validators since not all offences lead to the
1385
+ * validator being disabled (if there was no slash). This is needed to track the percentage of
1386
+ * validators that have offended in the current era, ensuring a new era is forced if
1387
+ * `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
1388
+ * whether a given validator has previously offended using binary search. It gets cleared when
1389
+ * the era ends.
1390
+ **/
1391
+ offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
1392
+ /**
1393
+ * Where the reward payment should be made. Keyed by stash.
1394
+ **/
1395
+ payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1396
+ /**
1397
+ * Slashing spans for stash accounts.
1398
+ **/
1399
+ slashingSpans: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingSlashingSlashingSpans>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1400
+ /**
1401
+ * The percentage of the slash that is distributed to reporters.
1402
+ *
1403
+ * The rest of the slashed value is handled by the `Slash`.
1404
+ **/
1405
+ slashRewardFraction: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
1406
+ /**
1407
+ * Records information about the maximum slash of a stash within a slashing span,
1408
+ * as well as how much reward has been paid out.
1409
+ **/
1410
+ spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
1411
+ /**
1412
+ * True if network has been upgraded to this version.
1413
+ * Storage version of the pallet.
1414
+ *
1415
+ * This is set to v7.0.0 for new networks.
1416
+ **/
1417
+ storageVersion: AugmentedQuery<ApiType, () => Observable<PalletStakingReleases>, []> & QueryableStorageEntry<ApiType, []>;
1418
+ /**
1419
+ * All unapplied slashes that are queued for later.
1420
+ **/
1421
+ unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1422
+ /**
1423
+ * The ideal number of staking participants.
1424
+ **/
1425
+ validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1426
+ /**
1427
+ * The map from (wannabe) validator stash key to the preferences of that validator.
1428
+ **/
1429
+ validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1430
+ /**
1431
+ * All slashing events on validators, mapped by era to the highest slash proportion
1432
+ * and slash value of the era.
1433
+ **/
1434
+ validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1435
+ /**
1436
+ * Generic query
1437
+ **/
1438
+ [key: string]: QueryableStorageEntry<ApiType>;
1439
+ };
1440
+ system: {
1441
+ /**
1442
+ * The full account information for a particular account ID.
1443
+ **/
1444
+ account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1445
+ /**
1446
+ * Total length (in bytes) for all extrinsics put together, for the current block.
1447
+ **/
1448
+ allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1449
+ /**
1450
+ * Map of block numbers to block hashes.
1451
+ **/
1452
+ blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1453
+ /**
1454
+ * The current weight for the block.
1455
+ **/
1456
+ blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassU64>, []> & QueryableStorageEntry<ApiType, []>;
1457
+ /**
1458
+ * Digest of the current block, also part of the block header.
1459
+ **/
1460
+ digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []> & QueryableStorageEntry<ApiType, []>;
1461
+ /**
1462
+ * The number of events in the `Events<T>` list.
1463
+ **/
1464
+ eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1465
+ /**
1466
+ * Events deposited for the current block.
1467
+ *
1468
+ * NOTE: This storage item is explicitly unbounded since it is never intended to be read
1469
+ * from within the runtime.
1470
+ **/
1471
+ events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;
1472
+ /**
1473
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
1474
+ * of events in the `<Events<T>>` list.
1475
+ *
1476
+ * All topic vectors have deterministic storage locations depending on the topic. This
1477
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
1478
+ * in case of changes fetch the list of events of interest.
1479
+ *
1480
+ * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
1481
+ * the `EventIndex` then in case if the topic has the same contents on the next block
1482
+ * no notification will be triggered thus the event might be lost.
1483
+ **/
1484
+ eventTopics: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1485
+ /**
1486
+ * The execution phase of the block.
1487
+ **/
1488
+ executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []> & QueryableStorageEntry<ApiType, []>;
1489
+ /**
1490
+ * Total extrinsics count for the current block.
1491
+ **/
1492
+ extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1493
+ /**
1494
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
1495
+ **/
1496
+ extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1497
+ /**
1498
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
1499
+ **/
1500
+ lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>, []> & QueryableStorageEntry<ApiType, []>;
1501
+ /**
1502
+ * The current block number being processed. Set by `execute_block`.
1503
+ **/
1504
+ number: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1505
+ /**
1506
+ * Hash of the previous block.
1507
+ **/
1508
+ parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
1509
+ /**
1510
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
1511
+ * (default) if not.
1512
+ **/
1513
+ upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1514
+ /**
1515
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
1516
+ **/
1517
+ upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1518
+ /**
1519
+ * Generic query
1520
+ **/
1521
+ [key: string]: QueryableStorageEntry<ApiType>;
1522
+ };
1523
+ technicalCommittee: {
1524
+ /**
1525
+ * The current members of the collective. This is stored sorted (just by value).
1526
+ **/
1527
+ members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
1528
+ /**
1529
+ * The prime member that helps determine the default vote behavior in case of absentations.
1530
+ **/
1531
+ prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
1532
+ /**
1533
+ * Proposals so far.
1534
+ **/
1535
+ proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1536
+ /**
1537
+ * Actual proposal for a given hash, if it's current.
1538
+ **/
1539
+ proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1540
+ /**
1541
+ * The hashes of the active proposals.
1542
+ **/
1543
+ proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
1544
+ /**
1545
+ * Votes on a given proposal, if it is ongoing.
1546
+ **/
1547
+ voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1548
+ /**
1549
+ * Generic query
1550
+ **/
1551
+ [key: string]: QueryableStorageEntry<ApiType>;
1552
+ };
1553
+ technicalMembership: {
1554
+ /**
1555
+ * The current membership, stored as an ordered Vec.
1556
+ **/
1557
+ members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
1558
+ /**
1559
+ * The current prime member, if one exists.
1560
+ **/
1561
+ prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
1562
+ /**
1563
+ * Generic query
1564
+ **/
1565
+ [key: string]: QueryableStorageEntry<ApiType>;
1566
+ };
1567
+ timestamp: {
1568
+ /**
1569
+ * Did the timestamp get updated in this block?
1570
+ **/
1571
+ didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1572
+ /**
1573
+ * Current time for the current block.
1574
+ **/
1575
+ now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
1576
+ /**
1577
+ * Generic query
1578
+ **/
1579
+ [key: string]: QueryableStorageEntry<ApiType>;
1580
+ };
1581
+ tips: {
1582
+ /**
1583
+ * Simple preimage lookup from the reason's hash to the original data. Again, has an
1584
+ * insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
1585
+ **/
1586
+ reasons: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1587
+ /**
1588
+ * TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value.
1589
+ * This has the insecure enumerable hash function since the key itself is already
1590
+ * guaranteed to be a secure hash.
1591
+ **/
1592
+ tips: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletTipsOpenTip>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1593
+ /**
1594
+ * Generic query
1595
+ **/
1596
+ [key: string]: QueryableStorageEntry<ApiType>;
1597
+ };
1598
+ transactionPayment: {
1599
+ nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1600
+ storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
1601
+ /**
1602
+ * Generic query
1603
+ **/
1604
+ [key: string]: QueryableStorageEntry<ApiType>;
1605
+ };
1606
+ treasury: {
1607
+ /**
1608
+ * Proposal indices that have been approved but not yet awarded.
1609
+ **/
1610
+ approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1611
+ /**
1612
+ * Number of proposals that have been made.
1613
+ **/
1614
+ proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1615
+ /**
1616
+ * Proposals that have been made.
1617
+ **/
1618
+ proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryProposal>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1619
+ /**
1620
+ * Generic query
1621
+ **/
1622
+ [key: string]: QueryableStorageEntry<ApiType>;
1623
+ };
1624
+ ump: {
1625
+ /**
1626
+ * The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry.
1627
+ *
1628
+ * Invariant:
1629
+ * - The set of items from this vector should be exactly the set of the keys in
1630
+ * `RelayDispatchQueues` and `RelayDispatchQueueSize`.
1631
+ **/
1632
+ needsDispatch: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1633
+ /**
1634
+ * This is the para that gets will get dispatched first during the next upward dispatchable queue
1635
+ * execution round.
1636
+ *
1637
+ * Invariant:
1638
+ * - If `Some(para)`, then `para` must be present in `NeedsDispatch`.
1639
+ **/
1640
+ nextDispatchRoundStartWith: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1641
+ /**
1642
+ * The messages that exceeded max individual message weight budget.
1643
+ *
1644
+ * These messages stay there until manually dispatched.
1645
+ **/
1646
+ overweight: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u32, Bytes]>>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
1647
+ /**
1648
+ * The number of overweight messages ever recorded in `Overweight` (and thus the lowest free
1649
+ * index).
1650
+ **/
1651
+ overweightCount: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
1652
+ /**
1653
+ * The messages waiting to be handled by the relay-chain originating from a certain parachain.
1654
+ *
1655
+ * Note that some upward messages might have been already processed by the inclusion logic. E.g.
1656
+ * channel management messages.
1657
+ *
1658
+ * The messages are processed in FIFO order.
1659
+ **/
1660
+ relayDispatchQueues: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1661
+ /**
1662
+ * Size of the dispatch queues. Caches sizes of the queues in `RelayDispatchQueue`.
1663
+ *
1664
+ * First item in the tuple is the count of messages and second
1665
+ * is the total length (in bytes) of the message payloads.
1666
+ *
1667
+ * Note that this is an auxiliary mapping: it's possible to tell the byte size and the number of
1668
+ * messages only looking at `RelayDispatchQueues`. This mapping is separate to avoid the cost of
1669
+ * loading the whole message queue if only the total size and count are required.
1670
+ *
1671
+ * Invariant:
1672
+ * - The set of keys should exactly match the set of keys of `RelayDispatchQueues`.
1673
+ **/
1674
+ relayDispatchQueueSize: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<ITuple<[u32, u32]>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1675
+ /**
1676
+ * Generic query
1677
+ **/
1678
+ [key: string]: QueryableStorageEntry<ApiType>;
1679
+ };
1680
+ vesting: {
1681
+ /**
1682
+ * Storage version of the pallet.
1683
+ *
1684
+ * New networks start with latest version, as determined by the genesis build.
1685
+ **/
1686
+ storageVersion: AugmentedQuery<ApiType, () => Observable<PalletVestingReleases>, []> & QueryableStorageEntry<ApiType, []>;
1687
+ /**
1688
+ * Information regarding the vesting of a given account.
1689
+ **/
1690
+ vesting: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<PalletVestingVestingInfo>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1691
+ /**
1692
+ * Generic query
1693
+ **/
1694
+ [key: string]: QueryableStorageEntry<ApiType>;
1695
+ };
1696
+ xcmPallet: {
1697
+ /**
1698
+ * The existing asset traps.
1699
+ *
1700
+ * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
1701
+ * times this pair has been trapped (usually just 1 if it exists at all).
1702
+ **/
1703
+ assetTraps: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1704
+ /**
1705
+ * The current migration's stage, if any.
1706
+ **/
1707
+ currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, []> & QueryableStorageEntry<ApiType, []>;
1708
+ /**
1709
+ * The ongoing queries.
1710
+ **/
1711
+ queries: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletXcmQueryStatus>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
1712
+ /**
1713
+ * The latest available query index.
1714
+ **/
1715
+ queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
1716
+ /**
1717
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
1718
+ * then the destinations whose XCM version is unknown are considered unreachable.
1719
+ **/
1720
+ safeXcmVersion: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1721
+ /**
1722
+ * The Latest versions that we know various locations support.
1723
+ **/
1724
+ supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | {
1725
+ V0: any;
1726
+ } | {
1727
+ V1: any;
1728
+ } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
1729
+ /**
1730
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
1731
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
1732
+ * which is used as a prioritization.
1733
+ **/
1734
+ versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[XcmVersionedMultiLocation, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
1735
+ /**
1736
+ * All locations that we have requested version notifications from.
1737
+ **/
1738
+ versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | {
1739
+ V0: any;
1740
+ } | {
1741
+ V1: any;
1742
+ } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
1743
+ /**
1744
+ * The target locations that are subscribed to our version changes, as well as the most recent
1745
+ * of our versions we informed them of.
1746
+ **/
1747
+ versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | {
1748
+ V0: any;
1749
+ } | {
1750
+ V1: any;
1751
+ } | string | Uint8Array) => Observable<Option<ITuple<[u64, u64, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
1752
+ /**
1753
+ * Generic query
1754
+ **/
1755
+ [key: string]: QueryableStorageEntry<ApiType>;
1756
+ };
1757
+ }
1758
+ }