@pezkuwi/api-augment 16.5.5
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 +3 -0
- package/build/base.d.ts +2 -0
- package/build/bundle.d.ts +2 -0
- package/build/index.d.ts +2 -0
- package/build/packageDetect.d.ts +1 -0
- package/build/packageInfo.d.ts +6 -0
- package/build/substrate/consts.d.ts +1876 -0
- package/build/substrate/errors.d.ts +3865 -0
- package/build/substrate/events.d.ts +4702 -0
- package/build/substrate/index.d.ts +8 -0
- package/build/substrate/query.d.ts +2767 -0
- package/build/substrate/registry.d.ts +1 -0
- package/build/substrate/runtime.d.ts +741 -0
- package/build/substrate/tx.d.ts +10869 -0
- package/package.json +32 -0
- package/src/assetHubKusama/consts.ts +1308 -0
- package/src/assetHubKusama/errors.ts +2779 -0
- package/src/assetHubKusama/events.ts +2296 -0
- package/src/assetHubKusama/index.ts +11 -0
- package/src/assetHubKusama/query.ts +2193 -0
- package/src/assetHubKusama/registry.ts +4 -0
- package/src/assetHubKusama/runtime.ts +518 -0
- package/src/assetHubKusama/tx.ts +6890 -0
- package/src/assetHubPolkadot/consts.ts +1125 -0
- package/src/assetHubPolkadot/errors.ts +2360 -0
- package/src/assetHubPolkadot/events.ts +2129 -0
- package/src/assetHubPolkadot/index.ts +11 -0
- package/src/assetHubPolkadot/query.ts +2002 -0
- package/src/assetHubPolkadot/registry.ts +4 -0
- package/src/assetHubPolkadot/runtime.ts +443 -0
- package/src/assetHubPolkadot/tx.ts +6242 -0
- package/src/base.ts +6 -0
- package/src/bundle.ts +6 -0
- package/src/index.ts +6 -0
- package/src/kusama/consts.ts +1035 -0
- package/src/kusama/errors.ts +2436 -0
- package/src/kusama/events.ts +1791 -0
- package/src/kusama/index.ts +11 -0
- package/src/kusama/query.ts +2505 -0
- package/src/kusama/registry.ts +6 -0
- package/src/kusama/runtime.ts +610 -0
- package/src/kusama/tx.ts +4725 -0
- package/src/mod.ts +4 -0
- package/src/packageDetect.ts +14 -0
- package/src/packageInfo.ts +6 -0
- package/src/polkadot/consts.ts +949 -0
- package/src/polkadot/errors.ts +2156 -0
- package/src/polkadot/events.ts +1600 -0
- package/src/polkadot/index.ts +11 -0
- package/src/polkadot/query.ts +2357 -0
- package/src/polkadot/registry.ts +5 -0
- package/src/polkadot/runtime.ts +621 -0
- package/src/polkadot/tx.ts +4240 -0
- package/src/substrate/consts.ts +1884 -0
- package/src/substrate/errors.ts +3873 -0
- package/src/substrate/events.ts +2889 -0
- package/src/substrate/index.ts +11 -0
- package/src/substrate/query.ts +2734 -0
- package/src/substrate/registry.ts +4 -0
- package/src/substrate/runtime.ts +593 -0
- package/src/substrate/tx.ts +8208 -0
- package/tsconfig.assetHubKusama.json +22 -0
- package/tsconfig.assetHubPolkadot.json +22 -0
- package/tsconfig.build.json +23 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.kusama.json +22 -0
- package/tsconfig.polkadot.json +22 -0
|
@@ -0,0 +1,2357 @@
|
|
|
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 '@pezkuwi/api-base/types';
|
|
9
|
+
import type { BTreeMap, BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@pezkuwi/types-codec';
|
|
10
|
+
import type { AnyNumber, IMethod, ITuple } from '@pezkuwi/types-codec/types';
|
|
11
|
+
import type { EthereumAddress } from '@pezkuwi/types/interfaces/eth';
|
|
12
|
+
import type { AccountId32, Call, H256, Perbill, Percent } from '@pezkuwi/types/interfaces/runtime';
|
|
13
|
+
import type { BinaryHeapEnqueuedOrder, FrameSupportDispatchPerDispatchClassWeight, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletDelegatedStakingAgentLedger, PalletDelegatedStakingDelegation, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRcMigratorAccountsAccountState, PalletRcMigratorAccountsMigratedBalances, PalletRcMigratorMigrationSettings, PalletRcMigratorMigrationStage, PalletRcMigratorQueuePriority, PalletReferendaReferendumInfo, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingAsyncAhClientOperatingMode, PalletStakingAsyncRcClientOffence, PalletStakingAsyncRcClientSessionReport, PalletStakingAsyncRcClientValidatorSetReport, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmAuthorizedAliasesEntry, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV8AssignmentAppPublic, PolkadotPrimitivesV8DisputeState, PolkadotPrimitivesV8ExecutorParams, PolkadotPrimitivesV8SessionInfo, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, PolkadotPrimitivesV8ValidatorAppPublic, PolkadotPrimitivesVstagingPendingSlashes, PolkadotPrimitivesVstagingScrapedOnChainVotes, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsParasAuthorizedCodeHashAndExpiry, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCommonAssignment, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingXcmV5Instruction, StagingXcmV5Xcm, XcmVersionedAssetId, XcmVersionedLocation } from '@pezkuwi/types/lookup';
|
|
14
|
+
import type { Observable } from '@pezkuwi/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
|
+
assetRate: {
|
|
22
|
+
/**
|
|
23
|
+
* Maps an asset to its fixed point representation in the native balance.
|
|
24
|
+
*
|
|
25
|
+
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
|
|
26
|
+
**/
|
|
27
|
+
conversionRateToNative: AugmentedQuery<ApiType, (arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<u128>>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]>;
|
|
28
|
+
/**
|
|
29
|
+
* Generic query
|
|
30
|
+
**/
|
|
31
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
32
|
+
};
|
|
33
|
+
auctions: {
|
|
34
|
+
/**
|
|
35
|
+
* Number of auctions started so far.
|
|
36
|
+
**/
|
|
37
|
+
auctionCounter: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
38
|
+
/**
|
|
39
|
+
* Information relating to the current auction, if there is one.
|
|
40
|
+
*
|
|
41
|
+
* The first item in the tuple is the lease period index that the first of the four
|
|
42
|
+
* contiguous lease periods on auction is for. The second is the block number when the
|
|
43
|
+
* auction will "begin to end", i.e. the first block of the Ending Period of the auction.
|
|
44
|
+
**/
|
|
45
|
+
auctionInfo: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
46
|
+
/**
|
|
47
|
+
* Amounts currently reserved in the accounts of the bidders currently winning
|
|
48
|
+
* (sub-)ranges.
|
|
49
|
+
**/
|
|
50
|
+
reservedAmounts: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<u128>>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
|
51
|
+
/**
|
|
52
|
+
* The winning bids for each of the 10 ranges at each sample in the final Ending Period of
|
|
53
|
+
* the current auction. The map's key is the 0-based index into the Sample Size. The
|
|
54
|
+
* first sample of the ending period is 0; the last is `Sample Size - 1`.
|
|
55
|
+
**/
|
|
56
|
+
winning: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<Option<ITuple<[AccountId32, u32, u128]>>>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
57
|
+
/**
|
|
58
|
+
* Generic query
|
|
59
|
+
**/
|
|
60
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
61
|
+
};
|
|
62
|
+
authorityDiscovery: {
|
|
63
|
+
/**
|
|
64
|
+
* Keys of the current authority set.
|
|
65
|
+
**/
|
|
66
|
+
keys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
67
|
+
/**
|
|
68
|
+
* Keys of the next authority set.
|
|
69
|
+
**/
|
|
70
|
+
nextKeys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
71
|
+
/**
|
|
72
|
+
* Generic query
|
|
73
|
+
**/
|
|
74
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
75
|
+
};
|
|
76
|
+
authorship: {
|
|
77
|
+
/**
|
|
78
|
+
* Author of current block.
|
|
79
|
+
**/
|
|
80
|
+
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
81
|
+
/**
|
|
82
|
+
* Generic query
|
|
83
|
+
**/
|
|
84
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
85
|
+
};
|
|
86
|
+
babe: {
|
|
87
|
+
/**
|
|
88
|
+
* Current epoch authorities.
|
|
89
|
+
**/
|
|
90
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
91
|
+
/**
|
|
92
|
+
* This field should always be populated during block processing unless
|
|
93
|
+
* secondary plain slots are enabled (which don't contain a VRF output).
|
|
94
|
+
*
|
|
95
|
+
* It is set in `on_finalize`, before it will contain the value from the last block.
|
|
96
|
+
**/
|
|
97
|
+
authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
98
|
+
/**
|
|
99
|
+
* Current slot number.
|
|
100
|
+
**/
|
|
101
|
+
currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
102
|
+
/**
|
|
103
|
+
* The configuration for the current epoch. Should never be `None` as it is initialized in
|
|
104
|
+
* genesis.
|
|
105
|
+
**/
|
|
106
|
+
epochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
107
|
+
/**
|
|
108
|
+
* Current epoch index.
|
|
109
|
+
**/
|
|
110
|
+
epochIndex: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
111
|
+
/**
|
|
112
|
+
* The block numbers when the last and current epoch have started, respectively `N-1` and
|
|
113
|
+
* `N`.
|
|
114
|
+
* NOTE: We track this is in order to annotate the block number when a given pool of
|
|
115
|
+
* entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
|
|
116
|
+
* slots, which may be skipped, the block numbers may not line up with the slot numbers.
|
|
117
|
+
**/
|
|
118
|
+
epochStart: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
119
|
+
/**
|
|
120
|
+
* The slot at which the first epoch actually started. This is 0
|
|
121
|
+
* until the first block of the chain.
|
|
122
|
+
**/
|
|
123
|
+
genesisSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
124
|
+
/**
|
|
125
|
+
* Temporary value (cleared at block finalization) which is `Some`
|
|
126
|
+
* if per-block initialization has already been called for current block.
|
|
127
|
+
**/
|
|
128
|
+
initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<SpConsensusBabeDigestsPreDigest>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
129
|
+
/**
|
|
130
|
+
* How late the current block is compared to its parent.
|
|
131
|
+
*
|
|
132
|
+
* This entry is populated as part of block execution and is cleaned up
|
|
133
|
+
* on block finalization. Querying this storage entry outside of block
|
|
134
|
+
* execution context should always yield zero.
|
|
135
|
+
**/
|
|
136
|
+
lateness: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
137
|
+
/**
|
|
138
|
+
* Next epoch authorities.
|
|
139
|
+
**/
|
|
140
|
+
nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
141
|
+
/**
|
|
142
|
+
* The configuration for the next epoch, `None` if the config will not change
|
|
143
|
+
* (you can fallback to `EpochConfig` instead in that case).
|
|
144
|
+
**/
|
|
145
|
+
nextEpochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
146
|
+
/**
|
|
147
|
+
* Next epoch randomness.
|
|
148
|
+
**/
|
|
149
|
+
nextRandomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> & QueryableStorageEntry<ApiType, []>;
|
|
150
|
+
/**
|
|
151
|
+
* Pending epoch configuration change that will be applied when the next epoch is enacted.
|
|
152
|
+
**/
|
|
153
|
+
pendingEpochConfigChange: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeDigestsNextConfigDescriptor>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
154
|
+
/**
|
|
155
|
+
* The epoch randomness for the *current* epoch.
|
|
156
|
+
*
|
|
157
|
+
* # Security
|
|
158
|
+
*
|
|
159
|
+
* This MUST NOT be used for gambling, as it can be influenced by a
|
|
160
|
+
* malicious validator in the short term. It MAY be used in many
|
|
161
|
+
* cryptographic protocols, however, so long as one remembers that this
|
|
162
|
+
* (like everything else on-chain) it is public. For example, it can be
|
|
163
|
+
* used where a number is needed that cannot have been chosen by an
|
|
164
|
+
* adversary, for purposes such as public-coin zero-knowledge proofs.
|
|
165
|
+
**/
|
|
166
|
+
randomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> & QueryableStorageEntry<ApiType, []>;
|
|
167
|
+
/**
|
|
168
|
+
* Randomness under construction.
|
|
169
|
+
*
|
|
170
|
+
* We make a trade-off between storage accesses and list length.
|
|
171
|
+
* We store the under-construction randomness in segments of up to
|
|
172
|
+
* `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
|
|
173
|
+
*
|
|
174
|
+
* Once a segment reaches this length, we begin the next one.
|
|
175
|
+
* We reset all segments and return to `0` at the beginning of every
|
|
176
|
+
* epoch.
|
|
177
|
+
**/
|
|
178
|
+
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
179
|
+
/**
|
|
180
|
+
* A list of the last 100 skipped epochs and the corresponding session index
|
|
181
|
+
* when the epoch was skipped.
|
|
182
|
+
*
|
|
183
|
+
* This is only used for validating equivocation proofs. An equivocation proof
|
|
184
|
+
* must contains a key-ownership proof for a given session, therefore we need a
|
|
185
|
+
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
|
186
|
+
* a validator was the owner of a given key on a given session, and what the
|
|
187
|
+
* active epoch index was during that session.
|
|
188
|
+
**/
|
|
189
|
+
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
190
|
+
/**
|
|
191
|
+
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
|
192
|
+
**/
|
|
193
|
+
underConstruction: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<U8aFixed>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
194
|
+
/**
|
|
195
|
+
* Generic query
|
|
196
|
+
**/
|
|
197
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
198
|
+
};
|
|
199
|
+
balances: {
|
|
200
|
+
/**
|
|
201
|
+
* The Balances pallet example of storing the balance of an account.
|
|
202
|
+
*
|
|
203
|
+
* # Example
|
|
204
|
+
*
|
|
205
|
+
* ```nocompile
|
|
206
|
+
* impl pallet_balances::Config for Runtime {
|
|
207
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
208
|
+
* }
|
|
209
|
+
* ```
|
|
210
|
+
*
|
|
211
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
212
|
+
*
|
|
213
|
+
* # Example
|
|
214
|
+
*
|
|
215
|
+
* ```nocompile
|
|
216
|
+
* impl pallet_balances::Config for Runtime {
|
|
217
|
+
* type AccountStore = System
|
|
218
|
+
* }
|
|
219
|
+
* ```
|
|
220
|
+
*
|
|
221
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
222
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
223
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
224
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
225
|
+
**/
|
|
226
|
+
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
227
|
+
/**
|
|
228
|
+
* Freeze locks on account balances.
|
|
229
|
+
**/
|
|
230
|
+
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
231
|
+
/**
|
|
232
|
+
* Holds on account balances.
|
|
233
|
+
**/
|
|
234
|
+
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
235
|
+
/**
|
|
236
|
+
* The total units of outstanding deactivated balance in the system.
|
|
237
|
+
**/
|
|
238
|
+
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
239
|
+
/**
|
|
240
|
+
* Any liquidity locks on some account balances.
|
|
241
|
+
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
242
|
+
*
|
|
243
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
244
|
+
**/
|
|
245
|
+
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
246
|
+
/**
|
|
247
|
+
* Named reserves on some account balances.
|
|
248
|
+
*
|
|
249
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
250
|
+
**/
|
|
251
|
+
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
252
|
+
/**
|
|
253
|
+
* The total units issued in the system.
|
|
254
|
+
**/
|
|
255
|
+
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
256
|
+
/**
|
|
257
|
+
* Generic query
|
|
258
|
+
**/
|
|
259
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
260
|
+
};
|
|
261
|
+
beefy: {
|
|
262
|
+
/**
|
|
263
|
+
* The current authorities set
|
|
264
|
+
**/
|
|
265
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
266
|
+
/**
|
|
267
|
+
* Block number where BEEFY consensus is enabled/started.
|
|
268
|
+
* By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
|
|
269
|
+
* restarted from the newly set block number.
|
|
270
|
+
**/
|
|
271
|
+
genesisBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
272
|
+
/**
|
|
273
|
+
* Authorities set scheduled to be used with the next session
|
|
274
|
+
**/
|
|
275
|
+
nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
276
|
+
/**
|
|
277
|
+
* A mapping from BEEFY set ID to the index of the *most recent* session for which its
|
|
278
|
+
* members were responsible.
|
|
279
|
+
*
|
|
280
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
281
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
282
|
+
* together sessions and BEEFY set ids, i.e. we need to validate that a validator
|
|
283
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
284
|
+
* during that session.
|
|
285
|
+
*
|
|
286
|
+
* TWOX-NOTE: `ValidatorSetId` is not under user control.
|
|
287
|
+
**/
|
|
288
|
+
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
289
|
+
/**
|
|
290
|
+
* The current validator set id
|
|
291
|
+
**/
|
|
292
|
+
validatorSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
293
|
+
/**
|
|
294
|
+
* Generic query
|
|
295
|
+
**/
|
|
296
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
297
|
+
};
|
|
298
|
+
beefyMmrLeaf: {
|
|
299
|
+
/**
|
|
300
|
+
* Details of current BEEFY authority set.
|
|
301
|
+
**/
|
|
302
|
+
beefyAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
|
303
|
+
/**
|
|
304
|
+
* Details of next BEEFY authority set.
|
|
305
|
+
*
|
|
306
|
+
* This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
|
|
307
|
+
**/
|
|
308
|
+
beefyNextAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
|
309
|
+
/**
|
|
310
|
+
* Generic query
|
|
311
|
+
**/
|
|
312
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
313
|
+
};
|
|
314
|
+
bounties: {
|
|
315
|
+
/**
|
|
316
|
+
* Bounties that have been made.
|
|
317
|
+
**/
|
|
318
|
+
bounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletBountiesBounty>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
319
|
+
/**
|
|
320
|
+
* Bounty indices that have been approved but not yet funded.
|
|
321
|
+
**/
|
|
322
|
+
bountyApprovals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
323
|
+
/**
|
|
324
|
+
* Number of bounty proposals that have been made.
|
|
325
|
+
**/
|
|
326
|
+
bountyCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
327
|
+
/**
|
|
328
|
+
* The description of each bounty.
|
|
329
|
+
**/
|
|
330
|
+
bountyDescriptions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
331
|
+
/**
|
|
332
|
+
* Generic query
|
|
333
|
+
**/
|
|
334
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
335
|
+
};
|
|
336
|
+
childBounties: {
|
|
337
|
+
/**
|
|
338
|
+
* Child bounties that have been added.
|
|
339
|
+
**/
|
|
340
|
+
childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChildBountiesChildBounty>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
341
|
+
/**
|
|
342
|
+
* DEPRECATED: Replaced with `ParentTotalChildBounties` storage item keeping dedicated counts
|
|
343
|
+
* for each parent bounty. Number of total child bounties. Will be removed in May 2025.
|
|
344
|
+
**/
|
|
345
|
+
childBountyCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
346
|
+
/**
|
|
347
|
+
* The description of each child-bounty. Indexed by `(parent_id, child_id)`.
|
|
348
|
+
*
|
|
349
|
+
* This item replaces the `ChildBountyDescriptions` storage item from the V0 storage version.
|
|
350
|
+
**/
|
|
351
|
+
childBountyDescriptionsV1: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
352
|
+
/**
|
|
353
|
+
* The cumulative child-bounty curator fee for each parent bounty.
|
|
354
|
+
**/
|
|
355
|
+
childrenCuratorFees: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
356
|
+
/**
|
|
357
|
+
* Number of active child bounties per parent bounty.
|
|
358
|
+
* Map of parent bounty index to number of child bounties.
|
|
359
|
+
**/
|
|
360
|
+
parentChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
361
|
+
/**
|
|
362
|
+
* Number of total child bounties per parent bounty, including completed bounties.
|
|
363
|
+
**/
|
|
364
|
+
parentTotalChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
365
|
+
/**
|
|
366
|
+
* The mapping of the child bounty ids from storage version `V0` to the new `V1` version.
|
|
367
|
+
*
|
|
368
|
+
* The `V0` ids based on total child bounty count [`ChildBountyCount`]`. The `V1` version ids
|
|
369
|
+
* based on the child bounty count per parent bounty [`ParentTotalChildBounties`].
|
|
370
|
+
* The item intended solely for client convenience and not used in the pallet's core logic.
|
|
371
|
+
**/
|
|
372
|
+
v0ToV1ChildBountyIds: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
373
|
+
/**
|
|
374
|
+
* Generic query
|
|
375
|
+
**/
|
|
376
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
377
|
+
};
|
|
378
|
+
claims: {
|
|
379
|
+
claims: AugmentedQuery<ApiType, (arg: EthereumAddress | string | Uint8Array) => Observable<Option<u128>>, [EthereumAddress]> & QueryableStorageEntry<ApiType, [EthereumAddress]>;
|
|
380
|
+
/**
|
|
381
|
+
* Pre-claimed Ethereum accounts, by the Account ID that they are claimed to.
|
|
382
|
+
**/
|
|
383
|
+
preclaims: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<EthereumAddress>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
384
|
+
/**
|
|
385
|
+
* The statement kind that must be signed, if any.
|
|
386
|
+
**/
|
|
387
|
+
signing: AugmentedQuery<ApiType, (arg: EthereumAddress | string | Uint8Array) => Observable<Option<PolkadotRuntimeCommonClaimsStatementKind>>, [EthereumAddress]> & QueryableStorageEntry<ApiType, [EthereumAddress]>;
|
|
388
|
+
total: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
389
|
+
/**
|
|
390
|
+
* Vesting schedule for a claim.
|
|
391
|
+
* First balance is the total amount that should be held for vesting.
|
|
392
|
+
* Second balance is how much should be unlocked per block.
|
|
393
|
+
* The block number is when the vesting should start.
|
|
394
|
+
**/
|
|
395
|
+
vesting: AugmentedQuery<ApiType, (arg: EthereumAddress | string | Uint8Array) => Observable<Option<ITuple<[u128, u128, u32]>>>, [EthereumAddress]> & QueryableStorageEntry<ApiType, [EthereumAddress]>;
|
|
396
|
+
/**
|
|
397
|
+
* Generic query
|
|
398
|
+
**/
|
|
399
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
400
|
+
};
|
|
401
|
+
configuration: {
|
|
402
|
+
/**
|
|
403
|
+
* The active configuration for the current session.
|
|
404
|
+
**/
|
|
405
|
+
activeConfig: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsConfigurationHostConfiguration>, []> & QueryableStorageEntry<ApiType, []>;
|
|
406
|
+
/**
|
|
407
|
+
* If this is set, then the configuration setters will bypass the consistency checks. This
|
|
408
|
+
* is meant to be used only as the last resort.
|
|
409
|
+
**/
|
|
410
|
+
bypassConsistencyCheck: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
411
|
+
/**
|
|
412
|
+
* Pending configuration changes.
|
|
413
|
+
*
|
|
414
|
+
* This is a list of configuration changes, each with a session index at which it should
|
|
415
|
+
* be applied.
|
|
416
|
+
*
|
|
417
|
+
* The list is sorted ascending by session index. Also, this list can only contain at most
|
|
418
|
+
* 2 items: for the next session and for the `scheduled_session`.
|
|
419
|
+
**/
|
|
420
|
+
pendingConfigs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, PolkadotRuntimeParachainsConfigurationHostConfiguration]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
421
|
+
/**
|
|
422
|
+
* Generic query
|
|
423
|
+
**/
|
|
424
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
425
|
+
};
|
|
426
|
+
convictionVoting: {
|
|
427
|
+
/**
|
|
428
|
+
* The voting classes which have a non-zero lock requirement and the lock amounts which they
|
|
429
|
+
* require. The actual amount locked on behalf of this pallet should always be the maximum of
|
|
430
|
+
* this list.
|
|
431
|
+
**/
|
|
432
|
+
classLocksFor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[u16, u128]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
433
|
+
/**
|
|
434
|
+
* All voting for a particular voter in a particular voting class. We store the balance for the
|
|
435
|
+
* number of votes that we have recorded.
|
|
436
|
+
**/
|
|
437
|
+
votingFor: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u16 | AnyNumber | Uint8Array) => Observable<PalletConvictionVotingVoteVoting>, [AccountId32, u16]> & QueryableStorageEntry<ApiType, [AccountId32, u16]>;
|
|
438
|
+
/**
|
|
439
|
+
* Generic query
|
|
440
|
+
**/
|
|
441
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
442
|
+
};
|
|
443
|
+
coretimeAssignmentProvider: {
|
|
444
|
+
/**
|
|
445
|
+
* Assignments which are currently active.
|
|
446
|
+
*
|
|
447
|
+
* They will be picked from `PendingAssignments` once we reach the scheduled block number in
|
|
448
|
+
* `PendingAssignments`.
|
|
449
|
+
**/
|
|
450
|
+
coreDescriptors: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
451
|
+
/**
|
|
452
|
+
* Scheduled assignment sets.
|
|
453
|
+
*
|
|
454
|
+
* Assignments as of the given block number. They will go into state once the block number is
|
|
455
|
+
* reached (and replace whatever was in there before).
|
|
456
|
+
**/
|
|
457
|
+
coreSchedules: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PolkadotRuntimeParachainsAssignerCoretimeSchedule>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
|
|
458
|
+
/**
|
|
459
|
+
* Generic query
|
|
460
|
+
**/
|
|
461
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
462
|
+
};
|
|
463
|
+
crowdloan: {
|
|
464
|
+
/**
|
|
465
|
+
* The number of auctions that have entered into their ending period so far.
|
|
466
|
+
**/
|
|
467
|
+
endingsCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
468
|
+
/**
|
|
469
|
+
* Info on all of the funds.
|
|
470
|
+
**/
|
|
471
|
+
funds: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeCommonCrowdloanFundInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
472
|
+
/**
|
|
473
|
+
* The funds that have had additional contributions during the last block. This is used
|
|
474
|
+
* in order to determine which funds should submit new or updated bids.
|
|
475
|
+
**/
|
|
476
|
+
newRaise: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
477
|
+
/**
|
|
478
|
+
* Tracker for the next available fund index
|
|
479
|
+
**/
|
|
480
|
+
nextFundIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
481
|
+
/**
|
|
482
|
+
* Generic query
|
|
483
|
+
**/
|
|
484
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
485
|
+
};
|
|
486
|
+
delegatedStaking: {
|
|
487
|
+
/**
|
|
488
|
+
* Map of `Agent` to their `Ledger`.
|
|
489
|
+
**/
|
|
490
|
+
agents: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletDelegatedStakingAgentLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
491
|
+
/**
|
|
492
|
+
* Counter for the related counted storage map
|
|
493
|
+
**/
|
|
494
|
+
counterForAgents: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
495
|
+
/**
|
|
496
|
+
* Counter for the related counted storage map
|
|
497
|
+
**/
|
|
498
|
+
counterForDelegators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
499
|
+
/**
|
|
500
|
+
* Map of Delegators to their `Delegation`.
|
|
501
|
+
*
|
|
502
|
+
* Implementation note: We are not using a double map with `delegator` and `agent` account
|
|
503
|
+
* as keys since we want to restrict delegators to delegate only to one account at a time.
|
|
504
|
+
**/
|
|
505
|
+
delegators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletDelegatedStakingDelegation>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
506
|
+
/**
|
|
507
|
+
* Generic query
|
|
508
|
+
**/
|
|
509
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
510
|
+
};
|
|
511
|
+
dmp: {
|
|
512
|
+
/**
|
|
513
|
+
* The factor to multiply the base delivery fee by.
|
|
514
|
+
**/
|
|
515
|
+
deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
516
|
+
/**
|
|
517
|
+
* A mapping that stores the downward message queue MQC head for each para.
|
|
518
|
+
*
|
|
519
|
+
* Each link in this chain has a form:
|
|
520
|
+
* `(prev_head, B, H(M))`, where
|
|
521
|
+
* - `prev_head`: is the previous head hash or zero if none.
|
|
522
|
+
* - `B`: is the relay-chain block number in which a message was appended.
|
|
523
|
+
* - `H(M)`: is the hash of the message being appended.
|
|
524
|
+
**/
|
|
525
|
+
downwardMessageQueueHeads: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
526
|
+
/**
|
|
527
|
+
* The downward messages addressed for a certain para.
|
|
528
|
+
**/
|
|
529
|
+
downwardMessageQueues: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundDownwardMessage>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
530
|
+
/**
|
|
531
|
+
* Generic query
|
|
532
|
+
**/
|
|
533
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
534
|
+
};
|
|
535
|
+
electionProviderMultiPhase: {
|
|
536
|
+
/**
|
|
537
|
+
* Current phase.
|
|
538
|
+
**/
|
|
539
|
+
currentPhase: AugmentedQuery<ApiType, () => Observable<PalletElectionProviderMultiPhasePhase>, []> & QueryableStorageEntry<ApiType, []>;
|
|
540
|
+
/**
|
|
541
|
+
* Desired number of targets to elect for this round.
|
|
542
|
+
*
|
|
543
|
+
* Only exists when [`Snapshot`] is present.
|
|
544
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
545
|
+
**/
|
|
546
|
+
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
547
|
+
/**
|
|
548
|
+
* The minimum score that each 'untrusted' solution must attain in order to be considered
|
|
549
|
+
* feasible.
|
|
550
|
+
*
|
|
551
|
+
* Can be set via `set_minimum_untrusted_score`.
|
|
552
|
+
**/
|
|
553
|
+
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
554
|
+
/**
|
|
555
|
+
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
|
556
|
+
*
|
|
557
|
+
* Always sorted by score.
|
|
558
|
+
**/
|
|
559
|
+
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
560
|
+
/**
|
|
561
|
+
* Internal counter for the number of rounds.
|
|
562
|
+
*
|
|
563
|
+
* This is useful for de-duplication of transactions submitted to the pool, and general
|
|
564
|
+
* diagnostics of the pallet.
|
|
565
|
+
*
|
|
566
|
+
* This is merely incremented once per every time that an upstream `elect` is called.
|
|
567
|
+
**/
|
|
568
|
+
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
569
|
+
/**
|
|
570
|
+
* A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
|
|
571
|
+
* value in `SignedSubmissions`.
|
|
572
|
+
*
|
|
573
|
+
* We never need to process more than a single signed submission at a time. Signed submissions
|
|
574
|
+
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
|
575
|
+
* them one at a time instead of reading and decoding all of them at once.
|
|
576
|
+
**/
|
|
577
|
+
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpNposElectionsElectionScore, u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
578
|
+
/**
|
|
579
|
+
* The next index to be assigned to an incoming signed submission.
|
|
580
|
+
*
|
|
581
|
+
* Every accepted submission is assigned a unique index; that index is bound to that particular
|
|
582
|
+
* submission for the duration of the election. On election finalization, the next index is
|
|
583
|
+
* reset to 0.
|
|
584
|
+
*
|
|
585
|
+
* We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its
|
|
586
|
+
* capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,
|
|
587
|
+
* because iteration is slow. Instead, we store the value here.
|
|
588
|
+
**/
|
|
589
|
+
signedSubmissionNextIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
590
|
+
/**
|
|
591
|
+
* Unchecked, signed solutions.
|
|
592
|
+
*
|
|
593
|
+
* Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while
|
|
594
|
+
* allowing us to keep only a single one in memory at a time.
|
|
595
|
+
*
|
|
596
|
+
* Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
|
|
597
|
+
* affect; we shouldn't need a cryptographically secure hasher.
|
|
598
|
+
**/
|
|
599
|
+
signedSubmissionsMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletElectionProviderMultiPhaseSignedSignedSubmission>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
600
|
+
/**
|
|
601
|
+
* Snapshot data of the round.
|
|
602
|
+
*
|
|
603
|
+
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
|
|
604
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
605
|
+
**/
|
|
606
|
+
snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
607
|
+
/**
|
|
608
|
+
* The metadata of the [`RoundSnapshot`]
|
|
609
|
+
*
|
|
610
|
+
* Only exists when [`Snapshot`] is present.
|
|
611
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
612
|
+
**/
|
|
613
|
+
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
614
|
+
/**
|
|
615
|
+
* Generic query
|
|
616
|
+
**/
|
|
617
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
618
|
+
};
|
|
619
|
+
fastUnstake: {
|
|
620
|
+
/**
|
|
621
|
+
* Counter for the related counted storage map
|
|
622
|
+
**/
|
|
623
|
+
counterForQueue: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
624
|
+
/**
|
|
625
|
+
* Number of eras to check per block.
|
|
626
|
+
*
|
|
627
|
+
* If set to 0, this pallet does absolutely nothing. Cannot be set to more than
|
|
628
|
+
* [`Config::MaxErasToCheckPerBlock`].
|
|
629
|
+
*
|
|
630
|
+
* Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are
|
|
631
|
+
* checked. The checking is represented by updating [`UnstakeRequest::checked`], which is
|
|
632
|
+
* stored in [`Head`].
|
|
633
|
+
**/
|
|
634
|
+
erasToCheckPerBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
635
|
+
/**
|
|
636
|
+
* The current "head of the queue" being unstaked.
|
|
637
|
+
*
|
|
638
|
+
* The head in itself can be a batch of up to [`Config::BatchSize`] stakers.
|
|
639
|
+
**/
|
|
640
|
+
head: AugmentedQuery<ApiType, () => Observable<Option<PalletFastUnstakeUnstakeRequest>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
641
|
+
/**
|
|
642
|
+
* The map of all accounts wishing to be unstaked.
|
|
643
|
+
*
|
|
644
|
+
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
|
645
|
+
**/
|
|
646
|
+
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
647
|
+
/**
|
|
648
|
+
* Generic query
|
|
649
|
+
**/
|
|
650
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
651
|
+
};
|
|
652
|
+
grandpa: {
|
|
653
|
+
/**
|
|
654
|
+
* The current list of authorities.
|
|
655
|
+
**/
|
|
656
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
657
|
+
/**
|
|
658
|
+
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
659
|
+
* in the "set" of Grandpa validators from genesis.
|
|
660
|
+
**/
|
|
661
|
+
currentSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
662
|
+
/**
|
|
663
|
+
* next block number where we can force a change.
|
|
664
|
+
**/
|
|
665
|
+
nextForced: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
666
|
+
/**
|
|
667
|
+
* Pending change: (signaled at, scheduled change).
|
|
668
|
+
**/
|
|
669
|
+
pendingChange: AugmentedQuery<ApiType, () => Observable<Option<PalletGrandpaStoredPendingChange>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
670
|
+
/**
|
|
671
|
+
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
|
672
|
+
* members were responsible.
|
|
673
|
+
*
|
|
674
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
675
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
676
|
+
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
|
677
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
678
|
+
* during that session.
|
|
679
|
+
*
|
|
680
|
+
* TWOX-NOTE: `SetId` is not under user control.
|
|
681
|
+
**/
|
|
682
|
+
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
683
|
+
/**
|
|
684
|
+
* `true` if we are currently stalled.
|
|
685
|
+
**/
|
|
686
|
+
stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
687
|
+
/**
|
|
688
|
+
* State of the current authority set.
|
|
689
|
+
**/
|
|
690
|
+
state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []> & QueryableStorageEntry<ApiType, []>;
|
|
691
|
+
/**
|
|
692
|
+
* Generic query
|
|
693
|
+
**/
|
|
694
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
695
|
+
};
|
|
696
|
+
historical: {
|
|
697
|
+
/**
|
|
698
|
+
* Mapping from historical session indices to session-data root hash and validator count.
|
|
699
|
+
**/
|
|
700
|
+
historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
701
|
+
/**
|
|
702
|
+
* The range of historical sessions we store. [first, last)
|
|
703
|
+
**/
|
|
704
|
+
storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
705
|
+
/**
|
|
706
|
+
* Generic query
|
|
707
|
+
**/
|
|
708
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
709
|
+
};
|
|
710
|
+
hrmp: {
|
|
711
|
+
/**
|
|
712
|
+
* This mapping tracks how many open channel requests were accepted by a given recipient para.
|
|
713
|
+
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with
|
|
714
|
+
* `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`.
|
|
715
|
+
**/
|
|
716
|
+
hrmpAcceptedChannelRequestCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
717
|
+
/**
|
|
718
|
+
* Storage for the messages for each channel.
|
|
719
|
+
* Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`.
|
|
720
|
+
**/
|
|
721
|
+
hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
|
|
722
|
+
/**
|
|
723
|
+
* Maintains a mapping that can be used to answer the question: What paras sent a message at
|
|
724
|
+
* the given block number for a given receiver. Invariants:
|
|
725
|
+
* - The inner `Vec<ParaId>` is never empty.
|
|
726
|
+
* - The inner `Vec<ParaId>` cannot store two same `ParaId`.
|
|
727
|
+
* - The outer vector is sorted ascending by block number and cannot store two items with the
|
|
728
|
+
* same block number.
|
|
729
|
+
**/
|
|
730
|
+
hrmpChannelDigests: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, Vec<u32>]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
731
|
+
/**
|
|
732
|
+
* HRMP channel data associated with each para.
|
|
733
|
+
* Invariant:
|
|
734
|
+
* - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session.
|
|
735
|
+
**/
|
|
736
|
+
hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
|
|
737
|
+
/**
|
|
738
|
+
* A set of pending HRMP close channel requests that are going to be closed during the session
|
|
739
|
+
* change. Used for checking if a given channel is registered for closure.
|
|
740
|
+
*
|
|
741
|
+
* The set is accompanied by a list for iteration.
|
|
742
|
+
*
|
|
743
|
+
* Invariant:
|
|
744
|
+
* - There are no channels that exists in list but not in the set and vice versa.
|
|
745
|
+
**/
|
|
746
|
+
hrmpCloseChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<Null>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
|
|
747
|
+
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
748
|
+
hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
749
|
+
/**
|
|
750
|
+
* Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
|
|
751
|
+
* I.e.
|
|
752
|
+
*
|
|
753
|
+
* (a) ingress index allows to find all the senders for a given recipient.
|
|
754
|
+
* (b) egress index allows to find all the recipients for a given sender.
|
|
755
|
+
*
|
|
756
|
+
* Invariants:
|
|
757
|
+
* - for each ingress index entry for `P` each item `I` in the index should present in
|
|
758
|
+
* `HrmpChannels` as `(I, P)`.
|
|
759
|
+
* - for each egress index entry for `P` each item `E` in the index should present in
|
|
760
|
+
* `HrmpChannels` as `(P, E)`.
|
|
761
|
+
* - there should be no other dangling channels in `HrmpChannels`.
|
|
762
|
+
* - the vectors are sorted.
|
|
763
|
+
**/
|
|
764
|
+
hrmpIngressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
765
|
+
/**
|
|
766
|
+
* This mapping tracks how many open channel requests are initiated by a given sender para.
|
|
767
|
+
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has
|
|
768
|
+
* `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`.
|
|
769
|
+
**/
|
|
770
|
+
hrmpOpenChannelRequestCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
771
|
+
/**
|
|
772
|
+
* The set of pending HRMP open channel requests.
|
|
773
|
+
*
|
|
774
|
+
* The set is accompanied by a list for iteration.
|
|
775
|
+
*
|
|
776
|
+
* Invariant:
|
|
777
|
+
* - There are no channels that exists in list but not in the set and vice versa.
|
|
778
|
+
**/
|
|
779
|
+
hrmpOpenChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
|
|
780
|
+
hrmpOpenChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
781
|
+
/**
|
|
782
|
+
* The HRMP watermark associated with each para.
|
|
783
|
+
* Invariant:
|
|
784
|
+
* - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a
|
|
785
|
+
* session.
|
|
786
|
+
**/
|
|
787
|
+
hrmpWatermarks: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
788
|
+
/**
|
|
789
|
+
* Generic query
|
|
790
|
+
**/
|
|
791
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
792
|
+
};
|
|
793
|
+
indices: {
|
|
794
|
+
/**
|
|
795
|
+
* The lookup from index to account.
|
|
796
|
+
**/
|
|
797
|
+
accounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u128, bool]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
798
|
+
/**
|
|
799
|
+
* Generic query
|
|
800
|
+
**/
|
|
801
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
802
|
+
};
|
|
803
|
+
initializer: {
|
|
804
|
+
/**
|
|
805
|
+
* Buffered session changes.
|
|
806
|
+
*
|
|
807
|
+
* Typically this will be empty or one element long. Apart from that this item never hits
|
|
808
|
+
* the storage.
|
|
809
|
+
*
|
|
810
|
+
* However this is a `Vec` regardless to handle various edge cases that may occur at runtime
|
|
811
|
+
* upgrade boundaries or if governance intervenes.
|
|
812
|
+
**/
|
|
813
|
+
bufferedSessionChanges: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsInitializerBufferedSessionChange>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
814
|
+
/**
|
|
815
|
+
* Whether the parachains modules have been initialized within this block.
|
|
816
|
+
*
|
|
817
|
+
* Semantically a `bool`, but this guarantees it should never hit the trie,
|
|
818
|
+
* as this is cleared in `on_finalize` and Frame optimizes `None` values to be empty values.
|
|
819
|
+
*
|
|
820
|
+
* As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one
|
|
821
|
+
* of them writes to the trie and one does not. This confusion makes `Option<()>` more suitable
|
|
822
|
+
* for the semantics of this variable.
|
|
823
|
+
**/
|
|
824
|
+
hasInitialized: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
825
|
+
/**
|
|
826
|
+
* Generic query
|
|
827
|
+
**/
|
|
828
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
829
|
+
};
|
|
830
|
+
messageQueue: {
|
|
831
|
+
/**
|
|
832
|
+
* The index of the first and last (non-empty) pages.
|
|
833
|
+
**/
|
|
834
|
+
bookStateFor: AugmentedQuery<ApiType, (arg: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | { Ump: any } | string | Uint8Array) => Observable<PalletMessageQueueBookState>, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin]>;
|
|
835
|
+
/**
|
|
836
|
+
* The map of page indices to pages.
|
|
837
|
+
**/
|
|
838
|
+
pages: AugmentedQuery<ApiType, (arg1: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | { Ump: any } | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, u32]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, u32]>;
|
|
839
|
+
/**
|
|
840
|
+
* The origin at which we should begin servicing.
|
|
841
|
+
**/
|
|
842
|
+
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<PolkadotRuntimeParachainsInclusionAggregateMessageOrigin>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
843
|
+
/**
|
|
844
|
+
* Generic query
|
|
845
|
+
**/
|
|
846
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
847
|
+
};
|
|
848
|
+
mmr: {
|
|
849
|
+
/**
|
|
850
|
+
* Hashes of the nodes in the MMR.
|
|
851
|
+
*
|
|
852
|
+
* Note this collection only contains MMR peaks, the inner nodes (and leaves)
|
|
853
|
+
* are pruned and only stored in the Offchain DB.
|
|
854
|
+
**/
|
|
855
|
+
nodes: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
856
|
+
/**
|
|
857
|
+
* Current size of the MMR (number of leaves).
|
|
858
|
+
**/
|
|
859
|
+
numberOfLeaves: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
860
|
+
/**
|
|
861
|
+
* Latest MMR Root hash.
|
|
862
|
+
**/
|
|
863
|
+
rootHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
|
|
864
|
+
/**
|
|
865
|
+
* Generic query
|
|
866
|
+
**/
|
|
867
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
868
|
+
};
|
|
869
|
+
multisig: {
|
|
870
|
+
/**
|
|
871
|
+
* The set of open multisig operations.
|
|
872
|
+
**/
|
|
873
|
+
multisigs: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: U8aFixed | string | Uint8Array) => Observable<Option<PalletMultisigMultisig>>, [AccountId32, U8aFixed]> & QueryableStorageEntry<ApiType, [AccountId32, U8aFixed]>;
|
|
874
|
+
/**
|
|
875
|
+
* Generic query
|
|
876
|
+
**/
|
|
877
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
878
|
+
};
|
|
879
|
+
nominationPools: {
|
|
880
|
+
/**
|
|
881
|
+
* Storage for bonded pools.
|
|
882
|
+
**/
|
|
883
|
+
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
884
|
+
/**
|
|
885
|
+
* Map from a pool member account to their opted claim permission.
|
|
886
|
+
**/
|
|
887
|
+
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
888
|
+
/**
|
|
889
|
+
* Counter for the related counted storage map
|
|
890
|
+
**/
|
|
891
|
+
counterForBondedPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
892
|
+
/**
|
|
893
|
+
* Counter for the related counted storage map
|
|
894
|
+
**/
|
|
895
|
+
counterForMetadata: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
896
|
+
/**
|
|
897
|
+
* Counter for the related counted storage map
|
|
898
|
+
**/
|
|
899
|
+
counterForPoolMembers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
900
|
+
/**
|
|
901
|
+
* Counter for the related counted storage map
|
|
902
|
+
**/
|
|
903
|
+
counterForReversePoolIdLookup: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
904
|
+
/**
|
|
905
|
+
* Counter for the related counted storage map
|
|
906
|
+
**/
|
|
907
|
+
counterForRewardPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
908
|
+
/**
|
|
909
|
+
* Counter for the related counted storage map
|
|
910
|
+
**/
|
|
911
|
+
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
912
|
+
/**
|
|
913
|
+
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
|
914
|
+
* pool commissions that are > `GlobalMaxCommission`, necessary if a future
|
|
915
|
+
* `GlobalMaxCommission` is lower than some current pool commissions.
|
|
916
|
+
**/
|
|
917
|
+
globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
918
|
+
/**
|
|
919
|
+
* Ever increasing number of all pools created so far.
|
|
920
|
+
**/
|
|
921
|
+
lastPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
922
|
+
/**
|
|
923
|
+
* Maximum number of members that can exist in the system. If `None`, then the count
|
|
924
|
+
* members are not bound on a system wide basis.
|
|
925
|
+
**/
|
|
926
|
+
maxPoolMembers: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
927
|
+
/**
|
|
928
|
+
* Maximum number of members that may belong to pool. If `None`, then the count of
|
|
929
|
+
* members is not bound on a per pool basis.
|
|
930
|
+
**/
|
|
931
|
+
maxPoolMembersPerPool: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
932
|
+
/**
|
|
933
|
+
* Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
|
|
934
|
+
* pools can exist.
|
|
935
|
+
**/
|
|
936
|
+
maxPools: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
937
|
+
/**
|
|
938
|
+
* Metadata for the pool.
|
|
939
|
+
**/
|
|
940
|
+
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
941
|
+
/**
|
|
942
|
+
* Minimum bond required to create a pool.
|
|
943
|
+
*
|
|
944
|
+
* This is the amount that the depositor must put as their initial stake in the pool, as an
|
|
945
|
+
* indication of "skin in the game".
|
|
946
|
+
*
|
|
947
|
+
* This is the value that will always exist in the staking ledger of the pool bonded account
|
|
948
|
+
* while all other accounts leave.
|
|
949
|
+
**/
|
|
950
|
+
minCreateBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
951
|
+
/**
|
|
952
|
+
* Minimum amount to bond to join a pool.
|
|
953
|
+
**/
|
|
954
|
+
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
955
|
+
/**
|
|
956
|
+
* Active members.
|
|
957
|
+
*
|
|
958
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
959
|
+
**/
|
|
960
|
+
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
961
|
+
/**
|
|
962
|
+
* A reverse lookup from the pool's account id to its id.
|
|
963
|
+
*
|
|
964
|
+
* This is only used for slashing and on automatic withdraw update. In all other instances, the
|
|
965
|
+
* pool id is used, and the accounts are deterministically derived from it.
|
|
966
|
+
**/
|
|
967
|
+
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
968
|
+
/**
|
|
969
|
+
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
|
970
|
+
* claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
|
|
971
|
+
**/
|
|
972
|
+
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
973
|
+
/**
|
|
974
|
+
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
|
975
|
+
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
|
|
976
|
+
**/
|
|
977
|
+
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
978
|
+
/**
|
|
979
|
+
* The sum of funds across all pools.
|
|
980
|
+
*
|
|
981
|
+
* This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
|
|
982
|
+
* because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
|
|
983
|
+
* `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
|
|
984
|
+
**/
|
|
985
|
+
totalValueLocked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
986
|
+
/**
|
|
987
|
+
* Generic query
|
|
988
|
+
**/
|
|
989
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
990
|
+
};
|
|
991
|
+
offences: {
|
|
992
|
+
/**
|
|
993
|
+
* A vector of reports of the same kind that happened at the same time slot.
|
|
994
|
+
**/
|
|
995
|
+
concurrentReportsIndex: AugmentedQuery<ApiType, (arg1: U8aFixed | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Vec<H256>>, [U8aFixed, Bytes]> & QueryableStorageEntry<ApiType, [U8aFixed, Bytes]>;
|
|
996
|
+
/**
|
|
997
|
+
* The primary structure that holds all offence records keyed by report identifiers.
|
|
998
|
+
**/
|
|
999
|
+
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1000
|
+
/**
|
|
1001
|
+
* Generic query
|
|
1002
|
+
**/
|
|
1003
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1004
|
+
};
|
|
1005
|
+
onDemand: {
|
|
1006
|
+
/**
|
|
1007
|
+
* Queue entries that are currently bound to a particular core due to core affinity.
|
|
1008
|
+
**/
|
|
1009
|
+
affinityEntries: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<BinaryHeapEnqueuedOrder>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1010
|
+
/**
|
|
1011
|
+
* Keeps track of credits owned by each account.
|
|
1012
|
+
**/
|
|
1013
|
+
credits: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u128>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1014
|
+
/**
|
|
1015
|
+
* Priority queue for all orders which don't yet (or not any more) have any core affinity.
|
|
1016
|
+
**/
|
|
1017
|
+
freeEntries: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsOnDemandTypesEnqueuedOrder>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1018
|
+
/**
|
|
1019
|
+
* Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
|
|
1020
|
+
* it's lookahead. Keeping track of this affinity prevents parallel execution of the same
|
|
1021
|
+
* `ParaId` on two or more `CoreIndex`es.
|
|
1022
|
+
**/
|
|
1023
|
+
paraIdAffinity: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1024
|
+
/**
|
|
1025
|
+
* Overall status of queue (both free + affinity entries)
|
|
1026
|
+
**/
|
|
1027
|
+
queueStatus: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsOnDemandTypesQueueStatusType>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1028
|
+
/**
|
|
1029
|
+
* Keeps track of accumulated revenue from on demand order sales.
|
|
1030
|
+
**/
|
|
1031
|
+
revenue: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Generic query
|
|
1034
|
+
**/
|
|
1035
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1036
|
+
};
|
|
1037
|
+
paraInclusion: {
|
|
1038
|
+
/**
|
|
1039
|
+
* Candidates pending availability by `ParaId`. They form a chain starting from the latest
|
|
1040
|
+
* included head of the para.
|
|
1041
|
+
* Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage
|
|
1042
|
+
* would otherwise have the exact same prefix which could cause undefined behaviour when doing
|
|
1043
|
+
* the migration.
|
|
1044
|
+
**/
|
|
1045
|
+
v1: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1046
|
+
/**
|
|
1047
|
+
* Generic query
|
|
1048
|
+
**/
|
|
1049
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1050
|
+
};
|
|
1051
|
+
paraInherent: {
|
|
1052
|
+
/**
|
|
1053
|
+
* Whether the paras inherent was included within this block.
|
|
1054
|
+
*
|
|
1055
|
+
* The `Option<()>` is effectively a `bool`, but it never hits storage in the `None` variant
|
|
1056
|
+
* due to the guarantees of FRAME's storage APIs.
|
|
1057
|
+
*
|
|
1058
|
+
* If this is `None` at the end of the block, we panic and render the block invalid.
|
|
1059
|
+
**/
|
|
1060
|
+
included: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1061
|
+
/**
|
|
1062
|
+
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
|
1063
|
+
**/
|
|
1064
|
+
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesVstagingScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Generic query
|
|
1067
|
+
**/
|
|
1068
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1069
|
+
};
|
|
1070
|
+
paras: {
|
|
1071
|
+
/**
|
|
1072
|
+
* The actions to perform during the start of a specific session index.
|
|
1073
|
+
**/
|
|
1074
|
+
actionsQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1075
|
+
/**
|
|
1076
|
+
* The code hash authorizations for a para which will expire `expire_at` `BlockNumberFor<T>`.
|
|
1077
|
+
**/
|
|
1078
|
+
authorizedCodeHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasAuthorizedCodeHashAndExpiry>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Validation code stored by its hash.
|
|
1081
|
+
*
|
|
1082
|
+
* This storage is consistent with [`FutureCodeHash`], [`CurrentCodeHash`] and
|
|
1083
|
+
* [`PastCodeHash`].
|
|
1084
|
+
**/
|
|
1085
|
+
codeByHash: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1086
|
+
/**
|
|
1087
|
+
* The number of reference on the validation code in [`CodeByHash`] storage.
|
|
1088
|
+
**/
|
|
1089
|
+
codeByHashRefs: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1090
|
+
/**
|
|
1091
|
+
* The validation code hash of every live para.
|
|
1092
|
+
*
|
|
1093
|
+
* Corresponding code can be retrieved with [`CodeByHash`].
|
|
1094
|
+
**/
|
|
1095
|
+
currentCodeHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1096
|
+
/**
|
|
1097
|
+
* The actual future code hash of a para.
|
|
1098
|
+
*
|
|
1099
|
+
* Corresponding code can be retrieved with [`CodeByHash`].
|
|
1100
|
+
**/
|
|
1101
|
+
futureCodeHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1102
|
+
/**
|
|
1103
|
+
* The block number at which the planned code change is expected for a parachain.
|
|
1104
|
+
*
|
|
1105
|
+
* The change will be applied after the first parablock for this ID included which executes
|
|
1106
|
+
* in the context of a relay chain block with a number >= `expected_at`.
|
|
1107
|
+
**/
|
|
1108
|
+
futureCodeUpgrades: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1109
|
+
/**
|
|
1110
|
+
* The list of upcoming future code upgrades.
|
|
1111
|
+
*
|
|
1112
|
+
* Each item is a pair of the parachain and the expected block at which the upgrade should be
|
|
1113
|
+
* applied. The upgrade will be applied at the given relay chain block. In contrast to
|
|
1114
|
+
* [`FutureCodeUpgrades`] this code upgrade will be applied regardless the parachain making any
|
|
1115
|
+
* progress or not.
|
|
1116
|
+
*
|
|
1117
|
+
* Ordered ascending by block number.
|
|
1118
|
+
**/
|
|
1119
|
+
futureCodeUpgradesAt: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1120
|
+
/**
|
|
1121
|
+
* The head-data of every registered para.
|
|
1122
|
+
**/
|
|
1123
|
+
heads: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1124
|
+
/**
|
|
1125
|
+
* The context (relay-chain block number) of the most recent parachain head.
|
|
1126
|
+
**/
|
|
1127
|
+
mostRecentContext: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1128
|
+
/**
|
|
1129
|
+
* All lease holding parachains. Ordered ascending by `ParaId`. On demand parachains are not
|
|
1130
|
+
* included.
|
|
1131
|
+
*
|
|
1132
|
+
* Consider using the [`ParachainsCache`] type of modifying.
|
|
1133
|
+
**/
|
|
1134
|
+
parachains: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1135
|
+
/**
|
|
1136
|
+
* The current lifecycle of a all known Para IDs.
|
|
1137
|
+
**/
|
|
1138
|
+
paraLifecycles: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasParaLifecycle>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1139
|
+
/**
|
|
1140
|
+
* Actual past code hash, indicated by the para id as well as the block number at which it
|
|
1141
|
+
* became outdated.
|
|
1142
|
+
*
|
|
1143
|
+
* Corresponding code can be retrieved with [`CodeByHash`].
|
|
1144
|
+
**/
|
|
1145
|
+
pastCodeHash: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<H256>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Past code of parachains. The parachains themselves may not be registered anymore,
|
|
1148
|
+
* but we also keep their code on-chain for the same amount of time as outdated code
|
|
1149
|
+
* to keep it available for approval checkers.
|
|
1150
|
+
**/
|
|
1151
|
+
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Which paras have past code that needs pruning and the relay-chain block at which the code
|
|
1154
|
+
* was replaced. Note that this is the actual height of the included block, not the expected
|
|
1155
|
+
* height at which the code upgrade would be applied, although they may be equal.
|
|
1156
|
+
* This is to ensure the entire acceptance period is covered, not an offset acceptance period
|
|
1157
|
+
* starting from the time at which the parachain perceives a code upgrade as having occurred.
|
|
1158
|
+
* Multiple entries for a single para are permitted. Ordered ascending by block number.
|
|
1159
|
+
**/
|
|
1160
|
+
pastCodePruning: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1161
|
+
/**
|
|
1162
|
+
* The list of all currently active PVF votes. Auxiliary to `PvfActiveVoteMap`.
|
|
1163
|
+
**/
|
|
1164
|
+
pvfActiveVoteList: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1165
|
+
/**
|
|
1166
|
+
* All currently active PVF pre-checking votes.
|
|
1167
|
+
*
|
|
1168
|
+
* Invariant:
|
|
1169
|
+
* - There are no PVF pre-checking votes that exists in list but not in the set and vice versa.
|
|
1170
|
+
**/
|
|
1171
|
+
pvfActiveVoteMap: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasPvfCheckActiveVoteState>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1172
|
+
/**
|
|
1173
|
+
* Upcoming paras instantiation arguments.
|
|
1174
|
+
*
|
|
1175
|
+
* NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set
|
|
1176
|
+
* to empty. Instead, the code will be saved into the storage right away via `CodeByHash`.
|
|
1177
|
+
**/
|
|
1178
|
+
upcomingParasGenesis: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasParaGenesisArgs>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1179
|
+
/**
|
|
1180
|
+
* The list of upcoming code upgrades.
|
|
1181
|
+
*
|
|
1182
|
+
* Each item is a pair of which para performs a code upgrade and at which relay-chain block it
|
|
1183
|
+
* is expected at.
|
|
1184
|
+
*
|
|
1185
|
+
* Ordered ascending by block number.
|
|
1186
|
+
**/
|
|
1187
|
+
upcomingUpgrades: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1188
|
+
/**
|
|
1189
|
+
* The list of parachains that are awaiting for their upgrade restriction to cooldown.
|
|
1190
|
+
*
|
|
1191
|
+
* Ordered ascending by block number.
|
|
1192
|
+
**/
|
|
1193
|
+
upgradeCooldowns: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1194
|
+
/**
|
|
1195
|
+
* This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade
|
|
1196
|
+
* procedure.
|
|
1197
|
+
*
|
|
1198
|
+
* This value is absent when there are no upgrades scheduled or during the time the relay chain
|
|
1199
|
+
* performs the checks. It is set at the first relay-chain block when the corresponding
|
|
1200
|
+
* parachain can switch its upgrade function. As soon as the parachain's block is included, the
|
|
1201
|
+
* value gets reset to `None`.
|
|
1202
|
+
*
|
|
1203
|
+
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
|
1204
|
+
* the format will require migration of parachains.
|
|
1205
|
+
**/
|
|
1206
|
+
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV8UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1207
|
+
/**
|
|
1208
|
+
* This is used by the relay-chain to communicate that there are restrictions for performing
|
|
1209
|
+
* an upgrade for this parachain.
|
|
1210
|
+
*
|
|
1211
|
+
* This may be a because the parachain waits for the upgrade cooldown to expire. Another
|
|
1212
|
+
* potential use case is when we want to perform some maintenance (such as storage migration)
|
|
1213
|
+
* we could restrict upgrades to make the process simpler.
|
|
1214
|
+
*
|
|
1215
|
+
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
|
1216
|
+
* the format will require migration of parachains.
|
|
1217
|
+
**/
|
|
1218
|
+
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV8UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1219
|
+
/**
|
|
1220
|
+
* Generic query
|
|
1221
|
+
**/
|
|
1222
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1223
|
+
};
|
|
1224
|
+
paraScheduler: {
|
|
1225
|
+
/**
|
|
1226
|
+
* One entry for each availability core. The `VecDeque` represents the assignments to be
|
|
1227
|
+
* scheduled on that core.
|
|
1228
|
+
**/
|
|
1229
|
+
claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<PolkadotRuntimeParachainsSchedulerCommonAssignment>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1230
|
+
/**
|
|
1231
|
+
* The block number where the session start occurred. Used to track how many group rotations
|
|
1232
|
+
* have occurred.
|
|
1233
|
+
*
|
|
1234
|
+
* Note that in the context of parachains modules the session change is signaled during
|
|
1235
|
+
* the block and enacted at the end of the block (at the finalization stage, to be exact).
|
|
1236
|
+
* Thus for all intents and purposes the effect of the session change is observed at the
|
|
1237
|
+
* block following the session change, block number of which we save in this storage value.
|
|
1238
|
+
**/
|
|
1239
|
+
sessionStartBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1240
|
+
/**
|
|
1241
|
+
* All the validator groups. One for each core. Indices are into `ActiveValidators` - not the
|
|
1242
|
+
* broader set of Polkadot validators, but instead just the subset used for parachains during
|
|
1243
|
+
* this session.
|
|
1244
|
+
*
|
|
1245
|
+
* Bound: The number of cores is the sum of the numbers of parachains and parathread
|
|
1246
|
+
* multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
|
|
1247
|
+
* upper bound at 10k.
|
|
1248
|
+
**/
|
|
1249
|
+
validatorGroups: AugmentedQuery<ApiType, () => Observable<Vec<Vec<u32>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1250
|
+
/**
|
|
1251
|
+
* Generic query
|
|
1252
|
+
**/
|
|
1253
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1254
|
+
};
|
|
1255
|
+
parasDisputes: {
|
|
1256
|
+
/**
|
|
1257
|
+
* Backing votes stored for each dispute.
|
|
1258
|
+
* This storage is used for slashing.
|
|
1259
|
+
**/
|
|
1260
|
+
backersOnDisputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<BTreeSet<u32>>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
|
1261
|
+
/**
|
|
1262
|
+
* All ongoing or concluded disputes for the last several sessions.
|
|
1263
|
+
**/
|
|
1264
|
+
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV8DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
|
1265
|
+
/**
|
|
1266
|
+
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
|
|
1267
|
+
* the chain will not accept any new parachain blocks for backing or inclusion,
|
|
1268
|
+
* and its value indicates the last valid block number in the chain.
|
|
1269
|
+
* It can only be set back to `None` by governance intervention.
|
|
1270
|
+
**/
|
|
1271
|
+
frozen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1272
|
+
/**
|
|
1273
|
+
* All included blocks on the chain, as well as the block number in this chain that
|
|
1274
|
+
* should be reverted back to if the candidate is disputed and determined to be invalid.
|
|
1275
|
+
**/
|
|
1276
|
+
included: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<u32>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
|
1277
|
+
/**
|
|
1278
|
+
* The last pruned session, if any. All data stored by this module
|
|
1279
|
+
* references sessions.
|
|
1280
|
+
**/
|
|
1281
|
+
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1282
|
+
/**
|
|
1283
|
+
* Generic query
|
|
1284
|
+
**/
|
|
1285
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1286
|
+
};
|
|
1287
|
+
paraSessionInfo: {
|
|
1288
|
+
/**
|
|
1289
|
+
* The validator account keys of the validators actively participating in parachain consensus.
|
|
1290
|
+
**/
|
|
1291
|
+
accountKeys: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<AccountId32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Assignment keys for the current session.
|
|
1294
|
+
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
|
1295
|
+
* When in doubt, use `Sessions` API instead.
|
|
1296
|
+
**/
|
|
1297
|
+
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV8AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1298
|
+
/**
|
|
1299
|
+
* The earliest session for which previous session info is stored.
|
|
1300
|
+
**/
|
|
1301
|
+
earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1302
|
+
/**
|
|
1303
|
+
* Executor parameter set for a given session index
|
|
1304
|
+
**/
|
|
1305
|
+
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV8ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1306
|
+
/**
|
|
1307
|
+
* Session information in a rolling window.
|
|
1308
|
+
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
|
1309
|
+
* Does not have any entries before the session index in the first session change notification.
|
|
1310
|
+
**/
|
|
1311
|
+
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV8SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1312
|
+
/**
|
|
1313
|
+
* Generic query
|
|
1314
|
+
**/
|
|
1315
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1316
|
+
};
|
|
1317
|
+
parasShared: {
|
|
1318
|
+
/**
|
|
1319
|
+
* All the validators actively participating in parachain consensus.
|
|
1320
|
+
* Indices are into the broader validator set.
|
|
1321
|
+
**/
|
|
1322
|
+
activeValidatorIndices: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1323
|
+
/**
|
|
1324
|
+
* The parachain attestation keys of the validators actively participating in parachain
|
|
1325
|
+
* consensus. This should be the same length as `ActiveValidatorIndices`.
|
|
1326
|
+
**/
|
|
1327
|
+
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV8ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1328
|
+
/**
|
|
1329
|
+
* All allowed relay-parents.
|
|
1330
|
+
**/
|
|
1331
|
+
allowedRelayParents: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1332
|
+
/**
|
|
1333
|
+
* The current session index.
|
|
1334
|
+
**/
|
|
1335
|
+
currentSessionIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1336
|
+
/**
|
|
1337
|
+
* Generic query
|
|
1338
|
+
**/
|
|
1339
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1340
|
+
};
|
|
1341
|
+
parasSlashing: {
|
|
1342
|
+
/**
|
|
1343
|
+
* Validators pending dispute slashes.
|
|
1344
|
+
**/
|
|
1345
|
+
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
|
1346
|
+
/**
|
|
1347
|
+
* `ValidatorSetCount` per session.
|
|
1348
|
+
**/
|
|
1349
|
+
validatorSetCounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1350
|
+
/**
|
|
1351
|
+
* Generic query
|
|
1352
|
+
**/
|
|
1353
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1354
|
+
};
|
|
1355
|
+
preimage: {
|
|
1356
|
+
preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [ITuple<[H256, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[H256, u32]>]>;
|
|
1357
|
+
/**
|
|
1358
|
+
* The request status of a given hash.
|
|
1359
|
+
**/
|
|
1360
|
+
requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1361
|
+
/**
|
|
1362
|
+
* The request status of a given hash.
|
|
1363
|
+
**/
|
|
1364
|
+
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1365
|
+
/**
|
|
1366
|
+
* Generic query
|
|
1367
|
+
**/
|
|
1368
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1369
|
+
};
|
|
1370
|
+
proxy: {
|
|
1371
|
+
/**
|
|
1372
|
+
* The announcements made by the proxy (key).
|
|
1373
|
+
**/
|
|
1374
|
+
announcements: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyAnnouncement>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1375
|
+
/**
|
|
1376
|
+
* The set of account proxies. Maps the account which has delegated to the accounts
|
|
1377
|
+
* which are being delegated to, together with the amount held on deposit.
|
|
1378
|
+
**/
|
|
1379
|
+
proxies: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyProxyDefinition>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1380
|
+
/**
|
|
1381
|
+
* Generic query
|
|
1382
|
+
**/
|
|
1383
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1384
|
+
};
|
|
1385
|
+
rcMigrator: {
|
|
1386
|
+
/**
|
|
1387
|
+
* The priority of the Asset Hub UMP queue during migration.
|
|
1388
|
+
*
|
|
1389
|
+
* Controls how the Asset Hub UMP (Upward Message Passing) queue is processed relative to other
|
|
1390
|
+
* queues during the migration process. This helps ensure timely processing of migration
|
|
1391
|
+
* messages. The default priority pattern is defined in the pallet configuration, but can be
|
|
1392
|
+
* overridden by a storage value of this type.
|
|
1393
|
+
**/
|
|
1394
|
+
ahUmpQueuePriorityConfig: AugmentedQuery<ApiType, () => Observable<PalletRcMigratorQueuePriority>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1395
|
+
/**
|
|
1396
|
+
* An optional account id of a canceller.
|
|
1397
|
+
*
|
|
1398
|
+
* This account id can only stop scheduled migration.
|
|
1399
|
+
**/
|
|
1400
|
+
canceller: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1401
|
+
/**
|
|
1402
|
+
* The duration of the post migration cool-off period.
|
|
1403
|
+
*
|
|
1404
|
+
* This is the duration of the cool-off period after the data migration is finished. During
|
|
1405
|
+
* this period, the migration will be still in ongoing state and the concerned extrinsics will
|
|
1406
|
+
* be locked.
|
|
1407
|
+
**/
|
|
1408
|
+
coolOffPeriod: AugmentedQuery<ApiType, () => Observable<Option<FrameSupportScheduleDispatchTime>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1409
|
+
/**
|
|
1410
|
+
* Counter for the related counted storage map
|
|
1411
|
+
**/
|
|
1412
|
+
counterForPendingXcmMessages: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Counter for the related counted storage map
|
|
1415
|
+
**/
|
|
1416
|
+
counterForRcAccounts: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1417
|
+
/**
|
|
1418
|
+
* An optional account id of a manager.
|
|
1419
|
+
*
|
|
1420
|
+
* This account id has similar privileges to [`Config::AdminOrigin`] except that it
|
|
1421
|
+
* can not set the manager account id via `set_manager` call.
|
|
1422
|
+
**/
|
|
1423
|
+
manager: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1424
|
+
/**
|
|
1425
|
+
* The current round of the multisig voting.
|
|
1426
|
+
*
|
|
1427
|
+
* Votes are only valid for the current round.
|
|
1428
|
+
**/
|
|
1429
|
+
managerMultisigRound: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1430
|
+
/**
|
|
1431
|
+
* The multisig AccountIDs that votes to execute a specific call.
|
|
1432
|
+
**/
|
|
1433
|
+
managerMultisigs: AugmentedQuery<ApiType, (arg: Call | IMethod | string | Uint8Array) => Observable<Vec<AccountId32>>, [Call]> & QueryableStorageEntry<ApiType, [Call]>;
|
|
1434
|
+
/**
|
|
1435
|
+
* How often each participant voted in the current round.
|
|
1436
|
+
*
|
|
1437
|
+
* Will be cleared at the end of each round.
|
|
1438
|
+
**/
|
|
1439
|
+
managerVotesInCurrentRound: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u32>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1440
|
+
/**
|
|
1441
|
+
* Block number when migration finished and extrinsics were unlocked.
|
|
1442
|
+
*
|
|
1443
|
+
* This is set when entering the `MigrationDone` stage hence when
|
|
1444
|
+
* `RcMigrationStage::is_finished()` becomes `true`.
|
|
1445
|
+
**/
|
|
1446
|
+
migrationEndBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1447
|
+
/**
|
|
1448
|
+
* The block number at which the migration began and the pallet's extrinsics were locked.
|
|
1449
|
+
*
|
|
1450
|
+
* This value is set when entering the `WaitingForAh` stage, i.e., when
|
|
1451
|
+
* `RcMigrationStage::is_ongoing()` becomes `true`.
|
|
1452
|
+
**/
|
|
1453
|
+
migrationStartBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1454
|
+
/**
|
|
1455
|
+
* The pending XCM messages.
|
|
1456
|
+
*
|
|
1457
|
+
* Contains data messages that have been sent to the Asset Hub but not yet confirmed.
|
|
1458
|
+
*
|
|
1459
|
+
* Unconfirmed messages can be resent by calling the [`Pallet::resend_xcm`] function.
|
|
1460
|
+
**/
|
|
1461
|
+
pendingXcmMessages: AugmentedQuery<ApiType, (arg: ITuple<[u64, H256]> | [u64 | AnyNumber | Uint8Array, H256 | string | Uint8Array]) => Observable<Option<StagingXcmV5Xcm>>, [ITuple<[u64, H256]>]> & QueryableStorageEntry<ApiType, [ITuple<[u64, H256]>]>;
|
|
1462
|
+
/**
|
|
1463
|
+
* The pending XCM response queries and their XCM hash referencing the message in the
|
|
1464
|
+
* [`PendingXcmMessages`] storage.
|
|
1465
|
+
*
|
|
1466
|
+
* The `QueryId` is the identifier from the [`pallet_xcm`] query handler registry. The XCM
|
|
1467
|
+
* pallet will notify about the status of the message by calling the
|
|
1468
|
+
* [`Pallet::receive_query_response`] function with the `QueryId` and the
|
|
1469
|
+
* response.
|
|
1470
|
+
**/
|
|
1471
|
+
pendingXcmQueries: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
1472
|
+
/**
|
|
1473
|
+
* Accounts that use the proxy pallet to delegate permissions and have no nonce.
|
|
1474
|
+
*
|
|
1475
|
+
* Boolean value is whether they have been migrated to the Asset Hub. Needed for idempotency.
|
|
1476
|
+
**/
|
|
1477
|
+
pureProxyCandidatesMigrated: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<bool>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1478
|
+
/**
|
|
1479
|
+
* Helper storage item to obtain and store the known accounts that should be kept partially or
|
|
1480
|
+
* fully on Relay Chain.
|
|
1481
|
+
**/
|
|
1482
|
+
rcAccounts: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletRcMigratorAccountsAccountState>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1483
|
+
/**
|
|
1484
|
+
* Helper storage item to store the total balance that should be kept on Relay Chain.
|
|
1485
|
+
**/
|
|
1486
|
+
rcMigratedBalance: AugmentedQuery<ApiType, () => Observable<PalletRcMigratorAccountsMigratedBalances>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1487
|
+
/**
|
|
1488
|
+
* Helper storage item to store the total balance that should be kept on Relay Chain after
|
|
1489
|
+
* it is consumed from the `RcMigratedBalance` storage item and sent to the Asset Hub.
|
|
1490
|
+
*
|
|
1491
|
+
* This let us to take the value from the `RcMigratedBalance` storage item and keep the
|
|
1492
|
+
* `SignalMigrationFinish` stage to be idempotent while preserving these values for tests and
|
|
1493
|
+
* later discoveries.
|
|
1494
|
+
**/
|
|
1495
|
+
rcMigratedBalanceArchive: AugmentedQuery<ApiType, () => Observable<PalletRcMigratorAccountsMigratedBalances>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1496
|
+
/**
|
|
1497
|
+
* The Relay Chain migration state.
|
|
1498
|
+
**/
|
|
1499
|
+
rcMigrationStage: AugmentedQuery<ApiType, () => Observable<PalletRcMigratorMigrationStage>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1500
|
+
/**
|
|
1501
|
+
* The migration settings.
|
|
1502
|
+
**/
|
|
1503
|
+
settings: AugmentedQuery<ApiType, () => Observable<Option<PalletRcMigratorMigrationSettings>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1504
|
+
/**
|
|
1505
|
+
* Manual override for `type UnprocessedMsgBuffer: Get<u32>`. Look there for docs.
|
|
1506
|
+
**/
|
|
1507
|
+
unprocessedMsgBuffer: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1508
|
+
/**
|
|
1509
|
+
* The duration of the pre migration warm-up period.
|
|
1510
|
+
*
|
|
1511
|
+
* This is the duration of the warm-up period before the data migration starts. During this
|
|
1512
|
+
* period, the migration will be in ongoing state and the concerned extrinsics will be locked.
|
|
1513
|
+
**/
|
|
1514
|
+
warmUpPeriod: AugmentedQuery<ApiType, () => Observable<Option<FrameSupportScheduleDispatchTime>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1515
|
+
/**
|
|
1516
|
+
* Generic query
|
|
1517
|
+
**/
|
|
1518
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1519
|
+
};
|
|
1520
|
+
referenda: {
|
|
1521
|
+
/**
|
|
1522
|
+
* The number of referenda being decided currently.
|
|
1523
|
+
**/
|
|
1524
|
+
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
1525
|
+
/**
|
|
1526
|
+
* The metadata is a general information concerning the referendum.
|
|
1527
|
+
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
1528
|
+
* dump or IPFS hash of a JSON file.
|
|
1529
|
+
*
|
|
1530
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
1531
|
+
* large preimages.
|
|
1532
|
+
**/
|
|
1533
|
+
metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1534
|
+
/**
|
|
1535
|
+
* The next free referendum index, aka the number of referenda started so far.
|
|
1536
|
+
**/
|
|
1537
|
+
referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1538
|
+
/**
|
|
1539
|
+
* Information concerning any given referendum.
|
|
1540
|
+
**/
|
|
1541
|
+
referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReferendaReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1542
|
+
/**
|
|
1543
|
+
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
1544
|
+
* conviction-weighted approvals.
|
|
1545
|
+
*
|
|
1546
|
+
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
|
1547
|
+
**/
|
|
1548
|
+
trackQueue: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
1549
|
+
/**
|
|
1550
|
+
* Generic query
|
|
1551
|
+
**/
|
|
1552
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1553
|
+
};
|
|
1554
|
+
registrar: {
|
|
1555
|
+
/**
|
|
1556
|
+
* The next free `ParaId`.
|
|
1557
|
+
**/
|
|
1558
|
+
nextFreeParaId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1559
|
+
/**
|
|
1560
|
+
* Amount held on deposit for each para and the original depositor.
|
|
1561
|
+
*
|
|
1562
|
+
* The given account ID is responsible for registering the code and initial head data, but may
|
|
1563
|
+
* only do so if it isn't yet registered. (After that, it's up to governance to do so.)
|
|
1564
|
+
**/
|
|
1565
|
+
paras: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeCommonParasRegistrarParaInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1566
|
+
/**
|
|
1567
|
+
* Pending swap operations.
|
|
1568
|
+
**/
|
|
1569
|
+
pendingSwap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1570
|
+
/**
|
|
1571
|
+
* Generic query
|
|
1572
|
+
**/
|
|
1573
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1574
|
+
};
|
|
1575
|
+
scheduler: {
|
|
1576
|
+
/**
|
|
1577
|
+
* Items to be executed, indexed by the block number that they should be executed on.
|
|
1578
|
+
**/
|
|
1579
|
+
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1580
|
+
/**
|
|
1581
|
+
* Block number at which the agenda began incomplete execution.
|
|
1582
|
+
**/
|
|
1583
|
+
incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1584
|
+
/**
|
|
1585
|
+
* Lookup from a name to the block number and index of the task.
|
|
1586
|
+
*
|
|
1587
|
+
* For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
|
|
1588
|
+
* identities.
|
|
1589
|
+
**/
|
|
1590
|
+
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
1591
|
+
/**
|
|
1592
|
+
* Retry configurations for items to be executed, indexed by task address.
|
|
1593
|
+
**/
|
|
1594
|
+
retries: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletSchedulerRetryConfig>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
|
|
1595
|
+
/**
|
|
1596
|
+
* Generic query
|
|
1597
|
+
**/
|
|
1598
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1599
|
+
};
|
|
1600
|
+
session: {
|
|
1601
|
+
/**
|
|
1602
|
+
* Current index of the session.
|
|
1603
|
+
**/
|
|
1604
|
+
currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1605
|
+
/**
|
|
1606
|
+
* Indices of disabled validators.
|
|
1607
|
+
*
|
|
1608
|
+
* The vec is always kept sorted so that we can find whether a given validator is
|
|
1609
|
+
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
1610
|
+
* a new set of identities.
|
|
1611
|
+
**/
|
|
1612
|
+
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, Perbill]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1613
|
+
/**
|
|
1614
|
+
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
1615
|
+
**/
|
|
1616
|
+
keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]> & QueryableStorageEntry<ApiType, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>;
|
|
1617
|
+
/**
|
|
1618
|
+
* The next session keys for a validator.
|
|
1619
|
+
**/
|
|
1620
|
+
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolkadotRuntimeSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1621
|
+
/**
|
|
1622
|
+
* True if the underlying economic identities or weighting behind the validators
|
|
1623
|
+
* has changed in the queued validator set.
|
|
1624
|
+
**/
|
|
1625
|
+
queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1626
|
+
/**
|
|
1627
|
+
* The queued keys for the next session. When the next session begins, these keys
|
|
1628
|
+
* will be used to determine the validator's session keys.
|
|
1629
|
+
**/
|
|
1630
|
+
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, PolkadotRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1631
|
+
/**
|
|
1632
|
+
* The current set of validators.
|
|
1633
|
+
**/
|
|
1634
|
+
validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Generic query
|
|
1637
|
+
**/
|
|
1638
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1639
|
+
};
|
|
1640
|
+
slots: {
|
|
1641
|
+
/**
|
|
1642
|
+
* Amounts held on deposit for each (possibly future) leased parachain.
|
|
1643
|
+
*
|
|
1644
|
+
* The actual amount locked on its behalf by any account at any time is the maximum of the
|
|
1645
|
+
* second values of the items in this list whose first value is the account.
|
|
1646
|
+
*
|
|
1647
|
+
* The first item in the list is the amount locked for the current Lease Period. Following
|
|
1648
|
+
* items are for the subsequent lease periods.
|
|
1649
|
+
*
|
|
1650
|
+
* The default value (an empty list) implies that the parachain no longer exists (or never
|
|
1651
|
+
* existed) as far as this pallet is concerned.
|
|
1652
|
+
*
|
|
1653
|
+
* If a parachain doesn't exist *yet* but is scheduled to exist in the future, then it
|
|
1654
|
+
* will be left-padded with one or more `None`s to denote the fact that nothing is held on
|
|
1655
|
+
* deposit for the non-existent chain currently, but is held at some point in the future.
|
|
1656
|
+
*
|
|
1657
|
+
* It is illegal for a `None` value to trail in the list.
|
|
1658
|
+
**/
|
|
1659
|
+
leases: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<ITuple<[AccountId32, u128]>>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1660
|
+
/**
|
|
1661
|
+
* Generic query
|
|
1662
|
+
**/
|
|
1663
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1664
|
+
};
|
|
1665
|
+
staking: {
|
|
1666
|
+
/**
|
|
1667
|
+
* The active era information, it holds index and start.
|
|
1668
|
+
*
|
|
1669
|
+
* The active era is the era being currently rewarded. Validator set of this era must be
|
|
1670
|
+
* equal to [`SessionInterface::validators`].
|
|
1671
|
+
**/
|
|
1672
|
+
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1673
|
+
/**
|
|
1674
|
+
* Map from all locked "stash" accounts to the controller account.
|
|
1675
|
+
*
|
|
1676
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1677
|
+
**/
|
|
1678
|
+
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1679
|
+
/**
|
|
1680
|
+
* A mapping from still-bonded eras to the first session index of that era.
|
|
1681
|
+
*
|
|
1682
|
+
* Must contains information for eras for the range:
|
|
1683
|
+
* `[active_era - bounding_duration; active_era]`
|
|
1684
|
+
**/
|
|
1685
|
+
bondedEras: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1686
|
+
/**
|
|
1687
|
+
* The amount of currency given to reporters of a slash event which was
|
|
1688
|
+
* canceled by extraordinary circumstances (e.g. governance).
|
|
1689
|
+
**/
|
|
1690
|
+
canceledSlashPayout: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1691
|
+
/**
|
|
1692
|
+
* The threshold for when users can start calling `chill_other` for other validators /
|
|
1693
|
+
* nominators. The threshold is compared to the actual number of validators / nominators
|
|
1694
|
+
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
|
|
1695
|
+
**/
|
|
1696
|
+
chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1697
|
+
/**
|
|
1698
|
+
* History of claimed paged rewards by era and validator.
|
|
1699
|
+
*
|
|
1700
|
+
* This is keyed by era and validator stash which maps to the set of page indexes which have
|
|
1701
|
+
* been claimed.
|
|
1702
|
+
*
|
|
1703
|
+
* It is removed after [`Config::HistoryDepth`] eras.
|
|
1704
|
+
**/
|
|
1705
|
+
claimedRewards: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1706
|
+
/**
|
|
1707
|
+
* Counter for the related counted storage map
|
|
1708
|
+
**/
|
|
1709
|
+
counterForNominators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1710
|
+
/**
|
|
1711
|
+
* Counter for the related counted storage map
|
|
1712
|
+
**/
|
|
1713
|
+
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1714
|
+
/**
|
|
1715
|
+
* Counter for the related counted storage map
|
|
1716
|
+
**/
|
|
1717
|
+
counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1718
|
+
/**
|
|
1719
|
+
* The current era index.
|
|
1720
|
+
*
|
|
1721
|
+
* This is the latest planned era, depending on how the Session pallet queues the validator
|
|
1722
|
+
* set, it might be active or not.
|
|
1723
|
+
**/
|
|
1724
|
+
currentEra: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1725
|
+
/**
|
|
1726
|
+
* The last planned session scheduled by the session pallet.
|
|
1727
|
+
*
|
|
1728
|
+
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
|
1729
|
+
**/
|
|
1730
|
+
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1731
|
+
/**
|
|
1732
|
+
* Rewards for the last [`Config::HistoryDepth`] eras.
|
|
1733
|
+
* If reward hasn't been set or has been removed then 0 reward is returned.
|
|
1734
|
+
**/
|
|
1735
|
+
erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1736
|
+
/**
|
|
1737
|
+
* Exposure of validator at era.
|
|
1738
|
+
*
|
|
1739
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
1740
|
+
*
|
|
1741
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
1742
|
+
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
1743
|
+
*
|
|
1744
|
+
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
|
1745
|
+
**/
|
|
1746
|
+
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1747
|
+
/**
|
|
1748
|
+
* Clipped Exposure of validator at era.
|
|
1749
|
+
*
|
|
1750
|
+
* Note: This is deprecated, should be used as read-only and will be removed in the future.
|
|
1751
|
+
* New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
|
|
1752
|
+
*
|
|
1753
|
+
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
|
|
1754
|
+
* `T::MaxExposurePageSize` biggest stakers.
|
|
1755
|
+
* (Note: the field `total` and `own` of the exposure remains unchanged).
|
|
1756
|
+
* This is used to limit the i/o cost for the nominator payout.
|
|
1757
|
+
*
|
|
1758
|
+
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
|
|
1759
|
+
*
|
|
1760
|
+
* It is removed after [`Config::HistoryDepth`] eras.
|
|
1761
|
+
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
1762
|
+
*
|
|
1763
|
+
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
|
1764
|
+
**/
|
|
1765
|
+
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1766
|
+
/**
|
|
1767
|
+
* Summary of validator exposure at a given era.
|
|
1768
|
+
*
|
|
1769
|
+
* This contains the total stake in support of the validator and their own stake. In addition,
|
|
1770
|
+
* it can also be used to get the number of nominators backing this validator and the number of
|
|
1771
|
+
* exposure pages they are divided into. The page count is useful to determine the number of
|
|
1772
|
+
* pages of rewards that needs to be claimed.
|
|
1773
|
+
*
|
|
1774
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
1775
|
+
* Should only be accessed through `EraInfo`.
|
|
1776
|
+
*
|
|
1777
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
1778
|
+
* If stakers hasn't been set or has been removed then empty overview is returned.
|
|
1779
|
+
**/
|
|
1780
|
+
erasStakersOverview: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<SpStakingPagedExposureMetadata>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1781
|
+
/**
|
|
1782
|
+
* Paginated exposure of a validator at given era.
|
|
1783
|
+
*
|
|
1784
|
+
* This is keyed first by the era index to allow bulk deletion, then stash account and finally
|
|
1785
|
+
* the page. Should only be accessed through `EraInfo`.
|
|
1786
|
+
*
|
|
1787
|
+
* This is cleared after [`Config::HistoryDepth`] eras.
|
|
1788
|
+
**/
|
|
1789
|
+
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]>;
|
|
1790
|
+
/**
|
|
1791
|
+
* The session index at which the era start for the last [`Config::HistoryDepth`] eras.
|
|
1792
|
+
*
|
|
1793
|
+
* Note: This tracks the starting session (i.e. session index when era start being active)
|
|
1794
|
+
* for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
|
|
1795
|
+
**/
|
|
1796
|
+
erasStartSessionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1797
|
+
/**
|
|
1798
|
+
* The total amount staked for the last [`Config::HistoryDepth`] eras.
|
|
1799
|
+
* If total hasn't been set or has been removed then 0 stake is returned.
|
|
1800
|
+
**/
|
|
1801
|
+
erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1802
|
+
/**
|
|
1803
|
+
* Similar to `ErasStakers`, this holds the preferences of validators.
|
|
1804
|
+
*
|
|
1805
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
1806
|
+
*
|
|
1807
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
1808
|
+
**/
|
|
1809
|
+
erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1810
|
+
/**
|
|
1811
|
+
* The total validator era payout for the last [`Config::HistoryDepth`] eras.
|
|
1812
|
+
*
|
|
1813
|
+
* Eras that haven't finished yet or has been removed doesn't have reward.
|
|
1814
|
+
**/
|
|
1815
|
+
erasValidatorReward: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1816
|
+
/**
|
|
1817
|
+
* Mode of era forcing.
|
|
1818
|
+
**/
|
|
1819
|
+
forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingForcing>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1820
|
+
/**
|
|
1821
|
+
* Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
|
|
1822
|
+
* easy to initialize and the performance hit is minimal (we expect no more than four
|
|
1823
|
+
* invulnerables) and restricted to testnets.
|
|
1824
|
+
**/
|
|
1825
|
+
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1826
|
+
/**
|
|
1827
|
+
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
|
1828
|
+
*
|
|
1829
|
+
* Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
|
|
1830
|
+
* by [`StakingLedger`] to ensure data and lock consistency.
|
|
1831
|
+
**/
|
|
1832
|
+
ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1833
|
+
/**
|
|
1834
|
+
* The maximum nominator count before we stop allowing new validators to join.
|
|
1835
|
+
*
|
|
1836
|
+
* When this value is not set, no limits are enforced.
|
|
1837
|
+
**/
|
|
1838
|
+
maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1839
|
+
/**
|
|
1840
|
+
* Maximum staked rewards, i.e. the percentage of the era inflation that
|
|
1841
|
+
* is used for stake rewards.
|
|
1842
|
+
* See [Era payout](./index.html#era-payout).
|
|
1843
|
+
**/
|
|
1844
|
+
maxStakedRewards: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1845
|
+
/**
|
|
1846
|
+
* The maximum validator count before we stop allowing new validators to join.
|
|
1847
|
+
*
|
|
1848
|
+
* When this value is not set, no limits are enforced.
|
|
1849
|
+
**/
|
|
1850
|
+
maxValidatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1851
|
+
/**
|
|
1852
|
+
* The minimum amount of commission that validators can set.
|
|
1853
|
+
*
|
|
1854
|
+
* If set to `0`, no limit exists.
|
|
1855
|
+
**/
|
|
1856
|
+
minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1857
|
+
/**
|
|
1858
|
+
* The minimum active nominator stake of the last successful election.
|
|
1859
|
+
**/
|
|
1860
|
+
minimumActiveStake: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1861
|
+
/**
|
|
1862
|
+
* Minimum number of staking participants before emergency conditions are imposed.
|
|
1863
|
+
**/
|
|
1864
|
+
minimumValidatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1865
|
+
/**
|
|
1866
|
+
* The minimum active bond to become and maintain the role of a nominator.
|
|
1867
|
+
**/
|
|
1868
|
+
minNominatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1869
|
+
/**
|
|
1870
|
+
* The minimum active bond to become and maintain the role of a validator.
|
|
1871
|
+
**/
|
|
1872
|
+
minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1873
|
+
/**
|
|
1874
|
+
* The map from nominator stash key to their nomination preferences, namely the validators that
|
|
1875
|
+
* they wish to support.
|
|
1876
|
+
*
|
|
1877
|
+
* Note that the keys of this storage map might become non-decodable in case the
|
|
1878
|
+
* account's [`NominationsQuota::MaxNominations`] configuration is decreased.
|
|
1879
|
+
* In this rare case, these nominators
|
|
1880
|
+
* are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
|
|
1881
|
+
* indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
|
|
1882
|
+
* nominators will effectively not-exist, until they re-submit their preferences such that it
|
|
1883
|
+
* is within the bounds of the newly set `Config::MaxNominations`.
|
|
1884
|
+
*
|
|
1885
|
+
* This implies that `::iter_keys().count()` and `::iter().count()` might return different
|
|
1886
|
+
* values for this map. Moreover, the main `::count()` is aligned with the former, namely the
|
|
1887
|
+
* number of keys that exist.
|
|
1888
|
+
*
|
|
1889
|
+
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
|
1890
|
+
* [`Call::chill_other`] dispatchable by anyone.
|
|
1891
|
+
*
|
|
1892
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1893
|
+
**/
|
|
1894
|
+
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1895
|
+
/**
|
|
1896
|
+
* All slashing events on nominators, mapped by era to the highest slash value of the era.
|
|
1897
|
+
**/
|
|
1898
|
+
nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1899
|
+
/**
|
|
1900
|
+
* Where the reward payment should be made. Keyed by stash.
|
|
1901
|
+
*
|
|
1902
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1903
|
+
**/
|
|
1904
|
+
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingRewardDestination>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1905
|
+
/**
|
|
1906
|
+
* Slashing spans for stash accounts.
|
|
1907
|
+
**/
|
|
1908
|
+
slashingSpans: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingSlashingSlashingSpans>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1909
|
+
/**
|
|
1910
|
+
* The percentage of the slash that is distributed to reporters.
|
|
1911
|
+
*
|
|
1912
|
+
* The rest of the slashed value is handled by the `Slash`.
|
|
1913
|
+
**/
|
|
1914
|
+
slashRewardFraction: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1915
|
+
/**
|
|
1916
|
+
* Records information about the maximum slash of a stash within a slashing span,
|
|
1917
|
+
* as well as how much reward has been paid out.
|
|
1918
|
+
**/
|
|
1919
|
+
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
|
1920
|
+
/**
|
|
1921
|
+
* All unapplied slashes that are queued for later.
|
|
1922
|
+
**/
|
|
1923
|
+
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1924
|
+
/**
|
|
1925
|
+
* The ideal number of active validators.
|
|
1926
|
+
**/
|
|
1927
|
+
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1928
|
+
/**
|
|
1929
|
+
* The map from (wannabe) validator stash key to the preferences of that validator.
|
|
1930
|
+
*
|
|
1931
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1932
|
+
**/
|
|
1933
|
+
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1934
|
+
/**
|
|
1935
|
+
* All slashing events on validators, mapped by era to the highest slash proportion
|
|
1936
|
+
* and slash value of the era.
|
|
1937
|
+
**/
|
|
1938
|
+
validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1939
|
+
/**
|
|
1940
|
+
* Stakers whose funds are managed by other pallets.
|
|
1941
|
+
*
|
|
1942
|
+
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
|
|
1943
|
+
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
|
|
1944
|
+
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
|
|
1945
|
+
* via low level apis. We keep track of them to do minimal integrity checks.
|
|
1946
|
+
**/
|
|
1947
|
+
virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1948
|
+
/**
|
|
1949
|
+
* Generic query
|
|
1950
|
+
**/
|
|
1951
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1952
|
+
};
|
|
1953
|
+
stakingAhClient: {
|
|
1954
|
+
/**
|
|
1955
|
+
* An incomplete validator set report.
|
|
1956
|
+
**/
|
|
1957
|
+
incompleteValidatorSetReport: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingAsyncRcClientValidatorSetReport>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1958
|
+
/**
|
|
1959
|
+
* Indicates the current operating mode of the pallet.
|
|
1960
|
+
*
|
|
1961
|
+
* This value determines how the pallet behaves in response to incoming and outgoing messages,
|
|
1962
|
+
* particularly whether it should execute logic directly, defer it, or delegate it entirely.
|
|
1963
|
+
**/
|
|
1964
|
+
mode: AugmentedQuery<ApiType, () => Observable<PalletStakingAsyncAhClientOperatingMode>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1965
|
+
/**
|
|
1966
|
+
* A storage value that is set when a `new_session` gives a new validator set to the session
|
|
1967
|
+
* pallet, and is cleared on the next call.
|
|
1968
|
+
*
|
|
1969
|
+
* The inner u32 is the id of the said activated validator set. While not relevant here, good
|
|
1970
|
+
* to know this is the planning era index of staking-async on AH.
|
|
1971
|
+
*
|
|
1972
|
+
* Once cleared, we know a validator set has been activated, and therefore we can send a
|
|
1973
|
+
* timestamp to AH.
|
|
1974
|
+
**/
|
|
1975
|
+
nextSessionChangesValidators: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1976
|
+
/**
|
|
1977
|
+
* Internal storage item of [`OffenceSendQueue`]. Should not be used manually.
|
|
1978
|
+
**/
|
|
1979
|
+
offenceSendQueueCursor: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1980
|
+
/**
|
|
1981
|
+
* Internal storage item of [`OffenceSendQueue`]. Should not be used manually.
|
|
1982
|
+
**/
|
|
1983
|
+
offenceSendQueueOffences: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, PalletStakingAsyncRcClientOffence]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1984
|
+
/**
|
|
1985
|
+
* A session report that is outgoing, and should be sent.
|
|
1986
|
+
*
|
|
1987
|
+
* This will be attempted to be sent, possibly on every `on_initialize` call, until it is sent,
|
|
1988
|
+
* or the second value reaches zero, at which point we drop it.
|
|
1989
|
+
**/
|
|
1990
|
+
outgoingSessionReport: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[PalletStakingAsyncRcClientSessionReport, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1991
|
+
/**
|
|
1992
|
+
* All of the points of the validators.
|
|
1993
|
+
*
|
|
1994
|
+
* This is populated during a session, and is flushed and sent over via [`SendToAssetHub`]
|
|
1995
|
+
* at each session end.
|
|
1996
|
+
**/
|
|
1997
|
+
validatorPoints: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u32>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1998
|
+
/**
|
|
1999
|
+
* The queued validator sets for a given planning session index.
|
|
2000
|
+
*
|
|
2001
|
+
* This is received via a call from AssetHub.
|
|
2002
|
+
**/
|
|
2003
|
+
validatorSet: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, Vec<AccountId32>]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2004
|
+
/**
|
|
2005
|
+
* The session index at which the latest elected validator set was applied.
|
|
2006
|
+
*
|
|
2007
|
+
* This is used to determine if an offence, given a session index, is in the current active era
|
|
2008
|
+
* or not.
|
|
2009
|
+
**/
|
|
2010
|
+
validatorSetAppliedAt: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2011
|
+
/**
|
|
2012
|
+
* Generic query
|
|
2013
|
+
**/
|
|
2014
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2015
|
+
};
|
|
2016
|
+
stateTrieMigration: {
|
|
2017
|
+
/**
|
|
2018
|
+
* The limits that are imposed on automatic migrations.
|
|
2019
|
+
*
|
|
2020
|
+
* If set to None, then no automatic migration happens.
|
|
2021
|
+
**/
|
|
2022
|
+
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2023
|
+
/**
|
|
2024
|
+
* Migration progress.
|
|
2025
|
+
*
|
|
2026
|
+
* This stores the snapshot of the last migrated keys. It can be set into motion and move
|
|
2027
|
+
* forward by any of the means provided by this pallet.
|
|
2028
|
+
**/
|
|
2029
|
+
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2030
|
+
/**
|
|
2031
|
+
* The maximum limits that the signed migration could use.
|
|
2032
|
+
*
|
|
2033
|
+
* If not set, no signed submission is allowed.
|
|
2034
|
+
**/
|
|
2035
|
+
signedMigrationMaxLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2036
|
+
/**
|
|
2037
|
+
* Generic query
|
|
2038
|
+
**/
|
|
2039
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2040
|
+
};
|
|
2041
|
+
system: {
|
|
2042
|
+
/**
|
|
2043
|
+
* The full account information for a particular account ID.
|
|
2044
|
+
**/
|
|
2045
|
+
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
2046
|
+
/**
|
|
2047
|
+
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
2048
|
+
**/
|
|
2049
|
+
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2050
|
+
/**
|
|
2051
|
+
* `Some` if a code upgrade has been authorized.
|
|
2052
|
+
**/
|
|
2053
|
+
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2054
|
+
/**
|
|
2055
|
+
* Map of block numbers to block hashes.
|
|
2056
|
+
**/
|
|
2057
|
+
blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2058
|
+
/**
|
|
2059
|
+
* The current weight for the block.
|
|
2060
|
+
**/
|
|
2061
|
+
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2062
|
+
/**
|
|
2063
|
+
* Digest of the current block, also part of the block header.
|
|
2064
|
+
**/
|
|
2065
|
+
digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2066
|
+
/**
|
|
2067
|
+
* The number of events in the `Events<T>` list.
|
|
2068
|
+
**/
|
|
2069
|
+
eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2070
|
+
/**
|
|
2071
|
+
* Events deposited for the current block.
|
|
2072
|
+
*
|
|
2073
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
2074
|
+
* It could otherwise inflate the PoV size of a block.
|
|
2075
|
+
*
|
|
2076
|
+
* Events have a large in-memory size. Box the events to not go out-of-memory
|
|
2077
|
+
* just in case someone still reads them from within the runtime.
|
|
2078
|
+
**/
|
|
2079
|
+
events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2080
|
+
/**
|
|
2081
|
+
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
2082
|
+
* of events in the `<Events<T>>` list.
|
|
2083
|
+
*
|
|
2084
|
+
* All topic vectors have deterministic storage locations depending on the topic. This
|
|
2085
|
+
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
2086
|
+
* in case of changes fetch the list of events of interest.
|
|
2087
|
+
*
|
|
2088
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
2089
|
+
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
2090
|
+
* no notification will be triggered thus the event might be lost.
|
|
2091
|
+
**/
|
|
2092
|
+
eventTopics: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
2093
|
+
/**
|
|
2094
|
+
* The execution phase of the block.
|
|
2095
|
+
**/
|
|
2096
|
+
executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2097
|
+
/**
|
|
2098
|
+
* Total extrinsics count for the current block.
|
|
2099
|
+
**/
|
|
2100
|
+
extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2101
|
+
/**
|
|
2102
|
+
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
2103
|
+
**/
|
|
2104
|
+
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2105
|
+
/**
|
|
2106
|
+
* The weight reclaimed for the extrinsic.
|
|
2107
|
+
*
|
|
2108
|
+
* This information is available until the end of the extrinsic execution.
|
|
2109
|
+
* More precisely this information is removed in `note_applied_extrinsic`.
|
|
2110
|
+
*
|
|
2111
|
+
* Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
|
|
2112
|
+
* reduction.
|
|
2113
|
+
**/
|
|
2114
|
+
extrinsicWeightReclaimed: AugmentedQuery<ApiType, () => Observable<SpWeightsWeightV2Weight>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2115
|
+
/**
|
|
2116
|
+
* Whether all inherents have been applied.
|
|
2117
|
+
**/
|
|
2118
|
+
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2119
|
+
/**
|
|
2120
|
+
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
2121
|
+
**/
|
|
2122
|
+
lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2123
|
+
/**
|
|
2124
|
+
* The current block number being processed. Set by `execute_block`.
|
|
2125
|
+
**/
|
|
2126
|
+
number: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2127
|
+
/**
|
|
2128
|
+
* Hash of the previous block.
|
|
2129
|
+
**/
|
|
2130
|
+
parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2131
|
+
/**
|
|
2132
|
+
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
2133
|
+
* (default) if not.
|
|
2134
|
+
**/
|
|
2135
|
+
upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2136
|
+
/**
|
|
2137
|
+
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
2138
|
+
**/
|
|
2139
|
+
upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2140
|
+
/**
|
|
2141
|
+
* Generic query
|
|
2142
|
+
**/
|
|
2143
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2144
|
+
};
|
|
2145
|
+
timestamp: {
|
|
2146
|
+
/**
|
|
2147
|
+
* Whether the timestamp has been updated in this block.
|
|
2148
|
+
*
|
|
2149
|
+
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
|
2150
|
+
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
|
2151
|
+
**/
|
|
2152
|
+
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2153
|
+
/**
|
|
2154
|
+
* The current time for the current block.
|
|
2155
|
+
**/
|
|
2156
|
+
now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2157
|
+
/**
|
|
2158
|
+
* Generic query
|
|
2159
|
+
**/
|
|
2160
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2161
|
+
};
|
|
2162
|
+
transactionPayment: {
|
|
2163
|
+
nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2164
|
+
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2165
|
+
/**
|
|
2166
|
+
* Generic query
|
|
2167
|
+
**/
|
|
2168
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2169
|
+
};
|
|
2170
|
+
treasury: {
|
|
2171
|
+
/**
|
|
2172
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
2173
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
2174
|
+
*
|
|
2175
|
+
* Proposal indices that have been approved but not yet awarded.
|
|
2176
|
+
**/
|
|
2177
|
+
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2178
|
+
/**
|
|
2179
|
+
* The amount which has been reported as inactive to Currency.
|
|
2180
|
+
**/
|
|
2181
|
+
deactivated: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2182
|
+
/**
|
|
2183
|
+
* The blocknumber for the last triggered spend period.
|
|
2184
|
+
**/
|
|
2185
|
+
lastSpendPeriod: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2186
|
+
/**
|
|
2187
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
2188
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
2189
|
+
*
|
|
2190
|
+
* Number of proposals that have been made.
|
|
2191
|
+
**/
|
|
2192
|
+
proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2193
|
+
/**
|
|
2194
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
2195
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
2196
|
+
*
|
|
2197
|
+
* Proposals that have been made.
|
|
2198
|
+
**/
|
|
2199
|
+
proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryProposal>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2200
|
+
/**
|
|
2201
|
+
* The count of spends that have been made.
|
|
2202
|
+
**/
|
|
2203
|
+
spendCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2204
|
+
/**
|
|
2205
|
+
* Spends that have been approved and being processed.
|
|
2206
|
+
**/
|
|
2207
|
+
spends: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasurySpendStatus>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2208
|
+
/**
|
|
2209
|
+
* Generic query
|
|
2210
|
+
**/
|
|
2211
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2212
|
+
};
|
|
2213
|
+
vesting: {
|
|
2214
|
+
/**
|
|
2215
|
+
* Storage version of the pallet.
|
|
2216
|
+
*
|
|
2217
|
+
* New networks start with latest version, as determined by the genesis build.
|
|
2218
|
+
**/
|
|
2219
|
+
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletVestingReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2220
|
+
/**
|
|
2221
|
+
* Information regarding the vesting of a given account.
|
|
2222
|
+
**/
|
|
2223
|
+
vesting: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<PalletVestingVestingInfo>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
2224
|
+
/**
|
|
2225
|
+
* Generic query
|
|
2226
|
+
**/
|
|
2227
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2228
|
+
};
|
|
2229
|
+
voterList: {
|
|
2230
|
+
/**
|
|
2231
|
+
* Counter for the related counted storage map
|
|
2232
|
+
**/
|
|
2233
|
+
counterForListNodes: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2234
|
+
/**
|
|
2235
|
+
* A bag stored in storage.
|
|
2236
|
+
*
|
|
2237
|
+
* Stores a `Bag` struct, which stores head and tail pointers to itself.
|
|
2238
|
+
**/
|
|
2239
|
+
listBags: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBagsListListBag>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
2240
|
+
/**
|
|
2241
|
+
* A single node, within some bag.
|
|
2242
|
+
*
|
|
2243
|
+
* Nodes store links forward and back within their respective bags.
|
|
2244
|
+
**/
|
|
2245
|
+
listNodes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletBagsListListNode>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
2246
|
+
/**
|
|
2247
|
+
* Lock all updates to this pallet.
|
|
2248
|
+
*
|
|
2249
|
+
* If any nodes needs updating, removal or addition due to a temporary lock, the
|
|
2250
|
+
* [`Call::rebag`] can be used.
|
|
2251
|
+
**/
|
|
2252
|
+
lock: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2253
|
+
/**
|
|
2254
|
+
* Pointer that remembers the next node that will be auto-rebagged.
|
|
2255
|
+
* When `None`, the next scan will start from the list head again.
|
|
2256
|
+
**/
|
|
2257
|
+
nextNodeAutoRebagged: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2258
|
+
/**
|
|
2259
|
+
* Generic query
|
|
2260
|
+
**/
|
|
2261
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2262
|
+
};
|
|
2263
|
+
whitelist: {
|
|
2264
|
+
whitelistedCall: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Null>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
2265
|
+
/**
|
|
2266
|
+
* Generic query
|
|
2267
|
+
**/
|
|
2268
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2269
|
+
};
|
|
2270
|
+
xcmPallet: {
|
|
2271
|
+
/**
|
|
2272
|
+
* The existing asset traps.
|
|
2273
|
+
*
|
|
2274
|
+
* Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
|
|
2275
|
+
* times this pair has been trapped (usually just 1 if it exists at all).
|
|
2276
|
+
**/
|
|
2277
|
+
assetTraps: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
2278
|
+
/**
|
|
2279
|
+
* Map of authorized aliasers of local origins. Each local location can authorize a list of
|
|
2280
|
+
* other locations to alias into it. Each aliaser is only valid until its inner `expiry`
|
|
2281
|
+
* block number.
|
|
2282
|
+
**/
|
|
2283
|
+
authorizedAliases: AugmentedQuery<ApiType, (arg: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<PalletXcmAuthorizedAliasesEntry>>, [XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [XcmVersionedLocation]>;
|
|
2284
|
+
/**
|
|
2285
|
+
* The current migration's stage, if any.
|
|
2286
|
+
**/
|
|
2287
|
+
currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2288
|
+
/**
|
|
2289
|
+
* Fungible assets which we know are locked on this chain.
|
|
2290
|
+
**/
|
|
2291
|
+
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
2292
|
+
/**
|
|
2293
|
+
* The ongoing queries.
|
|
2294
|
+
**/
|
|
2295
|
+
queries: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletXcmQueryStatus>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
2296
|
+
/**
|
|
2297
|
+
* The latest available query index.
|
|
2298
|
+
**/
|
|
2299
|
+
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2300
|
+
/**
|
|
2301
|
+
* If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
|
|
2302
|
+
* will be stored here.
|
|
2303
|
+
* Runtime APIs can fetch the XCM that was executed by accessing this value.
|
|
2304
|
+
*
|
|
2305
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
2306
|
+
* implementation in the XCM executor configuration.
|
|
2307
|
+
**/
|
|
2308
|
+
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV5Instruction>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2309
|
+
/**
|
|
2310
|
+
* Fungible assets which we know are locked on a remote chain.
|
|
2311
|
+
**/
|
|
2312
|
+
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
|
|
2313
|
+
/**
|
|
2314
|
+
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
|
2315
|
+
* then the destinations whose XCM version is unknown are considered unreachable.
|
|
2316
|
+
**/
|
|
2317
|
+
safeXcmVersion: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2318
|
+
/**
|
|
2319
|
+
* Whether or not incoming XCMs (both executed locally and received) should be recorded.
|
|
2320
|
+
* Only one XCM program will be recorded at a time.
|
|
2321
|
+
* This is meant to be used in runtime APIs, and it's advised it stays false
|
|
2322
|
+
* for all other use cases, so as to not degrade regular performance.
|
|
2323
|
+
*
|
|
2324
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
2325
|
+
* implementation in the XCM executor configuration.
|
|
2326
|
+
**/
|
|
2327
|
+
shouldRecordXcm: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2328
|
+
/**
|
|
2329
|
+
* The Latest versions that we know various locations support.
|
|
2330
|
+
**/
|
|
2331
|
+
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
2332
|
+
/**
|
|
2333
|
+
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
|
2334
|
+
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
|
2335
|
+
* which is used as a prioritization.
|
|
2336
|
+
**/
|
|
2337
|
+
versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[XcmVersionedLocation, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2338
|
+
/**
|
|
2339
|
+
* All locations that we have requested version notifications from.
|
|
2340
|
+
**/
|
|
2341
|
+
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
2342
|
+
/**
|
|
2343
|
+
* The target locations that are subscribed to our version changes, as well as the most recent
|
|
2344
|
+
* of our versions we informed them of.
|
|
2345
|
+
**/
|
|
2346
|
+
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
2347
|
+
/**
|
|
2348
|
+
* Global suspension state of the XCM executor.
|
|
2349
|
+
**/
|
|
2350
|
+
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2351
|
+
/**
|
|
2352
|
+
* Generic query
|
|
2353
|
+
**/
|
|
2354
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2355
|
+
};
|
|
2356
|
+
} // AugmentedQueries
|
|
2357
|
+
} // declare module
|