@webb-tools/tangle-substrate-types 0.5.12 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +15 -17
  3. package/build/index.cjs +2 -0
  4. package/build/index.d.ts +20826 -0
  5. package/build/index.mjs +1 -0
  6. package/package.json +57 -1
  7. package/examples/job_and_result_submission.d.ts +0 -1
  8. package/examples/job_and_result_submission.js +0 -230
  9. package/index.d.ts +0 -3
  10. package/index.js +0 -5
  11. package/interfaces/augment-api-consts.d.ts +0 -1045
  12. package/interfaces/augment-api-consts.js +0 -3
  13. package/interfaces/augment-api-errors.d.ts +0 -2001
  14. package/interfaces/augment-api-errors.js +0 -3
  15. package/interfaces/augment-api-events.d.ts +0 -3268
  16. package/interfaces/augment-api-events.js +0 -3
  17. package/interfaces/augment-api-query.d.ts +0 -2117
  18. package/interfaces/augment-api-query.js +0 -3
  19. package/interfaces/augment-api-rpc.d.ts +0 -679
  20. package/interfaces/augment-api-rpc.js +0 -3
  21. package/interfaces/augment-api-runtime.d.ts +0 -363
  22. package/interfaces/augment-api-runtime.js +0 -3
  23. package/interfaces/augment-api-tx.d.ts +0 -4118
  24. package/interfaces/augment-api-tx.js +0 -3
  25. package/interfaces/augment-api.d.ts +0 -7
  26. package/interfaces/augment-api.js +0 -9
  27. package/interfaces/augment-types.d.ts +0 -1249
  28. package/interfaces/augment-types.js +0 -3
  29. package/interfaces/lookup.d.ts +0 -6240
  30. package/interfaces/lookup.js +0 -6248
  31. package/interfaces/registry.d.ts +0 -413
  32. package/interfaces/registry.js +0 -3
  33. package/interfaces/types-lookup.d.ts +0 -6157
  34. package/interfaces/types-lookup.js +0 -3
  35. package/metadata/static-latest.d.ts +0 -2
  36. package/metadata/static-latest.js +0 -7
@@ -1,2117 +0,0 @@
1
- import "@polkadot/api-base/types/storage";
2
- import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from "@polkadot/api-base/types";
3
- import type { Data } from "@polkadot/types";
4
- import type { BTreeSet, Bytes, Null, Option, U256, U8aFixed, Vec, bool, u128, u32, u64, u8 } from "@polkadot/types-codec";
5
- import type { AnyNumber, ITuple } from "@polkadot/types-codec/types";
6
- import type { AccountId32, Call, H160, H256, Perbill, Percent, Permill } from "@polkadot/types/interfaces/runtime";
7
- import type { Observable } from "@polkadot/types/types";
8
- import { PalletAssetsAssetAccount, PalletAssetsApproval, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsPreDigest, SpConsensusBabeDigestsNextConfigDescriptor, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletAirdropClaimsUtilsMultiAddress, PalletAirdropClaimsStatementKind, PalletCollectiveVotes, PalletDemocracyMetadataOwner, FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold, PalletDemocracyReferendumInfo, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, SpNposElectionsElectionScore, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, EthereumBlock, EthereumReceiptReceiptV3, FpRpcTransactionStatus, EthereumTransactionTransactionV2, PalletEvmCodeMetadata, SpConsensusGrandpaAppPublic, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistration, PalletIdentityRegistrarInfo, PalletIdentityAuthorityProperties, PalletImOnlineSr25519AppSr25519Public, PalletTangleLstBondedPoolBondedPoolInner, PalletTangleLstClaimPermission, PalletTangleLstSubPoolsRewardPool, PalletTangleLstSubPools, PalletTangleLstPoolsPoolMember, PalletMultiAssetDelegationOperatorOperatorSnapshot, PalletMultiAssetDelegationDelegatorDelegatorMetadata, PalletMultiAssetDelegationOperatorOperatorMetadata, PalletMultiAssetDelegationRewardsRewardConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, SpStakingOffenceOffenceDetails, PalletPreimageRequestStatus, PalletPreimageOldRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, TanglePrimitivesServicesServiceBlueprint, TanglePrimitivesServicesService, TanglePrimitivesServicesJobCall, TanglePrimitivesServicesJobCallResult, TanglePrimitivesServicesOperatorPreferences, TanglePrimitivesServicesOperatorProfile, TanglePrimitivesServicesServiceRequest, SpCoreCryptoKeyTypeId, TangleTestnetRuntimeOpaqueSessionKeys, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, SpStakingExposure, SpStakingPagedExposureMetadata, SpStakingExposurePage, PalletStakingValidatorPrefs, PalletStakingForcing, PalletStakingStakingLedger, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingUnappliedSlash, StagingXcmV4AssetAssetId, SygmaFeeHandlerRouterFeeHandlerType, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSupportDispatchPerDispatchClassWeight, SpRuntimeDigest, FrameSystemEventRecord, FrameSystemPhase, FrameSystemLastRuntimeUpgradeInfo, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo } from "@polkadot/types/lookup";
9
- export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
10
- export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
11
- declare module "@polkadot/api-base/types/storage" {
12
- interface AugmentedQueries<ApiType extends ApiTypes> {
13
- assets: {
14
- /**
15
- * The holdings of a specific account for a specific asset.
16
- **/
17
- account: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [
18
- u128,
19
- AccountId32
20
- ]> & QueryableStorageEntry<ApiType, [u128, AccountId32]>;
21
- /**
22
- * Approved balance transfers. First balance is the amount approved for transfer. Second
23
- * is the amount of `T::Currency` reserved for storing this.
24
- * First key is the asset ID, second key is the owner and third key is the delegate.
25
- **/
26
- approvals: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsApproval>>, [
27
- u128,
28
- AccountId32,
29
- AccountId32
30
- ]> & QueryableStorageEntry<ApiType, [u128, AccountId32, AccountId32]>;
31
- /**
32
- * Details of an asset.
33
- **/
34
- asset: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetsAssetDetails>>, [
35
- u128
36
- ]> & QueryableStorageEntry<ApiType, [u128]>;
37
- /**
38
- * Metadata of an asset.
39
- **/
40
- metadata: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [
41
- u128
42
- ]> & QueryableStorageEntry<ApiType, [u128]>;
43
- /**
44
- * Generic query
45
- **/
46
- [key: string]: QueryableStorageEntry<ApiType>;
47
- };
48
- authorship: {
49
- /**
50
- * Author of current block.
51
- **/
52
- author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, [
53
- ]> & QueryableStorageEntry<ApiType, []>;
54
- /**
55
- * Generic query
56
- **/
57
- [key: string]: QueryableStorageEntry<ApiType>;
58
- };
59
- babe: {
60
- /**
61
- * Current epoch authorities.
62
- **/
63
- authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, [
64
- ]> & QueryableStorageEntry<ApiType, []>;
65
- /**
66
- * This field should always be populated during block processing unless
67
- * secondary plain slots are enabled (which don't contain a VRF output).
68
- *
69
- * It is set in `on_finalize`, before it will contain the value from the last block.
70
- **/
71
- authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, [
72
- ]> & QueryableStorageEntry<ApiType, []>;
73
- /**
74
- * Current slot number.
75
- **/
76
- currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
77
- /**
78
- * The configuration for the current epoch. Should never be `None` as it is initialized in
79
- * genesis.
80
- **/
81
- epochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, [
82
- ]> & QueryableStorageEntry<ApiType, []>;
83
- /**
84
- * Current epoch index.
85
- **/
86
- epochIndex: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
87
- /**
88
- * The block numbers when the last and current epoch have started, respectively `N-1` and
89
- * `N`.
90
- * NOTE: We track this is in order to annotate the block number when a given pool of
91
- * entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
92
- * slots, which may be skipped, the block numbers may not line up with the slot numbers.
93
- **/
94
- epochStart: AugmentedQuery<ApiType, () => Observable<ITuple<[u64, u64]>>, [
95
- ]> & QueryableStorageEntry<ApiType, []>;
96
- /**
97
- * The slot at which the first epoch actually started. This is 0
98
- * until the first block of the chain.
99
- **/
100
- genesisSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
101
- /**
102
- * Temporary value (cleared at block finalization) which is `Some`
103
- * if per-block initialization has already been called for current block.
104
- **/
105
- initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<SpConsensusBabeDigestsPreDigest>>>, [
106
- ]> & QueryableStorageEntry<ApiType, []>;
107
- /**
108
- * How late the current block is compared to its parent.
109
- *
110
- * This entry is populated as part of block execution and is cleaned up
111
- * on block finalization. Querying this storage entry outside of block
112
- * execution context should always yield zero.
113
- **/
114
- lateness: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
115
- /**
116
- * Next epoch authorities.
117
- **/
118
- nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, [
119
- ]> & QueryableStorageEntry<ApiType, []>;
120
- /**
121
- * The configuration for the next epoch, `None` if the config will not change
122
- * (you can fallback to `EpochConfig` instead in that case).
123
- **/
124
- nextEpochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, [
125
- ]> & QueryableStorageEntry<ApiType, []>;
126
- /**
127
- * Next epoch randomness.
128
- **/
129
- nextRandomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> & QueryableStorageEntry<ApiType, []>;
130
- /**
131
- * Pending epoch configuration change that will be applied when the next epoch is enacted.
132
- **/
133
- pendingEpochConfigChange: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeDigestsNextConfigDescriptor>>, [
134
- ]> & QueryableStorageEntry<ApiType, []>;
135
- /**
136
- * The epoch randomness for the *current* epoch.
137
- *
138
- * # Security
139
- *
140
- * This MUST NOT be used for gambling, as it can be influenced by a
141
- * malicious validator in the short term. It MAY be used in many
142
- * cryptographic protocols, however, so long as one remembers that this
143
- * (like everything else on-chain) it is public. For example, it can be
144
- * used where a number is needed that cannot have been chosen by an
145
- * adversary, for purposes such as public-coin zero-knowledge proofs.
146
- **/
147
- randomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> & QueryableStorageEntry<ApiType, []>;
148
- /**
149
- * Randomness under construction.
150
- *
151
- * We make a trade-off between storage accesses and list length.
152
- * We store the under-construction randomness in segments of up to
153
- * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
154
- *
155
- * Once a segment reaches this length, we begin the next one.
156
- * We reset all segments and return to `0` at the beginning of every
157
- * epoch.
158
- **/
159
- segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
160
- /**
161
- * A list of the last 100 skipped epochs and the corresponding session index
162
- * when the epoch was skipped.
163
- *
164
- * This is only used for validating equivocation proofs. An equivocation proof
165
- * must contains a key-ownership proof for a given session, therefore we need a
166
- * way to tie together sessions and epoch indices, i.e. we need to validate that
167
- * a validator was the owner of a given key on a given session, and what the
168
- * active epoch index was during that session.
169
- **/
170
- skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, [
171
- ]> & QueryableStorageEntry<ApiType, []>;
172
- /**
173
- * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
174
- **/
175
- underConstruction: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<U8aFixed>>, [
176
- u32
177
- ]> & QueryableStorageEntry<ApiType, [u32]>;
178
- /**
179
- * Generic query
180
- **/
181
- [key: string]: QueryableStorageEntry<ApiType>;
182
- };
183
- bagsList: {
184
- /**
185
- * Counter for the related counted storage map
186
- **/
187
- counterForListNodes: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
188
- /**
189
- * A bag stored in storage.
190
- *
191
- * Stores a `Bag` struct, which stores head and tail pointers to itself.
192
- **/
193
- listBags: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBagsListListBag>>, [
194
- u64
195
- ]> & QueryableStorageEntry<ApiType, [u64]>;
196
- /**
197
- * A single node, within some bag.
198
- *
199
- * Nodes store links forward and back within their respective bags.
200
- **/
201
- listNodes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletBagsListListNode>>, [
202
- AccountId32
203
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
204
- /**
205
- * Generic query
206
- **/
207
- [key: string]: QueryableStorageEntry<ApiType>;
208
- };
209
- balances: {
210
- /**
211
- * The Balances pallet example of storing the balance of an account.
212
- *
213
- * # Example
214
- *
215
- * ```nocompile
216
- * impl pallet_balances::Config for Runtime {
217
- * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
218
- * }
219
- * ```
220
- *
221
- * You can also store the balance of an account in the `System` pallet.
222
- *
223
- * # Example
224
- *
225
- * ```nocompile
226
- * impl pallet_balances::Config for Runtime {
227
- * type AccountStore = System
228
- * }
229
- * ```
230
- *
231
- * But this comes with tradeoffs, storing account balances in the system pallet stores
232
- * `frame_system` data alongside the account data contrary to storing account balances in the
233
- * `Balances` pallet, which uses a `StorageMap` to store balances data only.
234
- * NOTE: This is only used in the case that this pallet is used to store balances.
235
- **/
236
- account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [
237
- AccountId32
238
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
239
- /**
240
- * Freeze locks on account balances.
241
- **/
242
- freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeFreezeReason>>, [
243
- AccountId32
244
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
245
- /**
246
- * Holds on account balances.
247
- **/
248
- holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeHoldReason>>, [
249
- AccountId32
250
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
251
- /**
252
- * The total units of outstanding deactivated balance in the system.
253
- **/
254
- inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
255
- /**
256
- * Any liquidity locks on some account balances.
257
- * NOTE: Should only be accessed when setting, changing and freeing a lock.
258
- **/
259
- locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [
260
- AccountId32
261
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
262
- /**
263
- * Named reserves on some account balances.
264
- **/
265
- reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [
266
- AccountId32
267
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
268
- /**
269
- * The total units issued in the system.
270
- **/
271
- totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
272
- /**
273
- * Generic query
274
- **/
275
- [key: string]: QueryableStorageEntry<ApiType>;
276
- };
277
- baseFee: {
278
- baseFeePerGas: AugmentedQuery<ApiType, () => Observable<U256>, []> & QueryableStorageEntry<ApiType, []>;
279
- elasticity: AugmentedQuery<ApiType, () => Observable<Permill>, []> & QueryableStorageEntry<ApiType, []>;
280
- /**
281
- * Generic query
282
- **/
283
- [key: string]: QueryableStorageEntry<ApiType>;
284
- };
285
- bounties: {
286
- /**
287
- * Bounties that have been made.
288
- **/
289
- bounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletBountiesBounty>>, [
290
- u32
291
- ]> & QueryableStorageEntry<ApiType, [u32]>;
292
- /**
293
- * Bounty indices that have been approved but not yet funded.
294
- **/
295
- bountyApprovals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
296
- /**
297
- * Number of bounty proposals that have been made.
298
- **/
299
- bountyCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
300
- /**
301
- * The description of each bounty.
302
- **/
303
- bountyDescriptions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
304
- u32
305
- ]> & QueryableStorageEntry<ApiType, [u32]>;
306
- /**
307
- * Generic query
308
- **/
309
- [key: string]: QueryableStorageEntry<ApiType>;
310
- };
311
- childBounties: {
312
- /**
313
- * Child bounties that have been added.
314
- **/
315
- childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChildBountiesChildBounty>>, [
316
- u32,
317
- u32
318
- ]> & QueryableStorageEntry<ApiType, [u32, u32]>;
319
- /**
320
- * Number of total child bounties.
321
- **/
322
- childBountyCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
323
- /**
324
- * The description of each child-bounty.
325
- **/
326
- childBountyDescriptions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
327
- u32
328
- ]> & QueryableStorageEntry<ApiType, [u32]>;
329
- /**
330
- * The cumulative child-bounty curator fee for each parent bounty.
331
- **/
332
- childrenCuratorFees: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [
333
- u32
334
- ]> & QueryableStorageEntry<ApiType, [u32]>;
335
- /**
336
- * Number of child bounties per parent bounty.
337
- * Map of parent bounty index to number of child bounties.
338
- **/
339
- parentChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [
340
- u32
341
- ]> & QueryableStorageEntry<ApiType, [u32]>;
342
- /**
343
- * Generic query
344
- **/
345
- [key: string]: QueryableStorageEntry<ApiType>;
346
- };
347
- claims: {
348
- claims: AugmentedQuery<ApiType, (arg: PalletAirdropClaimsUtilsMultiAddress | {
349
- EVM: any;
350
- } | {
351
- Native: any;
352
- } | string | Uint8Array) => Observable<Option<u128>>, [
353
- PalletAirdropClaimsUtilsMultiAddress
354
- ]> & QueryableStorageEntry<ApiType, [PalletAirdropClaimsUtilsMultiAddress]>;
355
- /**
356
- * Expiry block and account to deposit expired funds
357
- **/
358
- expiryConfig: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u64, PalletAirdropClaimsUtilsMultiAddress]>>>, [
359
- ]> & QueryableStorageEntry<ApiType, []>;
360
- /**
361
- * The statement kind that must be signed, if any.
362
- **/
363
- signing: AugmentedQuery<ApiType, (arg: PalletAirdropClaimsUtilsMultiAddress | {
364
- EVM: any;
365
- } | {
366
- Native: any;
367
- } | string | Uint8Array) => Observable<Option<PalletAirdropClaimsStatementKind>>, [
368
- PalletAirdropClaimsUtilsMultiAddress
369
- ]> & QueryableStorageEntry<ApiType, [PalletAirdropClaimsUtilsMultiAddress]>;
370
- total: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
371
- /**
372
- * Vesting schedule for a claim.
373
- * First balance is the total amount that should be held for vesting.
374
- * Second balance is how much should be unlocked per block.
375
- * The block number is when the vesting should start.
376
- **/
377
- vesting: AugmentedQuery<ApiType, (arg: PalletAirdropClaimsUtilsMultiAddress | {
378
- EVM: any;
379
- } | {
380
- Native: any;
381
- } | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, u128, u64]>>>>, [
382
- PalletAirdropClaimsUtilsMultiAddress
383
- ]> & QueryableStorageEntry<ApiType, [PalletAirdropClaimsUtilsMultiAddress]>;
384
- /**
385
- * Generic query
386
- **/
387
- [key: string]: QueryableStorageEntry<ApiType>;
388
- };
389
- council: {
390
- /**
391
- * The current members of the collective. This is stored sorted (just by value).
392
- **/
393
- members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
394
- /**
395
- * The prime member that helps determine the default vote behavior in case of absentations.
396
- **/
397
- prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, [
398
- ]> & QueryableStorageEntry<ApiType, []>;
399
- /**
400
- * Proposals so far.
401
- **/
402
- proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
403
- /**
404
- * Actual proposal for a given hash, if it's current.
405
- **/
406
- proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [
407
- H256
408
- ]> & QueryableStorageEntry<ApiType, [H256]>;
409
- /**
410
- * The hashes of the active proposals.
411
- **/
412
- proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
413
- /**
414
- * Votes on a given proposal, if it is ongoing.
415
- **/
416
- voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [
417
- H256
418
- ]> & QueryableStorageEntry<ApiType, [H256]>;
419
- /**
420
- * Generic query
421
- **/
422
- [key: string]: QueryableStorageEntry<ApiType>;
423
- };
424
- democracy: {
425
- /**
426
- * A record of who vetoed what. Maps proposal hash to a possible existent block number
427
- * (until when it may not be resubmitted) and who vetoed it.
428
- **/
429
- blacklist: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<ITuple<[u64, Vec<AccountId32>]>>>, [
430
- H256
431
- ]> & QueryableStorageEntry<ApiType, [H256]>;
432
- /**
433
- * Record of all proposals that have been subject to emergency cancellation.
434
- **/
435
- cancellations: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<bool>, [
436
- H256
437
- ]> & QueryableStorageEntry<ApiType, [H256]>;
438
- /**
439
- * Those who have locked a deposit.
440
- *
441
- * TWOX-NOTE: Safe, as increasing integer keys are safe.
442
- **/
443
- depositOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[Vec<AccountId32>, u128]>>>, [
444
- u32
445
- ]> & QueryableStorageEntry<ApiType, [u32]>;
446
- /**
447
- * True if the last referendum tabled was submitted externally. False if it was a public
448
- * proposal.
449
- **/
450
- lastTabledWasExternal: AugmentedQuery<ApiType, () => Observable<bool>, [
451
- ]> & QueryableStorageEntry<ApiType, []>;
452
- /**
453
- * The lowest referendum index representing an unbaked referendum. Equal to
454
- * `ReferendumCount` if there isn't a unbaked referendum.
455
- **/
456
- lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
457
- /**
458
- * General information concerning any proposal or referendum.
459
- * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
460
- * dump or IPFS hash of a JSON file.
461
- *
462
- * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
463
- * large preimages.
464
- **/
465
- metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | {
466
- External: any;
467
- } | {
468
- Proposal: any;
469
- } | {
470
- Referendum: any;
471
- } | string | Uint8Array) => Observable<Option<H256>>, [
472
- PalletDemocracyMetadataOwner
473
- ]> & QueryableStorageEntry<ApiType, [PalletDemocracyMetadataOwner]>;
474
- /**
475
- * The referendum to be tabled whenever it would be valid to table an external proposal.
476
- * This happens when a referendum needs to be tabled and one of two conditions are met:
477
- * - `LastTabledWasExternal` is `false`; or
478
- * - `PublicProps` is empty.
479
- **/
480
- nextExternal: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold]>>>, [
481
- ]> & QueryableStorageEntry<ApiType, []>;
482
- /**
483
- * The number of (public) proposals that have been made so far.
484
- **/
485
- publicPropCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
486
- /**
487
- * The public proposals. Unsorted. The second item is the proposal.
488
- **/
489
- publicProps: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, FrameSupportPreimagesBounded, AccountId32]>>>, [
490
- ]> & QueryableStorageEntry<ApiType, []>;
491
- /**
492
- * The next free referendum index, aka the number of referenda started so far.
493
- **/
494
- referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
495
- /**
496
- * Information concerning any given referendum.
497
- *
498
- * TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
499
- **/
500
- referendumInfoOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletDemocracyReferendumInfo>>, [
501
- u32
502
- ]> & QueryableStorageEntry<ApiType, [u32]>;
503
- /**
504
- * All votes for a particular voter. We store the balance for the number of votes that we
505
- * have recorded. The second item is the total amount of delegations, that will be added.
506
- *
507
- * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
508
- **/
509
- votingOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletDemocracyVoteVoting>, [
510
- AccountId32
511
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
512
- /**
513
- * Generic query
514
- **/
515
- [key: string]: QueryableStorageEntry<ApiType>;
516
- };
517
- dynamicFee: {
518
- minGasPrice: AugmentedQuery<ApiType, () => Observable<U256>, []> & QueryableStorageEntry<ApiType, []>;
519
- targetMinGasPrice: AugmentedQuery<ApiType, () => Observable<Option<U256>>, [
520
- ]> & QueryableStorageEntry<ApiType, []>;
521
- /**
522
- * Generic query
523
- **/
524
- [key: string]: QueryableStorageEntry<ApiType>;
525
- };
526
- electionProviderMultiPhase: {
527
- /**
528
- * Current phase.
529
- **/
530
- currentPhase: AugmentedQuery<ApiType, () => Observable<PalletElectionProviderMultiPhasePhase>, [
531
- ]> & QueryableStorageEntry<ApiType, []>;
532
- /**
533
- * Desired number of targets to elect for this round.
534
- *
535
- * Only exists when [`Snapshot`] is present.
536
- * Note: This storage type must only be mutated through [`SnapshotWrapper`].
537
- **/
538
- desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, [
539
- ]> & QueryableStorageEntry<ApiType, []>;
540
- /**
541
- * The minimum score that each 'untrusted' solution must attain in order to be considered
542
- * feasible.
543
- *
544
- * Can be set via `set_minimum_untrusted_score`.
545
- **/
546
- minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, [
547
- ]> & QueryableStorageEntry<ApiType, []>;
548
- /**
549
- * Current best solution, signed or unsigned, queued to be returned upon `elect`.
550
- *
551
- * Always sorted by score.
552
- **/
553
- queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, [
554
- ]> & QueryableStorageEntry<ApiType, []>;
555
- /**
556
- * Internal counter for the number of rounds.
557
- *
558
- * This is useful for de-duplication of transactions submitted to the pool, and general
559
- * diagnostics of the pallet.
560
- *
561
- * This is merely incremented once per every time that an upstream `elect` is called.
562
- **/
563
- round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
564
- /**
565
- * A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
566
- * value in `SignedSubmissions`.
567
- *
568
- * We never need to process more than a single signed submission at a time. Signed submissions
569
- * can be quite large, so we're willing to pay the cost of multiple database accesses to access
570
- * them one at a time instead of reading and decoding all of them at once.
571
- **/
572
- signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpNposElectionsElectionScore, u64, u32]>>>, [
573
- ]> & QueryableStorageEntry<ApiType, []>;
574
- /**
575
- * The next index to be assigned to an incoming signed submission.
576
- *
577
- * Every accepted submission is assigned a unique index; that index is bound to that particular
578
- * submission for the duration of the election. On election finalization, the next index is
579
- * reset to 0.
580
- *
581
- * We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its
582
- * capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,
583
- * because iteration is slow. Instead, we store the value here.
584
- **/
585
- signedSubmissionNextIndex: AugmentedQuery<ApiType, () => Observable<u32>, [
586
- ]> & QueryableStorageEntry<ApiType, []>;
587
- /**
588
- * Unchecked, signed solutions.
589
- *
590
- * Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while
591
- * allowing us to keep only a single one in memory at a time.
592
- *
593
- * Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
594
- * affect; we shouldn't need a cryptographically secure hasher.
595
- **/
596
- signedSubmissionsMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletElectionProviderMultiPhaseSignedSignedSubmission>>, [
597
- u32
598
- ]> & QueryableStorageEntry<ApiType, [u32]>;
599
- /**
600
- * Snapshot data of the round.
601
- *
602
- * This is created at the beginning of the signed phase and cleared upon calling `elect`.
603
- * Note: This storage type must only be mutated through [`SnapshotWrapper`].
604
- **/
605
- snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, [
606
- ]> & QueryableStorageEntry<ApiType, []>;
607
- /**
608
- * The metadata of the [`RoundSnapshot`]
609
- *
610
- * Only exists when [`Snapshot`] is present.
611
- * Note: This storage type must only be mutated through [`SnapshotWrapper`].
612
- **/
613
- snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, [
614
- ]> & QueryableStorageEntry<ApiType, []>;
615
- /**
616
- * Generic query
617
- **/
618
- [key: string]: QueryableStorageEntry<ApiType>;
619
- };
620
- elections: {
621
- /**
622
- * The present candidate list. A current member or runner-up can never enter this vector
623
- * and is always implicitly assumed to be a candidate.
624
- *
625
- * Second element is the deposit.
626
- *
627
- * Invariant: Always sorted based on account id.
628
- **/
629
- candidates: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, u128]>>>, [
630
- ]> & QueryableStorageEntry<ApiType, []>;
631
- /**
632
- * The total number of vote rounds that have happened, excluding the upcoming one.
633
- **/
634
- electionRounds: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
635
- /**
636
- * The current elected members.
637
- *
638
- * Invariant: Always sorted based on account id.
639
- **/
640
- members: AugmentedQuery<ApiType, () => Observable<Vec<PalletElectionsPhragmenSeatHolder>>, [
641
- ]> & QueryableStorageEntry<ApiType, []>;
642
- /**
643
- * The current reserved runners-up.
644
- *
645
- * Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the
646
- * last (i.e. _best_) runner-up will be replaced.
647
- **/
648
- runnersUp: AugmentedQuery<ApiType, () => Observable<Vec<PalletElectionsPhragmenSeatHolder>>, [
649
- ]> & QueryableStorageEntry<ApiType, []>;
650
- /**
651
- * Votes and locked stake of a particular voter.
652
- *
653
- * TWOX-NOTE: SAFE as `AccountId` is a crypto hash.
654
- **/
655
- voting: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletElectionsPhragmenVoter>, [
656
- AccountId32
657
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
658
- /**
659
- * Generic query
660
- **/
661
- [key: string]: QueryableStorageEntry<ApiType>;
662
- };
663
- ethereum: {
664
- blockHash: AugmentedQuery<ApiType, (arg: U256 | AnyNumber | Uint8Array) => Observable<H256>, [
665
- U256
666
- ]> & QueryableStorageEntry<ApiType, [U256]>;
667
- /**
668
- * The current Ethereum block.
669
- **/
670
- currentBlock: AugmentedQuery<ApiType, () => Observable<Option<EthereumBlock>>, [
671
- ]> & QueryableStorageEntry<ApiType, []>;
672
- /**
673
- * The current Ethereum receipts.
674
- **/
675
- currentReceipts: AugmentedQuery<ApiType, () => Observable<Option<Vec<EthereumReceiptReceiptV3>>>, [
676
- ]> & QueryableStorageEntry<ApiType, []>;
677
- /**
678
- * The current transaction statuses.
679
- **/
680
- currentTransactionStatuses: AugmentedQuery<ApiType, () => Observable<Option<Vec<FpRpcTransactionStatus>>>, [
681
- ]> & QueryableStorageEntry<ApiType, []>;
682
- /**
683
- * Current building block's transactions and receipts.
684
- **/
685
- pending: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[
686
- EthereumTransactionTransactionV2,
687
- FpRpcTransactionStatus,
688
- EthereumReceiptReceiptV3
689
- ]>>>, [
690
- ]> & QueryableStorageEntry<ApiType, []>;
691
- /**
692
- * Generic query
693
- **/
694
- [key: string]: QueryableStorageEntry<ApiType>;
695
- };
696
- evm: {
697
- accountCodes: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Bytes>, [
698
- H160
699
- ]> & QueryableStorageEntry<ApiType, [H160]>;
700
- accountCodesMetadata: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<PalletEvmCodeMetadata>>, [
701
- H160
702
- ]> & QueryableStorageEntry<ApiType, [H160]>;
703
- accountStorages: AugmentedQuery<ApiType, (arg1: H160 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<H256>, [
704
- H160,
705
- H256
706
- ]> & QueryableStorageEntry<ApiType, [H160, H256]>;
707
- suicided: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<Null>>, [
708
- H160
709
- ]> & QueryableStorageEntry<ApiType, [H160]>;
710
- /**
711
- * Generic query
712
- **/
713
- [key: string]: QueryableStorageEntry<ApiType>;
714
- };
715
- evmChainId: {
716
- /**
717
- * The EVM chain ID.
718
- **/
719
- chainId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
720
- /**
721
- * Generic query
722
- **/
723
- [key: string]: QueryableStorageEntry<ApiType>;
724
- };
725
- grandpa: {
726
- /**
727
- * The current list of authorities.
728
- **/
729
- authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>, [
730
- ]> & QueryableStorageEntry<ApiType, []>;
731
- /**
732
- * The number of changes (both in terms of keys and underlying economic responsibilities)
733
- * in the "set" of Grandpa validators from genesis.
734
- **/
735
- currentSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
736
- /**
737
- * next block number where we can force a change.
738
- **/
739
- nextForced: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []> & QueryableStorageEntry<ApiType, []>;
740
- /**
741
- * Pending change: (signaled at, scheduled change).
742
- **/
743
- pendingChange: AugmentedQuery<ApiType, () => Observable<Option<PalletGrandpaStoredPendingChange>>, [
744
- ]> & QueryableStorageEntry<ApiType, []>;
745
- /**
746
- * A mapping from grandpa set ID to the index of the *most recent* session for which its
747
- * members were responsible.
748
- *
749
- * This is only used for validating equivocation proofs. An equivocation proof must
750
- * contains a key-ownership proof for a given session, therefore we need a way to tie
751
- * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
752
- * was the owner of a given key on a given session, and what the active set ID was
753
- * during that session.
754
- *
755
- * TWOX-NOTE: `SetId` is not under user control.
756
- **/
757
- setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [
758
- u64
759
- ]> & QueryableStorageEntry<ApiType, [u64]>;
760
- /**
761
- * `true` if we are currently stalled.
762
- **/
763
- stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u64, u64]>>>, [
764
- ]> & QueryableStorageEntry<ApiType, []>;
765
- /**
766
- * State of the current authority set.
767
- **/
768
- state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, [
769
- ]> & QueryableStorageEntry<ApiType, []>;
770
- /**
771
- * Generic query
772
- **/
773
- [key: string]: QueryableStorageEntry<ApiType>;
774
- };
775
- historical: {
776
- /**
777
- * Mapping from historical session indices to session-data root hash and validator count.
778
- **/
779
- historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [
780
- u32
781
- ]> & QueryableStorageEntry<ApiType, [u32]>;
782
- /**
783
- * The range of historical sessions we store. [first, last)
784
- **/
785
- storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, [
786
- ]> & QueryableStorageEntry<ApiType, []>;
787
- /**
788
- * Generic query
789
- **/
790
- [key: string]: QueryableStorageEntry<ApiType>;
791
- };
792
- identity: {
793
- /**
794
- * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
795
- * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
796
- *
797
- * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
798
- * primary username.
799
- **/
800
- accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [
801
- Bytes
802
- ]> & QueryableStorageEntry<ApiType, [Bytes]>;
803
- /**
804
- * Information that is pertinent to identify the entity behind an account. First item is the
805
- * registration, second is the account's primary username.
806
- *
807
- * TWOX-NOTE: OK ― `AccountId` is a secure hash.
808
- **/
809
- identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [
810
- AccountId32
811
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
812
- /**
813
- * Usernames that an authority has granted, but that the account controller has not confirmed
814
- * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
815
- * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
816
- * [`Call::accept_username`].
817
- *
818
- * First tuple item is the account and second is the acceptance deadline.
819
- **/
820
- pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u64]>>>, [
821
- Bytes
822
- ]> & QueryableStorageEntry<ApiType, [Bytes]>;
823
- /**
824
- * The set of registrars. Not expected to get very big as can only be added through a
825
- * special origin (likely a council motion).
826
- *
827
- * The index into this can be cast to `RegistrarIndex` to get a valid value.
828
- **/
829
- registrars: AugmentedQuery<ApiType, () => Observable<Vec<Option<PalletIdentityRegistrarInfo>>>, [
830
- ]> & QueryableStorageEntry<ApiType, []>;
831
- /**
832
- * Alternative "sub" identities of this account.
833
- *
834
- * The first item is the deposit, the second is a vector of the accounts.
835
- *
836
- * TWOX-NOTE: OK ― `AccountId` is a secure hash.
837
- **/
838
- subsOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[u128, Vec<AccountId32>]>>, [
839
- AccountId32
840
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
841
- /**
842
- * The super-identity of an alternative "sub" identity together with its name, within that
843
- * context. If the account is not some other account's sub-identity, then just `None`.
844
- **/
845
- superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [
846
- AccountId32
847
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
848
- /**
849
- * A map of the accounts who are authorized to grant usernames.
850
- **/
851
- usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [
852
- AccountId32
853
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
854
- /**
855
- * Generic query
856
- **/
857
- [key: string]: QueryableStorageEntry<ApiType>;
858
- };
859
- imOnline: {
860
- /**
861
- * For each session index, we keep a mapping of `ValidatorId<T>` to the
862
- * number of blocks authored by the given authority.
863
- **/
864
- authoredBlocks: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<u32>, [
865
- u32,
866
- AccountId32
867
- ]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
868
- /**
869
- * The block number after which it's ok to send heartbeats in the current
870
- * session.
871
- *
872
- * At the beginning of each session we set this to a value that should fall
873
- * roughly in the middle of the session duration. The idea is to first wait for
874
- * the validators to produce a block in the current session, so that the
875
- * heartbeat later on will not be necessary.
876
- *
877
- * This value will only be used as a fallback if we fail to get a proper session
878
- * progress estimate from `NextSessionRotation`, as those estimates should be
879
- * more accurate then the value we calculate for `HeartbeatAfter`.
880
- **/
881
- heartbeatAfter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
882
- /**
883
- * The current set of keys that may issue a heartbeat.
884
- **/
885
- keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, [
886
- ]> & QueryableStorageEntry<ApiType, []>;
887
- /**
888
- * For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
889
- **/
890
- receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [
891
- u32,
892
- u32
893
- ]> & QueryableStorageEntry<ApiType, [u32, u32]>;
894
- /**
895
- * Generic query
896
- **/
897
- [key: string]: QueryableStorageEntry<ApiType>;
898
- };
899
- indices: {
900
- /**
901
- * The lookup from index to account.
902
- **/
903
- accounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u128, bool]>>>, [
904
- u32
905
- ]> & QueryableStorageEntry<ApiType, [u32]>;
906
- /**
907
- * Generic query
908
- **/
909
- [key: string]: QueryableStorageEntry<ApiType>;
910
- };
911
- lst: {
912
- /**
913
- * Storage for bonded pools.
914
- **/
915
- bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTangleLstBondedPoolBondedPoolInner>>, [
916
- u32
917
- ]> & QueryableStorageEntry<ApiType, [u32]>;
918
- /**
919
- * Map from a pool member account to their opted claim permission.
920
- **/
921
- claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletTangleLstClaimPermission>, [
922
- AccountId32
923
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
924
- /**
925
- * Counter for the related counted storage map
926
- **/
927
- counterForBondedPools: AugmentedQuery<ApiType, () => Observable<u32>, [
928
- ]> & QueryableStorageEntry<ApiType, []>;
929
- /**
930
- * Counter for the related counted storage map
931
- **/
932
- counterForMetadata: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
933
- /**
934
- * Counter for the related counted storage map
935
- **/
936
- counterForReversePoolIdLookup: AugmentedQuery<ApiType, () => Observable<u32>, [
937
- ]> & QueryableStorageEntry<ApiType, []>;
938
- /**
939
- * Counter for the related counted storage map
940
- **/
941
- counterForRewardPools: AugmentedQuery<ApiType, () => Observable<u32>, [
942
- ]> & QueryableStorageEntry<ApiType, []>;
943
- /**
944
- * Counter for the related counted storage map
945
- **/
946
- counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, [
947
- ]> & QueryableStorageEntry<ApiType, []>;
948
- /**
949
- * Counter for the related counted storage map
950
- **/
951
- counterForUnbondingMembers: AugmentedQuery<ApiType, () => Observable<u32>, [
952
- ]> & QueryableStorageEntry<ApiType, []>;
953
- /**
954
- * The maximum commission that can be charged by a pool. Used on commission payouts to bound
955
- * pool commissions that are > `GlobalMaxCommission`, necessary if a future
956
- * `GlobalMaxCommission` is lower than some current pool commissions.
957
- **/
958
- globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, [
959
- ]> & QueryableStorageEntry<ApiType, []>;
960
- /**
961
- * Ever increasing number of all pools created so far.
962
- **/
963
- lastPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
964
- /**
965
- * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
966
- * pools can exist.
967
- **/
968
- maxPools: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
969
- /**
970
- * Metadata for the pool.
971
- **/
972
- metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [
973
- u32
974
- ]> & QueryableStorageEntry<ApiType, [u32]>;
975
- /**
976
- * Minimum bond required to create a pool.
977
- *
978
- * This is the amount that the depositor must put as their initial stake in the pool, as an
979
- * indication of "skin in the game".
980
- *
981
- * This is the value that will always exist in the staking ledger of the pool bonded account
982
- * while all other accounts leave.
983
- **/
984
- minCreateBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
985
- /**
986
- * Minimum amount to bond to join a pool.
987
- **/
988
- minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
989
- /**
990
- * A reverse lookup from the pool's account id to its id.
991
- *
992
- * This is only used for slashing. In all other instances, the pool id is used, and the
993
- * accounts are deterministically derived from it.
994
- **/
995
- reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [
996
- AccountId32
997
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
998
- /**
999
- * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
1000
- * claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
1001
- **/
1002
- rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTangleLstSubPoolsRewardPool>>, [
1003
- u32
1004
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1005
- /**
1006
- * Groups of unbonding pools. Each group of unbonding pools belongs to a
1007
- * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
1008
- **/
1009
- subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTangleLstSubPools>>, [
1010
- u32
1011
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1012
- /**
1013
- * The sum of funds across all pools.
1014
- *
1015
- * This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
1016
- * because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
1017
- * `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
1018
- **/
1019
- totalValueLocked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1020
- /**
1021
- * Unbonding members.
1022
- *
1023
- * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1024
- **/
1025
- unbondingMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletTangleLstPoolsPoolMember>>, [
1026
- AccountId32
1027
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1028
- /**
1029
- * Generic query
1030
- **/
1031
- [key: string]: QueryableStorageEntry<ApiType>;
1032
- };
1033
- multiAssetDelegation: {
1034
- /**
1035
- * Storage for the reward pools
1036
- **/
1037
- assetLookupRewardPools: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [
1038
- u128
1039
- ]> & QueryableStorageEntry<ApiType, [u128]>;
1040
- /**
1041
- * Snapshot of collator delegation stake at the start of the round.
1042
- **/
1043
- atStake: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletMultiAssetDelegationOperatorOperatorSnapshot>>, [
1044
- u32,
1045
- AccountId32
1046
- ]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1047
- /**
1048
- * Storage for the current round.
1049
- **/
1050
- currentRound: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1051
- /**
1052
- * Storage for delegator information.
1053
- **/
1054
- delegators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletMultiAssetDelegationDelegatorDelegatorMetadata>>, [
1055
- AccountId32
1056
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1057
- /**
1058
- * Storage for operator information.
1059
- **/
1060
- operators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletMultiAssetDelegationOperatorOperatorMetadata>>, [
1061
- AccountId32
1062
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1063
- /**
1064
- * Storage for the reward configuration, which includes APY, cap for assets, and whitelisted
1065
- * blueprints.
1066
- **/
1067
- rewardConfigStorage: AugmentedQuery<ApiType, () => Observable<Option<PalletMultiAssetDelegationRewardsRewardConfig>>, [
1068
- ]> & QueryableStorageEntry<ApiType, []>;
1069
- /**
1070
- * Storage for the reward pools
1071
- **/
1072
- rewardPools: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<Vec<u128>>>, [
1073
- u128
1074
- ]> & QueryableStorageEntry<ApiType, [u128]>;
1075
- /**
1076
- * Generic query
1077
- **/
1078
- [key: string]: QueryableStorageEntry<ApiType>;
1079
- };
1080
- multisig: {
1081
- /**
1082
- * The set of open multisig operations.
1083
- **/
1084
- multisigs: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: U8aFixed | string | Uint8Array) => Observable<Option<PalletMultisigMultisig>>, [
1085
- AccountId32,
1086
- U8aFixed
1087
- ]> & QueryableStorageEntry<ApiType, [AccountId32, U8aFixed]>;
1088
- /**
1089
- * Generic query
1090
- **/
1091
- [key: string]: QueryableStorageEntry<ApiType>;
1092
- };
1093
- nominationPools: {
1094
- /**
1095
- * Storage for bonded pools.
1096
- **/
1097
- bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [
1098
- u32
1099
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1100
- /**
1101
- * Map from a pool member account to their opted claim permission.
1102
- **/
1103
- claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [
1104
- AccountId32
1105
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1106
- /**
1107
- * Counter for the related counted storage map
1108
- **/
1109
- counterForBondedPools: AugmentedQuery<ApiType, () => Observable<u32>, [
1110
- ]> & QueryableStorageEntry<ApiType, []>;
1111
- /**
1112
- * Counter for the related counted storage map
1113
- **/
1114
- counterForMetadata: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1115
- /**
1116
- * Counter for the related counted storage map
1117
- **/
1118
- counterForPoolMembers: AugmentedQuery<ApiType, () => Observable<u32>, [
1119
- ]> & QueryableStorageEntry<ApiType, []>;
1120
- /**
1121
- * Counter for the related counted storage map
1122
- **/
1123
- counterForReversePoolIdLookup: AugmentedQuery<ApiType, () => Observable<u32>, [
1124
- ]> & QueryableStorageEntry<ApiType, []>;
1125
- /**
1126
- * Counter for the related counted storage map
1127
- **/
1128
- counterForRewardPools: AugmentedQuery<ApiType, () => Observable<u32>, [
1129
- ]> & QueryableStorageEntry<ApiType, []>;
1130
- /**
1131
- * Counter for the related counted storage map
1132
- **/
1133
- counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, [
1134
- ]> & QueryableStorageEntry<ApiType, []>;
1135
- /**
1136
- * The maximum commission that can be charged by a pool. Used on commission payouts to bound
1137
- * pool commissions that are > `GlobalMaxCommission`, necessary if a future
1138
- * `GlobalMaxCommission` is lower than some current pool commissions.
1139
- **/
1140
- globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, [
1141
- ]> & QueryableStorageEntry<ApiType, []>;
1142
- /**
1143
- * Ever increasing number of all pools created so far.
1144
- **/
1145
- lastPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1146
- /**
1147
- * Maximum number of members that can exist in the system. If `None`, then the count
1148
- * members are not bound on a system wide basis.
1149
- **/
1150
- maxPoolMembers: AugmentedQuery<ApiType, () => Observable<Option<u32>>, [
1151
- ]> & QueryableStorageEntry<ApiType, []>;
1152
- /**
1153
- * Maximum number of members that may belong to pool. If `None`, then the count of
1154
- * members is not bound on a per pool basis.
1155
- **/
1156
- maxPoolMembersPerPool: AugmentedQuery<ApiType, () => Observable<Option<u32>>, [
1157
- ]> & QueryableStorageEntry<ApiType, []>;
1158
- /**
1159
- * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
1160
- * pools can exist.
1161
- **/
1162
- maxPools: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1163
- /**
1164
- * Metadata for the pool.
1165
- **/
1166
- metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [
1167
- u32
1168
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1169
- /**
1170
- * Minimum bond required to create a pool.
1171
- *
1172
- * This is the amount that the depositor must put as their initial stake in the pool, as an
1173
- * indication of "skin in the game".
1174
- *
1175
- * This is the value that will always exist in the staking ledger of the pool bonded account
1176
- * while all other accounts leave.
1177
- **/
1178
- minCreateBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1179
- /**
1180
- * Minimum amount to bond to join a pool.
1181
- **/
1182
- minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1183
- /**
1184
- * Active members.
1185
- *
1186
- * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1187
- **/
1188
- poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [
1189
- AccountId32
1190
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1191
- /**
1192
- * A reverse lookup from the pool's account id to its id.
1193
- *
1194
- * This is only used for slashing. In all other instances, the pool id is used, and the
1195
- * accounts are deterministically derived from it.
1196
- **/
1197
- reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [
1198
- AccountId32
1199
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1200
- /**
1201
- * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
1202
- * claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
1203
- **/
1204
- rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [
1205
- u32
1206
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1207
- /**
1208
- * Groups of unbonding pools. Each group of unbonding pools belongs to a
1209
- * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
1210
- **/
1211
- subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [
1212
- u32
1213
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1214
- /**
1215
- * The sum of funds across all pools.
1216
- *
1217
- * This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
1218
- * because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
1219
- * `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
1220
- **/
1221
- totalValueLocked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1222
- /**
1223
- * Generic query
1224
- **/
1225
- [key: string]: QueryableStorageEntry<ApiType>;
1226
- };
1227
- offences: {
1228
- /**
1229
- * A vector of reports of the same kind that happened at the same time slot.
1230
- **/
1231
- concurrentReportsIndex: AugmentedQuery<ApiType, (arg1: U8aFixed | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Vec<H256>>, [
1232
- U8aFixed,
1233
- Bytes
1234
- ]> & QueryableStorageEntry<ApiType, [U8aFixed, Bytes]>;
1235
- /**
1236
- * The primary structure that holds all offence records keyed by report identifiers.
1237
- **/
1238
- reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [
1239
- H256
1240
- ]> & QueryableStorageEntry<ApiType, [H256]>;
1241
- /**
1242
- * Generic query
1243
- **/
1244
- [key: string]: QueryableStorageEntry<ApiType>;
1245
- };
1246
- preimage: {
1247
- preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [
1248
- ITuple<[H256, u32]>
1249
- ]> & QueryableStorageEntry<ApiType, [ITuple<[H256, u32]>]>;
1250
- /**
1251
- * The request status of a given hash.
1252
- **/
1253
- requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [
1254
- H256
1255
- ]> & QueryableStorageEntry<ApiType, [H256]>;
1256
- /**
1257
- * The request status of a given hash.
1258
- **/
1259
- statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [
1260
- H256
1261
- ]> & QueryableStorageEntry<ApiType, [H256]>;
1262
- /**
1263
- * Generic query
1264
- **/
1265
- [key: string]: QueryableStorageEntry<ApiType>;
1266
- };
1267
- proxy: {
1268
- /**
1269
- * The announcements made by the proxy (key).
1270
- **/
1271
- announcements: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyAnnouncement>, u128]>>, [
1272
- AccountId32
1273
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1274
- /**
1275
- * The set of account proxies. Maps the account which has delegated to the accounts
1276
- * which are being delegated to, together with the amount held on deposit.
1277
- **/
1278
- proxies: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyProxyDefinition>, u128]>>, [
1279
- AccountId32
1280
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1281
- /**
1282
- * Generic query
1283
- **/
1284
- [key: string]: QueryableStorageEntry<ApiType>;
1285
- };
1286
- randomnessCollectiveFlip: {
1287
- /**
1288
- * Series of block headers from the last 81 blocks that acts as random seed material. This
1289
- * is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of
1290
- * the oldest hash.
1291
- **/
1292
- randomMaterial: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
1293
- /**
1294
- * Generic query
1295
- **/
1296
- [key: string]: QueryableStorageEntry<ApiType>;
1297
- };
1298
- scheduler: {
1299
- /**
1300
- * Items to be executed, indexed by the block number that they should be executed on.
1301
- **/
1302
- agenda: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [
1303
- u64
1304
- ]> & QueryableStorageEntry<ApiType, [u64]>;
1305
- incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u64>>, [
1306
- ]> & QueryableStorageEntry<ApiType, []>;
1307
- /**
1308
- * Lookup from a name to the block number and index of the task.
1309
- *
1310
- * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
1311
- * identities.
1312
- **/
1313
- lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u64, u32]>>>, [
1314
- U8aFixed
1315
- ]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
1316
- /**
1317
- * Generic query
1318
- **/
1319
- [key: string]: QueryableStorageEntry<ApiType>;
1320
- };
1321
- services: {
1322
- /**
1323
- * The service blueprints along with their owner.
1324
- **/
1325
- blueprints: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, TanglePrimitivesServicesServiceBlueprint]>>>, [
1326
- u64
1327
- ]> & QueryableStorageEntry<ApiType, [u64]>;
1328
- /**
1329
- * The Services Instances
1330
- * Service ID -> Service
1331
- **/
1332
- instances: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<TanglePrimitivesServicesService>>, [
1333
- u64
1334
- ]> & QueryableStorageEntry<ApiType, [u64]>;
1335
- /**
1336
- * The Service Job Calls
1337
- * Service ID -> Call ID -> Job Call
1338
- **/
1339
- jobCalls: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<TanglePrimitivesServicesJobCall>>, [
1340
- u64,
1341
- u64
1342
- ]> & QueryableStorageEntry<ApiType, [u64, u64]>;
1343
- /**
1344
- * The Service Job Call Results
1345
- * Service ID -> Call ID -> Job Call Result
1346
- **/
1347
- jobResults: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<TanglePrimitivesServicesJobCallResult>>, [
1348
- u64,
1349
- u64
1350
- ]> & QueryableStorageEntry<ApiType, [u64, u64]>;
1351
- /**
1352
- * The next free ID for a service blueprint.
1353
- **/
1354
- nextBlueprintId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
1355
- /**
1356
- * The next free ID for a service Instance.
1357
- **/
1358
- nextInstanceId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
1359
- /**
1360
- * The next free ID for a service call.
1361
- **/
1362
- nextJobCallId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
1363
- /**
1364
- * The next free ID for a service request.
1365
- **/
1366
- nextServiceRequestId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
1367
- /**
1368
- * The operators for a specific service blueprint.
1369
- * Blueprint ID -> Operator -> Operator Preferences
1370
- **/
1371
- operators: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<TanglePrimitivesServicesOperatorPreferences>>, [
1372
- u64,
1373
- AccountId32
1374
- ]> & QueryableStorageEntry<ApiType, [u64, AccountId32]>;
1375
- operatorsProfile: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<TanglePrimitivesServicesOperatorProfile>>, [
1376
- AccountId32
1377
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1378
- /**
1379
- * The service requests along with their owner.
1380
- * Request ID -> Service Request
1381
- **/
1382
- serviceRequests: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<TanglePrimitivesServicesServiceRequest>>, [
1383
- u64
1384
- ]> & QueryableStorageEntry<ApiType, [u64]>;
1385
- /**
1386
- * User Service Instances
1387
- * User Account ID -> Service ID
1388
- **/
1389
- userServices: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<BTreeSet<u64>>, [
1390
- AccountId32
1391
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1392
- /**
1393
- * Generic query
1394
- **/
1395
- [key: string]: QueryableStorageEntry<ApiType>;
1396
- };
1397
- session: {
1398
- /**
1399
- * Current index of the session.
1400
- **/
1401
- currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1402
- /**
1403
- * Indices of disabled validators.
1404
- *
1405
- * The vec is always kept sorted so that we can find whether a given validator is
1406
- * disabled using binary search. It gets cleared when `on_session_ending` returns
1407
- * a new set of identities.
1408
- **/
1409
- disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, [
1410
- ]> & QueryableStorageEntry<ApiType, []>;
1411
- /**
1412
- * The owner of a key. The key is the `KeyTypeId` + the encoded key.
1413
- **/
1414
- keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [
1415
- SpCoreCryptoKeyTypeId | string | Uint8Array,
1416
- Bytes | string | Uint8Array
1417
- ]) => Observable<Option<AccountId32>>, [
1418
- ITuple<[SpCoreCryptoKeyTypeId, Bytes]>
1419
- ]> & QueryableStorageEntry<ApiType, [
1420
- ITuple<[SpCoreCryptoKeyTypeId, Bytes]>
1421
- ]>;
1422
- /**
1423
- * The next session keys for a validator.
1424
- **/
1425
- nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<TangleTestnetRuntimeOpaqueSessionKeys>>, [
1426
- AccountId32
1427
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1428
- /**
1429
- * True if the underlying economic identities or weighting behind the validators
1430
- * has changed in the queued validator set.
1431
- **/
1432
- queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1433
- /**
1434
- * The queued keys for the next session. When the next session begins, these keys
1435
- * will be used to determine the validator's session keys.
1436
- **/
1437
- queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, TangleTestnetRuntimeOpaqueSessionKeys]>>>, [
1438
- ]> & QueryableStorageEntry<ApiType, []>;
1439
- /**
1440
- * The current set of validators.
1441
- **/
1442
- validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, [
1443
- ]> & QueryableStorageEntry<ApiType, []>;
1444
- /**
1445
- * Generic query
1446
- **/
1447
- [key: string]: QueryableStorageEntry<ApiType>;
1448
- };
1449
- staking: {
1450
- /**
1451
- * The active era information, it holds index and start.
1452
- *
1453
- * The active era is the era being currently rewarded. Validator set of this era must be
1454
- * equal to [`SessionInterface::validators`].
1455
- **/
1456
- activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, [
1457
- ]> & QueryableStorageEntry<ApiType, []>;
1458
- /**
1459
- * Map from all locked "stash" accounts to the controller account.
1460
- *
1461
- * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1462
- **/
1463
- bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [
1464
- AccountId32
1465
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1466
- /**
1467
- * A mapping from still-bonded eras to the first session index of that era.
1468
- *
1469
- * Must contains information for eras for the range:
1470
- * `[active_era - bounding_duration; active_era]`
1471
- **/
1472
- bondedEras: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, [
1473
- ]> & QueryableStorageEntry<ApiType, []>;
1474
- /**
1475
- * The amount of currency given to reporters of a slash event which was
1476
- * canceled by extraordinary circumstances (e.g. governance).
1477
- **/
1478
- canceledSlashPayout: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1479
- /**
1480
- * The threshold for when users can start calling `chill_other` for other validators /
1481
- * nominators. The threshold is compared to the actual number of validators / nominators
1482
- * (`CountFor*`) in the system compared to the configured max (`Max*Count`).
1483
- **/
1484
- chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, [
1485
- ]> & QueryableStorageEntry<ApiType, []>;
1486
- /**
1487
- * History of claimed paged rewards by era and validator.
1488
- *
1489
- * This is keyed by era and validator stash which maps to the set of page indexes which have
1490
- * been claimed.
1491
- *
1492
- * It is removed after [`Config::HistoryDepth`] eras.
1493
- **/
1494
- claimedRewards: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>, [
1495
- u32,
1496
- AccountId32
1497
- ]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1498
- /**
1499
- * Counter for the related counted storage map
1500
- **/
1501
- counterForNominators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1502
- /**
1503
- * Counter for the related counted storage map
1504
- **/
1505
- counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1506
- /**
1507
- * The current era index.
1508
- *
1509
- * This is the latest planned era, depending on how the Session pallet queues the validator
1510
- * set, it might be active or not.
1511
- **/
1512
- currentEra: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1513
- /**
1514
- * The last planned session scheduled by the session pallet.
1515
- *
1516
- * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
1517
- **/
1518
- currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, [
1519
- ]> & QueryableStorageEntry<ApiType, []>;
1520
- /**
1521
- * Rewards for the last [`Config::HistoryDepth`] eras.
1522
- * If reward hasn't been set or has been removed then 0 reward is returned.
1523
- **/
1524
- erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [
1525
- u32
1526
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1527
- /**
1528
- * Exposure of validator at era.
1529
- *
1530
- * This is keyed first by the era index to allow bulk deletion and then the stash account.
1531
- *
1532
- * Is it removed after [`Config::HistoryDepth`] eras.
1533
- * If stakers hasn't been set or has been removed then empty exposure is returned.
1534
- *
1535
- * Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
1536
- **/
1537
- erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [
1538
- u32,
1539
- AccountId32
1540
- ]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1541
- /**
1542
- * Clipped Exposure of validator at era.
1543
- *
1544
- * Note: This is deprecated, should be used as read-only and will be removed in the future.
1545
- * New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
1546
- *
1547
- * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
1548
- * `T::MaxExposurePageSize` biggest stakers.
1549
- * (Note: the field `total` and `own` of the exposure remains unchanged).
1550
- * This is used to limit the i/o cost for the nominator payout.
1551
- *
1552
- * This is keyed fist by the era index to allow bulk deletion and then the stash account.
1553
- *
1554
- * It is removed after [`Config::HistoryDepth`] eras.
1555
- * If stakers hasn't been set or has been removed then empty exposure is returned.
1556
- *
1557
- * Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
1558
- **/
1559
- erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [
1560
- u32,
1561
- AccountId32
1562
- ]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1563
- /**
1564
- * Summary of validator exposure at a given era.
1565
- *
1566
- * This contains the total stake in support of the validator and their own stake. In addition,
1567
- * it can also be used to get the number of nominators backing this validator and the number of
1568
- * exposure pages they are divided into. The page count is useful to determine the number of
1569
- * pages of rewards that needs to be claimed.
1570
- *
1571
- * This is keyed first by the era index to allow bulk deletion and then the stash account.
1572
- * Should only be accessed through `EraInfo`.
1573
- *
1574
- * Is it removed after [`Config::HistoryDepth`] eras.
1575
- * If stakers hasn't been set or has been removed then empty overview is returned.
1576
- **/
1577
- erasStakersOverview: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<SpStakingPagedExposureMetadata>>, [
1578
- u32,
1579
- AccountId32
1580
- ]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1581
- /**
1582
- * Paginated exposure of a validator at given era.
1583
- *
1584
- * This is keyed first by the era index to allow bulk deletion, then stash account and finally
1585
- * the page. Should only be accessed through `EraInfo`.
1586
- *
1587
- * This is cleared after [`Config::HistoryDepth`] eras.
1588
- **/
1589
- erasStakersPaged: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<SpStakingExposurePage>>, [
1590
- u32,
1591
- AccountId32,
1592
- u32
1593
- ]> & QueryableStorageEntry<ApiType, [u32, AccountId32, u32]>;
1594
- /**
1595
- * The session index at which the era start for the last [`Config::HistoryDepth`] eras.
1596
- *
1597
- * Note: This tracks the starting session (i.e. session index when era start being active)
1598
- * for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
1599
- **/
1600
- erasStartSessionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [
1601
- u32
1602
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1603
- /**
1604
- * The total amount staked for the last [`Config::HistoryDepth`] eras.
1605
- * If total hasn't been set or has been removed then 0 stake is returned.
1606
- **/
1607
- erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [
1608
- u32
1609
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1610
- /**
1611
- * Similar to `ErasStakers`, this holds the preferences of validators.
1612
- *
1613
- * This is keyed first by the era index to allow bulk deletion and then the stash account.
1614
- *
1615
- * Is it removed after [`Config::HistoryDepth`] eras.
1616
- **/
1617
- erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [
1618
- u32,
1619
- AccountId32
1620
- ]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1621
- /**
1622
- * The total validator era payout for the last [`Config::HistoryDepth`] eras.
1623
- *
1624
- * Eras that haven't finished yet or has been removed doesn't have reward.
1625
- **/
1626
- erasValidatorReward: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [
1627
- u32
1628
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1629
- /**
1630
- * Mode of era forcing.
1631
- **/
1632
- forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingForcing>, [
1633
- ]> & QueryableStorageEntry<ApiType, []>;
1634
- /**
1635
- * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
1636
- * easy to initialize and the performance hit is minimal (we expect no more than four
1637
- * invulnerables) and restricted to testnets.
1638
- **/
1639
- invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, [
1640
- ]> & QueryableStorageEntry<ApiType, []>;
1641
- /**
1642
- * Map from all (unlocked) "controller" accounts to the info regarding the staking.
1643
- *
1644
- * Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
1645
- * by [`StakingLedger`] to ensure data and lock consistency.
1646
- **/
1647
- ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [
1648
- AccountId32
1649
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1650
- /**
1651
- * The maximum nominator count before we stop allowing new validators to join.
1652
- *
1653
- * When this value is not set, no limits are enforced.
1654
- **/
1655
- maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, [
1656
- ]> & QueryableStorageEntry<ApiType, []>;
1657
- /**
1658
- * The maximum validator count before we stop allowing new validators to join.
1659
- *
1660
- * When this value is not set, no limits are enforced.
1661
- **/
1662
- maxValidatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, [
1663
- ]> & QueryableStorageEntry<ApiType, []>;
1664
- /**
1665
- * The minimum amount of commission that validators can set.
1666
- *
1667
- * If set to `0`, no limit exists.
1668
- **/
1669
- minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
1670
- /**
1671
- * The minimum active nominator stake of the last successful election.
1672
- **/
1673
- minimumActiveStake: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1674
- /**
1675
- * Minimum number of staking participants before emergency conditions are imposed.
1676
- **/
1677
- minimumValidatorCount: AugmentedQuery<ApiType, () => Observable<u32>, [
1678
- ]> & QueryableStorageEntry<ApiType, []>;
1679
- /**
1680
- * The minimum active bond to become and maintain the role of a nominator.
1681
- **/
1682
- minNominatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1683
- /**
1684
- * The minimum active bond to become and maintain the role of a validator.
1685
- **/
1686
- minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1687
- /**
1688
- * The map from nominator stash key to their nomination preferences, namely the validators that
1689
- * they wish to support.
1690
- *
1691
- * Note that the keys of this storage map might become non-decodable in case the
1692
- * account's [`NominationsQuota::MaxNominations`] configuration is decreased.
1693
- * In this rare case, these nominators
1694
- * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
1695
- * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
1696
- * nominators will effectively not-exist, until they re-submit their preferences such that it
1697
- * is within the bounds of the newly set `Config::MaxNominations`.
1698
- *
1699
- * This implies that `::iter_keys().count()` and `::iter().count()` might return different
1700
- * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
1701
- * number of keys that exist.
1702
- *
1703
- * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
1704
- * [`Call::chill_other`] dispatchable by anyone.
1705
- *
1706
- * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1707
- **/
1708
- nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [
1709
- AccountId32
1710
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1711
- /**
1712
- * All slashing events on nominators, mapped by era to the highest slash value of the era.
1713
- **/
1714
- nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [
1715
- u32,
1716
- AccountId32
1717
- ]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1718
- /**
1719
- * Indices of validators that have offended in the active era and whether they are currently
1720
- * disabled.
1721
- *
1722
- * This value should be a superset of disabled validators since not all offences lead to the
1723
- * validator being disabled (if there was no slash). This is needed to track the percentage of
1724
- * validators that have offended in the current era, ensuring a new era is forced if
1725
- * `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
1726
- * whether a given validator has previously offended using binary search. It gets cleared when
1727
- * the era ends.
1728
- **/
1729
- offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, [
1730
- ]> & QueryableStorageEntry<ApiType, []>;
1731
- /**
1732
- * Where the reward payment should be made. Keyed by stash.
1733
- *
1734
- * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1735
- **/
1736
- payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingRewardDestination>>, [
1737
- AccountId32
1738
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1739
- /**
1740
- * Slashing spans for stash accounts.
1741
- **/
1742
- slashingSpans: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingSlashingSlashingSpans>>, [
1743
- AccountId32
1744
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1745
- /**
1746
- * The percentage of the slash that is distributed to reporters.
1747
- *
1748
- * The rest of the slashed value is handled by the `Slash`.
1749
- **/
1750
- slashRewardFraction: AugmentedQuery<ApiType, () => Observable<Perbill>, [
1751
- ]> & QueryableStorageEntry<ApiType, []>;
1752
- /**
1753
- * Records information about the maximum slash of a stash within a slashing span,
1754
- * as well as how much reward has been paid out.
1755
- **/
1756
- spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [
1757
- ITuple<[AccountId32, u32]>
1758
- ]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
1759
- /**
1760
- * All unapplied slashes that are queued for later.
1761
- **/
1762
- unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [
1763
- u32
1764
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1765
- /**
1766
- * The ideal number of active validators.
1767
- **/
1768
- validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1769
- /**
1770
- * The map from (wannabe) validator stash key to the preferences of that validator.
1771
- *
1772
- * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1773
- **/
1774
- validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [
1775
- AccountId32
1776
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1777
- /**
1778
- * All slashing events on validators, mapped by era to the highest slash proportion
1779
- * and slash value of the era.
1780
- **/
1781
- validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [
1782
- u32,
1783
- AccountId32
1784
- ]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1785
- /**
1786
- * Generic query
1787
- **/
1788
- [key: string]: QueryableStorageEntry<ApiType>;
1789
- };
1790
- sudo: {
1791
- /**
1792
- * The `AccountId` of the sudo key.
1793
- **/
1794
- key: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
1795
- /**
1796
- * Generic query
1797
- **/
1798
- [key: string]: QueryableStorageEntry<ApiType>;
1799
- };
1800
- sygmaAccessSegregator: {
1801
- /**
1802
- * Mapping signature of extrinsic to account has access
1803
- * (pallet_index, extrinsic_name) => account
1804
- **/
1805
- extrinsicAccess: AugmentedQuery<ApiType, (arg: ITuple<[u8, Bytes]> | [u8 | AnyNumber | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [
1806
- ITuple<[u8, Bytes]>
1807
- ]> & QueryableStorageEntry<ApiType, [ITuple<[u8, Bytes]>]>;
1808
- /**
1809
- * Generic query
1810
- **/
1811
- [key: string]: QueryableStorageEntry<ApiType>;
1812
- };
1813
- sygmaBasicFeeHandler: {
1814
- /**
1815
- * Mapping fungible asset id to corresponding fee amount
1816
- **/
1817
- assetFees: AugmentedQuery<ApiType, (arg: ITuple<[u8, StagingXcmV4AssetAssetId]> | [
1818
- u8 | AnyNumber | Uint8Array,
1819
- (StagingXcmV4AssetAssetId | {
1820
- parents?: any;
1821
- interior?: any;
1822
- } | string | Uint8Array)
1823
- ]) => Observable<Option<u128>>, [
1824
- ITuple<[u8, StagingXcmV4AssetAssetId]>
1825
- ]> & QueryableStorageEntry<ApiType, [
1826
- ITuple<[u8, StagingXcmV4AssetAssetId]>
1827
- ]>;
1828
- /**
1829
- * Generic query
1830
- **/
1831
- [key: string]: QueryableStorageEntry<ApiType>;
1832
- };
1833
- sygmaBridge: {
1834
- /**
1835
- * Deposit counter of dest domain
1836
- **/
1837
- depositCounts: AugmentedQuery<ApiType, (arg: u8 | AnyNumber | Uint8Array) => Observable<u64>, [
1838
- u8
1839
- ]> & QueryableStorageEntry<ApiType, [u8]>;
1840
- /**
1841
- * Mark the pairs for supported dest domainID with its corresponding chainID
1842
- * The chainID is not directly used in pallet, this map is designed more about rechecking the
1843
- * domainID
1844
- **/
1845
- destChainIds: AugmentedQuery<ApiType, (arg: u8 | AnyNumber | Uint8Array) => Observable<Option<U256>>, [
1846
- u8
1847
- ]> & QueryableStorageEntry<ApiType, [u8]>;
1848
- /**
1849
- * Mark supported dest domainID
1850
- **/
1851
- destDomainIds: AugmentedQuery<ApiType, (arg: u8 | AnyNumber | Uint8Array) => Observable<bool>, [
1852
- u8
1853
- ]> & QueryableStorageEntry<ApiType, [u8]>;
1854
- /**
1855
- * Bridge Pause indicator
1856
- * Bridge is unpaused initially, until pause
1857
- * After mpc address setup, bridge should be paused until ready to unpause
1858
- **/
1859
- isPaused: AugmentedQuery<ApiType, (arg: u8 | AnyNumber | Uint8Array) => Observable<bool>, [
1860
- u8
1861
- ]> & QueryableStorageEntry<ApiType, [u8]>;
1862
- /**
1863
- * Pre-set MPC address
1864
- **/
1865
- mpcAddr: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> & QueryableStorageEntry<ApiType, []>;
1866
- /**
1867
- * Mark whether a deposit nonce was used. Used to mark execution status of a proposal.
1868
- **/
1869
- usedNonces: AugmentedQuery<ApiType, (arg1: u8 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<u64>, [
1870
- u8,
1871
- u64
1872
- ]> & QueryableStorageEntry<ApiType, [u8, u64]>;
1873
- /**
1874
- * Generic query
1875
- **/
1876
- [key: string]: QueryableStorageEntry<ApiType>;
1877
- };
1878
- sygmaFeeHandlerRouter: {
1879
- /**
1880
- * Return the Fee handler type based on domainID and assetID
1881
- **/
1882
- handlerType: AugmentedQuery<ApiType, (arg: ITuple<[u8, StagingXcmV4AssetAssetId]> | [
1883
- u8 | AnyNumber | Uint8Array,
1884
- (StagingXcmV4AssetAssetId | {
1885
- parents?: any;
1886
- interior?: any;
1887
- } | string | Uint8Array)
1888
- ]) => Observable<Option<SygmaFeeHandlerRouterFeeHandlerType>>, [
1889
- ITuple<[u8, StagingXcmV4AssetAssetId]>
1890
- ]> & QueryableStorageEntry<ApiType, [
1891
- ITuple<[u8, StagingXcmV4AssetAssetId]>
1892
- ]>;
1893
- /**
1894
- * Generic query
1895
- **/
1896
- [key: string]: QueryableStorageEntry<ApiType>;
1897
- };
1898
- sygmaPercentageFeeHandler: {
1899
- /**
1900
- * Mapping fungible asset id with domain id to fee rate and its lower bound, upperbound
1901
- **/
1902
- assetFeeRate: AugmentedQuery<ApiType, (arg: ITuple<[u8, StagingXcmV4AssetAssetId]> | [
1903
- u8 | AnyNumber | Uint8Array,
1904
- (StagingXcmV4AssetAssetId | {
1905
- parents?: any;
1906
- interior?: any;
1907
- } | string | Uint8Array)
1908
- ]) => Observable<Option<ITuple<[u32, u128, u128]>>>, [
1909
- ITuple<[u8, StagingXcmV4AssetAssetId]>
1910
- ]> & QueryableStorageEntry<ApiType, [
1911
- ITuple<[u8, StagingXcmV4AssetAssetId]>
1912
- ]>;
1913
- /**
1914
- * Generic query
1915
- **/
1916
- [key: string]: QueryableStorageEntry<ApiType>;
1917
- };
1918
- system: {
1919
- /**
1920
- * The full account information for a particular account ID.
1921
- **/
1922
- account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [
1923
- AccountId32
1924
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1925
- /**
1926
- * Total length (in bytes) for all extrinsics put together, for the current block.
1927
- **/
1928
- allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, [
1929
- ]> & QueryableStorageEntry<ApiType, []>;
1930
- /**
1931
- * `Some` if a code upgrade has been authorized.
1932
- **/
1933
- authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, [
1934
- ]> & QueryableStorageEntry<ApiType, []>;
1935
- /**
1936
- * Map of block numbers to block hashes.
1937
- **/
1938
- blockHash: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<H256>, [
1939
- u64
1940
- ]> & QueryableStorageEntry<ApiType, [u64]>;
1941
- /**
1942
- * The current weight for the block.
1943
- **/
1944
- blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, [
1945
- ]> & QueryableStorageEntry<ApiType, []>;
1946
- /**
1947
- * Digest of the current block, also part of the block header.
1948
- **/
1949
- digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []> & QueryableStorageEntry<ApiType, []>;
1950
- /**
1951
- * The number of events in the `Events<T>` list.
1952
- **/
1953
- eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1954
- /**
1955
- * Events deposited for the current block.
1956
- *
1957
- * NOTE: The item is unbound and should therefore never be read on chain.
1958
- * It could otherwise inflate the PoV size of a block.
1959
- *
1960
- * Events have a large in-memory size. Box the events to not go out-of-memory
1961
- * just in case someone still reads them from within the runtime.
1962
- **/
1963
- events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, [
1964
- ]> & QueryableStorageEntry<ApiType, []>;
1965
- /**
1966
- * Mapping between a topic (represented by T::Hash) and a vector of indexes
1967
- * of events in the `<Events<T>>` list.
1968
- *
1969
- * All topic vectors have deterministic storage locations depending on the topic. This
1970
- * allows light-clients to leverage the changes trie storage tracking mechanism and
1971
- * in case of changes fetch the list of events of interest.
1972
- *
1973
- * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
1974
- * the `EventIndex` then in case if the topic has the same contents on the next block
1975
- * no notification will be triggered thus the event might be lost.
1976
- **/
1977
- eventTopics: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u64, u32]>>>, [
1978
- H256
1979
- ]> & QueryableStorageEntry<ApiType, [H256]>;
1980
- /**
1981
- * The execution phase of the block.
1982
- **/
1983
- executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, [
1984
- ]> & QueryableStorageEntry<ApiType, []>;
1985
- /**
1986
- * Total extrinsics count for the current block.
1987
- **/
1988
- extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, [
1989
- ]> & QueryableStorageEntry<ApiType, []>;
1990
- /**
1991
- * Extrinsics data for the current block (maps an extrinsic's index to its data).
1992
- **/
1993
- extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [
1994
- u32
1995
- ]> & QueryableStorageEntry<ApiType, [u32]>;
1996
- /**
1997
- * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
1998
- **/
1999
- lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>, [
2000
- ]> & QueryableStorageEntry<ApiType, []>;
2001
- /**
2002
- * The current block number being processed. Set by `execute_block`.
2003
- **/
2004
- number: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
2005
- /**
2006
- * Hash of the previous block.
2007
- **/
2008
- parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
2009
- /**
2010
- * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
2011
- * (default) if not.
2012
- **/
2013
- upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, [
2014
- ]> & QueryableStorageEntry<ApiType, []>;
2015
- /**
2016
- * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
2017
- **/
2018
- upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, [
2019
- ]> & QueryableStorageEntry<ApiType, []>;
2020
- /**
2021
- * Generic query
2022
- **/
2023
- [key: string]: QueryableStorageEntry<ApiType>;
2024
- };
2025
- timestamp: {
2026
- /**
2027
- * Whether the timestamp has been updated in this block.
2028
- *
2029
- * This value is updated to `true` upon successful submission of a timestamp by a node.
2030
- * It is then checked at the end of each block execution in the `on_finalize` hook.
2031
- **/
2032
- didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
2033
- /**
2034
- * The current time for the current block.
2035
- **/
2036
- now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
2037
- /**
2038
- * Generic query
2039
- **/
2040
- [key: string]: QueryableStorageEntry<ApiType>;
2041
- };
2042
- transactionPayment: {
2043
- nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
2044
- storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, [
2045
- ]> & QueryableStorageEntry<ApiType, []>;
2046
- /**
2047
- * Generic query
2048
- **/
2049
- [key: string]: QueryableStorageEntry<ApiType>;
2050
- };
2051
- treasury: {
2052
- /**
2053
- * Proposal indices that have been approved but not yet awarded.
2054
- **/
2055
- approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
2056
- /**
2057
- * The amount which has been reported as inactive to Currency.
2058
- **/
2059
- deactivated: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
2060
- /**
2061
- * Number of proposals that have been made.
2062
- **/
2063
- proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
2064
- /**
2065
- * Proposals that have been made.
2066
- **/
2067
- proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryProposal>>, [
2068
- u32
2069
- ]> & QueryableStorageEntry<ApiType, [u32]>;
2070
- /**
2071
- * The count of spends that have been made.
2072
- **/
2073
- spendCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
2074
- /**
2075
- * Spends that have been approved and being processed.
2076
- **/
2077
- spends: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasurySpendStatus>>, [
2078
- u32
2079
- ]> & QueryableStorageEntry<ApiType, [u32]>;
2080
- /**
2081
- * Generic query
2082
- **/
2083
- [key: string]: QueryableStorageEntry<ApiType>;
2084
- };
2085
- txPause: {
2086
- /**
2087
- * The set of calls that are explicitly paused.
2088
- **/
2089
- pausedCalls: AugmentedQuery<ApiType, (arg: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<Null>>, [
2090
- ITuple<[Bytes, Bytes]>
2091
- ]> & QueryableStorageEntry<ApiType, [ITuple<[Bytes, Bytes]>]>;
2092
- /**
2093
- * Generic query
2094
- **/
2095
- [key: string]: QueryableStorageEntry<ApiType>;
2096
- };
2097
- vesting: {
2098
- /**
2099
- * Storage version of the pallet.
2100
- *
2101
- * New networks start with latest version, as determined by the genesis build.
2102
- **/
2103
- storageVersion: AugmentedQuery<ApiType, () => Observable<PalletVestingReleases>, [
2104
- ]> & QueryableStorageEntry<ApiType, []>;
2105
- /**
2106
- * Information regarding the vesting of a given account.
2107
- **/
2108
- vesting: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<PalletVestingVestingInfo>>>, [
2109
- AccountId32
2110
- ]> & QueryableStorageEntry<ApiType, [AccountId32]>;
2111
- /**
2112
- * Generic query
2113
- **/
2114
- [key: string]: QueryableStorageEntry<ApiType>;
2115
- };
2116
- }
2117
- }