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

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