@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,2193 @@
|
|
|
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, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@pezkuwi/types-codec';
|
|
10
|
+
import type { AnyNumber, ITuple } from '@pezkuwi/types-codec/types';
|
|
11
|
+
import type { EthereumAddress } from '@pezkuwi/types/interfaces/eth';
|
|
12
|
+
import type { AccountId32, H160, H256, Perbill, Percent } from '@pezkuwi/types/interfaces/runtime';
|
|
13
|
+
import type { AssetHubKusamaRuntimeRuntimeParametersKey, AssetHubKusamaRuntimeRuntimeParametersValue, AssetHubKusamaRuntimeSessionKeys, AssetHubKusamaRuntimeStakingNposCompactSolution24, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemParachainInherentInboundMessageId, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameElectionProviderSupportBoundedSupports, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAhMigratorBalancesBefore, PalletAhMigratorMigrationStage, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollatorSelectionCandidateInfo, PalletConvictionVotingVoteVoting, PalletDelegatedStakingAgentLedger, PalletDelegatedStakingDelegation, PalletElectionProviderMultiBlockPhase, PalletElectionProviderMultiBlockSignedSubmissionMetadata, PalletElectionProviderMultiBlockVerifierImplsPartialBackings, PalletElectionProviderMultiBlockVerifierImplsStatus, PalletElectionProviderMultiBlockVerifierImplsValidSolution, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinitionAssetHubKusamaRuntimeProxyType, PalletRcMigratorAccountsAccount, PalletRcMigratorQueuePriority, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoOriginCaller, PalletReviveStorageAccountInfo, PalletReviveStorageDeletionQueueManager, PalletReviveVmCodeInfo, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingAsyncActiveEraInfo, PalletStakingAsyncEraRewardPoints, PalletStakingAsyncForcing, PalletStakingAsyncLedgerStakingLedger, PalletStakingAsyncNominations, PalletStakingAsyncPalletBoundedExposurePage, PalletStakingAsyncPalletPruningStep, PalletStakingAsyncRcClientSessionReport, PalletStakingAsyncRcClientValidatorSetReport, PalletStakingAsyncRewardDestination, PalletStakingAsyncSlashingOffenceRecord, PalletStakingAsyncSnapshotStatus, PalletStakingAsyncUnappliedSlash, PalletStakingAsyncValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmAuthorizedAliasesEntry, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingPagedExposureMetadata, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV5Instruction, StagingXcmV5Location, 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
|
+
ahMigrator: {
|
|
22
|
+
/**
|
|
23
|
+
* Helper storage item to store the total balance / total issuance of native token at the start
|
|
24
|
+
* of the migration. Since teleports are disabled during migration, the total issuance will not
|
|
25
|
+
* change for other reason than the migration itself.
|
|
26
|
+
**/
|
|
27
|
+
ahBalancesBefore: AugmentedQuery<ApiType, () => Observable<PalletAhMigratorBalancesBefore>, []> & QueryableStorageEntry<ApiType, []>;
|
|
28
|
+
/**
|
|
29
|
+
* The Asset Hub migration state.
|
|
30
|
+
**/
|
|
31
|
+
ahMigrationStage: AugmentedQuery<ApiType, () => Observable<PalletAhMigratorMigrationStage>, []> & QueryableStorageEntry<ApiType, []>;
|
|
32
|
+
/**
|
|
33
|
+
* The priority of the DMP queue during migration.
|
|
34
|
+
*
|
|
35
|
+
* Controls how the DMP (Downward Message Passing) queue is processed relative to other queues
|
|
36
|
+
* during the migration process. This helps ensure timely processing of migration messages.
|
|
37
|
+
* The default priority pattern is defined in the pallet configuration, but can be overridden
|
|
38
|
+
* by a storage value of this type.
|
|
39
|
+
**/
|
|
40
|
+
dmpQueuePriorityConfig: AugmentedQuery<ApiType, () => Observable<PalletRcMigratorQueuePriority>, []> & QueryableStorageEntry<ApiType, []>;
|
|
41
|
+
/**
|
|
42
|
+
* An optional account id of a manager.
|
|
43
|
+
*
|
|
44
|
+
* This account id has similar privileges to [`Config::AdminOrigin`] except that it
|
|
45
|
+
* can not set the manager account id via `set_manager` call.
|
|
46
|
+
**/
|
|
47
|
+
manager: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
48
|
+
/**
|
|
49
|
+
* Block number when migration finished and extrinsics were unlocked.
|
|
50
|
+
*
|
|
51
|
+
* This is set when entering the `MigrationDone` stage hence when
|
|
52
|
+
* `RcMigrationStage::is_finished()` becomes `true`.
|
|
53
|
+
**/
|
|
54
|
+
migrationEndBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
55
|
+
/**
|
|
56
|
+
* The block number at which the migration began and the pallet's extrinsics were locked.
|
|
57
|
+
*
|
|
58
|
+
* This value is set when entering the `WaitingForAh` stage, i.e., when
|
|
59
|
+
* `RcMigrationStage::is_ongoing()` becomes `true`.
|
|
60
|
+
**/
|
|
61
|
+
migrationStartBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
62
|
+
/**
|
|
63
|
+
* RC accounts that failed to migrate when were received on the Asset Hub.
|
|
64
|
+
*
|
|
65
|
+
* This is unlikely to happen, since we dry run the migration, but we keep it for completeness.
|
|
66
|
+
**/
|
|
67
|
+
rcAccounts: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletRcMigratorAccountsAccount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
68
|
+
/**
|
|
69
|
+
* Generic query
|
|
70
|
+
**/
|
|
71
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
72
|
+
};
|
|
73
|
+
ahOps: {
|
|
74
|
+
/**
|
|
75
|
+
* Amount of balance that a contributor made towards a crowdloan.
|
|
76
|
+
*
|
|
77
|
+
* `withdraw_crowdloan_contribution` can be permissionlessly called once the block number
|
|
78
|
+
* passed to unlock the balance for a specific account.
|
|
79
|
+
*
|
|
80
|
+
* The keys are as follows:
|
|
81
|
+
* - Block number after which the balance can be unlocked.
|
|
82
|
+
* - The para_id of the crowdloan.
|
|
83
|
+
* - The account that made the contribution.
|
|
84
|
+
*
|
|
85
|
+
* The value is (fund_pot, balance). The contribution pot is the second key in the
|
|
86
|
+
* `RcCrowdloanContribution` storage.
|
|
87
|
+
**/
|
|
88
|
+
rcCrowdloanContribution: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u128]>>>, [u32, u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, u32, AccountId32]>;
|
|
89
|
+
/**
|
|
90
|
+
* The reserve that was taken to create a crowdloan.
|
|
91
|
+
*
|
|
92
|
+
* This is normally 500 DOT and can be refunded as last step after all
|
|
93
|
+
* `RcCrowdloanContribution`s of this loan have been withdrawn.
|
|
94
|
+
*
|
|
95
|
+
* Keys:
|
|
96
|
+
* - Block number after which this can be unreserved
|
|
97
|
+
* - The para_id of the crowdloan
|
|
98
|
+
* - The account that will have the balance unreserved
|
|
99
|
+
**/
|
|
100
|
+
rcCrowdloanReserve: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, u32, AccountId32]>;
|
|
101
|
+
/**
|
|
102
|
+
* Amount of balance that was reserved for winning a lease auction.
|
|
103
|
+
*
|
|
104
|
+
* `unreserve_lease_deposit` can be permissionlessly called once the block number passed to
|
|
105
|
+
* unreserve the deposit. It is implicitly called by `withdraw_crowdloan_contribution`.
|
|
106
|
+
*
|
|
107
|
+
* The account here can either be a crowdloan account or a solo bidder. If it is a crowdloan
|
|
108
|
+
* account, then the summed up contributions for it in the contributions map will equate the
|
|
109
|
+
* reserved balance here.
|
|
110
|
+
*
|
|
111
|
+
* The keys are as follows:
|
|
112
|
+
* - Block number after which the deposit can be unreserved.
|
|
113
|
+
* - The para_id of the lease slot.
|
|
114
|
+
* - The account that will have the balance unreserved.
|
|
115
|
+
* - The balance to be unreserved.
|
|
116
|
+
**/
|
|
117
|
+
rcLeaseReserve: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, u32, AccountId32]>;
|
|
118
|
+
/**
|
|
119
|
+
* Generic query
|
|
120
|
+
**/
|
|
121
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
122
|
+
};
|
|
123
|
+
assetConversion: {
|
|
124
|
+
/**
|
|
125
|
+
* Stores the `PoolAssetId` that is going to be used for the next lp token.
|
|
126
|
+
* This gets incremented whenever a new lp pool is created.
|
|
127
|
+
**/
|
|
128
|
+
nextPoolAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
129
|
+
/**
|
|
130
|
+
* Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
|
|
131
|
+
* created rather than people sending tokens directly to a pool's public account.
|
|
132
|
+
**/
|
|
133
|
+
pools: AugmentedQuery<ApiType, (arg: ITuple<[StagingXcmV5Location, StagingXcmV5Location]> | [StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array, StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array]) => Observable<Option<PalletAssetConversionPoolInfo>>, [ITuple<[StagingXcmV5Location, StagingXcmV5Location]>]> & QueryableStorageEntry<ApiType, [ITuple<[StagingXcmV5Location, StagingXcmV5Location]>]>;
|
|
134
|
+
/**
|
|
135
|
+
* Generic query
|
|
136
|
+
**/
|
|
137
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
138
|
+
};
|
|
139
|
+
assetRate: {
|
|
140
|
+
/**
|
|
141
|
+
* Maps an asset to its fixed point representation in the native balance.
|
|
142
|
+
*
|
|
143
|
+
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
|
|
144
|
+
**/
|
|
145
|
+
conversionRateToNative: AugmentedQuery<ApiType, (arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<u128>>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]>;
|
|
146
|
+
/**
|
|
147
|
+
* Generic query
|
|
148
|
+
**/
|
|
149
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
150
|
+
};
|
|
151
|
+
assets: {
|
|
152
|
+
/**
|
|
153
|
+
* The holdings of a specific account for a specific asset.
|
|
154
|
+
**/
|
|
155
|
+
account: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
156
|
+
/**
|
|
157
|
+
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
|
158
|
+
* is the amount of `T::Currency` reserved for storing this.
|
|
159
|
+
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
160
|
+
**/
|
|
161
|
+
approvals: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsApproval>>, [u32, AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, AccountId32]>;
|
|
162
|
+
/**
|
|
163
|
+
* Details of an asset.
|
|
164
|
+
**/
|
|
165
|
+
asset: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetsAssetDetails>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
166
|
+
/**
|
|
167
|
+
* Metadata of an asset.
|
|
168
|
+
**/
|
|
169
|
+
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<{
|
|
170
|
+
readonly deposit: u128;
|
|
171
|
+
readonly name: Bytes;
|
|
172
|
+
readonly symbol: Bytes;
|
|
173
|
+
readonly decimals: u8;
|
|
174
|
+
readonly isFrozen: bool;
|
|
175
|
+
} & Struct>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
176
|
+
/**
|
|
177
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
178
|
+
* item has no effect.
|
|
179
|
+
*
|
|
180
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
181
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
182
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
183
|
+
*
|
|
184
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
185
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
186
|
+
**/
|
|
187
|
+
nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
188
|
+
/**
|
|
189
|
+
* Generic query
|
|
190
|
+
**/
|
|
191
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
192
|
+
};
|
|
193
|
+
aura: {
|
|
194
|
+
/**
|
|
195
|
+
* The current authority set.
|
|
196
|
+
**/
|
|
197
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusAuraSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
198
|
+
/**
|
|
199
|
+
* The current slot of this block.
|
|
200
|
+
*
|
|
201
|
+
* This will be set in `on_initialize`.
|
|
202
|
+
**/
|
|
203
|
+
currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
204
|
+
/**
|
|
205
|
+
* Generic query
|
|
206
|
+
**/
|
|
207
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
208
|
+
};
|
|
209
|
+
auraExt: {
|
|
210
|
+
/**
|
|
211
|
+
* Serves as cache for the authorities.
|
|
212
|
+
*
|
|
213
|
+
* The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
|
|
214
|
+
* but we require the old authorities to verify the seal when validating a PoV. This will
|
|
215
|
+
* always be updated to the latest AuRa authorities in `on_finalize`.
|
|
216
|
+
**/
|
|
217
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusAuraSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
218
|
+
/**
|
|
219
|
+
* Current relay chain slot paired with a number of authored blocks.
|
|
220
|
+
*
|
|
221
|
+
* This is updated in [`FixedVelocityConsensusHook::on_state_proof`] with the current relay
|
|
222
|
+
* chain slot as provided by the relay chain state proof.
|
|
223
|
+
**/
|
|
224
|
+
relaySlotInfo: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
225
|
+
/**
|
|
226
|
+
* Generic query
|
|
227
|
+
**/
|
|
228
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
229
|
+
};
|
|
230
|
+
authorship: {
|
|
231
|
+
/**
|
|
232
|
+
* Author of current block.
|
|
233
|
+
**/
|
|
234
|
+
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
235
|
+
/**
|
|
236
|
+
* Generic query
|
|
237
|
+
**/
|
|
238
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
239
|
+
};
|
|
240
|
+
balances: {
|
|
241
|
+
/**
|
|
242
|
+
* The Balances pallet example of storing the balance of an account.
|
|
243
|
+
*
|
|
244
|
+
* # Example
|
|
245
|
+
*
|
|
246
|
+
* ```nocompile
|
|
247
|
+
* impl pallet_balances::Config for Runtime {
|
|
248
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
249
|
+
* }
|
|
250
|
+
* ```
|
|
251
|
+
*
|
|
252
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
253
|
+
*
|
|
254
|
+
* # Example
|
|
255
|
+
*
|
|
256
|
+
* ```nocompile
|
|
257
|
+
* impl pallet_balances::Config for Runtime {
|
|
258
|
+
* type AccountStore = System
|
|
259
|
+
* }
|
|
260
|
+
* ```
|
|
261
|
+
*
|
|
262
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
263
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
264
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
265
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
266
|
+
**/
|
|
267
|
+
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
268
|
+
/**
|
|
269
|
+
* Freeze locks on account balances.
|
|
270
|
+
**/
|
|
271
|
+
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
272
|
+
/**
|
|
273
|
+
* Holds on account balances.
|
|
274
|
+
**/
|
|
275
|
+
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
276
|
+
/**
|
|
277
|
+
* The total units of outstanding deactivated balance in the system.
|
|
278
|
+
**/
|
|
279
|
+
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
280
|
+
/**
|
|
281
|
+
* Any liquidity locks on some account balances.
|
|
282
|
+
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
283
|
+
*
|
|
284
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
285
|
+
**/
|
|
286
|
+
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
287
|
+
/**
|
|
288
|
+
* Named reserves on some account balances.
|
|
289
|
+
*
|
|
290
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
291
|
+
**/
|
|
292
|
+
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
293
|
+
/**
|
|
294
|
+
* The total units issued in the system.
|
|
295
|
+
**/
|
|
296
|
+
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
297
|
+
/**
|
|
298
|
+
* Generic query
|
|
299
|
+
**/
|
|
300
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
301
|
+
};
|
|
302
|
+
bounties: {
|
|
303
|
+
/**
|
|
304
|
+
* Bounties that have been made.
|
|
305
|
+
**/
|
|
306
|
+
bounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletBountiesBounty>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
307
|
+
/**
|
|
308
|
+
* Bounty indices that have been approved but not yet funded.
|
|
309
|
+
**/
|
|
310
|
+
bountyApprovals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
311
|
+
/**
|
|
312
|
+
* Number of bounty proposals that have been made.
|
|
313
|
+
**/
|
|
314
|
+
bountyCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
315
|
+
/**
|
|
316
|
+
* The description of each bounty.
|
|
317
|
+
**/
|
|
318
|
+
bountyDescriptions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
319
|
+
/**
|
|
320
|
+
* Generic query
|
|
321
|
+
**/
|
|
322
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
323
|
+
};
|
|
324
|
+
childBounties: {
|
|
325
|
+
/**
|
|
326
|
+
* Child bounties that have been added.
|
|
327
|
+
**/
|
|
328
|
+
childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChildBountiesChildBounty>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
329
|
+
/**
|
|
330
|
+
* DEPRECATED: Replaced with `ParentTotalChildBounties` storage item keeping dedicated counts
|
|
331
|
+
* for each parent bounty. Number of total child bounties. Will be removed in May 2025.
|
|
332
|
+
**/
|
|
333
|
+
childBountyCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
334
|
+
/**
|
|
335
|
+
* The description of each child-bounty. Indexed by `(parent_id, child_id)`.
|
|
336
|
+
*
|
|
337
|
+
* This item replaces the `ChildBountyDescriptions` storage item from the V0 storage version.
|
|
338
|
+
**/
|
|
339
|
+
childBountyDescriptionsV1: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
340
|
+
/**
|
|
341
|
+
* The cumulative child-bounty curator fee for each parent bounty.
|
|
342
|
+
**/
|
|
343
|
+
childrenCuratorFees: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
344
|
+
/**
|
|
345
|
+
* Number of active child bounties per parent bounty.
|
|
346
|
+
* Map of parent bounty index to number of child bounties.
|
|
347
|
+
**/
|
|
348
|
+
parentChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
349
|
+
/**
|
|
350
|
+
* Number of total child bounties per parent bounty, including completed bounties.
|
|
351
|
+
**/
|
|
352
|
+
parentTotalChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
353
|
+
/**
|
|
354
|
+
* The mapping of the child bounty ids from storage version `V0` to the new `V1` version.
|
|
355
|
+
*
|
|
356
|
+
* The `V0` ids based on total child bounty count [`ChildBountyCount`]`. The `V1` version ids
|
|
357
|
+
* based on the child bounty count per parent bounty [`ParentTotalChildBounties`].
|
|
358
|
+
* The item intended solely for client convenience and not used in the pallet's core logic.
|
|
359
|
+
**/
|
|
360
|
+
v0ToV1ChildBountyIds: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
361
|
+
/**
|
|
362
|
+
* Generic query
|
|
363
|
+
**/
|
|
364
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
365
|
+
};
|
|
366
|
+
claims: {
|
|
367
|
+
claims: AugmentedQuery<ApiType, (arg: EthereumAddress | string | Uint8Array) => Observable<Option<u128>>, [EthereumAddress]> & QueryableStorageEntry<ApiType, [EthereumAddress]>;
|
|
368
|
+
/**
|
|
369
|
+
* Pre-claimed Ethereum accounts, by the Account ID that they are claimed to.
|
|
370
|
+
**/
|
|
371
|
+
preclaims: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<EthereumAddress>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
372
|
+
/**
|
|
373
|
+
* The statement kind that must be signed, if any.
|
|
374
|
+
**/
|
|
375
|
+
signing: AugmentedQuery<ApiType, (arg: EthereumAddress | string | Uint8Array) => Observable<Option<PolkadotRuntimeCommonClaimsStatementKind>>, [EthereumAddress]> & QueryableStorageEntry<ApiType, [EthereumAddress]>;
|
|
376
|
+
total: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
377
|
+
/**
|
|
378
|
+
* Vesting schedule for a claim.
|
|
379
|
+
* First balance is the total amount that should be held for vesting.
|
|
380
|
+
* Second balance is how much should be unlocked per block.
|
|
381
|
+
* The block number is when the vesting should start.
|
|
382
|
+
**/
|
|
383
|
+
vesting: AugmentedQuery<ApiType, (arg: EthereumAddress | string | Uint8Array) => Observable<Option<ITuple<[u128, u128, u32]>>>, [EthereumAddress]> & QueryableStorageEntry<ApiType, [EthereumAddress]>;
|
|
384
|
+
/**
|
|
385
|
+
* Generic query
|
|
386
|
+
**/
|
|
387
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
388
|
+
};
|
|
389
|
+
collatorSelection: {
|
|
390
|
+
/**
|
|
391
|
+
* Fixed amount to deposit to become a collator.
|
|
392
|
+
*
|
|
393
|
+
* When a collator calls `leave_intent` they immediately receive the deposit back.
|
|
394
|
+
**/
|
|
395
|
+
candidacyBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
396
|
+
/**
|
|
397
|
+
* The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
|
|
398
|
+
* mutually exclusive.
|
|
399
|
+
*
|
|
400
|
+
* This list is sorted in ascending order by deposit and when the deposits are equal, the least
|
|
401
|
+
* recently updated is considered greater.
|
|
402
|
+
**/
|
|
403
|
+
candidateList: AugmentedQuery<ApiType, () => Observable<Vec<PalletCollatorSelectionCandidateInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
404
|
+
/**
|
|
405
|
+
* Desired number of candidates.
|
|
406
|
+
*
|
|
407
|
+
* This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
|
|
408
|
+
**/
|
|
409
|
+
desiredCandidates: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
410
|
+
/**
|
|
411
|
+
* The invulnerable, permissioned collators. This list must be sorted.
|
|
412
|
+
**/
|
|
413
|
+
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
414
|
+
/**
|
|
415
|
+
* Last block authored by collator.
|
|
416
|
+
**/
|
|
417
|
+
lastAuthoredBlock: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u32>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
418
|
+
/**
|
|
419
|
+
* Generic query
|
|
420
|
+
**/
|
|
421
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
422
|
+
};
|
|
423
|
+
convictionVoting: {
|
|
424
|
+
/**
|
|
425
|
+
* The voting classes which have a non-zero lock requirement and the lock amounts which they
|
|
426
|
+
* require. The actual amount locked on behalf of this pallet should always be the maximum of
|
|
427
|
+
* this list.
|
|
428
|
+
**/
|
|
429
|
+
classLocksFor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[u16, u128]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
430
|
+
/**
|
|
431
|
+
* All voting for a particular voter in a particular voting class. We store the balance for the
|
|
432
|
+
* number of votes that we have recorded.
|
|
433
|
+
**/
|
|
434
|
+
votingFor: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u16 | AnyNumber | Uint8Array) => Observable<PalletConvictionVotingVoteVoting>, [AccountId32, u16]> & QueryableStorageEntry<ApiType, [AccountId32, u16]>;
|
|
435
|
+
/**
|
|
436
|
+
* Generic query
|
|
437
|
+
**/
|
|
438
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
439
|
+
};
|
|
440
|
+
delegatedStaking: {
|
|
441
|
+
/**
|
|
442
|
+
* Map of `Agent` to their `Ledger`.
|
|
443
|
+
**/
|
|
444
|
+
agents: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletDelegatedStakingAgentLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
445
|
+
/**
|
|
446
|
+
* Counter for the related counted storage map
|
|
447
|
+
**/
|
|
448
|
+
counterForAgents: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
449
|
+
/**
|
|
450
|
+
* Counter for the related counted storage map
|
|
451
|
+
**/
|
|
452
|
+
counterForDelegators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
453
|
+
/**
|
|
454
|
+
* Map of Delegators to their `Delegation`.
|
|
455
|
+
*
|
|
456
|
+
* Implementation note: We are not using a double map with `delegator` and `agent` account
|
|
457
|
+
* as keys since we want to restrict delegators to delegate only to one account at a time.
|
|
458
|
+
**/
|
|
459
|
+
delegators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletDelegatedStakingDelegation>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
460
|
+
/**
|
|
461
|
+
* Generic query
|
|
462
|
+
**/
|
|
463
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
464
|
+
};
|
|
465
|
+
foreignAssets: {
|
|
466
|
+
/**
|
|
467
|
+
* The holdings of a specific account for a specific asset.
|
|
468
|
+
**/
|
|
469
|
+
account: AugmentedQuery<ApiType, (arg1: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [StagingXcmV5Location, AccountId32]> & QueryableStorageEntry<ApiType, [StagingXcmV5Location, AccountId32]>;
|
|
470
|
+
/**
|
|
471
|
+
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
|
472
|
+
* is the amount of `T::Currency` reserved for storing this.
|
|
473
|
+
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
474
|
+
**/
|
|
475
|
+
approvals: AugmentedQuery<ApiType, (arg1: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsApproval>>, [StagingXcmV5Location, AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [StagingXcmV5Location, AccountId32, AccountId32]>;
|
|
476
|
+
/**
|
|
477
|
+
* Details of an asset.
|
|
478
|
+
**/
|
|
479
|
+
asset: AugmentedQuery<ApiType, (arg: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array) => Observable<Option<PalletAssetsAssetDetails>>, [StagingXcmV5Location]> & QueryableStorageEntry<ApiType, [StagingXcmV5Location]>;
|
|
480
|
+
/**
|
|
481
|
+
* Metadata of an asset.
|
|
482
|
+
**/
|
|
483
|
+
metadata: AugmentedQuery<ApiType, (arg: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array) => Observable<{
|
|
484
|
+
readonly deposit: u128;
|
|
485
|
+
readonly name: Bytes;
|
|
486
|
+
readonly symbol: Bytes;
|
|
487
|
+
readonly decimals: u8;
|
|
488
|
+
readonly isFrozen: bool;
|
|
489
|
+
} & Struct>, [StagingXcmV5Location]> & QueryableStorageEntry<ApiType, [StagingXcmV5Location]>;
|
|
490
|
+
/**
|
|
491
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
492
|
+
* item has no effect.
|
|
493
|
+
*
|
|
494
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
495
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
496
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
497
|
+
*
|
|
498
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
499
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
500
|
+
**/
|
|
501
|
+
nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<StagingXcmV5Location>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
502
|
+
/**
|
|
503
|
+
* Generic query
|
|
504
|
+
**/
|
|
505
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
506
|
+
};
|
|
507
|
+
indices: {
|
|
508
|
+
/**
|
|
509
|
+
* The lookup from index to account.
|
|
510
|
+
**/
|
|
511
|
+
accounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u128, bool]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
512
|
+
/**
|
|
513
|
+
* Generic query
|
|
514
|
+
**/
|
|
515
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
516
|
+
};
|
|
517
|
+
messageQueue: {
|
|
518
|
+
/**
|
|
519
|
+
* The index of the first and last (non-empty) pages.
|
|
520
|
+
**/
|
|
521
|
+
bookStateFor: AugmentedQuery<ApiType, (arg: CumulusPrimitivesCoreAggregateMessageOrigin | { Here: any } | { Parent: any } | { Sibling: any } | string | Uint8Array) => Observable<PalletMessageQueueBookState>, [CumulusPrimitivesCoreAggregateMessageOrigin]> & QueryableStorageEntry<ApiType, [CumulusPrimitivesCoreAggregateMessageOrigin]>;
|
|
522
|
+
/**
|
|
523
|
+
* The map of page indices to pages.
|
|
524
|
+
**/
|
|
525
|
+
pages: AugmentedQuery<ApiType, (arg1: CumulusPrimitivesCoreAggregateMessageOrigin | { Here: any } | { Parent: any } | { Sibling: any } | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [CumulusPrimitivesCoreAggregateMessageOrigin, u32]> & QueryableStorageEntry<ApiType, [CumulusPrimitivesCoreAggregateMessageOrigin, u32]>;
|
|
526
|
+
/**
|
|
527
|
+
* The origin at which we should begin servicing.
|
|
528
|
+
**/
|
|
529
|
+
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<CumulusPrimitivesCoreAggregateMessageOrigin>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
530
|
+
/**
|
|
531
|
+
* Generic query
|
|
532
|
+
**/
|
|
533
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
534
|
+
};
|
|
535
|
+
multiBlockElection: {
|
|
536
|
+
/**
|
|
537
|
+
* Current phase.
|
|
538
|
+
**/
|
|
539
|
+
currentPhase: AugmentedQuery<ApiType, () => Observable<PalletElectionProviderMultiBlockPhase>, []> & QueryableStorageEntry<ApiType, []>;
|
|
540
|
+
/**
|
|
541
|
+
* Desired number of targets to elect for this round.
|
|
542
|
+
**/
|
|
543
|
+
desiredTargets: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
544
|
+
/**
|
|
545
|
+
* Paginated target snapshot.
|
|
546
|
+
*
|
|
547
|
+
* For the time being, since we assume one pages of targets, at most ONE key will exist.
|
|
548
|
+
**/
|
|
549
|
+
pagedTargetSnapshot: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<AccountId32>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
550
|
+
/**
|
|
551
|
+
* Same as [`PagedTargetSnapshot`], but it will store the hash of the snapshot.
|
|
552
|
+
*
|
|
553
|
+
* The hash is generated using [`frame_system::Config::Hashing`].
|
|
554
|
+
**/
|
|
555
|
+
pagedTargetSnapshotHash: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
556
|
+
/**
|
|
557
|
+
* Paginated voter snapshot. At most [`T::Pages`] keys will exist.
|
|
558
|
+
**/
|
|
559
|
+
pagedVoterSnapshot: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<ITuple<[AccountId32, u64, Vec<AccountId32>]>>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
560
|
+
/**
|
|
561
|
+
* Same as [`PagedVoterSnapshot`], but it will store the hash of the snapshot.
|
|
562
|
+
*
|
|
563
|
+
* The hash is generated using [`frame_system::Config::Hashing`].
|
|
564
|
+
**/
|
|
565
|
+
pagedVoterSnapshotHash: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
566
|
+
/**
|
|
567
|
+
* Internal counter for the number of rounds.
|
|
568
|
+
*
|
|
569
|
+
* This is useful for de-duplication of transactions submitted to the pool, and general
|
|
570
|
+
* diagnostics of the pallet.
|
|
571
|
+
*
|
|
572
|
+
* This is merely incremented once per every time that an upstream `elect` is called.
|
|
573
|
+
**/
|
|
574
|
+
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
575
|
+
/**
|
|
576
|
+
* Generic query
|
|
577
|
+
**/
|
|
578
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
579
|
+
};
|
|
580
|
+
multiBlockElectionSigned: {
|
|
581
|
+
/**
|
|
582
|
+
* Accounts whitelisted by governance to always submit their solutions.
|
|
583
|
+
*
|
|
584
|
+
* They are different in that:
|
|
585
|
+
*
|
|
586
|
+
* * They always pay a fixed deposit for submission, specified by
|
|
587
|
+
* [`Config::InvulnerableDeposit`]. They pay no page deposit.
|
|
588
|
+
* * If _ejected_ by better solution from [`SortedScores`], they will get their full deposit
|
|
589
|
+
* back.
|
|
590
|
+
* * They always get their tx-fee back even if they are _discarded_.
|
|
591
|
+
**/
|
|
592
|
+
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
593
|
+
sortedScores: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[AccountId32, SpNposElectionsElectionScore]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
594
|
+
/**
|
|
595
|
+
* Map from account to the metadata of their submission.
|
|
596
|
+
*
|
|
597
|
+
* invariant: for any Key1 of type `AccountId` in [`Submissions`], this storage map also has a
|
|
598
|
+
* value.
|
|
599
|
+
**/
|
|
600
|
+
submissionMetadataStorage: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletElectionProviderMultiBlockSignedSubmissionMetadata>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
601
|
+
/**
|
|
602
|
+
* Triple map from (round, account, page) to a solution page.
|
|
603
|
+
**/
|
|
604
|
+
submissionStorage: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<AssetHubKusamaRuntimeStakingNposCompactSolution24>>, [u32, AccountId32, u32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, u32]>;
|
|
605
|
+
/**
|
|
606
|
+
* Generic query
|
|
607
|
+
**/
|
|
608
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
609
|
+
};
|
|
610
|
+
multiBlockElectionVerifier: {
|
|
611
|
+
/**
|
|
612
|
+
* The minimum score that each solution must attain in order to be considered feasible.
|
|
613
|
+
**/
|
|
614
|
+
minimumScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
615
|
+
/**
|
|
616
|
+
* The `(amount, count)` of backings, divided per page.
|
|
617
|
+
*
|
|
618
|
+
* This is stored because in the last block of verification we need them to compute the score,
|
|
619
|
+
* and check `MaxBackersPerWinnerFinal`.
|
|
620
|
+
*
|
|
621
|
+
* This can only ever live for the invalid variant of the solution. Once it is valid, we don't
|
|
622
|
+
* need this information anymore; the score is already computed once in
|
|
623
|
+
* [`QueuedSolutionScore`], and the backing counts are checked.
|
|
624
|
+
**/
|
|
625
|
+
queuedSolutionBackings: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<ITuple<[AccountId32, PalletElectionProviderMultiBlockVerifierImplsPartialBackings]>>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
626
|
+
/**
|
|
627
|
+
* The score of the valid variant of [`QueuedSolution`].
|
|
628
|
+
*
|
|
629
|
+
* This only ever lives for the `valid` variant.
|
|
630
|
+
**/
|
|
631
|
+
queuedSolutionScore: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<SpNposElectionsElectionScore>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
632
|
+
/**
|
|
633
|
+
* The `X` variant of the current queued solution. Might be the valid one or not.
|
|
634
|
+
*
|
|
635
|
+
* The two variants of this storage item is to avoid the need of copying. Recall that once a
|
|
636
|
+
* `VerifyingSolution` is being processed, it needs to write its partial supports *somewhere*.
|
|
637
|
+
* Writing theses supports on top of a *good* queued supports is wrong, since we might bail.
|
|
638
|
+
* Writing them to a bugger and copying at the ned is slightly better, but expensive. This flag
|
|
639
|
+
* system is best of both worlds.
|
|
640
|
+
**/
|
|
641
|
+
queuedSolutionX: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<FrameElectionProviderSupportBoundedSupports>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
642
|
+
/**
|
|
643
|
+
* The `Y` variant of the current queued solution. Might be the valid one or not.
|
|
644
|
+
**/
|
|
645
|
+
queuedSolutionY: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<FrameElectionProviderSupportBoundedSupports>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
646
|
+
/**
|
|
647
|
+
* Pointer to the variant of [`QueuedSolutionX`] or [`QueuedSolutionY`] that is currently
|
|
648
|
+
* valid.
|
|
649
|
+
**/
|
|
650
|
+
queuedValidVariant: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletElectionProviderMultiBlockVerifierImplsValidSolution>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
651
|
+
/**
|
|
652
|
+
* Storage item for [`Status`].
|
|
653
|
+
**/
|
|
654
|
+
statusStorage: AugmentedQuery<ApiType, () => Observable<PalletElectionProviderMultiBlockVerifierImplsStatus>, []> & QueryableStorageEntry<ApiType, []>;
|
|
655
|
+
/**
|
|
656
|
+
* Generic query
|
|
657
|
+
**/
|
|
658
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
659
|
+
};
|
|
660
|
+
multiBlockMigrations: {
|
|
661
|
+
/**
|
|
662
|
+
* The currently active migration to run and its cursor.
|
|
663
|
+
*
|
|
664
|
+
* `None` indicates that no migration is running.
|
|
665
|
+
**/
|
|
666
|
+
cursor: AugmentedQuery<ApiType, () => Observable<Option<PalletMigrationsMigrationCursor>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
667
|
+
/**
|
|
668
|
+
* Set of all successfully executed migrations.
|
|
669
|
+
*
|
|
670
|
+
* This is used as blacklist, to not re-execute migrations that have not been removed from the
|
|
671
|
+
* codebase yet. Governance can regularly clear this out via `clear_historic`.
|
|
672
|
+
**/
|
|
673
|
+
historic: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<Null>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
|
674
|
+
/**
|
|
675
|
+
* Generic query
|
|
676
|
+
**/
|
|
677
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
678
|
+
};
|
|
679
|
+
multisig: {
|
|
680
|
+
/**
|
|
681
|
+
* The set of open multisig operations.
|
|
682
|
+
**/
|
|
683
|
+
multisigs: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: U8aFixed | string | Uint8Array) => Observable<Option<PalletMultisigMultisig>>, [AccountId32, U8aFixed]> & QueryableStorageEntry<ApiType, [AccountId32, U8aFixed]>;
|
|
684
|
+
/**
|
|
685
|
+
* Generic query
|
|
686
|
+
**/
|
|
687
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
688
|
+
};
|
|
689
|
+
nftFractionalization: {
|
|
690
|
+
/**
|
|
691
|
+
* Keeps track of the corresponding NFT ID, asset ID and amount minted.
|
|
692
|
+
**/
|
|
693
|
+
nftToAsset: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletNftFractionalizationDetails>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
|
|
694
|
+
/**
|
|
695
|
+
* Generic query
|
|
696
|
+
**/
|
|
697
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
698
|
+
};
|
|
699
|
+
nfts: {
|
|
700
|
+
/**
|
|
701
|
+
* The items held by any given account; set out this way so that items owned by a single
|
|
702
|
+
* account can be enumerated.
|
|
703
|
+
**/
|
|
704
|
+
account: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [AccountId32, u32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32, u32]>;
|
|
705
|
+
/**
|
|
706
|
+
* Attributes of a collection.
|
|
707
|
+
**/
|
|
708
|
+
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: PalletNftsAttributeNamespace | { Pallet: any } | { CollectionOwner: any } | { ItemOwner: any } | { Account: any } | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
|
|
709
|
+
/**
|
|
710
|
+
* Details of a collection.
|
|
711
|
+
**/
|
|
712
|
+
collection: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionDetails>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
713
|
+
/**
|
|
714
|
+
* The collections owned by any given account; set out this way so that collections owned by
|
|
715
|
+
* a single account can be enumerated.
|
|
716
|
+
**/
|
|
717
|
+
collectionAccount: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
|
|
718
|
+
/**
|
|
719
|
+
* Config of a collection.
|
|
720
|
+
**/
|
|
721
|
+
collectionConfigOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionConfig>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
722
|
+
/**
|
|
723
|
+
* Metadata of a collection.
|
|
724
|
+
**/
|
|
725
|
+
collectionMetadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionMetadata>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
726
|
+
/**
|
|
727
|
+
* The items in existence and their ownership details.
|
|
728
|
+
* Stores collection roles as per account.
|
|
729
|
+
**/
|
|
730
|
+
collectionRoleOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u8>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
731
|
+
/**
|
|
732
|
+
* The items in existence and their ownership details.
|
|
733
|
+
**/
|
|
734
|
+
item: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsItemDetails>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
735
|
+
/**
|
|
736
|
+
* Item attribute approvals.
|
|
737
|
+
**/
|
|
738
|
+
itemAttributesApprovalsOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<BTreeSet<AccountId32>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
739
|
+
/**
|
|
740
|
+
* Config of an item.
|
|
741
|
+
**/
|
|
742
|
+
itemConfigOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsItemConfig>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
743
|
+
/**
|
|
744
|
+
* Metadata of an item.
|
|
745
|
+
**/
|
|
746
|
+
itemMetadataOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsItemMetadata>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
747
|
+
/**
|
|
748
|
+
* A price of an item.
|
|
749
|
+
**/
|
|
750
|
+
itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
751
|
+
/**
|
|
752
|
+
* Stores the `CollectionId` that is going to be used for the next collection.
|
|
753
|
+
* This gets incremented whenever a new collection is created.
|
|
754
|
+
**/
|
|
755
|
+
nextCollectionId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
756
|
+
/**
|
|
757
|
+
* The collection, if any, of which an account is willing to take ownership.
|
|
758
|
+
**/
|
|
759
|
+
ownershipAcceptance: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
760
|
+
/**
|
|
761
|
+
* Handles all the pending swaps.
|
|
762
|
+
**/
|
|
763
|
+
pendingSwapOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsPendingSwap>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
764
|
+
/**
|
|
765
|
+
* Generic query
|
|
766
|
+
**/
|
|
767
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
768
|
+
};
|
|
769
|
+
nominationPools: {
|
|
770
|
+
/**
|
|
771
|
+
* Storage for bonded pools.
|
|
772
|
+
**/
|
|
773
|
+
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
774
|
+
/**
|
|
775
|
+
* Map from a pool member account to their opted claim permission.
|
|
776
|
+
**/
|
|
777
|
+
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
778
|
+
/**
|
|
779
|
+
* Counter for the related counted storage map
|
|
780
|
+
**/
|
|
781
|
+
counterForBondedPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
782
|
+
/**
|
|
783
|
+
* Counter for the related counted storage map
|
|
784
|
+
**/
|
|
785
|
+
counterForMetadata: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
786
|
+
/**
|
|
787
|
+
* Counter for the related counted storage map
|
|
788
|
+
**/
|
|
789
|
+
counterForPoolMembers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
790
|
+
/**
|
|
791
|
+
* Counter for the related counted storage map
|
|
792
|
+
**/
|
|
793
|
+
counterForReversePoolIdLookup: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
794
|
+
/**
|
|
795
|
+
* Counter for the related counted storage map
|
|
796
|
+
**/
|
|
797
|
+
counterForRewardPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
798
|
+
/**
|
|
799
|
+
* Counter for the related counted storage map
|
|
800
|
+
**/
|
|
801
|
+
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
802
|
+
/**
|
|
803
|
+
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
|
804
|
+
* pool commissions that are > `GlobalMaxCommission`, necessary if a future
|
|
805
|
+
* `GlobalMaxCommission` is lower than some current pool commissions.
|
|
806
|
+
**/
|
|
807
|
+
globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
808
|
+
/**
|
|
809
|
+
* Ever increasing number of all pools created so far.
|
|
810
|
+
**/
|
|
811
|
+
lastPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
812
|
+
/**
|
|
813
|
+
* Maximum number of members that can exist in the system. If `None`, then the count
|
|
814
|
+
* members are not bound on a system wide basis.
|
|
815
|
+
**/
|
|
816
|
+
maxPoolMembers: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
817
|
+
/**
|
|
818
|
+
* Maximum number of members that may belong to pool. If `None`, then the count of
|
|
819
|
+
* members is not bound on a per pool basis.
|
|
820
|
+
**/
|
|
821
|
+
maxPoolMembersPerPool: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
822
|
+
/**
|
|
823
|
+
* Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
|
|
824
|
+
* pools can exist.
|
|
825
|
+
**/
|
|
826
|
+
maxPools: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
827
|
+
/**
|
|
828
|
+
* Metadata for the pool.
|
|
829
|
+
**/
|
|
830
|
+
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
831
|
+
/**
|
|
832
|
+
* Minimum bond required to create a pool.
|
|
833
|
+
*
|
|
834
|
+
* This is the amount that the depositor must put as their initial stake in the pool, as an
|
|
835
|
+
* indication of "skin in the game".
|
|
836
|
+
*
|
|
837
|
+
* This is the value that will always exist in the staking ledger of the pool bonded account
|
|
838
|
+
* while all other accounts leave.
|
|
839
|
+
**/
|
|
840
|
+
minCreateBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
841
|
+
/**
|
|
842
|
+
* Minimum amount to bond to join a pool.
|
|
843
|
+
**/
|
|
844
|
+
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
845
|
+
/**
|
|
846
|
+
* Active members.
|
|
847
|
+
*
|
|
848
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
849
|
+
**/
|
|
850
|
+
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
851
|
+
/**
|
|
852
|
+
* A reverse lookup from the pool's account id to its id.
|
|
853
|
+
*
|
|
854
|
+
* This is only used for slashing and on automatic withdraw update. In all other instances, the
|
|
855
|
+
* pool id is used, and the accounts are deterministically derived from it.
|
|
856
|
+
**/
|
|
857
|
+
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
858
|
+
/**
|
|
859
|
+
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
|
860
|
+
* claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
|
|
861
|
+
**/
|
|
862
|
+
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
863
|
+
/**
|
|
864
|
+
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
|
865
|
+
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
|
|
866
|
+
**/
|
|
867
|
+
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
868
|
+
/**
|
|
869
|
+
* The sum of funds across all pools.
|
|
870
|
+
*
|
|
871
|
+
* This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
|
|
872
|
+
* because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
|
|
873
|
+
* `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
|
|
874
|
+
**/
|
|
875
|
+
totalValueLocked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
876
|
+
/**
|
|
877
|
+
* Generic query
|
|
878
|
+
**/
|
|
879
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
880
|
+
};
|
|
881
|
+
parachainInfo: {
|
|
882
|
+
parachainId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
883
|
+
/**
|
|
884
|
+
* Generic query
|
|
885
|
+
**/
|
|
886
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
887
|
+
};
|
|
888
|
+
parachainSystem: {
|
|
889
|
+
/**
|
|
890
|
+
* Storage field that keeps track of bandwidth used by the unincluded segment along with the
|
|
891
|
+
* latest HRMP watermark. Used for limiting the acceptance of new blocks with
|
|
892
|
+
* respect to relay chain constraints.
|
|
893
|
+
**/
|
|
894
|
+
aggregatedUnincludedSegment: AugmentedQuery<ApiType, () => Observable<Option<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
895
|
+
/**
|
|
896
|
+
* The number of HRMP messages we observed in `on_initialize` and thus used that number for
|
|
897
|
+
* announcing the weight of `on_initialize` and `on_finalize`.
|
|
898
|
+
**/
|
|
899
|
+
announcedHrmpMessagesPerCandidate: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
900
|
+
/**
|
|
901
|
+
* A custom head data that should be returned as result of `validate_block`.
|
|
902
|
+
*
|
|
903
|
+
* See `Pallet::set_custom_validation_head_data` for more information.
|
|
904
|
+
**/
|
|
905
|
+
customValidationHeadData: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
906
|
+
/**
|
|
907
|
+
* Were the validation data set to notify the relay chain?
|
|
908
|
+
**/
|
|
909
|
+
didSetValidationCode: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
910
|
+
/**
|
|
911
|
+
* The parachain host configuration that was obtained from the relay parent.
|
|
912
|
+
*
|
|
913
|
+
* This field is meant to be updated each block with the validation data inherent. Therefore,
|
|
914
|
+
* before processing of the inherent, e.g. in `on_initialize` this data may be stale.
|
|
915
|
+
*
|
|
916
|
+
* This data is also absent from the genesis.
|
|
917
|
+
**/
|
|
918
|
+
hostConfiguration: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8AbridgedHostConfiguration>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
919
|
+
/**
|
|
920
|
+
* HRMP messages that were sent in a block.
|
|
921
|
+
*
|
|
922
|
+
* This will be cleared in `on_initialize` of each new block.
|
|
923
|
+
**/
|
|
924
|
+
hrmpOutboundMessages: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotCorePrimitivesOutboundHrmpMessage>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
925
|
+
/**
|
|
926
|
+
* HRMP watermark that was set in a block.
|
|
927
|
+
**/
|
|
928
|
+
hrmpWatermark: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
929
|
+
/**
|
|
930
|
+
* The last downward message queue chain head we have observed.
|
|
931
|
+
*
|
|
932
|
+
* This value is loaded before and saved after processing inbound downward messages carried
|
|
933
|
+
* by the system inherent.
|
|
934
|
+
**/
|
|
935
|
+
lastDmqMqcHead: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
|
|
936
|
+
/**
|
|
937
|
+
* The message queue chain heads we have observed per each channel incoming channel.
|
|
938
|
+
*
|
|
939
|
+
* This value is loaded before and saved after processing inbound downward messages carried
|
|
940
|
+
* by the system inherent.
|
|
941
|
+
**/
|
|
942
|
+
lastHrmpMqcHeads: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
943
|
+
/**
|
|
944
|
+
* The last processed downward message.
|
|
945
|
+
*
|
|
946
|
+
* We need to keep track of this to filter the messages that have been already processed.
|
|
947
|
+
**/
|
|
948
|
+
lastProcessedDownwardMessage: AugmentedQuery<ApiType, () => Observable<Option<CumulusPalletParachainSystemParachainInherentInboundMessageId>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
949
|
+
/**
|
|
950
|
+
* The last processed HRMP message.
|
|
951
|
+
*
|
|
952
|
+
* We need to keep track of this to filter the messages that have been already processed.
|
|
953
|
+
**/
|
|
954
|
+
lastProcessedHrmpMessage: AugmentedQuery<ApiType, () => Observable<Option<CumulusPalletParachainSystemParachainInherentInboundMessageId>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
955
|
+
/**
|
|
956
|
+
* The relay chain block number associated with the last parachain block.
|
|
957
|
+
*
|
|
958
|
+
* This is updated in `on_finalize`.
|
|
959
|
+
**/
|
|
960
|
+
lastRelayChainBlockNumber: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
961
|
+
/**
|
|
962
|
+
* Validation code that is set by the parachain and is to be communicated to collator and
|
|
963
|
+
* consequently the relay-chain.
|
|
964
|
+
*
|
|
965
|
+
* This will be cleared in `on_initialize` of each new block if no other pallet already set
|
|
966
|
+
* the value.
|
|
967
|
+
**/
|
|
968
|
+
newValidationCode: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
969
|
+
/**
|
|
970
|
+
* Upward messages that are still pending and not yet send to the relay chain.
|
|
971
|
+
**/
|
|
972
|
+
pendingUpwardMessages: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
973
|
+
/**
|
|
974
|
+
* In case of a scheduled upgrade, this storage field contains the validation code to be
|
|
975
|
+
* applied.
|
|
976
|
+
*
|
|
977
|
+
* As soon as the relay chain gives us the go-ahead signal, we will overwrite the
|
|
978
|
+
* [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
|
|
979
|
+
* with the new validation code. This concludes the upgrade process.
|
|
980
|
+
**/
|
|
981
|
+
pendingValidationCode: AugmentedQuery<ApiType, () => Observable<Bytes>, []> & QueryableStorageEntry<ApiType, []>;
|
|
982
|
+
/**
|
|
983
|
+
* Number of downward messages processed in a block.
|
|
984
|
+
*
|
|
985
|
+
* This will be cleared in `on_initialize` of each new block.
|
|
986
|
+
**/
|
|
987
|
+
processedDownwardMessages: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
988
|
+
/**
|
|
989
|
+
* The state proof for the last relay parent block.
|
|
990
|
+
*
|
|
991
|
+
* This field is meant to be updated each block with the validation data inherent. Therefore,
|
|
992
|
+
* before processing of the inherent, e.g. in `on_initialize` this data may be stale.
|
|
993
|
+
*
|
|
994
|
+
* This data is also absent from the genesis.
|
|
995
|
+
**/
|
|
996
|
+
relayStateProof: AugmentedQuery<ApiType, () => Observable<Option<SpTrieStorageProof>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
997
|
+
/**
|
|
998
|
+
* The snapshot of some state related to messaging relevant to the current parachain as per
|
|
999
|
+
* the relay parent.
|
|
1000
|
+
*
|
|
1001
|
+
* This field is meant to be updated each block with the validation data inherent. Therefore,
|
|
1002
|
+
* before processing of the inherent, e.g. in `on_initialize` this data may be stale.
|
|
1003
|
+
*
|
|
1004
|
+
* This data is also absent from the genesis.
|
|
1005
|
+
**/
|
|
1006
|
+
relevantMessagingState: AugmentedQuery<ApiType, () => Observable<Option<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1007
|
+
/**
|
|
1008
|
+
* The weight we reserve at the beginning of the block for processing DMP messages. This
|
|
1009
|
+
* overrides the amount set in the Config trait.
|
|
1010
|
+
**/
|
|
1011
|
+
reservedDmpWeightOverride: AugmentedQuery<ApiType, () => Observable<Option<SpWeightsWeightV2Weight>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1012
|
+
/**
|
|
1013
|
+
* The weight we reserve at the beginning of the block for processing XCMP messages. This
|
|
1014
|
+
* overrides the amount set in the Config trait.
|
|
1015
|
+
**/
|
|
1016
|
+
reservedXcmpWeightOverride: AugmentedQuery<ApiType, () => Observable<Option<SpWeightsWeightV2Weight>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1017
|
+
/**
|
|
1018
|
+
* Latest included block descendants the runtime accepted. In other words, these are
|
|
1019
|
+
* ancestors of the currently executing block which have not been included in the observed
|
|
1020
|
+
* relay-chain state.
|
|
1021
|
+
*
|
|
1022
|
+
* The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
|
|
1023
|
+
* in the pallet.
|
|
1024
|
+
**/
|
|
1025
|
+
unincludedSegment: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletParachainSystemUnincludedSegmentAncestor>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1026
|
+
/**
|
|
1027
|
+
* Optional upgrade go-ahead signal from the relay-chain.
|
|
1028
|
+
*
|
|
1029
|
+
* This storage item is a mirror of the corresponding value for the current parachain from the
|
|
1030
|
+
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
1031
|
+
* set after the inherent.
|
|
1032
|
+
**/
|
|
1033
|
+
upgradeGoAhead: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8UpgradeGoAhead>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1034
|
+
/**
|
|
1035
|
+
* An option which indicates if the relay-chain restricts signalling a validation code upgrade.
|
|
1036
|
+
* In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
|
|
1037
|
+
* candidate will be invalid.
|
|
1038
|
+
*
|
|
1039
|
+
* This storage item is a mirror of the corresponding value for the current parachain from the
|
|
1040
|
+
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
1041
|
+
* set after the inherent.
|
|
1042
|
+
**/
|
|
1043
|
+
upgradeRestrictionSignal: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8UpgradeRestriction>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1044
|
+
/**
|
|
1045
|
+
* The factor to multiply the base delivery fee by for UMP.
|
|
1046
|
+
**/
|
|
1047
|
+
upwardDeliveryFeeFactor: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1048
|
+
/**
|
|
1049
|
+
* Upward messages that were sent in a block.
|
|
1050
|
+
*
|
|
1051
|
+
* This will be cleared in `on_initialize` of each new block.
|
|
1052
|
+
**/
|
|
1053
|
+
upwardMessages: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1054
|
+
/**
|
|
1055
|
+
* The [`PersistedValidationData`] set for this block.
|
|
1056
|
+
* This value is expected to be set only once per block and it's never stored
|
|
1057
|
+
* in the trie.
|
|
1058
|
+
**/
|
|
1059
|
+
validationData: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8PersistedValidationData>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Generic query
|
|
1062
|
+
**/
|
|
1063
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1064
|
+
};
|
|
1065
|
+
parameters: {
|
|
1066
|
+
/**
|
|
1067
|
+
* Stored parameters.
|
|
1068
|
+
**/
|
|
1069
|
+
parameters: AugmentedQuery<ApiType, (arg: AssetHubKusamaRuntimeRuntimeParametersKey | { Issuance: any } | { Treasury: any } | { StakingElection: any } | { Scheduler: any } | { MessageQueue: any } | string | Uint8Array) => Observable<Option<AssetHubKusamaRuntimeRuntimeParametersValue>>, [AssetHubKusamaRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [AssetHubKusamaRuntimeRuntimeParametersKey]>;
|
|
1070
|
+
/**
|
|
1071
|
+
* Generic query
|
|
1072
|
+
**/
|
|
1073
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1074
|
+
};
|
|
1075
|
+
polkadotXcm: {
|
|
1076
|
+
/**
|
|
1077
|
+
* The existing asset traps.
|
|
1078
|
+
*
|
|
1079
|
+
* Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
|
|
1080
|
+
* times this pair has been trapped (usually just 1 if it exists at all).
|
|
1081
|
+
**/
|
|
1082
|
+
assetTraps: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1083
|
+
/**
|
|
1084
|
+
* Map of authorized aliasers of local origins. Each local location can authorize a list of
|
|
1085
|
+
* other locations to alias into it. Each aliaser is only valid until its inner `expiry`
|
|
1086
|
+
* block number.
|
|
1087
|
+
**/
|
|
1088
|
+
authorizedAliases: AugmentedQuery<ApiType, (arg: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<PalletXcmAuthorizedAliasesEntry>>, [XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [XcmVersionedLocation]>;
|
|
1089
|
+
/**
|
|
1090
|
+
* The current migration's stage, if any.
|
|
1091
|
+
**/
|
|
1092
|
+
currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Fungible assets which we know are locked on this chain.
|
|
1095
|
+
**/
|
|
1096
|
+
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1097
|
+
/**
|
|
1098
|
+
* The ongoing queries.
|
|
1099
|
+
**/
|
|
1100
|
+
queries: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletXcmQueryStatus>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
1101
|
+
/**
|
|
1102
|
+
* The latest available query index.
|
|
1103
|
+
**/
|
|
1104
|
+
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1105
|
+
/**
|
|
1106
|
+
* If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
|
|
1107
|
+
* will be stored here.
|
|
1108
|
+
* Runtime APIs can fetch the XCM that was executed by accessing this value.
|
|
1109
|
+
*
|
|
1110
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
1111
|
+
* implementation in the XCM executor configuration.
|
|
1112
|
+
**/
|
|
1113
|
+
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV5Instruction>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1114
|
+
/**
|
|
1115
|
+
* Fungible assets which we know are locked on a remote chain.
|
|
1116
|
+
**/
|
|
1117
|
+
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]>;
|
|
1118
|
+
/**
|
|
1119
|
+
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
|
1120
|
+
* then the destinations whose XCM version is unknown are considered unreachable.
|
|
1121
|
+
**/
|
|
1122
|
+
safeXcmVersion: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Whether or not incoming XCMs (both executed locally and received) should be recorded.
|
|
1125
|
+
* Only one XCM program will be recorded at a time.
|
|
1126
|
+
* This is meant to be used in runtime APIs, and it's advised it stays false
|
|
1127
|
+
* for all other use cases, so as to not degrade regular performance.
|
|
1128
|
+
*
|
|
1129
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
1130
|
+
* implementation in the XCM executor configuration.
|
|
1131
|
+
**/
|
|
1132
|
+
shouldRecordXcm: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1133
|
+
/**
|
|
1134
|
+
* The Latest versions that we know various locations support.
|
|
1135
|
+
**/
|
|
1136
|
+
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]>;
|
|
1137
|
+
/**
|
|
1138
|
+
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
|
1139
|
+
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
|
1140
|
+
* which is used as a prioritization.
|
|
1141
|
+
**/
|
|
1142
|
+
versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[XcmVersionedLocation, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1143
|
+
/**
|
|
1144
|
+
* All locations that we have requested version notifications from.
|
|
1145
|
+
**/
|
|
1146
|
+
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]>;
|
|
1147
|
+
/**
|
|
1148
|
+
* The target locations that are subscribed to our version changes, as well as the most recent
|
|
1149
|
+
* of our versions we informed them of.
|
|
1150
|
+
**/
|
|
1151
|
+
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]>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Global suspension state of the XCM executor.
|
|
1154
|
+
**/
|
|
1155
|
+
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1156
|
+
/**
|
|
1157
|
+
* Generic query
|
|
1158
|
+
**/
|
|
1159
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1160
|
+
};
|
|
1161
|
+
poolAssets: {
|
|
1162
|
+
/**
|
|
1163
|
+
* The holdings of a specific account for a specific asset.
|
|
1164
|
+
**/
|
|
1165
|
+
account: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1166
|
+
/**
|
|
1167
|
+
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
|
1168
|
+
* is the amount of `T::Currency` reserved for storing this.
|
|
1169
|
+
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
1170
|
+
**/
|
|
1171
|
+
approvals: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsApproval>>, [u32, AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, AccountId32]>;
|
|
1172
|
+
/**
|
|
1173
|
+
* Details of an asset.
|
|
1174
|
+
**/
|
|
1175
|
+
asset: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetsAssetDetails>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Metadata of an asset.
|
|
1178
|
+
**/
|
|
1179
|
+
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1180
|
+
/**
|
|
1181
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
1182
|
+
* item has no effect.
|
|
1183
|
+
*
|
|
1184
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
1185
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
1186
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
1187
|
+
*
|
|
1188
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
1189
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
1190
|
+
**/
|
|
1191
|
+
nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1192
|
+
/**
|
|
1193
|
+
* Generic query
|
|
1194
|
+
**/
|
|
1195
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1196
|
+
};
|
|
1197
|
+
preimage: {
|
|
1198
|
+
preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [ITuple<[H256, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[H256, u32]>]>;
|
|
1199
|
+
/**
|
|
1200
|
+
* The request status of a given hash.
|
|
1201
|
+
**/
|
|
1202
|
+
requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1203
|
+
/**
|
|
1204
|
+
* The request status of a given hash.
|
|
1205
|
+
**/
|
|
1206
|
+
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1207
|
+
/**
|
|
1208
|
+
* Generic query
|
|
1209
|
+
**/
|
|
1210
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1211
|
+
};
|
|
1212
|
+
proxy: {
|
|
1213
|
+
/**
|
|
1214
|
+
* The announcements made by the proxy (key).
|
|
1215
|
+
**/
|
|
1216
|
+
announcements: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyAnnouncement>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1217
|
+
/**
|
|
1218
|
+
* The set of account proxies. Maps the account which has delegated to the accounts
|
|
1219
|
+
* which are being delegated to, together with the amount held on deposit.
|
|
1220
|
+
**/
|
|
1221
|
+
proxies: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyProxyDefinitionAssetHubKusamaRuntimeProxyType>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Generic query
|
|
1224
|
+
**/
|
|
1225
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1226
|
+
};
|
|
1227
|
+
recovery: {
|
|
1228
|
+
/**
|
|
1229
|
+
* Active recovery attempts.
|
|
1230
|
+
*
|
|
1231
|
+
* First account is the account to be recovered, and the second account
|
|
1232
|
+
* is the user trying to recover the account.
|
|
1233
|
+
**/
|
|
1234
|
+
activeRecoveries: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletRecoveryActiveRecovery>>, [AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32, AccountId32]>;
|
|
1235
|
+
/**
|
|
1236
|
+
* The list of allowed proxy accounts.
|
|
1237
|
+
*
|
|
1238
|
+
* Map from the user who can access it to the recovered account.
|
|
1239
|
+
**/
|
|
1240
|
+
proxy: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1241
|
+
/**
|
|
1242
|
+
* The set of recoverable accounts and their recovery configuration.
|
|
1243
|
+
**/
|
|
1244
|
+
recoverable: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletRecoveryRecoveryConfig>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1245
|
+
/**
|
|
1246
|
+
* Generic query
|
|
1247
|
+
**/
|
|
1248
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1249
|
+
};
|
|
1250
|
+
referenda: {
|
|
1251
|
+
/**
|
|
1252
|
+
* The number of referenda being decided currently.
|
|
1253
|
+
**/
|
|
1254
|
+
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
1255
|
+
/**
|
|
1256
|
+
* The metadata is a general information concerning the referendum.
|
|
1257
|
+
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
1258
|
+
* dump or IPFS hash of a JSON file.
|
|
1259
|
+
*
|
|
1260
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
1261
|
+
* large preimages.
|
|
1262
|
+
**/
|
|
1263
|
+
metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1264
|
+
/**
|
|
1265
|
+
* The next free referendum index, aka the number of referenda started so far.
|
|
1266
|
+
**/
|
|
1267
|
+
referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1268
|
+
/**
|
|
1269
|
+
* Information concerning any given referendum.
|
|
1270
|
+
**/
|
|
1271
|
+
referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReferendaReferendumInfoOriginCaller>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1272
|
+
/**
|
|
1273
|
+
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
1274
|
+
* conviction-weighted approvals.
|
|
1275
|
+
*
|
|
1276
|
+
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
|
1277
|
+
**/
|
|
1278
|
+
trackQueue: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
1279
|
+
/**
|
|
1280
|
+
* Generic query
|
|
1281
|
+
**/
|
|
1282
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1283
|
+
};
|
|
1284
|
+
remoteProxyRelayChain: {
|
|
1285
|
+
/**
|
|
1286
|
+
* Stores the last [`Config::MaxStorageRootsToKeep`] block to storage root mappings of the
|
|
1287
|
+
* target chain.
|
|
1288
|
+
**/
|
|
1289
|
+
blockToRoot: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, H256]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1290
|
+
/**
|
|
1291
|
+
* Generic query
|
|
1292
|
+
**/
|
|
1293
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1294
|
+
};
|
|
1295
|
+
revive: {
|
|
1296
|
+
/**
|
|
1297
|
+
* The data associated to a contract or externally owned account.
|
|
1298
|
+
**/
|
|
1299
|
+
accountInfoOf: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<PalletReviveStorageAccountInfo>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
|
|
1300
|
+
/**
|
|
1301
|
+
* A mapping from a contract's code hash to its code info.
|
|
1302
|
+
**/
|
|
1303
|
+
codeInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletReviveVmCodeInfo>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Evicted contracts that await child trie deletion.
|
|
1306
|
+
*
|
|
1307
|
+
* Child trie deletion is a heavy operation depending on the amount of storage items
|
|
1308
|
+
* stored in said trie. Therefore this operation is performed lazily in `on_idle`.
|
|
1309
|
+
**/
|
|
1310
|
+
deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1311
|
+
/**
|
|
1312
|
+
* A pair of monotonic counters used to track the latest contract marked for deletion
|
|
1313
|
+
* and the latest deleted contract in queue.
|
|
1314
|
+
**/
|
|
1315
|
+
deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletReviveStorageDeletionQueueManager>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1316
|
+
/**
|
|
1317
|
+
* The immutable data associated with a given account.
|
|
1318
|
+
**/
|
|
1319
|
+
immutableDataOf: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<Bytes>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
|
|
1320
|
+
/**
|
|
1321
|
+
* Map a Ethereum address to its original `AccountId32`.
|
|
1322
|
+
*
|
|
1323
|
+
* When deriving a `H160` from an `AccountId32` we use a hash function. In order to
|
|
1324
|
+
* reconstruct the original account we need to store the reverse mapping here.
|
|
1325
|
+
* Register your `AccountId32` using [`Pallet::map_account`] in order to
|
|
1326
|
+
* use it with this pallet.
|
|
1327
|
+
**/
|
|
1328
|
+
originalAccount: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<AccountId32>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
|
|
1329
|
+
/**
|
|
1330
|
+
* A mapping from a contract's code hash to its code.
|
|
1331
|
+
**/
|
|
1332
|
+
pristineCode: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1333
|
+
/**
|
|
1334
|
+
* Generic query
|
|
1335
|
+
**/
|
|
1336
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1337
|
+
};
|
|
1338
|
+
scheduler: {
|
|
1339
|
+
/**
|
|
1340
|
+
* Items to be executed, indexed by the block number that they should be executed on.
|
|
1341
|
+
**/
|
|
1342
|
+
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1343
|
+
/**
|
|
1344
|
+
* Block number at which the agenda began incomplete execution.
|
|
1345
|
+
**/
|
|
1346
|
+
incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1347
|
+
/**
|
|
1348
|
+
* Lookup from a name to the block number and index of the task.
|
|
1349
|
+
*
|
|
1350
|
+
* For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
|
|
1351
|
+
* identities.
|
|
1352
|
+
**/
|
|
1353
|
+
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
1354
|
+
/**
|
|
1355
|
+
* Retry configurations for items to be executed, indexed by task address.
|
|
1356
|
+
**/
|
|
1357
|
+
retries: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletSchedulerRetryConfig>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
|
|
1358
|
+
/**
|
|
1359
|
+
* Generic query
|
|
1360
|
+
**/
|
|
1361
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1362
|
+
};
|
|
1363
|
+
session: {
|
|
1364
|
+
/**
|
|
1365
|
+
* Current index of the session.
|
|
1366
|
+
**/
|
|
1367
|
+
currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1368
|
+
/**
|
|
1369
|
+
* Indices of disabled validators.
|
|
1370
|
+
*
|
|
1371
|
+
* The vec is always kept sorted so that we can find whether a given validator is
|
|
1372
|
+
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
1373
|
+
* a new set of identities.
|
|
1374
|
+
**/
|
|
1375
|
+
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, Perbill]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1376
|
+
/**
|
|
1377
|
+
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
1378
|
+
**/
|
|
1379
|
+
keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]> & QueryableStorageEntry<ApiType, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>;
|
|
1380
|
+
/**
|
|
1381
|
+
* The next session keys for a validator.
|
|
1382
|
+
**/
|
|
1383
|
+
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AssetHubKusamaRuntimeSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1384
|
+
/**
|
|
1385
|
+
* True if the underlying economic identities or weighting behind the validators
|
|
1386
|
+
* has changed in the queued validator set.
|
|
1387
|
+
**/
|
|
1388
|
+
queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1389
|
+
/**
|
|
1390
|
+
* The queued keys for the next session. When the next session begins, these keys
|
|
1391
|
+
* will be used to determine the validator's session keys.
|
|
1392
|
+
**/
|
|
1393
|
+
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, AssetHubKusamaRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1394
|
+
/**
|
|
1395
|
+
* The current set of validators.
|
|
1396
|
+
**/
|
|
1397
|
+
validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1398
|
+
/**
|
|
1399
|
+
* Generic query
|
|
1400
|
+
**/
|
|
1401
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1402
|
+
};
|
|
1403
|
+
society: {
|
|
1404
|
+
/**
|
|
1405
|
+
* The current bids, stored ordered by the value of the bid.
|
|
1406
|
+
**/
|
|
1407
|
+
bids: AugmentedQuery<ApiType, () => Observable<Vec<PalletSocietyBid>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1408
|
+
candidates: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyCandidacy>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1409
|
+
/**
|
|
1410
|
+
* The number of challenge rounds there have been. Used to identify stale DefenderVotes.
|
|
1411
|
+
**/
|
|
1412
|
+
challengeRoundCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Votes for the defender, keyed by challenge round.
|
|
1415
|
+
**/
|
|
1416
|
+
defenderVotes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVote>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1417
|
+
/**
|
|
1418
|
+
* The defending member currently being challenged, along with a running tally of votes.
|
|
1419
|
+
**/
|
|
1420
|
+
defending: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[AccountId32, AccountId32, PalletSocietyTally]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1421
|
+
/**
|
|
1422
|
+
* The first member.
|
|
1423
|
+
**/
|
|
1424
|
+
founder: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1425
|
+
/**
|
|
1426
|
+
* The most primary from the most recently approved rank 0 members in the society.
|
|
1427
|
+
**/
|
|
1428
|
+
head: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1429
|
+
/**
|
|
1430
|
+
* The current items in `Members` keyed by their unique index. Keys are densely populated
|
|
1431
|
+
* `0..MemberCount` (does not include `MemberCount`).
|
|
1432
|
+
**/
|
|
1433
|
+
memberByIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1434
|
+
/**
|
|
1435
|
+
* The number of items in `Members` currently. (Doesn't include `SuspendedMembers`.)
|
|
1436
|
+
**/
|
|
1437
|
+
memberCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1438
|
+
/**
|
|
1439
|
+
* The current members and their rank. Doesn't include `SuspendedMembers`.
|
|
1440
|
+
**/
|
|
1441
|
+
members: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyMemberRecord>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1442
|
+
/**
|
|
1443
|
+
* Next challenge rotation scheduled with [Config::BlockNumberProvider].
|
|
1444
|
+
**/
|
|
1445
|
+
nextChallengeAt: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1446
|
+
/**
|
|
1447
|
+
* At the end of the claim period, this contains the most recently approved members (along with
|
|
1448
|
+
* their bid and round ID) who is from the most recent round with the lowest bid. They will
|
|
1449
|
+
* become the new `Head`.
|
|
1450
|
+
**/
|
|
1451
|
+
nextHead: AugmentedQuery<ApiType, () => Observable<Option<PalletSocietyIntakeRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1452
|
+
/**
|
|
1453
|
+
* Next intake rotation scheduled with [Config::BlockNumberProvider].
|
|
1454
|
+
**/
|
|
1455
|
+
nextIntakeAt: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1456
|
+
/**
|
|
1457
|
+
* The max number of members for the society at one time.
|
|
1458
|
+
**/
|
|
1459
|
+
parameters: AugmentedQuery<ApiType, () => Observable<Option<PalletSocietyGroupParams>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1460
|
+
/**
|
|
1461
|
+
* Information regarding rank-0 payouts, past and future.
|
|
1462
|
+
**/
|
|
1463
|
+
payouts: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletSocietyPayoutRecord>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1464
|
+
/**
|
|
1465
|
+
* Amount of our account balance that is specifically for the next round's bid(s).
|
|
1466
|
+
**/
|
|
1467
|
+
pot: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1468
|
+
/**
|
|
1469
|
+
* The number of rounds which have passed.
|
|
1470
|
+
**/
|
|
1471
|
+
roundCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1472
|
+
/**
|
|
1473
|
+
* A hash of the rules of this society concerning membership. Can only be set once and
|
|
1474
|
+
* only by the founder.
|
|
1475
|
+
**/
|
|
1476
|
+
rules: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1477
|
+
/**
|
|
1478
|
+
* The current skeptic.
|
|
1479
|
+
**/
|
|
1480
|
+
skeptic: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1481
|
+
/**
|
|
1482
|
+
* The set of suspended members, with their old membership record.
|
|
1483
|
+
**/
|
|
1484
|
+
suspendedMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyMemberRecord>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1485
|
+
/**
|
|
1486
|
+
* Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor.
|
|
1487
|
+
**/
|
|
1488
|
+
voteClearCursor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1489
|
+
/**
|
|
1490
|
+
* Double map from Candidate -> Voter -> (Maybe) Vote.
|
|
1491
|
+
**/
|
|
1492
|
+
votes: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVote>>, [AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32, AccountId32]>;
|
|
1493
|
+
/**
|
|
1494
|
+
* Generic query
|
|
1495
|
+
**/
|
|
1496
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1497
|
+
};
|
|
1498
|
+
staking: {
|
|
1499
|
+
/**
|
|
1500
|
+
* The active era information, it holds index and start.
|
|
1501
|
+
*
|
|
1502
|
+
* The active era is the era being currently rewarded. Validator set of this era must be
|
|
1503
|
+
* equal to what is RC's session pallet.
|
|
1504
|
+
**/
|
|
1505
|
+
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingAsyncActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1506
|
+
/**
|
|
1507
|
+
* Map from all locked "stash" accounts to the controller account.
|
|
1508
|
+
*
|
|
1509
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1510
|
+
**/
|
|
1511
|
+
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1512
|
+
/**
|
|
1513
|
+
* A mapping from still-bonded eras to the first session index of that era.
|
|
1514
|
+
*
|
|
1515
|
+
* Must contains information for eras for the range:
|
|
1516
|
+
* `[active_era - bounding_duration; active_era]`
|
|
1517
|
+
**/
|
|
1518
|
+
bondedEras: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1519
|
+
/**
|
|
1520
|
+
* The amount of currency given to reporters of a slash event which was
|
|
1521
|
+
* canceled by extraordinary circumstances (e.g. governance).
|
|
1522
|
+
**/
|
|
1523
|
+
canceledSlashPayout: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1524
|
+
/**
|
|
1525
|
+
* Cancelled slashes by era and validator with maximum slash fraction to be cancelled.
|
|
1526
|
+
*
|
|
1527
|
+
* When slashes are cancelled by governance, this stores the era and the validators
|
|
1528
|
+
* whose slashes should be cancelled, along with the maximum slash fraction that should
|
|
1529
|
+
* be cancelled for each validator.
|
|
1530
|
+
**/
|
|
1531
|
+
cancelledSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[AccountId32, Perbill]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1532
|
+
/**
|
|
1533
|
+
* The threshold for when users can start calling `chill_other` for other validators /
|
|
1534
|
+
* nominators. The threshold is compared to the actual number of validators / nominators
|
|
1535
|
+
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
|
|
1536
|
+
**/
|
|
1537
|
+
chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1538
|
+
/**
|
|
1539
|
+
* History of claimed paged rewards by era and validator.
|
|
1540
|
+
*
|
|
1541
|
+
* This is keyed by era and validator stash which maps to the set of page indexes which have
|
|
1542
|
+
* been claimed.
|
|
1543
|
+
*
|
|
1544
|
+
* It is removed after [`Config::HistoryDepth`] eras.
|
|
1545
|
+
**/
|
|
1546
|
+
claimedRewards: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1547
|
+
/**
|
|
1548
|
+
* Counter for the related counted storage map
|
|
1549
|
+
**/
|
|
1550
|
+
counterForNominators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1551
|
+
/**
|
|
1552
|
+
* Counter for the related counted storage map
|
|
1553
|
+
**/
|
|
1554
|
+
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1555
|
+
/**
|
|
1556
|
+
* Counter for the related counted storage map
|
|
1557
|
+
**/
|
|
1558
|
+
counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1559
|
+
/**
|
|
1560
|
+
* The current planned era index.
|
|
1561
|
+
*
|
|
1562
|
+
* This is the latest planned era, depending on how the Session pallet queues the validator
|
|
1563
|
+
* set, it might be active or not.
|
|
1564
|
+
**/
|
|
1565
|
+
currentEra: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1566
|
+
/**
|
|
1567
|
+
* A bounded list of the "electable" stashes that resulted from a successful election.
|
|
1568
|
+
**/
|
|
1569
|
+
electableStashes: AugmentedQuery<ApiType, () => Observable<BTreeSet<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1570
|
+
/**
|
|
1571
|
+
* Tracks the current step of era pruning process for each era being lazily pruned.
|
|
1572
|
+
**/
|
|
1573
|
+
eraPruningState: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletStakingAsyncPalletPruningStep>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1574
|
+
/**
|
|
1575
|
+
* Rewards for the last [`Config::HistoryDepth`] eras.
|
|
1576
|
+
* If reward hasn't been set or has been removed then 0 reward is returned.
|
|
1577
|
+
**/
|
|
1578
|
+
erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingAsyncEraRewardPoints>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1579
|
+
/**
|
|
1580
|
+
* Summary of validator exposure at a given era.
|
|
1581
|
+
*
|
|
1582
|
+
* This contains the total stake in support of the validator and their own stake. In addition,
|
|
1583
|
+
* it can also be used to get the number of nominators backing this validator and the number of
|
|
1584
|
+
* exposure pages they are divided into. The page count is useful to determine the number of
|
|
1585
|
+
* pages of rewards that needs to be claimed.
|
|
1586
|
+
*
|
|
1587
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
1588
|
+
* Should only be accessed through `Eras`.
|
|
1589
|
+
*
|
|
1590
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
1591
|
+
* If stakers hasn't been set or has been removed then empty overview is returned.
|
|
1592
|
+
**/
|
|
1593
|
+
erasStakersOverview: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<SpStakingPagedExposureMetadata>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1594
|
+
/**
|
|
1595
|
+
* Paginated exposure of a validator at given era.
|
|
1596
|
+
*
|
|
1597
|
+
* This is keyed first by the era index to allow bulk deletion, then stash account and finally
|
|
1598
|
+
* the page. Should only be accessed through `Eras`.
|
|
1599
|
+
*
|
|
1600
|
+
* This is cleared after [`Config::HistoryDepth`] eras.
|
|
1601
|
+
**/
|
|
1602
|
+
erasStakersPaged: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletStakingAsyncPalletBoundedExposurePage>>, [u32, AccountId32, u32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, u32]>;
|
|
1603
|
+
/**
|
|
1604
|
+
* The total amount staked for the last [`Config::HistoryDepth`] eras.
|
|
1605
|
+
* If total hasn't been set or has been removed then 0 stake is returned.
|
|
1606
|
+
**/
|
|
1607
|
+
erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1608
|
+
/**
|
|
1609
|
+
* Exposure of validator at era with the preferences of validators.
|
|
1610
|
+
*
|
|
1611
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
1612
|
+
*
|
|
1613
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
1614
|
+
**/
|
|
1615
|
+
erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingAsyncValidatorPrefs>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1616
|
+
/**
|
|
1617
|
+
* The total validator era payout for the last [`Config::HistoryDepth`] eras.
|
|
1618
|
+
*
|
|
1619
|
+
* Eras that haven't finished yet or has been removed doesn't have reward.
|
|
1620
|
+
**/
|
|
1621
|
+
erasValidatorReward: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1622
|
+
/**
|
|
1623
|
+
* Mode of era forcing.
|
|
1624
|
+
**/
|
|
1625
|
+
forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingAsyncForcing>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1626
|
+
/**
|
|
1627
|
+
* Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
|
|
1628
|
+
* easy to initialize and the performance hit is minimal (we expect no more than four
|
|
1629
|
+
* invulnerables) and restricted to testnets.
|
|
1630
|
+
**/
|
|
1631
|
+
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1632
|
+
/**
|
|
1633
|
+
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
|
1634
|
+
*
|
|
1635
|
+
* Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
|
|
1636
|
+
* by [`StakingLedger`] to ensure data and lock consistency.
|
|
1637
|
+
**/
|
|
1638
|
+
ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingAsyncLedgerStakingLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1639
|
+
/**
|
|
1640
|
+
* The maximum nominator count before we stop allowing new validators to join.
|
|
1641
|
+
*
|
|
1642
|
+
* When this value is not set, no limits are enforced.
|
|
1643
|
+
**/
|
|
1644
|
+
maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1645
|
+
/**
|
|
1646
|
+
* Maximum staked rewards, i.e. the percentage of the era inflation that
|
|
1647
|
+
* is used for stake rewards.
|
|
1648
|
+
* See [Era payout](./index.html#era-payout).
|
|
1649
|
+
**/
|
|
1650
|
+
maxStakedRewards: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1651
|
+
/**
|
|
1652
|
+
* The maximum validator count before we stop allowing new validators to join.
|
|
1653
|
+
*
|
|
1654
|
+
* When this value is not set, no limits are enforced.
|
|
1655
|
+
**/
|
|
1656
|
+
maxValidatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1657
|
+
/**
|
|
1658
|
+
* The minimum amount of commission that validators can set.
|
|
1659
|
+
*
|
|
1660
|
+
* If set to `0`, no limit exists.
|
|
1661
|
+
**/
|
|
1662
|
+
minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1663
|
+
/**
|
|
1664
|
+
* The minimum active nominator stake of the last successful election.
|
|
1665
|
+
**/
|
|
1666
|
+
minimumActiveStake: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1667
|
+
/**
|
|
1668
|
+
* The minimum active bond to become and maintain the role of a nominator.
|
|
1669
|
+
**/
|
|
1670
|
+
minNominatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1671
|
+
/**
|
|
1672
|
+
* The minimum active bond to become and maintain the role of a validator.
|
|
1673
|
+
**/
|
|
1674
|
+
minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1675
|
+
/**
|
|
1676
|
+
* Keeps track of an ongoing multi-page election solution request.
|
|
1677
|
+
*
|
|
1678
|
+
* If `Some(_)``, it is the next page that we intend to elect. If `None`, we are not in the
|
|
1679
|
+
* election process.
|
|
1680
|
+
*
|
|
1681
|
+
* This is only set in multi-block elections. Should always be `None` otherwise.
|
|
1682
|
+
**/
|
|
1683
|
+
nextElectionPage: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1684
|
+
/**
|
|
1685
|
+
* The map from nominator stash key to their nomination preferences, namely the validators that
|
|
1686
|
+
* they wish to support.
|
|
1687
|
+
*
|
|
1688
|
+
* Note that the keys of this storage map might become non-decodable in case the
|
|
1689
|
+
* account's [`NominationsQuota::MaxNominations`] configuration is decreased.
|
|
1690
|
+
* In this rare case, these nominators
|
|
1691
|
+
* are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
|
|
1692
|
+
* indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
|
|
1693
|
+
* nominators will effectively not-exist, until they re-submit their preferences such that it
|
|
1694
|
+
* is within the bounds of the newly set `Config::MaxNominations`.
|
|
1695
|
+
*
|
|
1696
|
+
* This implies that `::iter_keys().count()` and `::iter().count()` might return different
|
|
1697
|
+
* values for this map. Moreover, the main `::count()` is aligned with the former, namely the
|
|
1698
|
+
* number of keys that exist.
|
|
1699
|
+
*
|
|
1700
|
+
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
|
1701
|
+
* [`Call::chill_other`] dispatchable by anyone.
|
|
1702
|
+
*
|
|
1703
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1704
|
+
**/
|
|
1705
|
+
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingAsyncNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1706
|
+
/**
|
|
1707
|
+
* Stores reported offences in a queue until they are processed in subsequent blocks.
|
|
1708
|
+
*
|
|
1709
|
+
* Each offence is recorded under the corresponding era index and the offending validator's
|
|
1710
|
+
* account. If an offence spans multiple pages, only one page is processed at a time. Offences
|
|
1711
|
+
* are handled sequentially, with their associated slashes computed and stored in
|
|
1712
|
+
* `UnappliedSlashes`. These slashes are then applied in a future era as determined by
|
|
1713
|
+
* `SlashDeferDuration`.
|
|
1714
|
+
*
|
|
1715
|
+
* Any offences tied to an era older than `BondingDuration` are automatically dropped.
|
|
1716
|
+
* Processing always prioritizes the oldest era first.
|
|
1717
|
+
**/
|
|
1718
|
+
offenceQueue: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingAsyncSlashingOffenceRecord>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1719
|
+
/**
|
|
1720
|
+
* Tracks the eras that contain offences in `OffenceQueue`, sorted from **earliest to latest**.
|
|
1721
|
+
*
|
|
1722
|
+
* - This ensures efficient retrieval of the oldest offence without iterating through
|
|
1723
|
+
* `OffenceQueue`.
|
|
1724
|
+
* - When a new offence is added to `OffenceQueue`, its era is **inserted in sorted order**
|
|
1725
|
+
* if not already present.
|
|
1726
|
+
* - When all offences for an era are processed, it is **removed** from this list.
|
|
1727
|
+
* - The maximum length of this vector is bounded by `BondingDuration`.
|
|
1728
|
+
*
|
|
1729
|
+
* This eliminates the need for expensive iteration and sorting when fetching the next offence
|
|
1730
|
+
* to process.
|
|
1731
|
+
**/
|
|
1732
|
+
offenceQueueEras: AugmentedQuery<ApiType, () => Observable<Option<Vec<u32>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1733
|
+
/**
|
|
1734
|
+
* Where the reward payment should be made. Keyed by stash.
|
|
1735
|
+
*
|
|
1736
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1737
|
+
**/
|
|
1738
|
+
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingAsyncRewardDestination>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1739
|
+
/**
|
|
1740
|
+
* Tracks the currently processed offence record from the `OffenceQueue`.
|
|
1741
|
+
*
|
|
1742
|
+
* - When processing offences, an offence record is **popped** from the oldest era in
|
|
1743
|
+
* `OffenceQueue` and stored here.
|
|
1744
|
+
* - The function `process_offence` reads from this storage, processing one page of exposure at
|
|
1745
|
+
* a time.
|
|
1746
|
+
* - After processing a page, the `exposure_page` count is **decremented** until it reaches
|
|
1747
|
+
* zero.
|
|
1748
|
+
* - Once fully processed, the offence record is removed from this storage.
|
|
1749
|
+
*
|
|
1750
|
+
* This ensures that offences are processed incrementally, preventing excessive computation
|
|
1751
|
+
* in a single block while maintaining correct slashing behavior.
|
|
1752
|
+
**/
|
|
1753
|
+
processingOffence: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, AccountId32, PalletStakingAsyncSlashingOffenceRecord]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1754
|
+
/**
|
|
1755
|
+
* The percentage of the slash that is distributed to reporters.
|
|
1756
|
+
*
|
|
1757
|
+
* The rest of the slashed value is handled by the `Slash`.
|
|
1758
|
+
**/
|
|
1759
|
+
slashRewardFraction: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1760
|
+
/**
|
|
1761
|
+
* All unapplied slashes that are queued for later.
|
|
1762
|
+
**/
|
|
1763
|
+
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: ITuple<[AccountId32, Perbill, u32]> | [AccountId32 | string | Uint8Array, Perbill | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletStakingAsyncUnappliedSlash>>, [u32, ITuple<[AccountId32, Perbill, u32]>]> & QueryableStorageEntry<ApiType, [u32, ITuple<[AccountId32, Perbill, u32]>]>;
|
|
1764
|
+
/**
|
|
1765
|
+
* The ideal number of active validators.
|
|
1766
|
+
**/
|
|
1767
|
+
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1768
|
+
/**
|
|
1769
|
+
* The map from (wannabe) validator stash key to the preferences of that validator.
|
|
1770
|
+
*
|
|
1771
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1772
|
+
**/
|
|
1773
|
+
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingAsyncValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1774
|
+
/**
|
|
1775
|
+
* All slashing events on validators, mapped by era to the highest slash proportion
|
|
1776
|
+
* and slash value of the era.
|
|
1777
|
+
**/
|
|
1778
|
+
validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1779
|
+
/**
|
|
1780
|
+
* Stakers whose funds are managed by other pallets.
|
|
1781
|
+
*
|
|
1782
|
+
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
|
|
1783
|
+
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
|
|
1784
|
+
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
|
|
1785
|
+
* via low level apis. We keep track of them to do minimal integrity checks.
|
|
1786
|
+
**/
|
|
1787
|
+
virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1788
|
+
/**
|
|
1789
|
+
* Voter snapshot progress status.
|
|
1790
|
+
*
|
|
1791
|
+
* If the status is `Ongoing`, it keeps a cursor of the last voter retrieved to proceed when
|
|
1792
|
+
* creating the next snapshot page.
|
|
1793
|
+
**/
|
|
1794
|
+
voterSnapshotStatus: AugmentedQuery<ApiType, () => Observable<PalletStakingAsyncSnapshotStatus>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1795
|
+
/**
|
|
1796
|
+
* Generic query
|
|
1797
|
+
**/
|
|
1798
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1799
|
+
};
|
|
1800
|
+
stakingRcClient: {
|
|
1801
|
+
/**
|
|
1802
|
+
* An incomplete incoming session report that we have not acted upon yet.
|
|
1803
|
+
**/
|
|
1804
|
+
incompleteSessionReport: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingAsyncRcClientSessionReport>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1805
|
+
/**
|
|
1806
|
+
* The last session report's `end_index` that we have acted upon.
|
|
1807
|
+
*
|
|
1808
|
+
* This allows this pallet to ensure a sequentially increasing sequence of session reports
|
|
1809
|
+
* passed to staking.
|
|
1810
|
+
*
|
|
1811
|
+
* Note that with the XCM being the backbone of communication, we have a guarantee on the
|
|
1812
|
+
* ordering of messages. As long as the RC sends session reports in order, we _eventually_
|
|
1813
|
+
* receive them in the same correct order as well.
|
|
1814
|
+
**/
|
|
1815
|
+
lastSessionReportEndingIndex: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1816
|
+
/**
|
|
1817
|
+
* A validator set that is outgoing, and should be sent.
|
|
1818
|
+
*
|
|
1819
|
+
* This will be attempted to be sent, possibly on every `on_initialize` call, until it is sent,
|
|
1820
|
+
* or the second value reaches zero, at which point we drop it.
|
|
1821
|
+
**/
|
|
1822
|
+
outgoingValidatorSet: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[PalletStakingAsyncRcClientValidatorSetReport, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1823
|
+
/**
|
|
1824
|
+
* Generic query
|
|
1825
|
+
**/
|
|
1826
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1827
|
+
};
|
|
1828
|
+
stateTrieMigration: {
|
|
1829
|
+
/**
|
|
1830
|
+
* The limits that are imposed on automatic migrations.
|
|
1831
|
+
*
|
|
1832
|
+
* If set to None, then no automatic migration happens.
|
|
1833
|
+
**/
|
|
1834
|
+
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1835
|
+
/**
|
|
1836
|
+
* Migration progress.
|
|
1837
|
+
*
|
|
1838
|
+
* This stores the snapshot of the last migrated keys. It can be set into motion and move
|
|
1839
|
+
* forward by any of the means provided by this pallet.
|
|
1840
|
+
**/
|
|
1841
|
+
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1842
|
+
/**
|
|
1843
|
+
* The maximum limits that the signed migration could use.
|
|
1844
|
+
*
|
|
1845
|
+
* If not set, no signed submission is allowed.
|
|
1846
|
+
**/
|
|
1847
|
+
signedMigrationMaxLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1848
|
+
/**
|
|
1849
|
+
* Generic query
|
|
1850
|
+
**/
|
|
1851
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1852
|
+
};
|
|
1853
|
+
system: {
|
|
1854
|
+
/**
|
|
1855
|
+
* The full account information for a particular account ID.
|
|
1856
|
+
**/
|
|
1857
|
+
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1858
|
+
/**
|
|
1859
|
+
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
1860
|
+
**/
|
|
1861
|
+
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1862
|
+
/**
|
|
1863
|
+
* `Some` if a code upgrade has been authorized.
|
|
1864
|
+
**/
|
|
1865
|
+
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1866
|
+
/**
|
|
1867
|
+
* Map of block numbers to block hashes.
|
|
1868
|
+
**/
|
|
1869
|
+
blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1870
|
+
/**
|
|
1871
|
+
* The current weight for the block.
|
|
1872
|
+
**/
|
|
1873
|
+
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1874
|
+
/**
|
|
1875
|
+
* Digest of the current block, also part of the block header.
|
|
1876
|
+
**/
|
|
1877
|
+
digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1878
|
+
/**
|
|
1879
|
+
* The number of events in the `Events<T>` list.
|
|
1880
|
+
**/
|
|
1881
|
+
eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1882
|
+
/**
|
|
1883
|
+
* Events deposited for the current block.
|
|
1884
|
+
*
|
|
1885
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
1886
|
+
* It could otherwise inflate the PoV size of a block.
|
|
1887
|
+
*
|
|
1888
|
+
* Events have a large in-memory size. Box the events to not go out-of-memory
|
|
1889
|
+
* just in case someone still reads them from within the runtime.
|
|
1890
|
+
**/
|
|
1891
|
+
events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1892
|
+
/**
|
|
1893
|
+
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
1894
|
+
* of events in the `<Events<T>>` list.
|
|
1895
|
+
*
|
|
1896
|
+
* All topic vectors have deterministic storage locations depending on the topic. This
|
|
1897
|
+
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
1898
|
+
* in case of changes fetch the list of events of interest.
|
|
1899
|
+
*
|
|
1900
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
1901
|
+
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
1902
|
+
* no notification will be triggered thus the event might be lost.
|
|
1903
|
+
**/
|
|
1904
|
+
eventTopics: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1905
|
+
/**
|
|
1906
|
+
* The execution phase of the block.
|
|
1907
|
+
**/
|
|
1908
|
+
executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1909
|
+
/**
|
|
1910
|
+
* Total extrinsics count for the current block.
|
|
1911
|
+
**/
|
|
1912
|
+
extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1913
|
+
/**
|
|
1914
|
+
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
1915
|
+
**/
|
|
1916
|
+
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1917
|
+
/**
|
|
1918
|
+
* The weight reclaimed for the extrinsic.
|
|
1919
|
+
*
|
|
1920
|
+
* This information is available until the end of the extrinsic execution.
|
|
1921
|
+
* More precisely this information is removed in `note_applied_extrinsic`.
|
|
1922
|
+
*
|
|
1923
|
+
* Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
|
|
1924
|
+
* reduction.
|
|
1925
|
+
**/
|
|
1926
|
+
extrinsicWeightReclaimed: AugmentedQuery<ApiType, () => Observable<SpWeightsWeightV2Weight>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1927
|
+
/**
|
|
1928
|
+
* Whether all inherents have been applied.
|
|
1929
|
+
**/
|
|
1930
|
+
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1931
|
+
/**
|
|
1932
|
+
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
1933
|
+
**/
|
|
1934
|
+
lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1935
|
+
/**
|
|
1936
|
+
* The current block number being processed. Set by `execute_block`.
|
|
1937
|
+
**/
|
|
1938
|
+
number: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1939
|
+
/**
|
|
1940
|
+
* Hash of the previous block.
|
|
1941
|
+
**/
|
|
1942
|
+
parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1943
|
+
/**
|
|
1944
|
+
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
1945
|
+
* (default) if not.
|
|
1946
|
+
**/
|
|
1947
|
+
upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1948
|
+
/**
|
|
1949
|
+
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
1950
|
+
**/
|
|
1951
|
+
upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1952
|
+
/**
|
|
1953
|
+
* Generic query
|
|
1954
|
+
**/
|
|
1955
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1956
|
+
};
|
|
1957
|
+
timestamp: {
|
|
1958
|
+
/**
|
|
1959
|
+
* Whether the timestamp has been updated in this block.
|
|
1960
|
+
*
|
|
1961
|
+
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
|
1962
|
+
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
|
1963
|
+
**/
|
|
1964
|
+
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1965
|
+
/**
|
|
1966
|
+
* The current time for the current block.
|
|
1967
|
+
**/
|
|
1968
|
+
now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1969
|
+
/**
|
|
1970
|
+
* Generic query
|
|
1971
|
+
**/
|
|
1972
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1973
|
+
};
|
|
1974
|
+
toPolkadotXcmRouter: {
|
|
1975
|
+
/**
|
|
1976
|
+
* Bridge that we are using.
|
|
1977
|
+
*
|
|
1978
|
+
* **bridges-v1** assumptions: all outbound messages through this router are using single lane
|
|
1979
|
+
* and to single remote consensus. If there is some other remote consensus that uses the same
|
|
1980
|
+
* bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required
|
|
1981
|
+
* primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges
|
|
1982
|
+
* by the same pallet instance.
|
|
1983
|
+
**/
|
|
1984
|
+
bridge: AugmentedQuery<ApiType, () => Observable<BpXcmBridgeHubRouterBridgeState>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1985
|
+
/**
|
|
1986
|
+
* Generic query
|
|
1987
|
+
**/
|
|
1988
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1989
|
+
};
|
|
1990
|
+
transactionPayment: {
|
|
1991
|
+
nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1992
|
+
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1993
|
+
/**
|
|
1994
|
+
* Generic query
|
|
1995
|
+
**/
|
|
1996
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1997
|
+
};
|
|
1998
|
+
treasury: {
|
|
1999
|
+
/**
|
|
2000
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
2001
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
2002
|
+
*
|
|
2003
|
+
* Proposal indices that have been approved but not yet awarded.
|
|
2004
|
+
**/
|
|
2005
|
+
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2006
|
+
/**
|
|
2007
|
+
* The amount which has been reported as inactive to Currency.
|
|
2008
|
+
**/
|
|
2009
|
+
deactivated: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2010
|
+
/**
|
|
2011
|
+
* The blocknumber for the last triggered spend period.
|
|
2012
|
+
**/
|
|
2013
|
+
lastSpendPeriod: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2014
|
+
/**
|
|
2015
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
2016
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
2017
|
+
*
|
|
2018
|
+
* Number of proposals that have been made.
|
|
2019
|
+
**/
|
|
2020
|
+
proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2021
|
+
/**
|
|
2022
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
2023
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
2024
|
+
*
|
|
2025
|
+
* Proposals that have been made.
|
|
2026
|
+
**/
|
|
2027
|
+
proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryProposal>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2028
|
+
/**
|
|
2029
|
+
* The count of spends that have been made.
|
|
2030
|
+
**/
|
|
2031
|
+
spendCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2032
|
+
/**
|
|
2033
|
+
* Spends that have been approved and being processed.
|
|
2034
|
+
**/
|
|
2035
|
+
spends: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasurySpendStatus>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2036
|
+
/**
|
|
2037
|
+
* Generic query
|
|
2038
|
+
**/
|
|
2039
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2040
|
+
};
|
|
2041
|
+
uniques: {
|
|
2042
|
+
/**
|
|
2043
|
+
* The items held by any given account; set out this way so that items owned by a single
|
|
2044
|
+
* account can be enumerated.
|
|
2045
|
+
**/
|
|
2046
|
+
account: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [AccountId32, u32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32, u32]>;
|
|
2047
|
+
/**
|
|
2048
|
+
* The items in existence and their ownership details.
|
|
2049
|
+
**/
|
|
2050
|
+
asset: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesItemDetails>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
2051
|
+
/**
|
|
2052
|
+
* Attributes of a collection.
|
|
2053
|
+
**/
|
|
2054
|
+
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, u128]>>>, [u32, Option<u32>, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, Bytes]>;
|
|
2055
|
+
/**
|
|
2056
|
+
* Details of a collection.
|
|
2057
|
+
**/
|
|
2058
|
+
class: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesCollectionDetails>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2059
|
+
/**
|
|
2060
|
+
* The collections owned by any given account; set out this way so that collections owned by
|
|
2061
|
+
* a single account can be enumerated.
|
|
2062
|
+
**/
|
|
2063
|
+
classAccount: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
|
|
2064
|
+
/**
|
|
2065
|
+
* Metadata of a collection.
|
|
2066
|
+
**/
|
|
2067
|
+
classMetadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesCollectionMetadata>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2068
|
+
/**
|
|
2069
|
+
* Keeps track of the number of items a collection might have.
|
|
2070
|
+
**/
|
|
2071
|
+
collectionMaxSupply: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2072
|
+
/**
|
|
2073
|
+
* Metadata of an item.
|
|
2074
|
+
**/
|
|
2075
|
+
instanceMetadataOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesItemMetadata>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
2076
|
+
/**
|
|
2077
|
+
* Price of an asset instance.
|
|
2078
|
+
**/
|
|
2079
|
+
itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
2080
|
+
/**
|
|
2081
|
+
* The collection, if any, of which an account is willing to take ownership.
|
|
2082
|
+
**/
|
|
2083
|
+
ownershipAcceptance: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
2084
|
+
/**
|
|
2085
|
+
* Generic query
|
|
2086
|
+
**/
|
|
2087
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2088
|
+
};
|
|
2089
|
+
vesting: {
|
|
2090
|
+
/**
|
|
2091
|
+
* Storage version of the pallet.
|
|
2092
|
+
*
|
|
2093
|
+
* New networks start with latest version, as determined by the genesis build.
|
|
2094
|
+
**/
|
|
2095
|
+
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletVestingReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2096
|
+
/**
|
|
2097
|
+
* Information regarding the vesting of a given account.
|
|
2098
|
+
**/
|
|
2099
|
+
vesting: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<PalletVestingVestingInfo>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
2100
|
+
/**
|
|
2101
|
+
* Generic query
|
|
2102
|
+
**/
|
|
2103
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2104
|
+
};
|
|
2105
|
+
voterList: {
|
|
2106
|
+
/**
|
|
2107
|
+
* Counter for the related counted storage map
|
|
2108
|
+
**/
|
|
2109
|
+
counterForListNodes: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2110
|
+
/**
|
|
2111
|
+
* A bag stored in storage.
|
|
2112
|
+
*
|
|
2113
|
+
* Stores a `Bag` struct, which stores head and tail pointers to itself.
|
|
2114
|
+
**/
|
|
2115
|
+
listBags: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBagsListListBag>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
2116
|
+
/**
|
|
2117
|
+
* A single node, within some bag.
|
|
2118
|
+
*
|
|
2119
|
+
* Nodes store links forward and back within their respective bags.
|
|
2120
|
+
**/
|
|
2121
|
+
listNodes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletBagsListListNode>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
2122
|
+
/**
|
|
2123
|
+
* Lock all updates to this pallet.
|
|
2124
|
+
*
|
|
2125
|
+
* If any nodes needs updating, removal or addition due to a temporary lock, the
|
|
2126
|
+
* [`Call::rebag`] can be used.
|
|
2127
|
+
**/
|
|
2128
|
+
lock: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2129
|
+
/**
|
|
2130
|
+
* Pointer that remembers the next node that will be auto-rebagged.
|
|
2131
|
+
* When `None`, the next scan will start from the list head again.
|
|
2132
|
+
**/
|
|
2133
|
+
nextNodeAutoRebagged: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2134
|
+
/**
|
|
2135
|
+
* Generic query
|
|
2136
|
+
**/
|
|
2137
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2138
|
+
};
|
|
2139
|
+
whitelist: {
|
|
2140
|
+
whitelistedCall: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Null>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
2141
|
+
/**
|
|
2142
|
+
* Generic query
|
|
2143
|
+
**/
|
|
2144
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2145
|
+
};
|
|
2146
|
+
xcmpQueue: {
|
|
2147
|
+
/**
|
|
2148
|
+
* The factor to multiply the base delivery fee by.
|
|
2149
|
+
**/
|
|
2150
|
+
deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2151
|
+
/**
|
|
2152
|
+
* The suspended inbound XCMP channels. All others are not suspended.
|
|
2153
|
+
*
|
|
2154
|
+
* This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
|
|
2155
|
+
* to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
|
|
2156
|
+
* within the block and therefore only included once in the proof size.
|
|
2157
|
+
*
|
|
2158
|
+
* NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
|
|
2159
|
+
* will be smaller.
|
|
2160
|
+
**/
|
|
2161
|
+
inboundXcmpSuspended: AugmentedQuery<ApiType, () => Observable<BTreeSet<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2162
|
+
/**
|
|
2163
|
+
* The messages outbound in a given XCMP channel.
|
|
2164
|
+
**/
|
|
2165
|
+
outboundXcmpMessages: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u16 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32, u16]> & QueryableStorageEntry<ApiType, [u32, u16]>;
|
|
2166
|
+
/**
|
|
2167
|
+
* The non-empty XCMP channels in order of becoming non-empty, and the index of the first
|
|
2168
|
+
* and last outbound message. If the two indices are equal, then it indicates an empty
|
|
2169
|
+
* queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
|
|
2170
|
+
* than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
|
|
2171
|
+
* case of the need to send a high-priority signal message this block.
|
|
2172
|
+
* The bool is true if there is a signal message waiting to be sent.
|
|
2173
|
+
**/
|
|
2174
|
+
outboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueOutboundChannelDetails>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2175
|
+
/**
|
|
2176
|
+
* The configuration which controls the dynamics of the outbound queue.
|
|
2177
|
+
**/
|
|
2178
|
+
queueConfig: AugmentedQuery<ApiType, () => Observable<CumulusPalletXcmpQueueQueueConfigData>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2179
|
+
/**
|
|
2180
|
+
* Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
|
|
2181
|
+
**/
|
|
2182
|
+
queueSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2183
|
+
/**
|
|
2184
|
+
* Any signal messages waiting to be sent.
|
|
2185
|
+
**/
|
|
2186
|
+
signalMessages: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2187
|
+
/**
|
|
2188
|
+
* Generic query
|
|
2189
|
+
**/
|
|
2190
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2191
|
+
};
|
|
2192
|
+
} // AugmentedQueries
|
|
2193
|
+
} // declare module
|