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