@dedot/chaintypes 0.0.1-alpha.22
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/LICENSE +201 -0
- package/README.md +3 -0
- package/aleph/consts.d.ts +533 -0
- package/aleph/consts.js +2 -0
- package/aleph/errors.d.ts +822 -0
- package/aleph/errors.js +2 -0
- package/aleph/events.d.ts +997 -0
- package/aleph/events.js +2 -0
- package/aleph/index.d.ts +19 -0
- package/aleph/index.js +3 -0
- package/aleph/query.d.ts +1271 -0
- package/aleph/query.js +2 -0
- package/aleph/rpc.d.ts +575 -0
- package/aleph/rpc.js +2 -0
- package/aleph/runtime.d.ts +410 -0
- package/aleph/runtime.js +2 -0
- package/aleph/tx.d.ts +2206 -0
- package/aleph/tx.js +2 -0
- package/aleph/types.d.ts +5560 -0
- package/aleph/types.js +2 -0
- package/astar/consts.d.ts +679 -0
- package/astar/consts.js +2 -0
- package/astar/errors.d.ts +1317 -0
- package/astar/errors.js +2 -0
- package/astar/events.d.ts +1707 -0
- package/astar/events.js +2 -0
- package/astar/index.d.ts +19 -0
- package/astar/index.js +3 -0
- package/astar/query.d.ts +1474 -0
- package/astar/query.js +2 -0
- package/astar/rpc.d.ts +775 -0
- package/astar/rpc.js +2 -0
- package/astar/runtime.d.ts +262 -0
- package/astar/runtime.js +2 -0
- package/astar/tx.d.ts +4810 -0
- package/astar/tx.js +2 -0
- package/astar/types.d.ts +12338 -0
- package/astar/types.js +2 -0
- package/cjs/aleph/consts.js +3 -0
- package/cjs/aleph/errors.js +3 -0
- package/cjs/aleph/events.js +3 -0
- package/cjs/aleph/index.js +19 -0
- package/cjs/aleph/query.js +3 -0
- package/cjs/aleph/rpc.js +3 -0
- package/cjs/aleph/runtime.js +3 -0
- package/cjs/aleph/tx.js +3 -0
- package/cjs/aleph/types.js +3 -0
- package/cjs/astar/consts.js +3 -0
- package/cjs/astar/errors.js +3 -0
- package/cjs/astar/events.js +3 -0
- package/cjs/astar/index.js +19 -0
- package/cjs/astar/query.js +3 -0
- package/cjs/astar/rpc.js +3 -0
- package/cjs/astar/runtime.js +3 -0
- package/cjs/astar/tx.js +3 -0
- package/cjs/astar/types.js +3 -0
- package/cjs/index.js +2 -0
- package/cjs/kusama/consts.js +3 -0
- package/cjs/kusama/errors.js +3 -0
- package/cjs/kusama/events.js +3 -0
- package/cjs/kusama/index.js +19 -0
- package/cjs/kusama/query.js +3 -0
- package/cjs/kusama/rpc.js +3 -0
- package/cjs/kusama/runtime.js +3 -0
- package/cjs/kusama/tx.js +3 -0
- package/cjs/kusama/types.js +3 -0
- package/cjs/kusamaAssetHub/consts.js +3 -0
- package/cjs/kusamaAssetHub/errors.js +3 -0
- package/cjs/kusamaAssetHub/events.js +3 -0
- package/cjs/kusamaAssetHub/index.js +19 -0
- package/cjs/kusamaAssetHub/query.js +3 -0
- package/cjs/kusamaAssetHub/rpc.js +3 -0
- package/cjs/kusamaAssetHub/runtime.js +3 -0
- package/cjs/kusamaAssetHub/tx.js +3 -0
- package/cjs/kusamaAssetHub/types.js +3 -0
- package/cjs/moonbeam/consts.js +3 -0
- package/cjs/moonbeam/errors.js +3 -0
- package/cjs/moonbeam/events.js +3 -0
- package/cjs/moonbeam/index.js +19 -0
- package/cjs/moonbeam/query.js +3 -0
- package/cjs/moonbeam/rpc.js +3 -0
- package/cjs/moonbeam/runtime.js +3 -0
- package/cjs/moonbeam/tx.js +3 -0
- package/cjs/moonbeam/types.js +3 -0
- package/cjs/package.json +1 -0
- package/cjs/packageInfo.js +5 -0
- package/cjs/polkadot/consts.js +3 -0
- package/cjs/polkadot/errors.js +3 -0
- package/cjs/polkadot/events.js +3 -0
- package/cjs/polkadot/index.js +19 -0
- package/cjs/polkadot/query.js +3 -0
- package/cjs/polkadot/rpc.js +3 -0
- package/cjs/polkadot/runtime.js +3 -0
- package/cjs/polkadot/tx.js +3 -0
- package/cjs/polkadot/types.js +3 -0
- package/cjs/polkadotAssetHub/consts.js +3 -0
- package/cjs/polkadotAssetHub/errors.js +3 -0
- package/cjs/polkadotAssetHub/events.js +3 -0
- package/cjs/polkadotAssetHub/index.js +19 -0
- package/cjs/polkadotAssetHub/query.js +3 -0
- package/cjs/polkadotAssetHub/rpc.js +3 -0
- package/cjs/polkadotAssetHub/runtime.js +3 -0
- package/cjs/polkadotAssetHub/tx.js +3 -0
- package/cjs/polkadotAssetHub/types.js +3 -0
- package/cjs/rococoAssetHub/consts.js +3 -0
- package/cjs/rococoAssetHub/errors.js +3 -0
- package/cjs/rococoAssetHub/events.js +3 -0
- package/cjs/rococoAssetHub/index.js +19 -0
- package/cjs/rococoAssetHub/query.js +3 -0
- package/cjs/rococoAssetHub/rpc.js +3 -0
- package/cjs/rococoAssetHub/runtime.js +3 -0
- package/cjs/rococoAssetHub/tx.js +3 -0
- package/cjs/rococoAssetHub/types.js +3 -0
- package/cjs/substrate/consts.js +3 -0
- package/cjs/substrate/errors.js +3 -0
- package/cjs/substrate/events.js +3 -0
- package/cjs/substrate/index.js +19 -0
- package/cjs/substrate/query.js +3 -0
- package/cjs/substrate/rpc.js +3 -0
- package/cjs/substrate/runtime.js +3 -0
- package/cjs/substrate/tx.js +3 -0
- package/cjs/substrate/types.js +3 -0
- package/cjs/westendAssetHub/consts.js +3 -0
- package/cjs/westendAssetHub/errors.js +3 -0
- package/cjs/westendAssetHub/events.js +3 -0
- package/cjs/westendAssetHub/index.js +19 -0
- package/cjs/westendAssetHub/query.js +3 -0
- package/cjs/westendAssetHub/rpc.js +3 -0
- package/cjs/westendAssetHub/runtime.js +3 -0
- package/cjs/westendAssetHub/tx.js +3 -0
- package/cjs/westendAssetHub/types.js +3 -0
- package/index.d.ts +5 -0
- package/index.js +1 -0
- package/kusama/consts.d.ts +1427 -0
- package/kusama/consts.js +2 -0
- package/kusama/errors.d.ts +2494 -0
- package/kusama/errors.js +2 -0
- package/kusama/events.d.ts +2960 -0
- package/kusama/events.js +2 -0
- package/kusama/index.d.ts +19 -0
- package/kusama/index.js +3 -0
- package/kusama/query.d.ts +3251 -0
- package/kusama/query.js +2 -0
- package/kusama/rpc.d.ts +726 -0
- package/kusama/rpc.js +2 -0
- package/kusama/runtime.d.ts +844 -0
- package/kusama/runtime.js +2 -0
- package/kusama/tx.d.ts +6014 -0
- package/kusama/tx.js +2 -0
- package/kusama/types.d.ts +15903 -0
- package/kusama/types.js +2 -0
- package/kusamaAssetHub/consts.d.ts +632 -0
- package/kusamaAssetHub/consts.js +2 -0
- package/kusamaAssetHub/errors.d.ts +1164 -0
- package/kusamaAssetHub/errors.js +2 -0
- package/kusamaAssetHub/events.d.ts +2162 -0
- package/kusamaAssetHub/events.js +2 -0
- package/kusamaAssetHub/index.d.ts +19 -0
- package/kusamaAssetHub/index.js +3 -0
- package/kusamaAssetHub/query.d.ts +1301 -0
- package/kusamaAssetHub/query.js +2 -0
- package/kusamaAssetHub/rpc.d.ts +590 -0
- package/kusamaAssetHub/rpc.js +2 -0
- package/kusamaAssetHub/runtime.d.ts +402 -0
- package/kusamaAssetHub/runtime.js +2 -0
- package/kusamaAssetHub/tx.d.ts +4217 -0
- package/kusamaAssetHub/tx.js +2 -0
- package/kusamaAssetHub/types.d.ts +10418 -0
- package/kusamaAssetHub/types.js +2 -0
- package/moonbeam/consts.d.ts +961 -0
- package/moonbeam/consts.js +2 -0
- package/moonbeam/errors.d.ts +1797 -0
- package/moonbeam/errors.js +2 -0
- package/moonbeam/events.d.ts +2840 -0
- package/moonbeam/events.js +2 -0
- package/moonbeam/index.d.ts +19 -0
- package/moonbeam/index.js +3 -0
- package/moonbeam/query.d.ts +2027 -0
- package/moonbeam/query.js +2 -0
- package/moonbeam/rpc.d.ts +809 -0
- package/moonbeam/rpc.js +2 -0
- package/moonbeam/runtime.d.ts +506 -0
- package/moonbeam/runtime.js +2 -0
- package/moonbeam/tx.d.ts +5205 -0
- package/moonbeam/tx.js +2 -0
- package/moonbeam/types.d.ts +12349 -0
- package/moonbeam/types.js +2 -0
- package/package.json +33 -0
- package/packageInfo.d.ts +4 -0
- package/packageInfo.js +3 -0
- package/polkadot/consts.d.ts +1160 -0
- package/polkadot/consts.js +2 -0
- package/polkadot/errors.d.ts +2020 -0
- package/polkadot/errors.js +2 -0
- package/polkadot/events.d.ts +2235 -0
- package/polkadot/events.js +2 -0
- package/polkadot/index.d.ts +19 -0
- package/polkadot/index.js +3 -0
- package/polkadot/query.d.ts +2811 -0
- package/polkadot/query.js +2 -0
- package/polkadot/rpc.d.ts +726 -0
- package/polkadot/rpc.js +2 -0
- package/polkadot/runtime.d.ts +844 -0
- package/polkadot/runtime.js +2 -0
- package/polkadot/tx.d.ts +5009 -0
- package/polkadot/tx.js +2 -0
- package/polkadot/types.d.ts +13729 -0
- package/polkadot/types.js +2 -0
- package/polkadotAssetHub/consts.d.ts +524 -0
- package/polkadotAssetHub/consts.js +2 -0
- package/polkadotAssetHub/errors.d.ts +925 -0
- package/polkadotAssetHub/errors.js +2 -0
- package/polkadotAssetHub/events.d.ts +1787 -0
- package/polkadotAssetHub/events.js +2 -0
- package/polkadotAssetHub/index.d.ts +19 -0
- package/polkadotAssetHub/index.js +3 -0
- package/polkadotAssetHub/query.d.ts +1222 -0
- package/polkadotAssetHub/query.js +2 -0
- package/polkadotAssetHub/rpc.d.ts +590 -0
- package/polkadotAssetHub/rpc.js +2 -0
- package/polkadotAssetHub/runtime.d.ts +359 -0
- package/polkadotAssetHub/runtime.js +2 -0
- package/polkadotAssetHub/tx.d.ts +3492 -0
- package/polkadotAssetHub/tx.js +2 -0
- package/polkadotAssetHub/types.d.ts +9164 -0
- package/polkadotAssetHub/types.js +2 -0
- package/rococoAssetHub/consts.d.ts +658 -0
- package/rococoAssetHub/consts.js +2 -0
- package/rococoAssetHub/errors.d.ts +1231 -0
- package/rococoAssetHub/errors.js +2 -0
- package/rococoAssetHub/events.d.ts +2172 -0
- package/rococoAssetHub/events.js +2 -0
- package/rococoAssetHub/index.d.ts +19 -0
- package/rococoAssetHub/index.js +3 -0
- package/rococoAssetHub/query.d.ts +1269 -0
- package/rococoAssetHub/query.js +2 -0
- package/rococoAssetHub/rpc.d.ts +590 -0
- package/rococoAssetHub/rpc.js +2 -0
- package/rococoAssetHub/runtime.d.ts +428 -0
- package/rococoAssetHub/runtime.js +2 -0
- package/rococoAssetHub/tx.d.ts +4307 -0
- package/rococoAssetHub/tx.js +2 -0
- package/rococoAssetHub/types.d.ts +11066 -0
- package/rococoAssetHub/types.js +2 -0
- package/substrate/consts.d.ts +1971 -0
- package/substrate/consts.js +2 -0
- package/substrate/errors.d.ts +3337 -0
- package/substrate/errors.js +2 -0
- package/substrate/events.d.ts +4777 -0
- package/substrate/events.js +2 -0
- package/substrate/index.d.ts +19 -0
- package/substrate/index.js +3 -0
- package/substrate/query.d.ts +3350 -0
- package/substrate/query.js +2 -0
- package/substrate/rpc.d.ts +718 -0
- package/substrate/rpc.js +2 -0
- package/substrate/runtime.d.ts +708 -0
- package/substrate/runtime.js +2 -0
- package/substrate/tx.d.ts +8800 -0
- package/substrate/tx.js +2 -0
- package/substrate/types.d.ts +20332 -0
- package/substrate/types.js +2 -0
- package/westendAssetHub/consts.d.ts +658 -0
- package/westendAssetHub/consts.js +2 -0
- package/westendAssetHub/errors.d.ts +1231 -0
- package/westendAssetHub/errors.js +2 -0
- package/westendAssetHub/events.d.ts +2172 -0
- package/westendAssetHub/events.js +2 -0
- package/westendAssetHub/index.d.ts +19 -0
- package/westendAssetHub/index.js +3 -0
- package/westendAssetHub/query.d.ts +1269 -0
- package/westendAssetHub/query.js +2 -0
- package/westendAssetHub/rpc.d.ts +590 -0
- package/westendAssetHub/rpc.js +2 -0
- package/westendAssetHub/runtime.d.ts +456 -0
- package/westendAssetHub/runtime.js +2 -0
- package/westendAssetHub/tx.d.ts +4307 -0
- package/westendAssetHub/tx.js +2 -0
- package/westendAssetHub/types.d.ts +11062 -0
- package/westendAssetHub/types.js +2 -0
|
@@ -0,0 +1,3350 @@
|
|
|
1
|
+
import type { GenericChainStorage, GenericStorageQuery } from '@dedot/types';
|
|
2
|
+
import type { AccountId32Like, H256, Bytes, Digest, Phase, FixedBytes, AccountId32, FixedU128, Perbill, Percent, BytesLike, Data, FixedU64 } from '@dedot/codecs';
|
|
3
|
+
import type { FrameSystemAccountInfo, FrameSupportDispatchPerDispatchClass, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, SpConsensusBabeAppPublic, SpConsensusSlotsSlot, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBabeBabeEpochConfiguration, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBalancesIdAmount, PalletBalancesIdAmount002, PalletTransactionPaymentReleases, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, SpNposElectionsElectionScore, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletStakingStakingLedger, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStakingNominations, PalletStakingActiveEraInfo, PalletStakingExposure, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingUnappliedSlash, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, KitchensinkRuntimeSessionKeys, SpCoreCryptoKeyTypeId, FrameSupportPreimagesBounded, PalletDemocracyReferendumInfo, PalletDemocracyVoteVoting, PalletDemocracyVoteThreshold, PalletDemocracyMetadataOwner, KitchensinkRuntimeRuntimeCall, PalletCollectiveVotes, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredState, PalletGrandpaStoredPendingChange, PalletTreasuryProposal, PalletContractsWasmCodeInfo, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletImOnlineSr25519AppSr25519Public, SpAuthorityDiscoveryAppPublic, SpStakingOffenceOffenceDetails, PalletIdentityRegistration, PalletIdentityRegistrarInfo, PalletSocietyGroupParams, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyVote, PalletSocietyIntakeRecord, PalletSocietyTally, PalletRecoveryRecoveryConfig, PalletRecoveryActiveRecovery, PalletVestingVestingInfo, PalletVestingReleases, PalletSchedulerScheduled, PalletPreimageRequestStatus, PalletProxyProxyDefinition, PalletProxyAnnouncement, PalletMultisigMultisig, PalletBountiesBounty, PalletTipsOpenTip, PalletAssetsAssetDetails, PalletAssetsAssetAccount, PalletAssetsApproval, PalletAssetsAssetMetadata, PalletLotteryLotteryConfig, PalletNisBid, PalletNisSummaryRecord, PalletNisReceiptRecord, PalletUniquesCollectionDetails, PalletUniquesItemDetails, PalletUniquesCollectionMetadata, PalletUniquesItemMetadata, PalletNftsCollectionDetails, PalletNftsBitFlagsCollectionRole, PalletNftsItemDetails, PalletNftsCollectionMetadata, PalletNftsItemMetadata, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsPendingSwap, PalletNftsCollectionConfig, PalletNftsItemConfig, PalletNftFractionalizationDetails, PalletSalaryStatusType, PalletSalaryClaimantStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipWish, PalletTransactionStorageTransactionInfo, PalletBagsListListNode, PalletBagsListListBag, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationMigrationLimits, PalletChildBountiesChildBounty, PalletReferendaReferendumInfo, PalletConvictionVotingVoteVoting, PalletAllianceCid, PalletAllianceMemberRole, PalletNominationPoolsPoolMember, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletNominationPoolsClaimPermission, PalletReferendaReferendumInfoTally, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletAssetConversionPoolInfo, PalletAssetConversionNativeOrAssetId, PalletFastUnstakeUnstakeRequest, PalletMessageQueueBookState, PalletMessageQueuePage, PalletBrokerConfigRecord, PalletBrokerScheduleItem, PalletBrokerLeaseRecordItem, PalletBrokerStatusRecord, PalletBrokerSaleInfoRecord, PalletBrokerAllowedRenewalRecord, PalletBrokerAllowedRenewalId, PalletBrokerRegionRecord, PalletBrokerRegionId, PalletBrokerContributionRecord, PalletBrokerPoolIoRecord, PalletBrokerInstaPoolHistoryRecord } from './types';
|
|
4
|
+
export interface ChainStorage extends GenericChainStorage {
|
|
5
|
+
/**
|
|
6
|
+
* Pallet `System`'s storage queries
|
|
7
|
+
**/
|
|
8
|
+
system: {
|
|
9
|
+
/**
|
|
10
|
+
* The full account information for a particular account ID.
|
|
11
|
+
*
|
|
12
|
+
* @param {AccountId32Like} arg
|
|
13
|
+
* @param {Callback<FrameSystemAccountInfo> =} callback
|
|
14
|
+
**/
|
|
15
|
+
account: GenericStorageQuery<(arg: AccountId32Like) => FrameSystemAccountInfo>;
|
|
16
|
+
/**
|
|
17
|
+
* Total extrinsics count for the current block.
|
|
18
|
+
*
|
|
19
|
+
* @param {Callback<number | undefined> =} callback
|
|
20
|
+
**/
|
|
21
|
+
extrinsicCount: GenericStorageQuery<() => number | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* The current weight for the block.
|
|
24
|
+
*
|
|
25
|
+
* @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
|
|
26
|
+
**/
|
|
27
|
+
blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
|
|
28
|
+
/**
|
|
29
|
+
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
30
|
+
*
|
|
31
|
+
* @param {Callback<number | undefined> =} callback
|
|
32
|
+
**/
|
|
33
|
+
allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* Map of block numbers to block hashes.
|
|
36
|
+
*
|
|
37
|
+
* @param {number} arg
|
|
38
|
+
* @param {Callback<H256> =} callback
|
|
39
|
+
**/
|
|
40
|
+
blockHash: GenericStorageQuery<(arg: number) => H256>;
|
|
41
|
+
/**
|
|
42
|
+
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
43
|
+
*
|
|
44
|
+
* @param {number} arg
|
|
45
|
+
* @param {Callback<Bytes> =} callback
|
|
46
|
+
**/
|
|
47
|
+
extrinsicData: GenericStorageQuery<(arg: number) => Bytes>;
|
|
48
|
+
/**
|
|
49
|
+
* The current block number being processed. Set by `execute_block`.
|
|
50
|
+
*
|
|
51
|
+
* @param {Callback<number> =} callback
|
|
52
|
+
**/
|
|
53
|
+
number: GenericStorageQuery<() => number>;
|
|
54
|
+
/**
|
|
55
|
+
* Hash of the previous block.
|
|
56
|
+
*
|
|
57
|
+
* @param {Callback<H256> =} callback
|
|
58
|
+
**/
|
|
59
|
+
parentHash: GenericStorageQuery<() => H256>;
|
|
60
|
+
/**
|
|
61
|
+
* Digest of the current block, also part of the block header.
|
|
62
|
+
*
|
|
63
|
+
* @param {Callback<Digest> =} callback
|
|
64
|
+
**/
|
|
65
|
+
digest: GenericStorageQuery<() => Digest>;
|
|
66
|
+
/**
|
|
67
|
+
* Events deposited for the current block.
|
|
68
|
+
*
|
|
69
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
70
|
+
* It could otherwise inflate the PoV size of a block.
|
|
71
|
+
*
|
|
72
|
+
* Events have a large in-memory size. Box the events to not go out-of-memory
|
|
73
|
+
* just in case someone still reads them from within the runtime.
|
|
74
|
+
*
|
|
75
|
+
* @param {Callback<Array<FrameSystemEventRecord>> =} callback
|
|
76
|
+
**/
|
|
77
|
+
events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
|
|
78
|
+
/**
|
|
79
|
+
* The number of events in the `Events<T>` list.
|
|
80
|
+
*
|
|
81
|
+
* @param {Callback<number> =} callback
|
|
82
|
+
**/
|
|
83
|
+
eventCount: GenericStorageQuery<() => number>;
|
|
84
|
+
/**
|
|
85
|
+
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
86
|
+
* of events in the `<Events<T>>` list.
|
|
87
|
+
*
|
|
88
|
+
* All topic vectors have deterministic storage locations depending on the topic. This
|
|
89
|
+
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
90
|
+
* in case of changes fetch the list of events of interest.
|
|
91
|
+
*
|
|
92
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
93
|
+
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
94
|
+
* no notification will be triggered thus the event might be lost.
|
|
95
|
+
*
|
|
96
|
+
* @param {H256} arg
|
|
97
|
+
* @param {Callback<Array<[number, number]>> =} callback
|
|
98
|
+
**/
|
|
99
|
+
eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>>;
|
|
100
|
+
/**
|
|
101
|
+
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
102
|
+
*
|
|
103
|
+
* @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
|
|
104
|
+
**/
|
|
105
|
+
lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
108
|
+
*
|
|
109
|
+
* @param {Callback<boolean> =} callback
|
|
110
|
+
**/
|
|
111
|
+
upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
114
|
+
* (default) if not.
|
|
115
|
+
*
|
|
116
|
+
* @param {Callback<boolean> =} callback
|
|
117
|
+
**/
|
|
118
|
+
upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
|
|
119
|
+
/**
|
|
120
|
+
* The execution phase of the block.
|
|
121
|
+
*
|
|
122
|
+
* @param {Callback<Phase | undefined> =} callback
|
|
123
|
+
**/
|
|
124
|
+
executionPhase: GenericStorageQuery<() => Phase | undefined>;
|
|
125
|
+
/**
|
|
126
|
+
* Generic pallet storage query
|
|
127
|
+
**/
|
|
128
|
+
[storage: string]: GenericStorageQuery;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Pallet `Babe`'s storage queries
|
|
132
|
+
**/
|
|
133
|
+
babe: {
|
|
134
|
+
/**
|
|
135
|
+
* Current epoch index.
|
|
136
|
+
*
|
|
137
|
+
* @param {Callback<bigint> =} callback
|
|
138
|
+
**/
|
|
139
|
+
epochIndex: GenericStorageQuery<() => bigint>;
|
|
140
|
+
/**
|
|
141
|
+
* Current epoch authorities.
|
|
142
|
+
*
|
|
143
|
+
* @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
|
|
144
|
+
**/
|
|
145
|
+
authorities: GenericStorageQuery<() => Array<[SpConsensusBabeAppPublic, bigint]>>;
|
|
146
|
+
/**
|
|
147
|
+
* The slot at which the first epoch actually started. This is 0
|
|
148
|
+
* until the first block of the chain.
|
|
149
|
+
*
|
|
150
|
+
* @param {Callback<SpConsensusSlotsSlot> =} callback
|
|
151
|
+
**/
|
|
152
|
+
genesisSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
|
|
153
|
+
/**
|
|
154
|
+
* Current slot number.
|
|
155
|
+
*
|
|
156
|
+
* @param {Callback<SpConsensusSlotsSlot> =} callback
|
|
157
|
+
**/
|
|
158
|
+
currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
|
|
159
|
+
/**
|
|
160
|
+
* The epoch randomness for the *current* epoch.
|
|
161
|
+
*
|
|
162
|
+
* # Security
|
|
163
|
+
*
|
|
164
|
+
* This MUST NOT be used for gambling, as it can be influenced by a
|
|
165
|
+
* malicious validator in the short term. It MAY be used in many
|
|
166
|
+
* cryptographic protocols, however, so long as one remembers that this
|
|
167
|
+
* (like everything else on-chain) it is public. For example, it can be
|
|
168
|
+
* used where a number is needed that cannot have been chosen by an
|
|
169
|
+
* adversary, for purposes such as public-coin zero-knowledge proofs.
|
|
170
|
+
*
|
|
171
|
+
* @param {Callback<FixedBytes<32>> =} callback
|
|
172
|
+
**/
|
|
173
|
+
randomness: GenericStorageQuery<() => FixedBytes<32>>;
|
|
174
|
+
/**
|
|
175
|
+
* Pending epoch configuration change that will be applied when the next epoch is enacted.
|
|
176
|
+
*
|
|
177
|
+
* @param {Callback<SpConsensusBabeDigestsNextConfigDescriptor | undefined> =} callback
|
|
178
|
+
**/
|
|
179
|
+
pendingEpochConfigChange: GenericStorageQuery<() => SpConsensusBabeDigestsNextConfigDescriptor | undefined>;
|
|
180
|
+
/**
|
|
181
|
+
* Next epoch randomness.
|
|
182
|
+
*
|
|
183
|
+
* @param {Callback<FixedBytes<32>> =} callback
|
|
184
|
+
**/
|
|
185
|
+
nextRandomness: GenericStorageQuery<() => FixedBytes<32>>;
|
|
186
|
+
/**
|
|
187
|
+
* Next epoch authorities.
|
|
188
|
+
*
|
|
189
|
+
* @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
|
|
190
|
+
**/
|
|
191
|
+
nextAuthorities: GenericStorageQuery<() => Array<[SpConsensusBabeAppPublic, bigint]>>;
|
|
192
|
+
/**
|
|
193
|
+
* Randomness under construction.
|
|
194
|
+
*
|
|
195
|
+
* We make a trade-off between storage accesses and list length.
|
|
196
|
+
* We store the under-construction randomness in segments of up to
|
|
197
|
+
* `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
|
|
198
|
+
*
|
|
199
|
+
* Once a segment reaches this length, we begin the next one.
|
|
200
|
+
* We reset all segments and return to `0` at the beginning of every
|
|
201
|
+
* epoch.
|
|
202
|
+
*
|
|
203
|
+
* @param {Callback<number> =} callback
|
|
204
|
+
**/
|
|
205
|
+
segmentIndex: GenericStorageQuery<() => number>;
|
|
206
|
+
/**
|
|
207
|
+
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
|
208
|
+
*
|
|
209
|
+
* @param {number} arg
|
|
210
|
+
* @param {Callback<Array<FixedBytes<32>>> =} callback
|
|
211
|
+
**/
|
|
212
|
+
underConstruction: GenericStorageQuery<(arg: number) => Array<FixedBytes<32>>>;
|
|
213
|
+
/**
|
|
214
|
+
* Temporary value (cleared at block finalization) which is `Some`
|
|
215
|
+
* if per-block initialization has already been called for current block.
|
|
216
|
+
*
|
|
217
|
+
* @param {Callback<SpConsensusBabeDigestsPreDigest | undefined | undefined> =} callback
|
|
218
|
+
**/
|
|
219
|
+
initialized: GenericStorageQuery<() => SpConsensusBabeDigestsPreDigest | undefined | undefined>;
|
|
220
|
+
/**
|
|
221
|
+
* This field should always be populated during block processing unless
|
|
222
|
+
* secondary plain slots are enabled (which don't contain a VRF output).
|
|
223
|
+
*
|
|
224
|
+
* It is set in `on_finalize`, before it will contain the value from the last block.
|
|
225
|
+
*
|
|
226
|
+
* @param {Callback<FixedBytes<32> | undefined> =} callback
|
|
227
|
+
**/
|
|
228
|
+
authorVrfRandomness: GenericStorageQuery<() => FixedBytes<32> | undefined>;
|
|
229
|
+
/**
|
|
230
|
+
* The block numbers when the last and current epoch have started, respectively `N-1` and
|
|
231
|
+
* `N`.
|
|
232
|
+
* NOTE: We track this is in order to annotate the block number when a given pool of
|
|
233
|
+
* entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
|
|
234
|
+
* slots, which may be skipped, the block numbers may not line up with the slot numbers.
|
|
235
|
+
*
|
|
236
|
+
* @param {Callback<[number, number]> =} callback
|
|
237
|
+
**/
|
|
238
|
+
epochStart: GenericStorageQuery<() => [number, number]>;
|
|
239
|
+
/**
|
|
240
|
+
* How late the current block is compared to its parent.
|
|
241
|
+
*
|
|
242
|
+
* This entry is populated as part of block execution and is cleaned up
|
|
243
|
+
* on block finalization. Querying this storage entry outside of block
|
|
244
|
+
* execution context should always yield zero.
|
|
245
|
+
*
|
|
246
|
+
* @param {Callback<number> =} callback
|
|
247
|
+
**/
|
|
248
|
+
lateness: GenericStorageQuery<() => number>;
|
|
249
|
+
/**
|
|
250
|
+
* The configuration for the current epoch. Should never be `None` as it is initialized in
|
|
251
|
+
* genesis.
|
|
252
|
+
*
|
|
253
|
+
* @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
|
|
254
|
+
**/
|
|
255
|
+
epochConfig: GenericStorageQuery<() => SpConsensusBabeBabeEpochConfiguration | undefined>;
|
|
256
|
+
/**
|
|
257
|
+
* The configuration for the next epoch, `None` if the config will not change
|
|
258
|
+
* (you can fallback to `EpochConfig` instead in that case).
|
|
259
|
+
*
|
|
260
|
+
* @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
|
|
261
|
+
**/
|
|
262
|
+
nextEpochConfig: GenericStorageQuery<() => SpConsensusBabeBabeEpochConfiguration | undefined>;
|
|
263
|
+
/**
|
|
264
|
+
* A list of the last 100 skipped epochs and the corresponding session index
|
|
265
|
+
* when the epoch was skipped.
|
|
266
|
+
*
|
|
267
|
+
* This is only used for validating equivocation proofs. An equivocation proof
|
|
268
|
+
* must contains a key-ownership proof for a given session, therefore we need a
|
|
269
|
+
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
|
270
|
+
* a validator was the owner of a given key on a given session, and what the
|
|
271
|
+
* active epoch index was during that session.
|
|
272
|
+
*
|
|
273
|
+
* @param {Callback<Array<[bigint, number]>> =} callback
|
|
274
|
+
**/
|
|
275
|
+
skippedEpochs: GenericStorageQuery<() => Array<[bigint, number]>>;
|
|
276
|
+
/**
|
|
277
|
+
* Generic pallet storage query
|
|
278
|
+
**/
|
|
279
|
+
[storage: string]: GenericStorageQuery;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Pallet `Timestamp`'s storage queries
|
|
283
|
+
**/
|
|
284
|
+
timestamp: {
|
|
285
|
+
/**
|
|
286
|
+
* Current time for the current block.
|
|
287
|
+
*
|
|
288
|
+
* @param {Callback<bigint> =} callback
|
|
289
|
+
**/
|
|
290
|
+
now: GenericStorageQuery<() => bigint>;
|
|
291
|
+
/**
|
|
292
|
+
* Did the timestamp get updated in this block?
|
|
293
|
+
*
|
|
294
|
+
* @param {Callback<boolean> =} callback
|
|
295
|
+
**/
|
|
296
|
+
didUpdate: GenericStorageQuery<() => boolean>;
|
|
297
|
+
/**
|
|
298
|
+
* Generic pallet storage query
|
|
299
|
+
**/
|
|
300
|
+
[storage: string]: GenericStorageQuery;
|
|
301
|
+
};
|
|
302
|
+
/**
|
|
303
|
+
* Pallet `Authorship`'s storage queries
|
|
304
|
+
**/
|
|
305
|
+
authorship: {
|
|
306
|
+
/**
|
|
307
|
+
* Author of current block.
|
|
308
|
+
*
|
|
309
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
310
|
+
**/
|
|
311
|
+
author: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
312
|
+
/**
|
|
313
|
+
* Generic pallet storage query
|
|
314
|
+
**/
|
|
315
|
+
[storage: string]: GenericStorageQuery;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Pallet `Indices`'s storage queries
|
|
319
|
+
**/
|
|
320
|
+
indices: {
|
|
321
|
+
/**
|
|
322
|
+
* The lookup from index to account.
|
|
323
|
+
*
|
|
324
|
+
* @param {number} arg
|
|
325
|
+
* @param {Callback<[AccountId32, bigint, boolean] | undefined> =} callback
|
|
326
|
+
**/
|
|
327
|
+
accounts: GenericStorageQuery<(arg: number) => [AccountId32, bigint, boolean] | undefined>;
|
|
328
|
+
/**
|
|
329
|
+
* Generic pallet storage query
|
|
330
|
+
**/
|
|
331
|
+
[storage: string]: GenericStorageQuery;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Pallet `Balances`'s storage queries
|
|
335
|
+
**/
|
|
336
|
+
balances: {
|
|
337
|
+
/**
|
|
338
|
+
* The total units issued in the system.
|
|
339
|
+
*
|
|
340
|
+
* @param {Callback<bigint> =} callback
|
|
341
|
+
**/
|
|
342
|
+
totalIssuance: GenericStorageQuery<() => bigint>;
|
|
343
|
+
/**
|
|
344
|
+
* The total units of outstanding deactivated balance in the system.
|
|
345
|
+
*
|
|
346
|
+
* @param {Callback<bigint> =} callback
|
|
347
|
+
**/
|
|
348
|
+
inactiveIssuance: GenericStorageQuery<() => bigint>;
|
|
349
|
+
/**
|
|
350
|
+
* The Balances pallet example of storing the balance of an account.
|
|
351
|
+
*
|
|
352
|
+
* # Example
|
|
353
|
+
*
|
|
354
|
+
* ```nocompile
|
|
355
|
+
* impl pallet_balances::Config for Runtime {
|
|
356
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
357
|
+
* }
|
|
358
|
+
* ```
|
|
359
|
+
*
|
|
360
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
361
|
+
*
|
|
362
|
+
* # Example
|
|
363
|
+
*
|
|
364
|
+
* ```nocompile
|
|
365
|
+
* impl pallet_balances::Config for Runtime {
|
|
366
|
+
* type AccountStore = System
|
|
367
|
+
* }
|
|
368
|
+
* ```
|
|
369
|
+
*
|
|
370
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
371
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
372
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
373
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
374
|
+
*
|
|
375
|
+
* @param {AccountId32Like} arg
|
|
376
|
+
* @param {Callback<PalletBalancesAccountData> =} callback
|
|
377
|
+
**/
|
|
378
|
+
account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
|
|
379
|
+
/**
|
|
380
|
+
* Any liquidity locks on some account balances.
|
|
381
|
+
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
382
|
+
*
|
|
383
|
+
* @param {AccountId32Like} arg
|
|
384
|
+
* @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
|
|
385
|
+
**/
|
|
386
|
+
locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
|
|
387
|
+
/**
|
|
388
|
+
* Named reserves on some account balances.
|
|
389
|
+
*
|
|
390
|
+
* @param {AccountId32Like} arg
|
|
391
|
+
* @param {Callback<Array<PalletBalancesReserveData>> =} callback
|
|
392
|
+
**/
|
|
393
|
+
reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
|
|
394
|
+
/**
|
|
395
|
+
* Holds on account balances.
|
|
396
|
+
*
|
|
397
|
+
* @param {AccountId32Like} arg
|
|
398
|
+
* @param {Callback<Array<PalletBalancesIdAmount>> =} callback
|
|
399
|
+
**/
|
|
400
|
+
holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
|
|
401
|
+
/**
|
|
402
|
+
* Freeze locks on account balances.
|
|
403
|
+
*
|
|
404
|
+
* @param {AccountId32Like} arg
|
|
405
|
+
* @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
|
|
406
|
+
**/
|
|
407
|
+
freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount002>>;
|
|
408
|
+
/**
|
|
409
|
+
* Generic pallet storage query
|
|
410
|
+
**/
|
|
411
|
+
[storage: string]: GenericStorageQuery;
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* Pallet `TransactionPayment`'s storage queries
|
|
415
|
+
**/
|
|
416
|
+
transactionPayment: {
|
|
417
|
+
/**
|
|
418
|
+
*
|
|
419
|
+
* @param {Callback<FixedU128> =} callback
|
|
420
|
+
**/
|
|
421
|
+
nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
|
|
422
|
+
/**
|
|
423
|
+
*
|
|
424
|
+
* @param {Callback<PalletTransactionPaymentReleases> =} callback
|
|
425
|
+
**/
|
|
426
|
+
storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
|
|
427
|
+
/**
|
|
428
|
+
* Generic pallet storage query
|
|
429
|
+
**/
|
|
430
|
+
[storage: string]: GenericStorageQuery;
|
|
431
|
+
};
|
|
432
|
+
/**
|
|
433
|
+
* Pallet `ElectionProviderMultiPhase`'s storage queries
|
|
434
|
+
**/
|
|
435
|
+
electionProviderMultiPhase: {
|
|
436
|
+
/**
|
|
437
|
+
* Internal counter for the number of rounds.
|
|
438
|
+
*
|
|
439
|
+
* This is useful for de-duplication of transactions submitted to the pool, and general
|
|
440
|
+
* diagnostics of the pallet.
|
|
441
|
+
*
|
|
442
|
+
* This is merely incremented once per every time that an upstream `elect` is called.
|
|
443
|
+
*
|
|
444
|
+
* @param {Callback<number> =} callback
|
|
445
|
+
**/
|
|
446
|
+
round: GenericStorageQuery<() => number>;
|
|
447
|
+
/**
|
|
448
|
+
* Current phase.
|
|
449
|
+
*
|
|
450
|
+
* @param {Callback<PalletElectionProviderMultiPhasePhase> =} callback
|
|
451
|
+
**/
|
|
452
|
+
currentPhase: GenericStorageQuery<() => PalletElectionProviderMultiPhasePhase>;
|
|
453
|
+
/**
|
|
454
|
+
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
|
455
|
+
*
|
|
456
|
+
* Always sorted by score.
|
|
457
|
+
*
|
|
458
|
+
* @param {Callback<PalletElectionProviderMultiPhaseReadySolution | undefined> =} callback
|
|
459
|
+
**/
|
|
460
|
+
queuedSolution: GenericStorageQuery<() => PalletElectionProviderMultiPhaseReadySolution | undefined>;
|
|
461
|
+
/**
|
|
462
|
+
* Snapshot data of the round.
|
|
463
|
+
*
|
|
464
|
+
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
|
|
465
|
+
*
|
|
466
|
+
* @param {Callback<PalletElectionProviderMultiPhaseRoundSnapshot | undefined> =} callback
|
|
467
|
+
**/
|
|
468
|
+
snapshot: GenericStorageQuery<() => PalletElectionProviderMultiPhaseRoundSnapshot | undefined>;
|
|
469
|
+
/**
|
|
470
|
+
* Desired number of targets to elect for this round.
|
|
471
|
+
*
|
|
472
|
+
* Only exists when [`Snapshot`] is present.
|
|
473
|
+
*
|
|
474
|
+
* @param {Callback<number | undefined> =} callback
|
|
475
|
+
**/
|
|
476
|
+
desiredTargets: GenericStorageQuery<() => number | undefined>;
|
|
477
|
+
/**
|
|
478
|
+
* The metadata of the [`RoundSnapshot`]
|
|
479
|
+
*
|
|
480
|
+
* Only exists when [`Snapshot`] is present.
|
|
481
|
+
*
|
|
482
|
+
* @param {Callback<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined> =} callback
|
|
483
|
+
**/
|
|
484
|
+
snapshotMetadata: GenericStorageQuery<() => PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined>;
|
|
485
|
+
/**
|
|
486
|
+
* The next index to be assigned to an incoming signed submission.
|
|
487
|
+
*
|
|
488
|
+
* Every accepted submission is assigned a unique index; that index is bound to that particular
|
|
489
|
+
* submission for the duration of the election. On election finalization, the next index is
|
|
490
|
+
* reset to 0.
|
|
491
|
+
*
|
|
492
|
+
* We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its
|
|
493
|
+
* capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,
|
|
494
|
+
* because iteration is slow. Instead, we store the value here.
|
|
495
|
+
*
|
|
496
|
+
* @param {Callback<number> =} callback
|
|
497
|
+
**/
|
|
498
|
+
signedSubmissionNextIndex: GenericStorageQuery<() => number>;
|
|
499
|
+
/**
|
|
500
|
+
* A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
|
|
501
|
+
* value in `SignedSubmissions`.
|
|
502
|
+
*
|
|
503
|
+
* We never need to process more than a single signed submission at a time. Signed submissions
|
|
504
|
+
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
|
505
|
+
* them one at a time instead of reading and decoding all of them at once.
|
|
506
|
+
*
|
|
507
|
+
* @param {Callback<Array<[SpNposElectionsElectionScore, number, number]>> =} callback
|
|
508
|
+
**/
|
|
509
|
+
signedSubmissionIndices: GenericStorageQuery<() => Array<[SpNposElectionsElectionScore, number, number]>>;
|
|
510
|
+
/**
|
|
511
|
+
* Unchecked, signed solutions.
|
|
512
|
+
*
|
|
513
|
+
* Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while
|
|
514
|
+
* allowing us to keep only a single one in memory at a time.
|
|
515
|
+
*
|
|
516
|
+
* Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
|
|
517
|
+
* affect; we shouldn't need a cryptographically secure hasher.
|
|
518
|
+
*
|
|
519
|
+
* @param {number} arg
|
|
520
|
+
* @param {Callback<PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined> =} callback
|
|
521
|
+
**/
|
|
522
|
+
signedSubmissionsMap: GenericStorageQuery<(arg: number) => PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined>;
|
|
523
|
+
/**
|
|
524
|
+
* The minimum score that each 'untrusted' solution must attain in order to be considered
|
|
525
|
+
* feasible.
|
|
526
|
+
*
|
|
527
|
+
* Can be set via `set_minimum_untrusted_score`.
|
|
528
|
+
*
|
|
529
|
+
* @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
|
|
530
|
+
**/
|
|
531
|
+
minimumUntrustedScore: GenericStorageQuery<() => SpNposElectionsElectionScore | undefined>;
|
|
532
|
+
/**
|
|
533
|
+
* Generic pallet storage query
|
|
534
|
+
**/
|
|
535
|
+
[storage: string]: GenericStorageQuery;
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* Pallet `Staking`'s storage queries
|
|
539
|
+
**/
|
|
540
|
+
staking: {
|
|
541
|
+
/**
|
|
542
|
+
* The ideal number of active validators.
|
|
543
|
+
*
|
|
544
|
+
* @param {Callback<number> =} callback
|
|
545
|
+
**/
|
|
546
|
+
validatorCount: GenericStorageQuery<() => number>;
|
|
547
|
+
/**
|
|
548
|
+
* Minimum number of staking participants before emergency conditions are imposed.
|
|
549
|
+
*
|
|
550
|
+
* @param {Callback<number> =} callback
|
|
551
|
+
**/
|
|
552
|
+
minimumValidatorCount: GenericStorageQuery<() => number>;
|
|
553
|
+
/**
|
|
554
|
+
* Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
|
|
555
|
+
* easy to initialize and the performance hit is minimal (we expect no more than four
|
|
556
|
+
* invulnerables) and restricted to testnets.
|
|
557
|
+
*
|
|
558
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
559
|
+
**/
|
|
560
|
+
invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
|
|
561
|
+
/**
|
|
562
|
+
* Map from all locked "stash" accounts to the controller account.
|
|
563
|
+
*
|
|
564
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
565
|
+
*
|
|
566
|
+
* @param {AccountId32Like} arg
|
|
567
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
568
|
+
**/
|
|
569
|
+
bonded: GenericStorageQuery<(arg: AccountId32Like) => AccountId32 | undefined>;
|
|
570
|
+
/**
|
|
571
|
+
* The minimum active bond to become and maintain the role of a nominator.
|
|
572
|
+
*
|
|
573
|
+
* @param {Callback<bigint> =} callback
|
|
574
|
+
**/
|
|
575
|
+
minNominatorBond: GenericStorageQuery<() => bigint>;
|
|
576
|
+
/**
|
|
577
|
+
* The minimum active bond to become and maintain the role of a validator.
|
|
578
|
+
*
|
|
579
|
+
* @param {Callback<bigint> =} callback
|
|
580
|
+
**/
|
|
581
|
+
minValidatorBond: GenericStorageQuery<() => bigint>;
|
|
582
|
+
/**
|
|
583
|
+
* The minimum active nominator stake of the last successful election.
|
|
584
|
+
*
|
|
585
|
+
* @param {Callback<bigint> =} callback
|
|
586
|
+
**/
|
|
587
|
+
minimumActiveStake: GenericStorageQuery<() => bigint>;
|
|
588
|
+
/**
|
|
589
|
+
* The minimum amount of commission that validators can set.
|
|
590
|
+
*
|
|
591
|
+
* If set to `0`, no limit exists.
|
|
592
|
+
*
|
|
593
|
+
* @param {Callback<Perbill> =} callback
|
|
594
|
+
**/
|
|
595
|
+
minCommission: GenericStorageQuery<() => Perbill>;
|
|
596
|
+
/**
|
|
597
|
+
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
|
598
|
+
*
|
|
599
|
+
* @param {AccountId32Like} arg
|
|
600
|
+
* @param {Callback<PalletStakingStakingLedger | undefined> =} callback
|
|
601
|
+
**/
|
|
602
|
+
ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingStakingLedger | undefined>;
|
|
603
|
+
/**
|
|
604
|
+
* Where the reward payment should be made. Keyed by stash.
|
|
605
|
+
*
|
|
606
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
607
|
+
*
|
|
608
|
+
* @param {AccountId32Like} arg
|
|
609
|
+
* @param {Callback<PalletStakingRewardDestination> =} callback
|
|
610
|
+
**/
|
|
611
|
+
payee: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingRewardDestination>;
|
|
612
|
+
/**
|
|
613
|
+
* The map from (wannabe) validator stash key to the preferences of that validator.
|
|
614
|
+
*
|
|
615
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
616
|
+
*
|
|
617
|
+
* @param {AccountId32Like} arg
|
|
618
|
+
* @param {Callback<PalletStakingValidatorPrefs> =} callback
|
|
619
|
+
**/
|
|
620
|
+
validators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingValidatorPrefs>;
|
|
621
|
+
/**
|
|
622
|
+
* Counter for the related counted storage map
|
|
623
|
+
*
|
|
624
|
+
* @param {Callback<number> =} callback
|
|
625
|
+
**/
|
|
626
|
+
counterForValidators: GenericStorageQuery<() => number>;
|
|
627
|
+
/**
|
|
628
|
+
* The maximum validator count before we stop allowing new validators to join.
|
|
629
|
+
*
|
|
630
|
+
* When this value is not set, no limits are enforced.
|
|
631
|
+
*
|
|
632
|
+
* @param {Callback<number | undefined> =} callback
|
|
633
|
+
**/
|
|
634
|
+
maxValidatorsCount: GenericStorageQuery<() => number | undefined>;
|
|
635
|
+
/**
|
|
636
|
+
* The map from nominator stash key to their nomination preferences, namely the validators that
|
|
637
|
+
* they wish to support.
|
|
638
|
+
*
|
|
639
|
+
* Note that the keys of this storage map might become non-decodable in case the
|
|
640
|
+
* account's [`NominationsQuota::MaxNominations`] configuration is decreased.
|
|
641
|
+
* In this rare case, these nominators
|
|
642
|
+
* are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
|
|
643
|
+
* indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
|
|
644
|
+
* nominators will effectively not-exist, until they re-submit their preferences such that it
|
|
645
|
+
* is within the bounds of the newly set `Config::MaxNominations`.
|
|
646
|
+
*
|
|
647
|
+
* This implies that `::iter_keys().count()` and `::iter().count()` might return different
|
|
648
|
+
* values for this map. Moreover, the main `::count()` is aligned with the former, namely the
|
|
649
|
+
* number of keys that exist.
|
|
650
|
+
*
|
|
651
|
+
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
|
652
|
+
* [`Call::chill_other`] dispatchable by anyone.
|
|
653
|
+
*
|
|
654
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
655
|
+
*
|
|
656
|
+
* @param {AccountId32Like} arg
|
|
657
|
+
* @param {Callback<PalletStakingNominations | undefined> =} callback
|
|
658
|
+
**/
|
|
659
|
+
nominators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingNominations | undefined>;
|
|
660
|
+
/**
|
|
661
|
+
* Counter for the related counted storage map
|
|
662
|
+
*
|
|
663
|
+
* @param {Callback<number> =} callback
|
|
664
|
+
**/
|
|
665
|
+
counterForNominators: GenericStorageQuery<() => number>;
|
|
666
|
+
/**
|
|
667
|
+
* The maximum nominator count before we stop allowing new validators to join.
|
|
668
|
+
*
|
|
669
|
+
* When this value is not set, no limits are enforced.
|
|
670
|
+
*
|
|
671
|
+
* @param {Callback<number | undefined> =} callback
|
|
672
|
+
**/
|
|
673
|
+
maxNominatorsCount: GenericStorageQuery<() => number | undefined>;
|
|
674
|
+
/**
|
|
675
|
+
* The current era index.
|
|
676
|
+
*
|
|
677
|
+
* This is the latest planned era, depending on how the Session pallet queues the validator
|
|
678
|
+
* set, it might be active or not.
|
|
679
|
+
*
|
|
680
|
+
* @param {Callback<number | undefined> =} callback
|
|
681
|
+
**/
|
|
682
|
+
currentEra: GenericStorageQuery<() => number | undefined>;
|
|
683
|
+
/**
|
|
684
|
+
* The active era information, it holds index and start.
|
|
685
|
+
*
|
|
686
|
+
* The active era is the era being currently rewarded. Validator set of this era must be
|
|
687
|
+
* equal to [`SessionInterface::validators`].
|
|
688
|
+
*
|
|
689
|
+
* @param {Callback<PalletStakingActiveEraInfo | undefined> =} callback
|
|
690
|
+
**/
|
|
691
|
+
activeEra: GenericStorageQuery<() => PalletStakingActiveEraInfo | undefined>;
|
|
692
|
+
/**
|
|
693
|
+
* The session index at which the era start for the last `HISTORY_DEPTH` eras.
|
|
694
|
+
*
|
|
695
|
+
* Note: This tracks the starting session (i.e. session index when era start being active)
|
|
696
|
+
* for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
|
|
697
|
+
*
|
|
698
|
+
* @param {number} arg
|
|
699
|
+
* @param {Callback<number | undefined> =} callback
|
|
700
|
+
**/
|
|
701
|
+
erasStartSessionIndex: GenericStorageQuery<(arg: number) => number | undefined>;
|
|
702
|
+
/**
|
|
703
|
+
* Exposure of validator at era.
|
|
704
|
+
*
|
|
705
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
706
|
+
*
|
|
707
|
+
* Is it removed after `HISTORY_DEPTH` eras.
|
|
708
|
+
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
709
|
+
*
|
|
710
|
+
* @param {[number, AccountId32Like]} arg
|
|
711
|
+
* @param {Callback<PalletStakingExposure> =} callback
|
|
712
|
+
**/
|
|
713
|
+
erasStakers: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingExposure>;
|
|
714
|
+
/**
|
|
715
|
+
* Clipped Exposure of validator at era.
|
|
716
|
+
*
|
|
717
|
+
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
|
|
718
|
+
* `T::MaxNominatorRewardedPerValidator` biggest stakers.
|
|
719
|
+
* (Note: the field `total` and `own` of the exposure remains unchanged).
|
|
720
|
+
* This is used to limit the i/o cost for the nominator payout.
|
|
721
|
+
*
|
|
722
|
+
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
|
|
723
|
+
*
|
|
724
|
+
* Is it removed after `HISTORY_DEPTH` eras.
|
|
725
|
+
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
726
|
+
*
|
|
727
|
+
* @param {[number, AccountId32Like]} arg
|
|
728
|
+
* @param {Callback<PalletStakingExposure> =} callback
|
|
729
|
+
**/
|
|
730
|
+
erasStakersClipped: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingExposure>;
|
|
731
|
+
/**
|
|
732
|
+
* Similar to `ErasStakers`, this holds the preferences of validators.
|
|
733
|
+
*
|
|
734
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
735
|
+
*
|
|
736
|
+
* Is it removed after `HISTORY_DEPTH` eras.
|
|
737
|
+
*
|
|
738
|
+
* @param {[number, AccountId32Like]} arg
|
|
739
|
+
* @param {Callback<PalletStakingValidatorPrefs> =} callback
|
|
740
|
+
**/
|
|
741
|
+
erasValidatorPrefs: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingValidatorPrefs>;
|
|
742
|
+
/**
|
|
743
|
+
* The total validator era payout for the last `HISTORY_DEPTH` eras.
|
|
744
|
+
*
|
|
745
|
+
* Eras that haven't finished yet or has been removed doesn't have reward.
|
|
746
|
+
*
|
|
747
|
+
* @param {number} arg
|
|
748
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
749
|
+
**/
|
|
750
|
+
erasValidatorReward: GenericStorageQuery<(arg: number) => bigint | undefined>;
|
|
751
|
+
/**
|
|
752
|
+
* Rewards for the last `HISTORY_DEPTH` eras.
|
|
753
|
+
* If reward hasn't been set or has been removed then 0 reward is returned.
|
|
754
|
+
*
|
|
755
|
+
* @param {number} arg
|
|
756
|
+
* @param {Callback<PalletStakingEraRewardPoints> =} callback
|
|
757
|
+
**/
|
|
758
|
+
erasRewardPoints: GenericStorageQuery<(arg: number) => PalletStakingEraRewardPoints>;
|
|
759
|
+
/**
|
|
760
|
+
* The total amount staked for the last `HISTORY_DEPTH` eras.
|
|
761
|
+
* If total hasn't been set or has been removed then 0 stake is returned.
|
|
762
|
+
*
|
|
763
|
+
* @param {number} arg
|
|
764
|
+
* @param {Callback<bigint> =} callback
|
|
765
|
+
**/
|
|
766
|
+
erasTotalStake: GenericStorageQuery<(arg: number) => bigint>;
|
|
767
|
+
/**
|
|
768
|
+
* Mode of era forcing.
|
|
769
|
+
*
|
|
770
|
+
* @param {Callback<PalletStakingForcing> =} callback
|
|
771
|
+
**/
|
|
772
|
+
forceEra: GenericStorageQuery<() => PalletStakingForcing>;
|
|
773
|
+
/**
|
|
774
|
+
* The percentage of the slash that is distributed to reporters.
|
|
775
|
+
*
|
|
776
|
+
* The rest of the slashed value is handled by the `Slash`.
|
|
777
|
+
*
|
|
778
|
+
* @param {Callback<Perbill> =} callback
|
|
779
|
+
**/
|
|
780
|
+
slashRewardFraction: GenericStorageQuery<() => Perbill>;
|
|
781
|
+
/**
|
|
782
|
+
* The amount of currency given to reporters of a slash event which was
|
|
783
|
+
* canceled by extraordinary circumstances (e.g. governance).
|
|
784
|
+
*
|
|
785
|
+
* @param {Callback<bigint> =} callback
|
|
786
|
+
**/
|
|
787
|
+
canceledSlashPayout: GenericStorageQuery<() => bigint>;
|
|
788
|
+
/**
|
|
789
|
+
* All unapplied slashes that are queued for later.
|
|
790
|
+
*
|
|
791
|
+
* @param {number} arg
|
|
792
|
+
* @param {Callback<Array<PalletStakingUnappliedSlash>> =} callback
|
|
793
|
+
**/
|
|
794
|
+
unappliedSlashes: GenericStorageQuery<(arg: number) => Array<PalletStakingUnappliedSlash>>;
|
|
795
|
+
/**
|
|
796
|
+
* A mapping from still-bonded eras to the first session index of that era.
|
|
797
|
+
*
|
|
798
|
+
* Must contains information for eras for the range:
|
|
799
|
+
* `[active_era - bounding_duration; active_era]`
|
|
800
|
+
*
|
|
801
|
+
* @param {Callback<Array<[number, number]>> =} callback
|
|
802
|
+
**/
|
|
803
|
+
bondedEras: GenericStorageQuery<() => Array<[number, number]>>;
|
|
804
|
+
/**
|
|
805
|
+
* All slashing events on validators, mapped by era to the highest slash proportion
|
|
806
|
+
* and slash value of the era.
|
|
807
|
+
*
|
|
808
|
+
* @param {[number, AccountId32Like]} arg
|
|
809
|
+
* @param {Callback<[Perbill, bigint] | undefined> =} callback
|
|
810
|
+
**/
|
|
811
|
+
validatorSlashInEra: GenericStorageQuery<(arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined>;
|
|
812
|
+
/**
|
|
813
|
+
* All slashing events on nominators, mapped by era to the highest slash value of the era.
|
|
814
|
+
*
|
|
815
|
+
* @param {[number, AccountId32Like]} arg
|
|
816
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
817
|
+
**/
|
|
818
|
+
nominatorSlashInEra: GenericStorageQuery<(arg: [number, AccountId32Like]) => bigint | undefined>;
|
|
819
|
+
/**
|
|
820
|
+
* Slashing spans for stash accounts.
|
|
821
|
+
*
|
|
822
|
+
* @param {AccountId32Like} arg
|
|
823
|
+
* @param {Callback<PalletStakingSlashingSlashingSpans | undefined> =} callback
|
|
824
|
+
**/
|
|
825
|
+
slashingSpans: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingSlashingSlashingSpans | undefined>;
|
|
826
|
+
/**
|
|
827
|
+
* Records information about the maximum slash of a stash within a slashing span,
|
|
828
|
+
* as well as how much reward has been paid out.
|
|
829
|
+
*
|
|
830
|
+
* @param {[AccountId32Like, number]} arg
|
|
831
|
+
* @param {Callback<PalletStakingSlashingSpanRecord> =} callback
|
|
832
|
+
**/
|
|
833
|
+
spanSlash: GenericStorageQuery<(arg: [AccountId32Like, number]) => PalletStakingSlashingSpanRecord>;
|
|
834
|
+
/**
|
|
835
|
+
* The last planned session scheduled by the session pallet.
|
|
836
|
+
*
|
|
837
|
+
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
|
838
|
+
*
|
|
839
|
+
* @param {Callback<number> =} callback
|
|
840
|
+
**/
|
|
841
|
+
currentPlannedSession: GenericStorageQuery<() => number>;
|
|
842
|
+
/**
|
|
843
|
+
* Indices of validators that have offended in the active era and whether they are currently
|
|
844
|
+
* disabled.
|
|
845
|
+
*
|
|
846
|
+
* This value should be a superset of disabled validators since not all offences lead to the
|
|
847
|
+
* validator being disabled (if there was no slash). This is needed to track the percentage of
|
|
848
|
+
* validators that have offended in the current era, ensuring a new era is forced if
|
|
849
|
+
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
|
|
850
|
+
* whether a given validator has previously offended using binary search. It gets cleared when
|
|
851
|
+
* the era ends.
|
|
852
|
+
*
|
|
853
|
+
* @param {Callback<Array<[number, boolean]>> =} callback
|
|
854
|
+
**/
|
|
855
|
+
offendingValidators: GenericStorageQuery<() => Array<[number, boolean]>>;
|
|
856
|
+
/**
|
|
857
|
+
* The threshold for when users can start calling `chill_other` for other validators /
|
|
858
|
+
* nominators. The threshold is compared to the actual number of validators / nominators
|
|
859
|
+
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
|
|
860
|
+
*
|
|
861
|
+
* @param {Callback<Percent | undefined> =} callback
|
|
862
|
+
**/
|
|
863
|
+
chillThreshold: GenericStorageQuery<() => Percent | undefined>;
|
|
864
|
+
/**
|
|
865
|
+
* Generic pallet storage query
|
|
866
|
+
**/
|
|
867
|
+
[storage: string]: GenericStorageQuery;
|
|
868
|
+
};
|
|
869
|
+
/**
|
|
870
|
+
* Pallet `Session`'s storage queries
|
|
871
|
+
**/
|
|
872
|
+
session: {
|
|
873
|
+
/**
|
|
874
|
+
* The current set of validators.
|
|
875
|
+
*
|
|
876
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
877
|
+
**/
|
|
878
|
+
validators: GenericStorageQuery<() => Array<AccountId32>>;
|
|
879
|
+
/**
|
|
880
|
+
* Current index of the session.
|
|
881
|
+
*
|
|
882
|
+
* @param {Callback<number> =} callback
|
|
883
|
+
**/
|
|
884
|
+
currentIndex: GenericStorageQuery<() => number>;
|
|
885
|
+
/**
|
|
886
|
+
* True if the underlying economic identities or weighting behind the validators
|
|
887
|
+
* has changed in the queued validator set.
|
|
888
|
+
*
|
|
889
|
+
* @param {Callback<boolean> =} callback
|
|
890
|
+
**/
|
|
891
|
+
queuedChanged: GenericStorageQuery<() => boolean>;
|
|
892
|
+
/**
|
|
893
|
+
* The queued keys for the next session. When the next session begins, these keys
|
|
894
|
+
* will be used to determine the validator's session keys.
|
|
895
|
+
*
|
|
896
|
+
* @param {Callback<Array<[AccountId32, KitchensinkRuntimeSessionKeys]>> =} callback
|
|
897
|
+
**/
|
|
898
|
+
queuedKeys: GenericStorageQuery<() => Array<[AccountId32, KitchensinkRuntimeSessionKeys]>>;
|
|
899
|
+
/**
|
|
900
|
+
* Indices of disabled validators.
|
|
901
|
+
*
|
|
902
|
+
* The vec is always kept sorted so that we can find whether a given validator is
|
|
903
|
+
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
904
|
+
* a new set of identities.
|
|
905
|
+
*
|
|
906
|
+
* @param {Callback<Array<number>> =} callback
|
|
907
|
+
**/
|
|
908
|
+
disabledValidators: GenericStorageQuery<() => Array<number>>;
|
|
909
|
+
/**
|
|
910
|
+
* The next session keys for a validator.
|
|
911
|
+
*
|
|
912
|
+
* @param {AccountId32Like} arg
|
|
913
|
+
* @param {Callback<KitchensinkRuntimeSessionKeys | undefined> =} callback
|
|
914
|
+
**/
|
|
915
|
+
nextKeys: GenericStorageQuery<(arg: AccountId32Like) => KitchensinkRuntimeSessionKeys | undefined>;
|
|
916
|
+
/**
|
|
917
|
+
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
918
|
+
*
|
|
919
|
+
* @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
|
|
920
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
921
|
+
**/
|
|
922
|
+
keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined>;
|
|
923
|
+
/**
|
|
924
|
+
* Generic pallet storage query
|
|
925
|
+
**/
|
|
926
|
+
[storage: string]: GenericStorageQuery;
|
|
927
|
+
};
|
|
928
|
+
/**
|
|
929
|
+
* Pallet `Democracy`'s storage queries
|
|
930
|
+
**/
|
|
931
|
+
democracy: {
|
|
932
|
+
/**
|
|
933
|
+
* The number of (public) proposals that have been made so far.
|
|
934
|
+
*
|
|
935
|
+
* @param {Callback<number> =} callback
|
|
936
|
+
**/
|
|
937
|
+
publicPropCount: GenericStorageQuery<() => number>;
|
|
938
|
+
/**
|
|
939
|
+
* The public proposals. Unsorted. The second item is the proposal.
|
|
940
|
+
*
|
|
941
|
+
* @param {Callback<Array<[number, FrameSupportPreimagesBounded, AccountId32]>> =} callback
|
|
942
|
+
**/
|
|
943
|
+
publicProps: GenericStorageQuery<() => Array<[number, FrameSupportPreimagesBounded, AccountId32]>>;
|
|
944
|
+
/**
|
|
945
|
+
* Those who have locked a deposit.
|
|
946
|
+
*
|
|
947
|
+
* TWOX-NOTE: Safe, as increasing integer keys are safe.
|
|
948
|
+
*
|
|
949
|
+
* @param {number} arg
|
|
950
|
+
* @param {Callback<[Array<AccountId32>, bigint] | undefined> =} callback
|
|
951
|
+
**/
|
|
952
|
+
depositOf: GenericStorageQuery<(arg: number) => [Array<AccountId32>, bigint] | undefined>;
|
|
953
|
+
/**
|
|
954
|
+
* The next free referendum index, aka the number of referenda started so far.
|
|
955
|
+
*
|
|
956
|
+
* @param {Callback<number> =} callback
|
|
957
|
+
**/
|
|
958
|
+
referendumCount: GenericStorageQuery<() => number>;
|
|
959
|
+
/**
|
|
960
|
+
* The lowest referendum index representing an unbaked referendum. Equal to
|
|
961
|
+
* `ReferendumCount` if there isn't a unbaked referendum.
|
|
962
|
+
*
|
|
963
|
+
* @param {Callback<number> =} callback
|
|
964
|
+
**/
|
|
965
|
+
lowestUnbaked: GenericStorageQuery<() => number>;
|
|
966
|
+
/**
|
|
967
|
+
* Information concerning any given referendum.
|
|
968
|
+
*
|
|
969
|
+
* TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
|
|
970
|
+
*
|
|
971
|
+
* @param {number} arg
|
|
972
|
+
* @param {Callback<PalletDemocracyReferendumInfo | undefined> =} callback
|
|
973
|
+
**/
|
|
974
|
+
referendumInfoOf: GenericStorageQuery<(arg: number) => PalletDemocracyReferendumInfo | undefined>;
|
|
975
|
+
/**
|
|
976
|
+
* All votes for a particular voter. We store the balance for the number of votes that we
|
|
977
|
+
* have recorded. The second item is the total amount of delegations, that will be added.
|
|
978
|
+
*
|
|
979
|
+
* TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
|
|
980
|
+
*
|
|
981
|
+
* @param {AccountId32Like} arg
|
|
982
|
+
* @param {Callback<PalletDemocracyVoteVoting> =} callback
|
|
983
|
+
**/
|
|
984
|
+
votingOf: GenericStorageQuery<(arg: AccountId32Like) => PalletDemocracyVoteVoting>;
|
|
985
|
+
/**
|
|
986
|
+
* True if the last referendum tabled was submitted externally. False if it was a public
|
|
987
|
+
* proposal.
|
|
988
|
+
*
|
|
989
|
+
* @param {Callback<boolean> =} callback
|
|
990
|
+
**/
|
|
991
|
+
lastTabledWasExternal: GenericStorageQuery<() => boolean>;
|
|
992
|
+
/**
|
|
993
|
+
* The referendum to be tabled whenever it would be valid to table an external proposal.
|
|
994
|
+
* This happens when a referendum needs to be tabled and one of two conditions are met:
|
|
995
|
+
* - `LastTabledWasExternal` is `false`; or
|
|
996
|
+
* - `PublicProps` is empty.
|
|
997
|
+
*
|
|
998
|
+
* @param {Callback<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined> =} callback
|
|
999
|
+
**/
|
|
1000
|
+
nextExternal: GenericStorageQuery<() => [FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined>;
|
|
1001
|
+
/**
|
|
1002
|
+
* A record of who vetoed what. Maps proposal hash to a possible existent block number
|
|
1003
|
+
* (until when it may not be resubmitted) and who vetoed it.
|
|
1004
|
+
*
|
|
1005
|
+
* @param {H256} arg
|
|
1006
|
+
* @param {Callback<[number, Array<AccountId32>] | undefined> =} callback
|
|
1007
|
+
**/
|
|
1008
|
+
blacklist: GenericStorageQuery<(arg: H256) => [number, Array<AccountId32>] | undefined>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Record of all proposals that have been subject to emergency cancellation.
|
|
1011
|
+
*
|
|
1012
|
+
* @param {H256} arg
|
|
1013
|
+
* @param {Callback<boolean> =} callback
|
|
1014
|
+
**/
|
|
1015
|
+
cancellations: GenericStorageQuery<(arg: H256) => boolean>;
|
|
1016
|
+
/**
|
|
1017
|
+
* General information concerning any proposal or referendum.
|
|
1018
|
+
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
1019
|
+
* dump or IPFS hash of a JSON file.
|
|
1020
|
+
*
|
|
1021
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
1022
|
+
* large preimages.
|
|
1023
|
+
*
|
|
1024
|
+
* @param {PalletDemocracyMetadataOwner} arg
|
|
1025
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
1026
|
+
**/
|
|
1027
|
+
metadataOf: GenericStorageQuery<(arg: PalletDemocracyMetadataOwner) => H256 | undefined>;
|
|
1028
|
+
/**
|
|
1029
|
+
* Generic pallet storage query
|
|
1030
|
+
**/
|
|
1031
|
+
[storage: string]: GenericStorageQuery;
|
|
1032
|
+
};
|
|
1033
|
+
/**
|
|
1034
|
+
* Pallet `Council`'s storage queries
|
|
1035
|
+
**/
|
|
1036
|
+
council: {
|
|
1037
|
+
/**
|
|
1038
|
+
* The hashes of the active proposals.
|
|
1039
|
+
*
|
|
1040
|
+
* @param {Callback<Array<H256>> =} callback
|
|
1041
|
+
**/
|
|
1042
|
+
proposals: GenericStorageQuery<() => Array<H256>>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Actual proposal for a given hash, if it's current.
|
|
1045
|
+
*
|
|
1046
|
+
* @param {H256} arg
|
|
1047
|
+
* @param {Callback<KitchensinkRuntimeRuntimeCall | undefined> =} callback
|
|
1048
|
+
**/
|
|
1049
|
+
proposalOf: GenericStorageQuery<(arg: H256) => KitchensinkRuntimeRuntimeCall | undefined>;
|
|
1050
|
+
/**
|
|
1051
|
+
* Votes on a given proposal, if it is ongoing.
|
|
1052
|
+
*
|
|
1053
|
+
* @param {H256} arg
|
|
1054
|
+
* @param {Callback<PalletCollectiveVotes | undefined> =} callback
|
|
1055
|
+
**/
|
|
1056
|
+
voting: GenericStorageQuery<(arg: H256) => PalletCollectiveVotes | undefined>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Proposals so far.
|
|
1059
|
+
*
|
|
1060
|
+
* @param {Callback<number> =} callback
|
|
1061
|
+
**/
|
|
1062
|
+
proposalCount: GenericStorageQuery<() => number>;
|
|
1063
|
+
/**
|
|
1064
|
+
* The current members of the collective. This is stored sorted (just by value).
|
|
1065
|
+
*
|
|
1066
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
1067
|
+
**/
|
|
1068
|
+
members: GenericStorageQuery<() => Array<AccountId32>>;
|
|
1069
|
+
/**
|
|
1070
|
+
* The prime member that helps determine the default vote behavior in case of absentations.
|
|
1071
|
+
*
|
|
1072
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1073
|
+
**/
|
|
1074
|
+
prime: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
1075
|
+
/**
|
|
1076
|
+
* Generic pallet storage query
|
|
1077
|
+
**/
|
|
1078
|
+
[storage: string]: GenericStorageQuery;
|
|
1079
|
+
};
|
|
1080
|
+
/**
|
|
1081
|
+
* Pallet `TechnicalCommittee`'s storage queries
|
|
1082
|
+
**/
|
|
1083
|
+
technicalCommittee: {
|
|
1084
|
+
/**
|
|
1085
|
+
* The hashes of the active proposals.
|
|
1086
|
+
*
|
|
1087
|
+
* @param {Callback<Array<H256>> =} callback
|
|
1088
|
+
**/
|
|
1089
|
+
proposals: GenericStorageQuery<() => Array<H256>>;
|
|
1090
|
+
/**
|
|
1091
|
+
* Actual proposal for a given hash, if it's current.
|
|
1092
|
+
*
|
|
1093
|
+
* @param {H256} arg
|
|
1094
|
+
* @param {Callback<KitchensinkRuntimeRuntimeCall | undefined> =} callback
|
|
1095
|
+
**/
|
|
1096
|
+
proposalOf: GenericStorageQuery<(arg: H256) => KitchensinkRuntimeRuntimeCall | undefined>;
|
|
1097
|
+
/**
|
|
1098
|
+
* Votes on a given proposal, if it is ongoing.
|
|
1099
|
+
*
|
|
1100
|
+
* @param {H256} arg
|
|
1101
|
+
* @param {Callback<PalletCollectiveVotes | undefined> =} callback
|
|
1102
|
+
**/
|
|
1103
|
+
voting: GenericStorageQuery<(arg: H256) => PalletCollectiveVotes | undefined>;
|
|
1104
|
+
/**
|
|
1105
|
+
* Proposals so far.
|
|
1106
|
+
*
|
|
1107
|
+
* @param {Callback<number> =} callback
|
|
1108
|
+
**/
|
|
1109
|
+
proposalCount: GenericStorageQuery<() => number>;
|
|
1110
|
+
/**
|
|
1111
|
+
* The current members of the collective. This is stored sorted (just by value).
|
|
1112
|
+
*
|
|
1113
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
1114
|
+
**/
|
|
1115
|
+
members: GenericStorageQuery<() => Array<AccountId32>>;
|
|
1116
|
+
/**
|
|
1117
|
+
* The prime member that helps determine the default vote behavior in case of absentations.
|
|
1118
|
+
*
|
|
1119
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1120
|
+
**/
|
|
1121
|
+
prime: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Generic pallet storage query
|
|
1124
|
+
**/
|
|
1125
|
+
[storage: string]: GenericStorageQuery;
|
|
1126
|
+
};
|
|
1127
|
+
/**
|
|
1128
|
+
* Pallet `Elections`'s storage queries
|
|
1129
|
+
**/
|
|
1130
|
+
elections: {
|
|
1131
|
+
/**
|
|
1132
|
+
* The current elected members.
|
|
1133
|
+
*
|
|
1134
|
+
* Invariant: Always sorted based on account id.
|
|
1135
|
+
*
|
|
1136
|
+
* @param {Callback<Array<PalletElectionsPhragmenSeatHolder>> =} callback
|
|
1137
|
+
**/
|
|
1138
|
+
members: GenericStorageQuery<() => Array<PalletElectionsPhragmenSeatHolder>>;
|
|
1139
|
+
/**
|
|
1140
|
+
* The current reserved runners-up.
|
|
1141
|
+
*
|
|
1142
|
+
* Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the
|
|
1143
|
+
* last (i.e. _best_) runner-up will be replaced.
|
|
1144
|
+
*
|
|
1145
|
+
* @param {Callback<Array<PalletElectionsPhragmenSeatHolder>> =} callback
|
|
1146
|
+
**/
|
|
1147
|
+
runnersUp: GenericStorageQuery<() => Array<PalletElectionsPhragmenSeatHolder>>;
|
|
1148
|
+
/**
|
|
1149
|
+
* The present candidate list. A current member or runner-up can never enter this vector
|
|
1150
|
+
* and is always implicitly assumed to be a candidate.
|
|
1151
|
+
*
|
|
1152
|
+
* Second element is the deposit.
|
|
1153
|
+
*
|
|
1154
|
+
* Invariant: Always sorted based on account id.
|
|
1155
|
+
*
|
|
1156
|
+
* @param {Callback<Array<[AccountId32, bigint]>> =} callback
|
|
1157
|
+
**/
|
|
1158
|
+
candidates: GenericStorageQuery<() => Array<[AccountId32, bigint]>>;
|
|
1159
|
+
/**
|
|
1160
|
+
* The total number of vote rounds that have happened, excluding the upcoming one.
|
|
1161
|
+
*
|
|
1162
|
+
* @param {Callback<number> =} callback
|
|
1163
|
+
**/
|
|
1164
|
+
electionRounds: GenericStorageQuery<() => number>;
|
|
1165
|
+
/**
|
|
1166
|
+
* Votes and locked stake of a particular voter.
|
|
1167
|
+
*
|
|
1168
|
+
* TWOX-NOTE: SAFE as `AccountId` is a crypto hash.
|
|
1169
|
+
*
|
|
1170
|
+
* @param {AccountId32Like} arg
|
|
1171
|
+
* @param {Callback<PalletElectionsPhragmenVoter> =} callback
|
|
1172
|
+
**/
|
|
1173
|
+
voting: GenericStorageQuery<(arg: AccountId32Like) => PalletElectionsPhragmenVoter>;
|
|
1174
|
+
/**
|
|
1175
|
+
* Generic pallet storage query
|
|
1176
|
+
**/
|
|
1177
|
+
[storage: string]: GenericStorageQuery;
|
|
1178
|
+
};
|
|
1179
|
+
/**
|
|
1180
|
+
* Pallet `TechnicalMembership`'s storage queries
|
|
1181
|
+
**/
|
|
1182
|
+
technicalMembership: {
|
|
1183
|
+
/**
|
|
1184
|
+
* The current membership, stored as an ordered Vec.
|
|
1185
|
+
*
|
|
1186
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
1187
|
+
**/
|
|
1188
|
+
members: GenericStorageQuery<() => Array<AccountId32>>;
|
|
1189
|
+
/**
|
|
1190
|
+
* The current prime member, if one exists.
|
|
1191
|
+
*
|
|
1192
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1193
|
+
**/
|
|
1194
|
+
prime: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
1195
|
+
/**
|
|
1196
|
+
* Generic pallet storage query
|
|
1197
|
+
**/
|
|
1198
|
+
[storage: string]: GenericStorageQuery;
|
|
1199
|
+
};
|
|
1200
|
+
/**
|
|
1201
|
+
* Pallet `Grandpa`'s storage queries
|
|
1202
|
+
**/
|
|
1203
|
+
grandpa: {
|
|
1204
|
+
/**
|
|
1205
|
+
* State of the current authority set.
|
|
1206
|
+
*
|
|
1207
|
+
* @param {Callback<PalletGrandpaStoredState> =} callback
|
|
1208
|
+
**/
|
|
1209
|
+
state: GenericStorageQuery<() => PalletGrandpaStoredState>;
|
|
1210
|
+
/**
|
|
1211
|
+
* Pending change: (signaled at, scheduled change).
|
|
1212
|
+
*
|
|
1213
|
+
* @param {Callback<PalletGrandpaStoredPendingChange | undefined> =} callback
|
|
1214
|
+
**/
|
|
1215
|
+
pendingChange: GenericStorageQuery<() => PalletGrandpaStoredPendingChange | undefined>;
|
|
1216
|
+
/**
|
|
1217
|
+
* next block number where we can force a change.
|
|
1218
|
+
*
|
|
1219
|
+
* @param {Callback<number | undefined> =} callback
|
|
1220
|
+
**/
|
|
1221
|
+
nextForced: GenericStorageQuery<() => number | undefined>;
|
|
1222
|
+
/**
|
|
1223
|
+
* `true` if we are currently stalled.
|
|
1224
|
+
*
|
|
1225
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
1226
|
+
**/
|
|
1227
|
+
stalled: GenericStorageQuery<() => [number, number] | undefined>;
|
|
1228
|
+
/**
|
|
1229
|
+
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
1230
|
+
* in the "set" of Grandpa validators from genesis.
|
|
1231
|
+
*
|
|
1232
|
+
* @param {Callback<bigint> =} callback
|
|
1233
|
+
**/
|
|
1234
|
+
currentSetId: GenericStorageQuery<() => bigint>;
|
|
1235
|
+
/**
|
|
1236
|
+
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
|
1237
|
+
* members were responsible.
|
|
1238
|
+
*
|
|
1239
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
1240
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
1241
|
+
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
|
1242
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
1243
|
+
* during that session.
|
|
1244
|
+
*
|
|
1245
|
+
* TWOX-NOTE: `SetId` is not under user control.
|
|
1246
|
+
*
|
|
1247
|
+
* @param {bigint} arg
|
|
1248
|
+
* @param {Callback<number | undefined> =} callback
|
|
1249
|
+
**/
|
|
1250
|
+
setIdSession: GenericStorageQuery<(arg: bigint) => number | undefined>;
|
|
1251
|
+
/**
|
|
1252
|
+
* Generic pallet storage query
|
|
1253
|
+
**/
|
|
1254
|
+
[storage: string]: GenericStorageQuery;
|
|
1255
|
+
};
|
|
1256
|
+
/**
|
|
1257
|
+
* Pallet `Treasury`'s storage queries
|
|
1258
|
+
**/
|
|
1259
|
+
treasury: {
|
|
1260
|
+
/**
|
|
1261
|
+
* Number of proposals that have been made.
|
|
1262
|
+
*
|
|
1263
|
+
* @param {Callback<number> =} callback
|
|
1264
|
+
**/
|
|
1265
|
+
proposalCount: GenericStorageQuery<() => number>;
|
|
1266
|
+
/**
|
|
1267
|
+
* Proposals that have been made.
|
|
1268
|
+
*
|
|
1269
|
+
* @param {number} arg
|
|
1270
|
+
* @param {Callback<PalletTreasuryProposal | undefined> =} callback
|
|
1271
|
+
**/
|
|
1272
|
+
proposals: GenericStorageQuery<(arg: number) => PalletTreasuryProposal | undefined>;
|
|
1273
|
+
/**
|
|
1274
|
+
* The amount which has been reported as inactive to Currency.
|
|
1275
|
+
*
|
|
1276
|
+
* @param {Callback<bigint> =} callback
|
|
1277
|
+
**/
|
|
1278
|
+
deactivated: GenericStorageQuery<() => bigint>;
|
|
1279
|
+
/**
|
|
1280
|
+
* Proposal indices that have been approved but not yet awarded.
|
|
1281
|
+
*
|
|
1282
|
+
* @param {Callback<Array<number>> =} callback
|
|
1283
|
+
**/
|
|
1284
|
+
approvals: GenericStorageQuery<() => Array<number>>;
|
|
1285
|
+
/**
|
|
1286
|
+
* Generic pallet storage query
|
|
1287
|
+
**/
|
|
1288
|
+
[storage: string]: GenericStorageQuery;
|
|
1289
|
+
};
|
|
1290
|
+
/**
|
|
1291
|
+
* Pallet `AssetRate`'s storage queries
|
|
1292
|
+
**/
|
|
1293
|
+
assetRate: {
|
|
1294
|
+
/**
|
|
1295
|
+
* Maps an asset to its fixed point representation in the native balance.
|
|
1296
|
+
*
|
|
1297
|
+
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
|
|
1298
|
+
*
|
|
1299
|
+
* @param {number} arg
|
|
1300
|
+
* @param {Callback<FixedU128 | undefined> =} callback
|
|
1301
|
+
**/
|
|
1302
|
+
conversionRateToNative: GenericStorageQuery<(arg: number) => FixedU128 | undefined>;
|
|
1303
|
+
/**
|
|
1304
|
+
* Generic pallet storage query
|
|
1305
|
+
**/
|
|
1306
|
+
[storage: string]: GenericStorageQuery;
|
|
1307
|
+
};
|
|
1308
|
+
/**
|
|
1309
|
+
* Pallet `Contracts`'s storage queries
|
|
1310
|
+
**/
|
|
1311
|
+
contracts: {
|
|
1312
|
+
/**
|
|
1313
|
+
* A mapping from a contract's code hash to its code.
|
|
1314
|
+
*
|
|
1315
|
+
* @param {H256} arg
|
|
1316
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1317
|
+
**/
|
|
1318
|
+
pristineCode: GenericStorageQuery<(arg: H256) => Bytes | undefined>;
|
|
1319
|
+
/**
|
|
1320
|
+
* A mapping from a contract's code hash to its code info.
|
|
1321
|
+
*
|
|
1322
|
+
* @param {H256} arg
|
|
1323
|
+
* @param {Callback<PalletContractsWasmCodeInfo | undefined> =} callback
|
|
1324
|
+
**/
|
|
1325
|
+
codeInfoOf: GenericStorageQuery<(arg: H256) => PalletContractsWasmCodeInfo | undefined>;
|
|
1326
|
+
/**
|
|
1327
|
+
* This is a **monotonic** counter incremented on contract instantiation.
|
|
1328
|
+
*
|
|
1329
|
+
* This is used in order to generate unique trie ids for contracts.
|
|
1330
|
+
* The trie id of a new contract is calculated from hash(account_id, nonce).
|
|
1331
|
+
* The nonce is required because otherwise the following sequence would lead to
|
|
1332
|
+
* a possible collision of storage:
|
|
1333
|
+
*
|
|
1334
|
+
* 1. Create a new contract.
|
|
1335
|
+
* 2. Terminate the contract.
|
|
1336
|
+
* 3. Immediately recreate the contract with the same account_id.
|
|
1337
|
+
*
|
|
1338
|
+
* This is bad because the contents of a trie are deleted lazily and there might be
|
|
1339
|
+
* storage of the old instantiation still in it when the new contract is created. Please
|
|
1340
|
+
* note that we can't replace the counter by the block number because the sequence above
|
|
1341
|
+
* can happen in the same block. We also can't keep the account counter in memory only
|
|
1342
|
+
* because storage is the only way to communicate across different extrinsics in the
|
|
1343
|
+
* same block.
|
|
1344
|
+
*
|
|
1345
|
+
* # Note
|
|
1346
|
+
*
|
|
1347
|
+
* Do not use it to determine the number of contracts. It won't be decremented if
|
|
1348
|
+
* a contract is destroyed.
|
|
1349
|
+
*
|
|
1350
|
+
* @param {Callback<bigint> =} callback
|
|
1351
|
+
**/
|
|
1352
|
+
nonce: GenericStorageQuery<() => bigint>;
|
|
1353
|
+
/**
|
|
1354
|
+
* The code associated with a given account.
|
|
1355
|
+
*
|
|
1356
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1357
|
+
*
|
|
1358
|
+
* @param {AccountId32Like} arg
|
|
1359
|
+
* @param {Callback<PalletContractsStorageContractInfo | undefined> =} callback
|
|
1360
|
+
**/
|
|
1361
|
+
contractInfoOf: GenericStorageQuery<(arg: AccountId32Like) => PalletContractsStorageContractInfo | undefined>;
|
|
1362
|
+
/**
|
|
1363
|
+
* Evicted contracts that await child trie deletion.
|
|
1364
|
+
*
|
|
1365
|
+
* Child trie deletion is a heavy operation depending on the amount of storage items
|
|
1366
|
+
* stored in said trie. Therefore this operation is performed lazily in `on_idle`.
|
|
1367
|
+
*
|
|
1368
|
+
* @param {number} arg
|
|
1369
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1370
|
+
**/
|
|
1371
|
+
deletionQueue: GenericStorageQuery<(arg: number) => Bytes | undefined>;
|
|
1372
|
+
/**
|
|
1373
|
+
* A pair of monotonic counters used to track the latest contract marked for deletion
|
|
1374
|
+
* and the latest deleted contract in queue.
|
|
1375
|
+
*
|
|
1376
|
+
* @param {Callback<PalletContractsStorageDeletionQueueManager> =} callback
|
|
1377
|
+
**/
|
|
1378
|
+
deletionQueueCounter: GenericStorageQuery<() => PalletContractsStorageDeletionQueueManager>;
|
|
1379
|
+
/**
|
|
1380
|
+
* A migration can span across multiple blocks. This storage defines a cursor to track the
|
|
1381
|
+
* progress of the migration, enabling us to resume from the last completed position.
|
|
1382
|
+
*
|
|
1383
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1384
|
+
**/
|
|
1385
|
+
migrationInProgress: GenericStorageQuery<() => Bytes | undefined>;
|
|
1386
|
+
/**
|
|
1387
|
+
* Generic pallet storage query
|
|
1388
|
+
**/
|
|
1389
|
+
[storage: string]: GenericStorageQuery;
|
|
1390
|
+
};
|
|
1391
|
+
/**
|
|
1392
|
+
* Pallet `Sudo`'s storage queries
|
|
1393
|
+
**/
|
|
1394
|
+
sudo: {
|
|
1395
|
+
/**
|
|
1396
|
+
* The `AccountId` of the sudo key.
|
|
1397
|
+
*
|
|
1398
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1399
|
+
**/
|
|
1400
|
+
key: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
1401
|
+
/**
|
|
1402
|
+
* Generic pallet storage query
|
|
1403
|
+
**/
|
|
1404
|
+
[storage: string]: GenericStorageQuery;
|
|
1405
|
+
};
|
|
1406
|
+
/**
|
|
1407
|
+
* Pallet `ImOnline`'s storage queries
|
|
1408
|
+
**/
|
|
1409
|
+
imOnline: {
|
|
1410
|
+
/**
|
|
1411
|
+
* The block number after which it's ok to send heartbeats in the current
|
|
1412
|
+
* session.
|
|
1413
|
+
*
|
|
1414
|
+
* At the beginning of each session we set this to a value that should fall
|
|
1415
|
+
* roughly in the middle of the session duration. The idea is to first wait for
|
|
1416
|
+
* the validators to produce a block in the current session, so that the
|
|
1417
|
+
* heartbeat later on will not be necessary.
|
|
1418
|
+
*
|
|
1419
|
+
* This value will only be used as a fallback if we fail to get a proper session
|
|
1420
|
+
* progress estimate from `NextSessionRotation`, as those estimates should be
|
|
1421
|
+
* more accurate then the value we calculate for `HeartbeatAfter`.
|
|
1422
|
+
*
|
|
1423
|
+
* @param {Callback<number> =} callback
|
|
1424
|
+
**/
|
|
1425
|
+
heartbeatAfter: GenericStorageQuery<() => number>;
|
|
1426
|
+
/**
|
|
1427
|
+
* The current set of keys that may issue a heartbeat.
|
|
1428
|
+
*
|
|
1429
|
+
* @param {Callback<Array<PalletImOnlineSr25519AppSr25519Public>> =} callback
|
|
1430
|
+
**/
|
|
1431
|
+
keys: GenericStorageQuery<() => Array<PalletImOnlineSr25519AppSr25519Public>>;
|
|
1432
|
+
/**
|
|
1433
|
+
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
|
|
1434
|
+
*
|
|
1435
|
+
* @param {[number, number]} arg
|
|
1436
|
+
* @param {Callback<boolean | undefined> =} callback
|
|
1437
|
+
**/
|
|
1438
|
+
receivedHeartbeats: GenericStorageQuery<(arg: [number, number]) => boolean | undefined>;
|
|
1439
|
+
/**
|
|
1440
|
+
* For each session index, we keep a mapping of `ValidatorId<T>` to the
|
|
1441
|
+
* number of blocks authored by the given authority.
|
|
1442
|
+
*
|
|
1443
|
+
* @param {[number, AccountId32Like]} arg
|
|
1444
|
+
* @param {Callback<number> =} callback
|
|
1445
|
+
**/
|
|
1446
|
+
authoredBlocks: GenericStorageQuery<(arg: [number, AccountId32Like]) => number>;
|
|
1447
|
+
/**
|
|
1448
|
+
* Generic pallet storage query
|
|
1449
|
+
**/
|
|
1450
|
+
[storage: string]: GenericStorageQuery;
|
|
1451
|
+
};
|
|
1452
|
+
/**
|
|
1453
|
+
* Pallet `AuthorityDiscovery`'s storage queries
|
|
1454
|
+
**/
|
|
1455
|
+
authorityDiscovery: {
|
|
1456
|
+
/**
|
|
1457
|
+
* Keys of the current authority set.
|
|
1458
|
+
*
|
|
1459
|
+
* @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
|
|
1460
|
+
**/
|
|
1461
|
+
keys: GenericStorageQuery<() => Array<SpAuthorityDiscoveryAppPublic>>;
|
|
1462
|
+
/**
|
|
1463
|
+
* Keys of the next authority set.
|
|
1464
|
+
*
|
|
1465
|
+
* @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
|
|
1466
|
+
**/
|
|
1467
|
+
nextKeys: GenericStorageQuery<() => Array<SpAuthorityDiscoveryAppPublic>>;
|
|
1468
|
+
/**
|
|
1469
|
+
* Generic pallet storage query
|
|
1470
|
+
**/
|
|
1471
|
+
[storage: string]: GenericStorageQuery;
|
|
1472
|
+
};
|
|
1473
|
+
/**
|
|
1474
|
+
* Pallet `Offences`'s storage queries
|
|
1475
|
+
**/
|
|
1476
|
+
offences: {
|
|
1477
|
+
/**
|
|
1478
|
+
* The primary structure that holds all offence records keyed by report identifiers.
|
|
1479
|
+
*
|
|
1480
|
+
* @param {H256} arg
|
|
1481
|
+
* @param {Callback<SpStakingOffenceOffenceDetails | undefined> =} callback
|
|
1482
|
+
**/
|
|
1483
|
+
reports: GenericStorageQuery<(arg: H256) => SpStakingOffenceOffenceDetails | undefined>;
|
|
1484
|
+
/**
|
|
1485
|
+
* A vector of reports of the same kind that happened at the same time slot.
|
|
1486
|
+
*
|
|
1487
|
+
* @param {[FixedBytes<16>, BytesLike]} arg
|
|
1488
|
+
* @param {Callback<Array<H256>> =} callback
|
|
1489
|
+
**/
|
|
1490
|
+
concurrentReportsIndex: GenericStorageQuery<(arg: [FixedBytes<16>, BytesLike]) => Array<H256>>;
|
|
1491
|
+
/**
|
|
1492
|
+
* Generic pallet storage query
|
|
1493
|
+
**/
|
|
1494
|
+
[storage: string]: GenericStorageQuery;
|
|
1495
|
+
};
|
|
1496
|
+
/**
|
|
1497
|
+
* Pallet `RandomnessCollectiveFlip`'s storage queries
|
|
1498
|
+
**/
|
|
1499
|
+
randomnessCollectiveFlip: {
|
|
1500
|
+
/**
|
|
1501
|
+
* Series of block headers from the last 81 blocks that acts as random seed material. This
|
|
1502
|
+
* is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of
|
|
1503
|
+
* the oldest hash.
|
|
1504
|
+
*
|
|
1505
|
+
* @param {Callback<Array<H256>> =} callback
|
|
1506
|
+
**/
|
|
1507
|
+
randomMaterial: GenericStorageQuery<() => Array<H256>>;
|
|
1508
|
+
/**
|
|
1509
|
+
* Generic pallet storage query
|
|
1510
|
+
**/
|
|
1511
|
+
[storage: string]: GenericStorageQuery;
|
|
1512
|
+
};
|
|
1513
|
+
/**
|
|
1514
|
+
* Pallet `Identity`'s storage queries
|
|
1515
|
+
**/
|
|
1516
|
+
identity: {
|
|
1517
|
+
/**
|
|
1518
|
+
* Information that is pertinent to identify the entity behind an account.
|
|
1519
|
+
*
|
|
1520
|
+
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
1521
|
+
*
|
|
1522
|
+
* @param {AccountId32Like} arg
|
|
1523
|
+
* @param {Callback<PalletIdentityRegistration | undefined> =} callback
|
|
1524
|
+
**/
|
|
1525
|
+
identityOf: GenericStorageQuery<(arg: AccountId32Like) => PalletIdentityRegistration | undefined>;
|
|
1526
|
+
/**
|
|
1527
|
+
* The super-identity of an alternative "sub" identity together with its name, within that
|
|
1528
|
+
* context. If the account is not some other account's sub-identity, then just `None`.
|
|
1529
|
+
*
|
|
1530
|
+
* @param {AccountId32Like} arg
|
|
1531
|
+
* @param {Callback<[AccountId32, Data] | undefined> =} callback
|
|
1532
|
+
**/
|
|
1533
|
+
superOf: GenericStorageQuery<(arg: AccountId32Like) => [AccountId32, Data] | undefined>;
|
|
1534
|
+
/**
|
|
1535
|
+
* Alternative "sub" identities of this account.
|
|
1536
|
+
*
|
|
1537
|
+
* The first item is the deposit, the second is a vector of the accounts.
|
|
1538
|
+
*
|
|
1539
|
+
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
1540
|
+
*
|
|
1541
|
+
* @param {AccountId32Like} arg
|
|
1542
|
+
* @param {Callback<[bigint, Array<AccountId32>]> =} callback
|
|
1543
|
+
**/
|
|
1544
|
+
subsOf: GenericStorageQuery<(arg: AccountId32Like) => [bigint, Array<AccountId32>]>;
|
|
1545
|
+
/**
|
|
1546
|
+
* The set of registrars. Not expected to get very big as can only be added through a
|
|
1547
|
+
* special origin (likely a council motion).
|
|
1548
|
+
*
|
|
1549
|
+
* The index into this can be cast to `RegistrarIndex` to get a valid value.
|
|
1550
|
+
*
|
|
1551
|
+
* @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
|
|
1552
|
+
**/
|
|
1553
|
+
registrars: GenericStorageQuery<() => Array<PalletIdentityRegistrarInfo | undefined>>;
|
|
1554
|
+
/**
|
|
1555
|
+
* Generic pallet storage query
|
|
1556
|
+
**/
|
|
1557
|
+
[storage: string]: GenericStorageQuery;
|
|
1558
|
+
};
|
|
1559
|
+
/**
|
|
1560
|
+
* Pallet `Society`'s storage queries
|
|
1561
|
+
**/
|
|
1562
|
+
society: {
|
|
1563
|
+
/**
|
|
1564
|
+
* The max number of members for the society at one time.
|
|
1565
|
+
*
|
|
1566
|
+
* @param {Callback<PalletSocietyGroupParams | undefined> =} callback
|
|
1567
|
+
**/
|
|
1568
|
+
parameters: GenericStorageQuery<() => PalletSocietyGroupParams | undefined>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Amount of our account balance that is specifically for the next round's bid(s).
|
|
1571
|
+
*
|
|
1572
|
+
* @param {Callback<bigint> =} callback
|
|
1573
|
+
**/
|
|
1574
|
+
pot: GenericStorageQuery<() => bigint>;
|
|
1575
|
+
/**
|
|
1576
|
+
* The first member.
|
|
1577
|
+
*
|
|
1578
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1579
|
+
**/
|
|
1580
|
+
founder: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
1581
|
+
/**
|
|
1582
|
+
* The most primary from the most recently approved rank 0 members in the society.
|
|
1583
|
+
*
|
|
1584
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1585
|
+
**/
|
|
1586
|
+
head: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
1587
|
+
/**
|
|
1588
|
+
* A hash of the rules of this society concerning membership. Can only be set once and
|
|
1589
|
+
* only by the founder.
|
|
1590
|
+
*
|
|
1591
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
1592
|
+
**/
|
|
1593
|
+
rules: GenericStorageQuery<() => H256 | undefined>;
|
|
1594
|
+
/**
|
|
1595
|
+
* The current members and their rank. Doesn't include `SuspendedMembers`.
|
|
1596
|
+
*
|
|
1597
|
+
* @param {AccountId32Like} arg
|
|
1598
|
+
* @param {Callback<PalletSocietyMemberRecord | undefined> =} callback
|
|
1599
|
+
**/
|
|
1600
|
+
members: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyMemberRecord | undefined>;
|
|
1601
|
+
/**
|
|
1602
|
+
* Information regarding rank-0 payouts, past and future.
|
|
1603
|
+
*
|
|
1604
|
+
* @param {AccountId32Like} arg
|
|
1605
|
+
* @param {Callback<PalletSocietyPayoutRecord> =} callback
|
|
1606
|
+
**/
|
|
1607
|
+
payouts: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyPayoutRecord>;
|
|
1608
|
+
/**
|
|
1609
|
+
* The number of items in `Members` currently. (Doesn't include `SuspendedMembers`.)
|
|
1610
|
+
*
|
|
1611
|
+
* @param {Callback<number> =} callback
|
|
1612
|
+
**/
|
|
1613
|
+
memberCount: GenericStorageQuery<() => number>;
|
|
1614
|
+
/**
|
|
1615
|
+
* The current items in `Members` keyed by their unique index. Keys are densely populated
|
|
1616
|
+
* `0..MemberCount` (does not include `MemberCount`).
|
|
1617
|
+
*
|
|
1618
|
+
* @param {number} arg
|
|
1619
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1620
|
+
**/
|
|
1621
|
+
memberByIndex: GenericStorageQuery<(arg: number) => AccountId32 | undefined>;
|
|
1622
|
+
/**
|
|
1623
|
+
* The set of suspended members, with their old membership record.
|
|
1624
|
+
*
|
|
1625
|
+
* @param {AccountId32Like} arg
|
|
1626
|
+
* @param {Callback<PalletSocietyMemberRecord | undefined> =} callback
|
|
1627
|
+
**/
|
|
1628
|
+
suspendedMembers: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyMemberRecord | undefined>;
|
|
1629
|
+
/**
|
|
1630
|
+
* The number of rounds which have passed.
|
|
1631
|
+
*
|
|
1632
|
+
* @param {Callback<number> =} callback
|
|
1633
|
+
**/
|
|
1634
|
+
roundCount: GenericStorageQuery<() => number>;
|
|
1635
|
+
/**
|
|
1636
|
+
* The current bids, stored ordered by the value of the bid.
|
|
1637
|
+
*
|
|
1638
|
+
* @param {Callback<Array<PalletSocietyBid>> =} callback
|
|
1639
|
+
**/
|
|
1640
|
+
bids: GenericStorageQuery<() => Array<PalletSocietyBid>>;
|
|
1641
|
+
/**
|
|
1642
|
+
*
|
|
1643
|
+
* @param {AccountId32Like} arg
|
|
1644
|
+
* @param {Callback<PalletSocietyCandidacy | undefined> =} callback
|
|
1645
|
+
**/
|
|
1646
|
+
candidates: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyCandidacy | undefined>;
|
|
1647
|
+
/**
|
|
1648
|
+
* The current skeptic.
|
|
1649
|
+
*
|
|
1650
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1651
|
+
**/
|
|
1652
|
+
skeptic: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
1653
|
+
/**
|
|
1654
|
+
* Double map from Candidate -> Voter -> (Maybe) Vote.
|
|
1655
|
+
*
|
|
1656
|
+
* @param {[AccountId32Like, AccountId32Like]} arg
|
|
1657
|
+
* @param {Callback<PalletSocietyVote | undefined> =} callback
|
|
1658
|
+
**/
|
|
1659
|
+
votes: GenericStorageQuery<(arg: [AccountId32Like, AccountId32Like]) => PalletSocietyVote | undefined>;
|
|
1660
|
+
/**
|
|
1661
|
+
* Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor.
|
|
1662
|
+
*
|
|
1663
|
+
* @param {AccountId32Like} arg
|
|
1664
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1665
|
+
**/
|
|
1666
|
+
voteClearCursor: GenericStorageQuery<(arg: AccountId32Like) => Bytes | undefined>;
|
|
1667
|
+
/**
|
|
1668
|
+
* At the end of the claim period, this contains the most recently approved members (along with
|
|
1669
|
+
* their bid and round ID) who is from the most recent round with the lowest bid. They will
|
|
1670
|
+
* become the new `Head`.
|
|
1671
|
+
*
|
|
1672
|
+
* @param {Callback<PalletSocietyIntakeRecord | undefined> =} callback
|
|
1673
|
+
**/
|
|
1674
|
+
nextHead: GenericStorageQuery<() => PalletSocietyIntakeRecord | undefined>;
|
|
1675
|
+
/**
|
|
1676
|
+
* The number of challenge rounds there have been. Used to identify stale DefenderVotes.
|
|
1677
|
+
*
|
|
1678
|
+
* @param {Callback<number> =} callback
|
|
1679
|
+
**/
|
|
1680
|
+
challengeRoundCount: GenericStorageQuery<() => number>;
|
|
1681
|
+
/**
|
|
1682
|
+
* The defending member currently being challenged, along with a running tally of votes.
|
|
1683
|
+
*
|
|
1684
|
+
* @param {Callback<[AccountId32, AccountId32, PalletSocietyTally] | undefined> =} callback
|
|
1685
|
+
**/
|
|
1686
|
+
defending: GenericStorageQuery<() => [AccountId32, AccountId32, PalletSocietyTally] | undefined>;
|
|
1687
|
+
/**
|
|
1688
|
+
* Votes for the defender, keyed by challenge round.
|
|
1689
|
+
*
|
|
1690
|
+
* @param {[number, AccountId32Like]} arg
|
|
1691
|
+
* @param {Callback<PalletSocietyVote | undefined> =} callback
|
|
1692
|
+
**/
|
|
1693
|
+
defenderVotes: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletSocietyVote | undefined>;
|
|
1694
|
+
/**
|
|
1695
|
+
* Generic pallet storage query
|
|
1696
|
+
**/
|
|
1697
|
+
[storage: string]: GenericStorageQuery;
|
|
1698
|
+
};
|
|
1699
|
+
/**
|
|
1700
|
+
* Pallet `Recovery`'s storage queries
|
|
1701
|
+
**/
|
|
1702
|
+
recovery: {
|
|
1703
|
+
/**
|
|
1704
|
+
* The set of recoverable accounts and their recovery configuration.
|
|
1705
|
+
*
|
|
1706
|
+
* @param {AccountId32Like} arg
|
|
1707
|
+
* @param {Callback<PalletRecoveryRecoveryConfig | undefined> =} callback
|
|
1708
|
+
**/
|
|
1709
|
+
recoverable: GenericStorageQuery<(arg: AccountId32Like) => PalletRecoveryRecoveryConfig | undefined>;
|
|
1710
|
+
/**
|
|
1711
|
+
* Active recovery attempts.
|
|
1712
|
+
*
|
|
1713
|
+
* First account is the account to be recovered, and the second account
|
|
1714
|
+
* is the user trying to recover the account.
|
|
1715
|
+
*
|
|
1716
|
+
* @param {[AccountId32Like, AccountId32Like]} arg
|
|
1717
|
+
* @param {Callback<PalletRecoveryActiveRecovery | undefined> =} callback
|
|
1718
|
+
**/
|
|
1719
|
+
activeRecoveries: GenericStorageQuery<(arg: [AccountId32Like, AccountId32Like]) => PalletRecoveryActiveRecovery | undefined>;
|
|
1720
|
+
/**
|
|
1721
|
+
* The list of allowed proxy accounts.
|
|
1722
|
+
*
|
|
1723
|
+
* Map from the user who can access it to the recovered account.
|
|
1724
|
+
*
|
|
1725
|
+
* @param {AccountId32Like} arg
|
|
1726
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1727
|
+
**/
|
|
1728
|
+
proxy: GenericStorageQuery<(arg: AccountId32Like) => AccountId32 | undefined>;
|
|
1729
|
+
/**
|
|
1730
|
+
* Generic pallet storage query
|
|
1731
|
+
**/
|
|
1732
|
+
[storage: string]: GenericStorageQuery;
|
|
1733
|
+
};
|
|
1734
|
+
/**
|
|
1735
|
+
* Pallet `Vesting`'s storage queries
|
|
1736
|
+
**/
|
|
1737
|
+
vesting: {
|
|
1738
|
+
/**
|
|
1739
|
+
* Information regarding the vesting of a given account.
|
|
1740
|
+
*
|
|
1741
|
+
* @param {AccountId32Like} arg
|
|
1742
|
+
* @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
|
|
1743
|
+
**/
|
|
1744
|
+
vesting: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined>;
|
|
1745
|
+
/**
|
|
1746
|
+
* Storage version of the pallet.
|
|
1747
|
+
*
|
|
1748
|
+
* New networks start with latest version, as determined by the genesis build.
|
|
1749
|
+
*
|
|
1750
|
+
* @param {Callback<PalletVestingReleases> =} callback
|
|
1751
|
+
**/
|
|
1752
|
+
storageVersion: GenericStorageQuery<() => PalletVestingReleases>;
|
|
1753
|
+
/**
|
|
1754
|
+
* Generic pallet storage query
|
|
1755
|
+
**/
|
|
1756
|
+
[storage: string]: GenericStorageQuery;
|
|
1757
|
+
};
|
|
1758
|
+
/**
|
|
1759
|
+
* Pallet `Scheduler`'s storage queries
|
|
1760
|
+
**/
|
|
1761
|
+
scheduler: {
|
|
1762
|
+
/**
|
|
1763
|
+
*
|
|
1764
|
+
* @param {Callback<number | undefined> =} callback
|
|
1765
|
+
**/
|
|
1766
|
+
incompleteSince: GenericStorageQuery<() => number | undefined>;
|
|
1767
|
+
/**
|
|
1768
|
+
* Items to be executed, indexed by the block number that they should be executed on.
|
|
1769
|
+
*
|
|
1770
|
+
* @param {number} arg
|
|
1771
|
+
* @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
|
|
1772
|
+
**/
|
|
1773
|
+
agenda: GenericStorageQuery<(arg: number) => Array<PalletSchedulerScheduled | undefined>>;
|
|
1774
|
+
/**
|
|
1775
|
+
* Lookup from a name to the block number and index of the task.
|
|
1776
|
+
*
|
|
1777
|
+
* For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
|
|
1778
|
+
* identities.
|
|
1779
|
+
*
|
|
1780
|
+
* @param {FixedBytes<32>} arg
|
|
1781
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
1782
|
+
**/
|
|
1783
|
+
lookup: GenericStorageQuery<(arg: FixedBytes<32>) => [number, number] | undefined>;
|
|
1784
|
+
/**
|
|
1785
|
+
* Generic pallet storage query
|
|
1786
|
+
**/
|
|
1787
|
+
[storage: string]: GenericStorageQuery;
|
|
1788
|
+
};
|
|
1789
|
+
/**
|
|
1790
|
+
* Pallet `Glutton`'s storage queries
|
|
1791
|
+
**/
|
|
1792
|
+
glutton: {
|
|
1793
|
+
/**
|
|
1794
|
+
* The proportion of the remaining `ref_time` to consume during `on_idle`.
|
|
1795
|
+
*
|
|
1796
|
+
* `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
|
|
1797
|
+
* over `1.0` could stall the chain.
|
|
1798
|
+
*
|
|
1799
|
+
* @param {Callback<FixedU64> =} callback
|
|
1800
|
+
**/
|
|
1801
|
+
compute: GenericStorageQuery<() => FixedU64>;
|
|
1802
|
+
/**
|
|
1803
|
+
* The proportion of the remaining `proof_size` to consume during `on_idle`.
|
|
1804
|
+
*
|
|
1805
|
+
* `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
|
|
1806
|
+
* over `1.0` could stall the chain.
|
|
1807
|
+
*
|
|
1808
|
+
* @param {Callback<FixedU64> =} callback
|
|
1809
|
+
**/
|
|
1810
|
+
storage: GenericStorageQuery<() => FixedU64>;
|
|
1811
|
+
/**
|
|
1812
|
+
* Storage map used for wasting proof size.
|
|
1813
|
+
*
|
|
1814
|
+
* It contains no meaningful data - hence the name "Trash". The maximal number of entries is
|
|
1815
|
+
* set to 65k, which is just below the next jump at 16^4. This is important to reduce the proof
|
|
1816
|
+
* size benchmarking overestimate. The assumption here is that we won't have more than 65k *
|
|
1817
|
+
* 1KiB = 65MiB of proof size wasting in practice. However, this limit is not enforced, so the
|
|
1818
|
+
* pallet would also work out of the box with more entries, but its benchmarked proof weight
|
|
1819
|
+
* would possibly be underestimated in that case.
|
|
1820
|
+
*
|
|
1821
|
+
* @param {number} arg
|
|
1822
|
+
* @param {Callback<FixedBytes<1024> | undefined> =} callback
|
|
1823
|
+
**/
|
|
1824
|
+
trashData: GenericStorageQuery<(arg: number) => FixedBytes<1024> | undefined>;
|
|
1825
|
+
/**
|
|
1826
|
+
* The current number of entries in `TrashData`.
|
|
1827
|
+
*
|
|
1828
|
+
* @param {Callback<number> =} callback
|
|
1829
|
+
**/
|
|
1830
|
+
trashDataCount: GenericStorageQuery<() => number>;
|
|
1831
|
+
/**
|
|
1832
|
+
* Generic pallet storage query
|
|
1833
|
+
**/
|
|
1834
|
+
[storage: string]: GenericStorageQuery;
|
|
1835
|
+
};
|
|
1836
|
+
/**
|
|
1837
|
+
* Pallet `Preimage`'s storage queries
|
|
1838
|
+
**/
|
|
1839
|
+
preimage: {
|
|
1840
|
+
/**
|
|
1841
|
+
* The request status of a given hash.
|
|
1842
|
+
*
|
|
1843
|
+
* @param {H256} arg
|
|
1844
|
+
* @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
|
|
1845
|
+
**/
|
|
1846
|
+
statusFor: GenericStorageQuery<(arg: H256) => PalletPreimageRequestStatus | undefined>;
|
|
1847
|
+
/**
|
|
1848
|
+
*
|
|
1849
|
+
* @param {[H256, number]} arg
|
|
1850
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1851
|
+
**/
|
|
1852
|
+
preimageFor: GenericStorageQuery<(arg: [H256, number]) => Bytes | undefined>;
|
|
1853
|
+
/**
|
|
1854
|
+
* Generic pallet storage query
|
|
1855
|
+
**/
|
|
1856
|
+
[storage: string]: GenericStorageQuery;
|
|
1857
|
+
};
|
|
1858
|
+
/**
|
|
1859
|
+
* Pallet `Proxy`'s storage queries
|
|
1860
|
+
**/
|
|
1861
|
+
proxy: {
|
|
1862
|
+
/**
|
|
1863
|
+
* The set of account proxies. Maps the account which has delegated to the accounts
|
|
1864
|
+
* which are being delegated to, together with the amount held on deposit.
|
|
1865
|
+
*
|
|
1866
|
+
* @param {AccountId32Like} arg
|
|
1867
|
+
* @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
|
|
1868
|
+
**/
|
|
1869
|
+
proxies: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint]>;
|
|
1870
|
+
/**
|
|
1871
|
+
* The announcements made by the proxy (key).
|
|
1872
|
+
*
|
|
1873
|
+
* @param {AccountId32Like} arg
|
|
1874
|
+
* @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
|
|
1875
|
+
**/
|
|
1876
|
+
announcements: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint]>;
|
|
1877
|
+
/**
|
|
1878
|
+
* Generic pallet storage query
|
|
1879
|
+
**/
|
|
1880
|
+
[storage: string]: GenericStorageQuery;
|
|
1881
|
+
};
|
|
1882
|
+
/**
|
|
1883
|
+
* Pallet `Multisig`'s storage queries
|
|
1884
|
+
**/
|
|
1885
|
+
multisig: {
|
|
1886
|
+
/**
|
|
1887
|
+
* The set of open multisig operations.
|
|
1888
|
+
*
|
|
1889
|
+
* @param {[AccountId32Like, FixedBytes<32>]} arg
|
|
1890
|
+
* @param {Callback<PalletMultisigMultisig | undefined> =} callback
|
|
1891
|
+
**/
|
|
1892
|
+
multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
|
|
1893
|
+
/**
|
|
1894
|
+
* Generic pallet storage query
|
|
1895
|
+
**/
|
|
1896
|
+
[storage: string]: GenericStorageQuery;
|
|
1897
|
+
};
|
|
1898
|
+
/**
|
|
1899
|
+
* Pallet `Bounties`'s storage queries
|
|
1900
|
+
**/
|
|
1901
|
+
bounties: {
|
|
1902
|
+
/**
|
|
1903
|
+
* Number of bounty proposals that have been made.
|
|
1904
|
+
*
|
|
1905
|
+
* @param {Callback<number> =} callback
|
|
1906
|
+
**/
|
|
1907
|
+
bountyCount: GenericStorageQuery<() => number>;
|
|
1908
|
+
/**
|
|
1909
|
+
* Bounties that have been made.
|
|
1910
|
+
*
|
|
1911
|
+
* @param {number} arg
|
|
1912
|
+
* @param {Callback<PalletBountiesBounty | undefined> =} callback
|
|
1913
|
+
**/
|
|
1914
|
+
bounties: GenericStorageQuery<(arg: number) => PalletBountiesBounty | undefined>;
|
|
1915
|
+
/**
|
|
1916
|
+
* The description of each bounty.
|
|
1917
|
+
*
|
|
1918
|
+
* @param {number} arg
|
|
1919
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1920
|
+
**/
|
|
1921
|
+
bountyDescriptions: GenericStorageQuery<(arg: number) => Bytes | undefined>;
|
|
1922
|
+
/**
|
|
1923
|
+
* Bounty indices that have been approved but not yet funded.
|
|
1924
|
+
*
|
|
1925
|
+
* @param {Callback<Array<number>> =} callback
|
|
1926
|
+
**/
|
|
1927
|
+
bountyApprovals: GenericStorageQuery<() => Array<number>>;
|
|
1928
|
+
/**
|
|
1929
|
+
* Generic pallet storage query
|
|
1930
|
+
**/
|
|
1931
|
+
[storage: string]: GenericStorageQuery;
|
|
1932
|
+
};
|
|
1933
|
+
/**
|
|
1934
|
+
* Pallet `Tips`'s storage queries
|
|
1935
|
+
**/
|
|
1936
|
+
tips: {
|
|
1937
|
+
/**
|
|
1938
|
+
* TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value.
|
|
1939
|
+
* This has the insecure enumerable hash function since the key itself is already
|
|
1940
|
+
* guaranteed to be a secure hash.
|
|
1941
|
+
*
|
|
1942
|
+
* @param {H256} arg
|
|
1943
|
+
* @param {Callback<PalletTipsOpenTip | undefined> =} callback
|
|
1944
|
+
**/
|
|
1945
|
+
tips: GenericStorageQuery<(arg: H256) => PalletTipsOpenTip | undefined>;
|
|
1946
|
+
/**
|
|
1947
|
+
* Simple preimage lookup from the reason's hash to the original data. Again, has an
|
|
1948
|
+
* insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
|
|
1949
|
+
*
|
|
1950
|
+
* @param {H256} arg
|
|
1951
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1952
|
+
**/
|
|
1953
|
+
reasons: GenericStorageQuery<(arg: H256) => Bytes | undefined>;
|
|
1954
|
+
/**
|
|
1955
|
+
* Generic pallet storage query
|
|
1956
|
+
**/
|
|
1957
|
+
[storage: string]: GenericStorageQuery;
|
|
1958
|
+
};
|
|
1959
|
+
/**
|
|
1960
|
+
* Pallet `Assets`'s storage queries
|
|
1961
|
+
**/
|
|
1962
|
+
assets: {
|
|
1963
|
+
/**
|
|
1964
|
+
* Details of an asset.
|
|
1965
|
+
*
|
|
1966
|
+
* @param {number} arg
|
|
1967
|
+
* @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
|
|
1968
|
+
**/
|
|
1969
|
+
asset: GenericStorageQuery<(arg: number) => PalletAssetsAssetDetails | undefined>;
|
|
1970
|
+
/**
|
|
1971
|
+
* The holdings of a specific account for a specific asset.
|
|
1972
|
+
*
|
|
1973
|
+
* @param {[number, AccountId32Like]} arg
|
|
1974
|
+
* @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
|
|
1975
|
+
**/
|
|
1976
|
+
account: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
|
|
1977
|
+
/**
|
|
1978
|
+
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
|
1979
|
+
* is the amount of `T::Currency` reserved for storing this.
|
|
1980
|
+
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
1981
|
+
*
|
|
1982
|
+
* @param {[number, AccountId32Like, AccountId32Like]} arg
|
|
1983
|
+
* @param {Callback<PalletAssetsApproval | undefined> =} callback
|
|
1984
|
+
**/
|
|
1985
|
+
approvals: GenericStorageQuery<(arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined>;
|
|
1986
|
+
/**
|
|
1987
|
+
* Metadata of an asset.
|
|
1988
|
+
*
|
|
1989
|
+
* @param {number} arg
|
|
1990
|
+
* @param {Callback<PalletAssetsAssetMetadata> =} callback
|
|
1991
|
+
**/
|
|
1992
|
+
metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata>;
|
|
1993
|
+
/**
|
|
1994
|
+
* Generic pallet storage query
|
|
1995
|
+
**/
|
|
1996
|
+
[storage: string]: GenericStorageQuery;
|
|
1997
|
+
};
|
|
1998
|
+
/**
|
|
1999
|
+
* Pallet `PoolAssets`'s storage queries
|
|
2000
|
+
**/
|
|
2001
|
+
poolAssets: {
|
|
2002
|
+
/**
|
|
2003
|
+
* Details of an asset.
|
|
2004
|
+
*
|
|
2005
|
+
* @param {number} arg
|
|
2006
|
+
* @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
|
|
2007
|
+
**/
|
|
2008
|
+
asset: GenericStorageQuery<(arg: number) => PalletAssetsAssetDetails | undefined>;
|
|
2009
|
+
/**
|
|
2010
|
+
* The holdings of a specific account for a specific asset.
|
|
2011
|
+
*
|
|
2012
|
+
* @param {[number, AccountId32Like]} arg
|
|
2013
|
+
* @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
|
|
2014
|
+
**/
|
|
2015
|
+
account: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
|
|
2016
|
+
/**
|
|
2017
|
+
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
|
2018
|
+
* is the amount of `T::Currency` reserved for storing this.
|
|
2019
|
+
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
2020
|
+
*
|
|
2021
|
+
* @param {[number, AccountId32Like, AccountId32Like]} arg
|
|
2022
|
+
* @param {Callback<PalletAssetsApproval | undefined> =} callback
|
|
2023
|
+
**/
|
|
2024
|
+
approvals: GenericStorageQuery<(arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined>;
|
|
2025
|
+
/**
|
|
2026
|
+
* Metadata of an asset.
|
|
2027
|
+
*
|
|
2028
|
+
* @param {number} arg
|
|
2029
|
+
* @param {Callback<PalletAssetsAssetMetadata> =} callback
|
|
2030
|
+
**/
|
|
2031
|
+
metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata>;
|
|
2032
|
+
/**
|
|
2033
|
+
* Generic pallet storage query
|
|
2034
|
+
**/
|
|
2035
|
+
[storage: string]: GenericStorageQuery;
|
|
2036
|
+
};
|
|
2037
|
+
/**
|
|
2038
|
+
* Pallet `Mmr`'s storage queries
|
|
2039
|
+
**/
|
|
2040
|
+
mmr: {
|
|
2041
|
+
/**
|
|
2042
|
+
* Latest MMR Root hash.
|
|
2043
|
+
*
|
|
2044
|
+
* @param {Callback<H256> =} callback
|
|
2045
|
+
**/
|
|
2046
|
+
rootHash: GenericStorageQuery<() => H256>;
|
|
2047
|
+
/**
|
|
2048
|
+
* Current size of the MMR (number of leaves).
|
|
2049
|
+
*
|
|
2050
|
+
* @param {Callback<bigint> =} callback
|
|
2051
|
+
**/
|
|
2052
|
+
numberOfLeaves: GenericStorageQuery<() => bigint>;
|
|
2053
|
+
/**
|
|
2054
|
+
* Hashes of the nodes in the MMR.
|
|
2055
|
+
*
|
|
2056
|
+
* Note this collection only contains MMR peaks, the inner nodes (and leaves)
|
|
2057
|
+
* are pruned and only stored in the Offchain DB.
|
|
2058
|
+
*
|
|
2059
|
+
* @param {bigint} arg
|
|
2060
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
2061
|
+
**/
|
|
2062
|
+
nodes: GenericStorageQuery<(arg: bigint) => H256 | undefined>;
|
|
2063
|
+
/**
|
|
2064
|
+
* Generic pallet storage query
|
|
2065
|
+
**/
|
|
2066
|
+
[storage: string]: GenericStorageQuery;
|
|
2067
|
+
};
|
|
2068
|
+
/**
|
|
2069
|
+
* Pallet `Lottery`'s storage queries
|
|
2070
|
+
**/
|
|
2071
|
+
lottery: {
|
|
2072
|
+
/**
|
|
2073
|
+
*
|
|
2074
|
+
* @param {Callback<number> =} callback
|
|
2075
|
+
**/
|
|
2076
|
+
lotteryIndex: GenericStorageQuery<() => number>;
|
|
2077
|
+
/**
|
|
2078
|
+
* The configuration for the current lottery.
|
|
2079
|
+
*
|
|
2080
|
+
* @param {Callback<PalletLotteryLotteryConfig | undefined> =} callback
|
|
2081
|
+
**/
|
|
2082
|
+
lottery: GenericStorageQuery<() => PalletLotteryLotteryConfig | undefined>;
|
|
2083
|
+
/**
|
|
2084
|
+
* Users who have purchased a ticket. (Lottery Index, Tickets Purchased)
|
|
2085
|
+
*
|
|
2086
|
+
* @param {AccountId32Like} arg
|
|
2087
|
+
* @param {Callback<[number, Array<[number, number]>]> =} callback
|
|
2088
|
+
**/
|
|
2089
|
+
participants: GenericStorageQuery<(arg: AccountId32Like) => [number, Array<[number, number]>]>;
|
|
2090
|
+
/**
|
|
2091
|
+
* Total number of tickets sold.
|
|
2092
|
+
*
|
|
2093
|
+
* @param {Callback<number> =} callback
|
|
2094
|
+
**/
|
|
2095
|
+
ticketsCount: GenericStorageQuery<() => number>;
|
|
2096
|
+
/**
|
|
2097
|
+
* Each ticket's owner.
|
|
2098
|
+
*
|
|
2099
|
+
* May have residual storage from previous lotteries. Use `TicketsCount` to see which ones
|
|
2100
|
+
* are actually valid ticket mappings.
|
|
2101
|
+
*
|
|
2102
|
+
* @param {number} arg
|
|
2103
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
2104
|
+
**/
|
|
2105
|
+
tickets: GenericStorageQuery<(arg: number) => AccountId32 | undefined>;
|
|
2106
|
+
/**
|
|
2107
|
+
* The calls stored in this pallet to be used in an active lottery if configured
|
|
2108
|
+
* by `Config::ValidateCall`.
|
|
2109
|
+
*
|
|
2110
|
+
* @param {Callback<Array<[number, number]>> =} callback
|
|
2111
|
+
**/
|
|
2112
|
+
callIndices: GenericStorageQuery<() => Array<[number, number]>>;
|
|
2113
|
+
/**
|
|
2114
|
+
* Generic pallet storage query
|
|
2115
|
+
**/
|
|
2116
|
+
[storage: string]: GenericStorageQuery;
|
|
2117
|
+
};
|
|
2118
|
+
/**
|
|
2119
|
+
* Pallet `Nis`'s storage queries
|
|
2120
|
+
**/
|
|
2121
|
+
nis: {
|
|
2122
|
+
/**
|
|
2123
|
+
* The totals of items and balances within each queue. Saves a lot of storage reads in the
|
|
2124
|
+
* case of sparsely packed queues.
|
|
2125
|
+
*
|
|
2126
|
+
* The vector is indexed by duration in `Period`s, offset by one, so information on the queue
|
|
2127
|
+
* whose duration is one `Period` would be storage `0`.
|
|
2128
|
+
*
|
|
2129
|
+
* @param {Callback<Array<[number, bigint]>> =} callback
|
|
2130
|
+
**/
|
|
2131
|
+
queueTotals: GenericStorageQuery<() => Array<[number, bigint]>>;
|
|
2132
|
+
/**
|
|
2133
|
+
* The queues of bids. Indexed by duration (in `Period`s).
|
|
2134
|
+
*
|
|
2135
|
+
* @param {number} arg
|
|
2136
|
+
* @param {Callback<Array<PalletNisBid>> =} callback
|
|
2137
|
+
**/
|
|
2138
|
+
queues: GenericStorageQuery<(arg: number) => Array<PalletNisBid>>;
|
|
2139
|
+
/**
|
|
2140
|
+
* Summary information over the general state.
|
|
2141
|
+
*
|
|
2142
|
+
* @param {Callback<PalletNisSummaryRecord> =} callback
|
|
2143
|
+
**/
|
|
2144
|
+
summary: GenericStorageQuery<() => PalletNisSummaryRecord>;
|
|
2145
|
+
/**
|
|
2146
|
+
* The currently outstanding receipts, indexed according to the order of creation.
|
|
2147
|
+
*
|
|
2148
|
+
* @param {number} arg
|
|
2149
|
+
* @param {Callback<PalletNisReceiptRecord | undefined> =} callback
|
|
2150
|
+
**/
|
|
2151
|
+
receipts: GenericStorageQuery<(arg: number) => PalletNisReceiptRecord | undefined>;
|
|
2152
|
+
/**
|
|
2153
|
+
* Generic pallet storage query
|
|
2154
|
+
**/
|
|
2155
|
+
[storage: string]: GenericStorageQuery;
|
|
2156
|
+
};
|
|
2157
|
+
/**
|
|
2158
|
+
* Pallet `Uniques`'s storage queries
|
|
2159
|
+
**/
|
|
2160
|
+
uniques: {
|
|
2161
|
+
/**
|
|
2162
|
+
* Details of a collection.
|
|
2163
|
+
*
|
|
2164
|
+
* @param {number} arg
|
|
2165
|
+
* @param {Callback<PalletUniquesCollectionDetails | undefined> =} callback
|
|
2166
|
+
**/
|
|
2167
|
+
class: GenericStorageQuery<(arg: number) => PalletUniquesCollectionDetails | undefined>;
|
|
2168
|
+
/**
|
|
2169
|
+
* The collection, if any, of which an account is willing to take ownership.
|
|
2170
|
+
*
|
|
2171
|
+
* @param {AccountId32Like} arg
|
|
2172
|
+
* @param {Callback<number | undefined> =} callback
|
|
2173
|
+
**/
|
|
2174
|
+
ownershipAcceptance: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
|
|
2175
|
+
/**
|
|
2176
|
+
* The items held by any given account; set out this way so that items owned by a single
|
|
2177
|
+
* account can be enumerated.
|
|
2178
|
+
*
|
|
2179
|
+
* @param {[AccountId32Like, number, number]} arg
|
|
2180
|
+
* @param {Callback<[] | undefined> =} callback
|
|
2181
|
+
**/
|
|
2182
|
+
account: GenericStorageQuery<(arg: [AccountId32Like, number, number]) => [] | undefined>;
|
|
2183
|
+
/**
|
|
2184
|
+
* The collections owned by any given account; set out this way so that collections owned by
|
|
2185
|
+
* a single account can be enumerated.
|
|
2186
|
+
*
|
|
2187
|
+
* @param {[AccountId32Like, number]} arg
|
|
2188
|
+
* @param {Callback<[] | undefined> =} callback
|
|
2189
|
+
**/
|
|
2190
|
+
classAccount: GenericStorageQuery<(arg: [AccountId32Like, number]) => [] | undefined>;
|
|
2191
|
+
/**
|
|
2192
|
+
* The items in existence and their ownership details.
|
|
2193
|
+
*
|
|
2194
|
+
* @param {[number, number]} arg
|
|
2195
|
+
* @param {Callback<PalletUniquesItemDetails | undefined> =} callback
|
|
2196
|
+
**/
|
|
2197
|
+
asset: GenericStorageQuery<(arg: [number, number]) => PalletUniquesItemDetails | undefined>;
|
|
2198
|
+
/**
|
|
2199
|
+
* Metadata of a collection.
|
|
2200
|
+
*
|
|
2201
|
+
* @param {number} arg
|
|
2202
|
+
* @param {Callback<PalletUniquesCollectionMetadata | undefined> =} callback
|
|
2203
|
+
**/
|
|
2204
|
+
classMetadataOf: GenericStorageQuery<(arg: number) => PalletUniquesCollectionMetadata | undefined>;
|
|
2205
|
+
/**
|
|
2206
|
+
* Metadata of an item.
|
|
2207
|
+
*
|
|
2208
|
+
* @param {[number, number]} arg
|
|
2209
|
+
* @param {Callback<PalletUniquesItemMetadata | undefined> =} callback
|
|
2210
|
+
**/
|
|
2211
|
+
instanceMetadataOf: GenericStorageQuery<(arg: [number, number]) => PalletUniquesItemMetadata | undefined>;
|
|
2212
|
+
/**
|
|
2213
|
+
* Attributes of a collection.
|
|
2214
|
+
*
|
|
2215
|
+
* @param {[number, number | undefined, BytesLike]} arg
|
|
2216
|
+
* @param {Callback<[Bytes, bigint] | undefined> =} callback
|
|
2217
|
+
**/
|
|
2218
|
+
attribute: GenericStorageQuery<(arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined>;
|
|
2219
|
+
/**
|
|
2220
|
+
* Price of an asset instance.
|
|
2221
|
+
*
|
|
2222
|
+
* @param {[number, number]} arg
|
|
2223
|
+
* @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
|
|
2224
|
+
**/
|
|
2225
|
+
itemPriceOf: GenericStorageQuery<(arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined>;
|
|
2226
|
+
/**
|
|
2227
|
+
* Keeps track of the number of items a collection might have.
|
|
2228
|
+
*
|
|
2229
|
+
* @param {number} arg
|
|
2230
|
+
* @param {Callback<number | undefined> =} callback
|
|
2231
|
+
**/
|
|
2232
|
+
collectionMaxSupply: GenericStorageQuery<(arg: number) => number | undefined>;
|
|
2233
|
+
/**
|
|
2234
|
+
* Generic pallet storage query
|
|
2235
|
+
**/
|
|
2236
|
+
[storage: string]: GenericStorageQuery;
|
|
2237
|
+
};
|
|
2238
|
+
/**
|
|
2239
|
+
* Pallet `Nfts`'s storage queries
|
|
2240
|
+
**/
|
|
2241
|
+
nfts: {
|
|
2242
|
+
/**
|
|
2243
|
+
* Details of a collection.
|
|
2244
|
+
*
|
|
2245
|
+
* @param {number} arg
|
|
2246
|
+
* @param {Callback<PalletNftsCollectionDetails | undefined> =} callback
|
|
2247
|
+
**/
|
|
2248
|
+
collection: GenericStorageQuery<(arg: number) => PalletNftsCollectionDetails | undefined>;
|
|
2249
|
+
/**
|
|
2250
|
+
* The collection, if any, of which an account is willing to take ownership.
|
|
2251
|
+
*
|
|
2252
|
+
* @param {AccountId32Like} arg
|
|
2253
|
+
* @param {Callback<number | undefined> =} callback
|
|
2254
|
+
**/
|
|
2255
|
+
ownershipAcceptance: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
|
|
2256
|
+
/**
|
|
2257
|
+
* The items held by any given account; set out this way so that items owned by a single
|
|
2258
|
+
* account can be enumerated.
|
|
2259
|
+
*
|
|
2260
|
+
* @param {[AccountId32Like, number, number]} arg
|
|
2261
|
+
* @param {Callback<[] | undefined> =} callback
|
|
2262
|
+
**/
|
|
2263
|
+
account: GenericStorageQuery<(arg: [AccountId32Like, number, number]) => [] | undefined>;
|
|
2264
|
+
/**
|
|
2265
|
+
* The collections owned by any given account; set out this way so that collections owned by
|
|
2266
|
+
* a single account can be enumerated.
|
|
2267
|
+
*
|
|
2268
|
+
* @param {[AccountId32Like, number]} arg
|
|
2269
|
+
* @param {Callback<[] | undefined> =} callback
|
|
2270
|
+
**/
|
|
2271
|
+
collectionAccount: GenericStorageQuery<(arg: [AccountId32Like, number]) => [] | undefined>;
|
|
2272
|
+
/**
|
|
2273
|
+
* The items in existence and their ownership details.
|
|
2274
|
+
* Stores collection roles as per account.
|
|
2275
|
+
*
|
|
2276
|
+
* @param {[number, AccountId32Like]} arg
|
|
2277
|
+
* @param {Callback<PalletNftsBitFlagsCollectionRole | undefined> =} callback
|
|
2278
|
+
**/
|
|
2279
|
+
collectionRoleOf: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined>;
|
|
2280
|
+
/**
|
|
2281
|
+
* The items in existence and their ownership details.
|
|
2282
|
+
*
|
|
2283
|
+
* @param {[number, number]} arg
|
|
2284
|
+
* @param {Callback<PalletNftsItemDetails | undefined> =} callback
|
|
2285
|
+
**/
|
|
2286
|
+
item: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemDetails | undefined>;
|
|
2287
|
+
/**
|
|
2288
|
+
* Metadata of a collection.
|
|
2289
|
+
*
|
|
2290
|
+
* @param {number} arg
|
|
2291
|
+
* @param {Callback<PalletNftsCollectionMetadata | undefined> =} callback
|
|
2292
|
+
**/
|
|
2293
|
+
collectionMetadataOf: GenericStorageQuery<(arg: number) => PalletNftsCollectionMetadata | undefined>;
|
|
2294
|
+
/**
|
|
2295
|
+
* Metadata of an item.
|
|
2296
|
+
*
|
|
2297
|
+
* @param {[number, number]} arg
|
|
2298
|
+
* @param {Callback<PalletNftsItemMetadata | undefined> =} callback
|
|
2299
|
+
**/
|
|
2300
|
+
itemMetadataOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemMetadata | undefined>;
|
|
2301
|
+
/**
|
|
2302
|
+
* Attributes of a collection.
|
|
2303
|
+
*
|
|
2304
|
+
* @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg
|
|
2305
|
+
* @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback
|
|
2306
|
+
**/
|
|
2307
|
+
attribute: GenericStorageQuery<(arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike]) => [Bytes, PalletNftsAttributeDeposit] | undefined>;
|
|
2308
|
+
/**
|
|
2309
|
+
* A price of an item.
|
|
2310
|
+
*
|
|
2311
|
+
* @param {[number, number]} arg
|
|
2312
|
+
* @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
|
|
2313
|
+
**/
|
|
2314
|
+
itemPriceOf: GenericStorageQuery<(arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined>;
|
|
2315
|
+
/**
|
|
2316
|
+
* Item attribute approvals.
|
|
2317
|
+
*
|
|
2318
|
+
* @param {[number, number]} arg
|
|
2319
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
2320
|
+
**/
|
|
2321
|
+
itemAttributesApprovalsOf: GenericStorageQuery<(arg: [number, number]) => Array<AccountId32>>;
|
|
2322
|
+
/**
|
|
2323
|
+
* Stores the `CollectionId` that is going to be used for the next collection.
|
|
2324
|
+
* This gets incremented whenever a new collection is created.
|
|
2325
|
+
*
|
|
2326
|
+
* @param {Callback<number | undefined> =} callback
|
|
2327
|
+
**/
|
|
2328
|
+
nextCollectionId: GenericStorageQuery<() => number | undefined>;
|
|
2329
|
+
/**
|
|
2330
|
+
* Handles all the pending swaps.
|
|
2331
|
+
*
|
|
2332
|
+
* @param {[number, number]} arg
|
|
2333
|
+
* @param {Callback<PalletNftsPendingSwap | undefined> =} callback
|
|
2334
|
+
**/
|
|
2335
|
+
pendingSwapOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsPendingSwap | undefined>;
|
|
2336
|
+
/**
|
|
2337
|
+
* Config of a collection.
|
|
2338
|
+
*
|
|
2339
|
+
* @param {number} arg
|
|
2340
|
+
* @param {Callback<PalletNftsCollectionConfig | undefined> =} callback
|
|
2341
|
+
**/
|
|
2342
|
+
collectionConfigOf: GenericStorageQuery<(arg: number) => PalletNftsCollectionConfig | undefined>;
|
|
2343
|
+
/**
|
|
2344
|
+
* Config of an item.
|
|
2345
|
+
*
|
|
2346
|
+
* @param {[number, number]} arg
|
|
2347
|
+
* @param {Callback<PalletNftsItemConfig | undefined> =} callback
|
|
2348
|
+
**/
|
|
2349
|
+
itemConfigOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemConfig | undefined>;
|
|
2350
|
+
/**
|
|
2351
|
+
* Generic pallet storage query
|
|
2352
|
+
**/
|
|
2353
|
+
[storage: string]: GenericStorageQuery;
|
|
2354
|
+
};
|
|
2355
|
+
/**
|
|
2356
|
+
* Pallet `NftFractionalization`'s storage queries
|
|
2357
|
+
**/
|
|
2358
|
+
nftFractionalization: {
|
|
2359
|
+
/**
|
|
2360
|
+
* Keeps track of the corresponding NFT ID, asset ID and amount minted.
|
|
2361
|
+
*
|
|
2362
|
+
* @param {[number, number]} arg
|
|
2363
|
+
* @param {Callback<PalletNftFractionalizationDetails | undefined> =} callback
|
|
2364
|
+
**/
|
|
2365
|
+
nftToAsset: GenericStorageQuery<(arg: [number, number]) => PalletNftFractionalizationDetails | undefined>;
|
|
2366
|
+
/**
|
|
2367
|
+
* Generic pallet storage query
|
|
2368
|
+
**/
|
|
2369
|
+
[storage: string]: GenericStorageQuery;
|
|
2370
|
+
};
|
|
2371
|
+
/**
|
|
2372
|
+
* Pallet `Salary`'s storage queries
|
|
2373
|
+
**/
|
|
2374
|
+
salary: {
|
|
2375
|
+
/**
|
|
2376
|
+
* The overall status of the system.
|
|
2377
|
+
*
|
|
2378
|
+
* @param {Callback<PalletSalaryStatusType | undefined> =} callback
|
|
2379
|
+
**/
|
|
2380
|
+
status: GenericStorageQuery<() => PalletSalaryStatusType | undefined>;
|
|
2381
|
+
/**
|
|
2382
|
+
* The status of a claimant.
|
|
2383
|
+
*
|
|
2384
|
+
* @param {AccountId32Like} arg
|
|
2385
|
+
* @param {Callback<PalletSalaryClaimantStatus | undefined> =} callback
|
|
2386
|
+
**/
|
|
2387
|
+
claimant: GenericStorageQuery<(arg: AccountId32Like) => PalletSalaryClaimantStatus | undefined>;
|
|
2388
|
+
/**
|
|
2389
|
+
* Generic pallet storage query
|
|
2390
|
+
**/
|
|
2391
|
+
[storage: string]: GenericStorageQuery;
|
|
2392
|
+
};
|
|
2393
|
+
/**
|
|
2394
|
+
* Pallet `CoreFellowship`'s storage queries
|
|
2395
|
+
**/
|
|
2396
|
+
coreFellowship: {
|
|
2397
|
+
/**
|
|
2398
|
+
* The overall status of the system.
|
|
2399
|
+
*
|
|
2400
|
+
* @param {Callback<PalletCoreFellowshipParamsType> =} callback
|
|
2401
|
+
**/
|
|
2402
|
+
params: GenericStorageQuery<() => PalletCoreFellowshipParamsType>;
|
|
2403
|
+
/**
|
|
2404
|
+
* The status of a claimant.
|
|
2405
|
+
*
|
|
2406
|
+
* @param {AccountId32Like} arg
|
|
2407
|
+
* @param {Callback<PalletCoreFellowshipMemberStatus | undefined> =} callback
|
|
2408
|
+
**/
|
|
2409
|
+
member: GenericStorageQuery<(arg: AccountId32Like) => PalletCoreFellowshipMemberStatus | undefined>;
|
|
2410
|
+
/**
|
|
2411
|
+
* Some evidence together with the desired outcome for which it was presented.
|
|
2412
|
+
*
|
|
2413
|
+
* @param {AccountId32Like} arg
|
|
2414
|
+
* @param {Callback<[PalletCoreFellowshipWish, Bytes] | undefined> =} callback
|
|
2415
|
+
**/
|
|
2416
|
+
memberEvidence: GenericStorageQuery<(arg: AccountId32Like) => [PalletCoreFellowshipWish, Bytes] | undefined>;
|
|
2417
|
+
/**
|
|
2418
|
+
* Generic pallet storage query
|
|
2419
|
+
**/
|
|
2420
|
+
[storage: string]: GenericStorageQuery;
|
|
2421
|
+
};
|
|
2422
|
+
/**
|
|
2423
|
+
* Pallet `TransactionStorage`'s storage queries
|
|
2424
|
+
**/
|
|
2425
|
+
transactionStorage: {
|
|
2426
|
+
/**
|
|
2427
|
+
* Collection of transaction metadata by block number.
|
|
2428
|
+
*
|
|
2429
|
+
* @param {number} arg
|
|
2430
|
+
* @param {Callback<Array<PalletTransactionStorageTransactionInfo> | undefined> =} callback
|
|
2431
|
+
**/
|
|
2432
|
+
transactions: GenericStorageQuery<(arg: number) => Array<PalletTransactionStorageTransactionInfo> | undefined>;
|
|
2433
|
+
/**
|
|
2434
|
+
* Count indexed chunks for each block.
|
|
2435
|
+
*
|
|
2436
|
+
* @param {number} arg
|
|
2437
|
+
* @param {Callback<number> =} callback
|
|
2438
|
+
**/
|
|
2439
|
+
chunkCount: GenericStorageQuery<(arg: number) => number>;
|
|
2440
|
+
/**
|
|
2441
|
+
* Storage fee per byte.
|
|
2442
|
+
*
|
|
2443
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
2444
|
+
**/
|
|
2445
|
+
byteFee: GenericStorageQuery<() => bigint | undefined>;
|
|
2446
|
+
/**
|
|
2447
|
+
* Storage fee per transaction.
|
|
2448
|
+
*
|
|
2449
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
2450
|
+
**/
|
|
2451
|
+
entryFee: GenericStorageQuery<() => bigint | undefined>;
|
|
2452
|
+
/**
|
|
2453
|
+
* Storage period for data in blocks. Should match `sp_storage_proof::DEFAULT_STORAGE_PERIOD`
|
|
2454
|
+
* for block authoring.
|
|
2455
|
+
*
|
|
2456
|
+
* @param {Callback<number> =} callback
|
|
2457
|
+
**/
|
|
2458
|
+
storagePeriod: GenericStorageQuery<() => number>;
|
|
2459
|
+
/**
|
|
2460
|
+
*
|
|
2461
|
+
* @param {Callback<Array<PalletTransactionStorageTransactionInfo>> =} callback
|
|
2462
|
+
**/
|
|
2463
|
+
blockTransactions: GenericStorageQuery<() => Array<PalletTransactionStorageTransactionInfo>>;
|
|
2464
|
+
/**
|
|
2465
|
+
* Was the proof checked in this block?
|
|
2466
|
+
*
|
|
2467
|
+
* @param {Callback<boolean> =} callback
|
|
2468
|
+
**/
|
|
2469
|
+
proofChecked: GenericStorageQuery<() => boolean>;
|
|
2470
|
+
/**
|
|
2471
|
+
* Generic pallet storage query
|
|
2472
|
+
**/
|
|
2473
|
+
[storage: string]: GenericStorageQuery;
|
|
2474
|
+
};
|
|
2475
|
+
/**
|
|
2476
|
+
* Pallet `VoterList`'s storage queries
|
|
2477
|
+
**/
|
|
2478
|
+
voterList: {
|
|
2479
|
+
/**
|
|
2480
|
+
* A single node, within some bag.
|
|
2481
|
+
*
|
|
2482
|
+
* Nodes store links forward and back within their respective bags.
|
|
2483
|
+
*
|
|
2484
|
+
* @param {AccountId32Like} arg
|
|
2485
|
+
* @param {Callback<PalletBagsListListNode | undefined> =} callback
|
|
2486
|
+
**/
|
|
2487
|
+
listNodes: GenericStorageQuery<(arg: AccountId32Like) => PalletBagsListListNode | undefined>;
|
|
2488
|
+
/**
|
|
2489
|
+
* Counter for the related counted storage map
|
|
2490
|
+
*
|
|
2491
|
+
* @param {Callback<number> =} callback
|
|
2492
|
+
**/
|
|
2493
|
+
counterForListNodes: GenericStorageQuery<() => number>;
|
|
2494
|
+
/**
|
|
2495
|
+
* A bag stored in storage.
|
|
2496
|
+
*
|
|
2497
|
+
* Stores a `Bag` struct, which stores head and tail pointers to itself.
|
|
2498
|
+
*
|
|
2499
|
+
* @param {bigint} arg
|
|
2500
|
+
* @param {Callback<PalletBagsListListBag | undefined> =} callback
|
|
2501
|
+
**/
|
|
2502
|
+
listBags: GenericStorageQuery<(arg: bigint) => PalletBagsListListBag | undefined>;
|
|
2503
|
+
/**
|
|
2504
|
+
* Generic pallet storage query
|
|
2505
|
+
**/
|
|
2506
|
+
[storage: string]: GenericStorageQuery;
|
|
2507
|
+
};
|
|
2508
|
+
/**
|
|
2509
|
+
* Pallet `StateTrieMigration`'s storage queries
|
|
2510
|
+
**/
|
|
2511
|
+
stateTrieMigration: {
|
|
2512
|
+
/**
|
|
2513
|
+
* Migration progress.
|
|
2514
|
+
*
|
|
2515
|
+
* This stores the snapshot of the last migrated keys. It can be set into motion and move
|
|
2516
|
+
* forward by any of the means provided by this pallet.
|
|
2517
|
+
*
|
|
2518
|
+
* @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
|
|
2519
|
+
**/
|
|
2520
|
+
migrationProcess: GenericStorageQuery<() => PalletStateTrieMigrationMigrationTask>;
|
|
2521
|
+
/**
|
|
2522
|
+
* The limits that are imposed on automatic migrations.
|
|
2523
|
+
*
|
|
2524
|
+
* If set to None, then no automatic migration happens.
|
|
2525
|
+
*
|
|
2526
|
+
* @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
|
|
2527
|
+
**/
|
|
2528
|
+
autoLimits: GenericStorageQuery<() => PalletStateTrieMigrationMigrationLimits | undefined>;
|
|
2529
|
+
/**
|
|
2530
|
+
* The maximum limits that the signed migration could use.
|
|
2531
|
+
*
|
|
2532
|
+
* If not set, no signed submission is allowed.
|
|
2533
|
+
*
|
|
2534
|
+
* @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
|
|
2535
|
+
**/
|
|
2536
|
+
signedMigrationMaxLimits: GenericStorageQuery<() => PalletStateTrieMigrationMigrationLimits | undefined>;
|
|
2537
|
+
/**
|
|
2538
|
+
* Generic pallet storage query
|
|
2539
|
+
**/
|
|
2540
|
+
[storage: string]: GenericStorageQuery;
|
|
2541
|
+
};
|
|
2542
|
+
/**
|
|
2543
|
+
* Pallet `ChildBounties`'s storage queries
|
|
2544
|
+
**/
|
|
2545
|
+
childBounties: {
|
|
2546
|
+
/**
|
|
2547
|
+
* Number of total child bounties.
|
|
2548
|
+
*
|
|
2549
|
+
* @param {Callback<number> =} callback
|
|
2550
|
+
**/
|
|
2551
|
+
childBountyCount: GenericStorageQuery<() => number>;
|
|
2552
|
+
/**
|
|
2553
|
+
* Number of child bounties per parent bounty.
|
|
2554
|
+
* Map of parent bounty index to number of child bounties.
|
|
2555
|
+
*
|
|
2556
|
+
* @param {number} arg
|
|
2557
|
+
* @param {Callback<number> =} callback
|
|
2558
|
+
**/
|
|
2559
|
+
parentChildBounties: GenericStorageQuery<(arg: number) => number>;
|
|
2560
|
+
/**
|
|
2561
|
+
* Child bounties that have been added.
|
|
2562
|
+
*
|
|
2563
|
+
* @param {[number, number]} arg
|
|
2564
|
+
* @param {Callback<PalletChildBountiesChildBounty | undefined> =} callback
|
|
2565
|
+
**/
|
|
2566
|
+
childBounties: GenericStorageQuery<(arg: [number, number]) => PalletChildBountiesChildBounty | undefined>;
|
|
2567
|
+
/**
|
|
2568
|
+
* The description of each child-bounty.
|
|
2569
|
+
*
|
|
2570
|
+
* @param {number} arg
|
|
2571
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
2572
|
+
**/
|
|
2573
|
+
childBountyDescriptions: GenericStorageQuery<(arg: number) => Bytes | undefined>;
|
|
2574
|
+
/**
|
|
2575
|
+
* The cumulative child-bounty curator fee for each parent bounty.
|
|
2576
|
+
*
|
|
2577
|
+
* @param {number} arg
|
|
2578
|
+
* @param {Callback<bigint> =} callback
|
|
2579
|
+
**/
|
|
2580
|
+
childrenCuratorFees: GenericStorageQuery<(arg: number) => bigint>;
|
|
2581
|
+
/**
|
|
2582
|
+
* Generic pallet storage query
|
|
2583
|
+
**/
|
|
2584
|
+
[storage: string]: GenericStorageQuery;
|
|
2585
|
+
};
|
|
2586
|
+
/**
|
|
2587
|
+
* Pallet `Referenda`'s storage queries
|
|
2588
|
+
**/
|
|
2589
|
+
referenda: {
|
|
2590
|
+
/**
|
|
2591
|
+
* The next free referendum index, aka the number of referenda started so far.
|
|
2592
|
+
*
|
|
2593
|
+
* @param {Callback<number> =} callback
|
|
2594
|
+
**/
|
|
2595
|
+
referendumCount: GenericStorageQuery<() => number>;
|
|
2596
|
+
/**
|
|
2597
|
+
* Information concerning any given referendum.
|
|
2598
|
+
*
|
|
2599
|
+
* @param {number} arg
|
|
2600
|
+
* @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
|
|
2601
|
+
**/
|
|
2602
|
+
referendumInfoFor: GenericStorageQuery<(arg: number) => PalletReferendaReferendumInfo | undefined>;
|
|
2603
|
+
/**
|
|
2604
|
+
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
2605
|
+
* conviction-weighted approvals.
|
|
2606
|
+
*
|
|
2607
|
+
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
|
2608
|
+
*
|
|
2609
|
+
* @param {number} arg
|
|
2610
|
+
* @param {Callback<Array<[number, bigint]>> =} callback
|
|
2611
|
+
**/
|
|
2612
|
+
trackQueue: GenericStorageQuery<(arg: number) => Array<[number, bigint]>>;
|
|
2613
|
+
/**
|
|
2614
|
+
* The number of referenda being decided currently.
|
|
2615
|
+
*
|
|
2616
|
+
* @param {number} arg
|
|
2617
|
+
* @param {Callback<number> =} callback
|
|
2618
|
+
**/
|
|
2619
|
+
decidingCount: GenericStorageQuery<(arg: number) => number>;
|
|
2620
|
+
/**
|
|
2621
|
+
* The metadata is a general information concerning the referendum.
|
|
2622
|
+
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
2623
|
+
* dump or IPFS hash of a JSON file.
|
|
2624
|
+
*
|
|
2625
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
2626
|
+
* large preimages.
|
|
2627
|
+
*
|
|
2628
|
+
* @param {number} arg
|
|
2629
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
2630
|
+
**/
|
|
2631
|
+
metadataOf: GenericStorageQuery<(arg: number) => H256 | undefined>;
|
|
2632
|
+
/**
|
|
2633
|
+
* Generic pallet storage query
|
|
2634
|
+
**/
|
|
2635
|
+
[storage: string]: GenericStorageQuery;
|
|
2636
|
+
};
|
|
2637
|
+
/**
|
|
2638
|
+
* Pallet `ConvictionVoting`'s storage queries
|
|
2639
|
+
**/
|
|
2640
|
+
convictionVoting: {
|
|
2641
|
+
/**
|
|
2642
|
+
* All voting for a particular voter in a particular voting class. We store the balance for the
|
|
2643
|
+
* number of votes that we have recorded.
|
|
2644
|
+
*
|
|
2645
|
+
* @param {[AccountId32Like, number]} arg
|
|
2646
|
+
* @param {Callback<PalletConvictionVotingVoteVoting> =} callback
|
|
2647
|
+
**/
|
|
2648
|
+
votingFor: GenericStorageQuery<(arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting>;
|
|
2649
|
+
/**
|
|
2650
|
+
* The voting classes which have a non-zero lock requirement and the lock amounts which they
|
|
2651
|
+
* require. The actual amount locked on behalf of this pallet should always be the maximum of
|
|
2652
|
+
* this list.
|
|
2653
|
+
*
|
|
2654
|
+
* @param {AccountId32Like} arg
|
|
2655
|
+
* @param {Callback<Array<[number, bigint]>> =} callback
|
|
2656
|
+
**/
|
|
2657
|
+
classLocksFor: GenericStorageQuery<(arg: AccountId32Like) => Array<[number, bigint]>>;
|
|
2658
|
+
/**
|
|
2659
|
+
* Generic pallet storage query
|
|
2660
|
+
**/
|
|
2661
|
+
[storage: string]: GenericStorageQuery;
|
|
2662
|
+
};
|
|
2663
|
+
/**
|
|
2664
|
+
* Pallet `Whitelist`'s storage queries
|
|
2665
|
+
**/
|
|
2666
|
+
whitelist: {
|
|
2667
|
+
/**
|
|
2668
|
+
*
|
|
2669
|
+
* @param {H256} arg
|
|
2670
|
+
* @param {Callback<[] | undefined> =} callback
|
|
2671
|
+
**/
|
|
2672
|
+
whitelistedCall: GenericStorageQuery<(arg: H256) => [] | undefined>;
|
|
2673
|
+
/**
|
|
2674
|
+
* Generic pallet storage query
|
|
2675
|
+
**/
|
|
2676
|
+
[storage: string]: GenericStorageQuery;
|
|
2677
|
+
};
|
|
2678
|
+
/**
|
|
2679
|
+
* Pallet `AllianceMotion`'s storage queries
|
|
2680
|
+
**/
|
|
2681
|
+
allianceMotion: {
|
|
2682
|
+
/**
|
|
2683
|
+
* The hashes of the active proposals.
|
|
2684
|
+
*
|
|
2685
|
+
* @param {Callback<Array<H256>> =} callback
|
|
2686
|
+
**/
|
|
2687
|
+
proposals: GenericStorageQuery<() => Array<H256>>;
|
|
2688
|
+
/**
|
|
2689
|
+
* Actual proposal for a given hash, if it's current.
|
|
2690
|
+
*
|
|
2691
|
+
* @param {H256} arg
|
|
2692
|
+
* @param {Callback<KitchensinkRuntimeRuntimeCall | undefined> =} callback
|
|
2693
|
+
**/
|
|
2694
|
+
proposalOf: GenericStorageQuery<(arg: H256) => KitchensinkRuntimeRuntimeCall | undefined>;
|
|
2695
|
+
/**
|
|
2696
|
+
* Votes on a given proposal, if it is ongoing.
|
|
2697
|
+
*
|
|
2698
|
+
* @param {H256} arg
|
|
2699
|
+
* @param {Callback<PalletCollectiveVotes | undefined> =} callback
|
|
2700
|
+
**/
|
|
2701
|
+
voting: GenericStorageQuery<(arg: H256) => PalletCollectiveVotes | undefined>;
|
|
2702
|
+
/**
|
|
2703
|
+
* Proposals so far.
|
|
2704
|
+
*
|
|
2705
|
+
* @param {Callback<number> =} callback
|
|
2706
|
+
**/
|
|
2707
|
+
proposalCount: GenericStorageQuery<() => number>;
|
|
2708
|
+
/**
|
|
2709
|
+
* The current members of the collective. This is stored sorted (just by value).
|
|
2710
|
+
*
|
|
2711
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
2712
|
+
**/
|
|
2713
|
+
members: GenericStorageQuery<() => Array<AccountId32>>;
|
|
2714
|
+
/**
|
|
2715
|
+
* The prime member that helps determine the default vote behavior in case of absentations.
|
|
2716
|
+
*
|
|
2717
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
2718
|
+
**/
|
|
2719
|
+
prime: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
2720
|
+
/**
|
|
2721
|
+
* Generic pallet storage query
|
|
2722
|
+
**/
|
|
2723
|
+
[storage: string]: GenericStorageQuery;
|
|
2724
|
+
};
|
|
2725
|
+
/**
|
|
2726
|
+
* Pallet `Alliance`'s storage queries
|
|
2727
|
+
**/
|
|
2728
|
+
alliance: {
|
|
2729
|
+
/**
|
|
2730
|
+
* The IPFS CID of the alliance rule.
|
|
2731
|
+
* Fellows can propose a new rule with a super-majority.
|
|
2732
|
+
*
|
|
2733
|
+
* @param {Callback<PalletAllianceCid | undefined> =} callback
|
|
2734
|
+
**/
|
|
2735
|
+
rule: GenericStorageQuery<() => PalletAllianceCid | undefined>;
|
|
2736
|
+
/**
|
|
2737
|
+
* The current IPFS CIDs of any announcements.
|
|
2738
|
+
*
|
|
2739
|
+
* @param {Callback<Array<PalletAllianceCid>> =} callback
|
|
2740
|
+
**/
|
|
2741
|
+
announcements: GenericStorageQuery<() => Array<PalletAllianceCid>>;
|
|
2742
|
+
/**
|
|
2743
|
+
* Maps members to their candidacy deposit.
|
|
2744
|
+
*
|
|
2745
|
+
* @param {AccountId32Like} arg
|
|
2746
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
2747
|
+
**/
|
|
2748
|
+
depositOf: GenericStorageQuery<(arg: AccountId32Like) => bigint | undefined>;
|
|
2749
|
+
/**
|
|
2750
|
+
* Maps member type to members of each type.
|
|
2751
|
+
*
|
|
2752
|
+
* @param {PalletAllianceMemberRole} arg
|
|
2753
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
2754
|
+
**/
|
|
2755
|
+
members: GenericStorageQuery<(arg: PalletAllianceMemberRole) => Array<AccountId32>>;
|
|
2756
|
+
/**
|
|
2757
|
+
* A set of members who gave a retirement notice. They can retire after the end of retirement
|
|
2758
|
+
* period stored as a future block number.
|
|
2759
|
+
*
|
|
2760
|
+
* @param {AccountId32Like} arg
|
|
2761
|
+
* @param {Callback<number | undefined> =} callback
|
|
2762
|
+
**/
|
|
2763
|
+
retiringMembers: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
|
|
2764
|
+
/**
|
|
2765
|
+
* The current list of accounts deemed unscrupulous. These accounts non grata cannot submit
|
|
2766
|
+
* candidacy.
|
|
2767
|
+
*
|
|
2768
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
2769
|
+
**/
|
|
2770
|
+
unscrupulousAccounts: GenericStorageQuery<() => Array<AccountId32>>;
|
|
2771
|
+
/**
|
|
2772
|
+
* The current list of websites deemed unscrupulous.
|
|
2773
|
+
*
|
|
2774
|
+
* @param {Callback<Array<Bytes>> =} callback
|
|
2775
|
+
**/
|
|
2776
|
+
unscrupulousWebsites: GenericStorageQuery<() => Array<Bytes>>;
|
|
2777
|
+
/**
|
|
2778
|
+
* Generic pallet storage query
|
|
2779
|
+
**/
|
|
2780
|
+
[storage: string]: GenericStorageQuery;
|
|
2781
|
+
};
|
|
2782
|
+
/**
|
|
2783
|
+
* Pallet `NominationPools`'s storage queries
|
|
2784
|
+
**/
|
|
2785
|
+
nominationPools: {
|
|
2786
|
+
/**
|
|
2787
|
+
* Minimum amount to bond to join a pool.
|
|
2788
|
+
*
|
|
2789
|
+
* @param {Callback<bigint> =} callback
|
|
2790
|
+
**/
|
|
2791
|
+
minJoinBond: GenericStorageQuery<() => bigint>;
|
|
2792
|
+
/**
|
|
2793
|
+
* Minimum bond required to create a pool.
|
|
2794
|
+
*
|
|
2795
|
+
* This is the amount that the depositor must put as their initial stake in the pool, as an
|
|
2796
|
+
* indication of "skin in the game".
|
|
2797
|
+
*
|
|
2798
|
+
* This is the value that will always exist in the staking ledger of the pool bonded account
|
|
2799
|
+
* while all other accounts leave.
|
|
2800
|
+
*
|
|
2801
|
+
* @param {Callback<bigint> =} callback
|
|
2802
|
+
**/
|
|
2803
|
+
minCreateBond: GenericStorageQuery<() => bigint>;
|
|
2804
|
+
/**
|
|
2805
|
+
* Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
|
|
2806
|
+
* pools can exist.
|
|
2807
|
+
*
|
|
2808
|
+
* @param {Callback<number | undefined> =} callback
|
|
2809
|
+
**/
|
|
2810
|
+
maxPools: GenericStorageQuery<() => number | undefined>;
|
|
2811
|
+
/**
|
|
2812
|
+
* Maximum number of members that can exist in the system. If `None`, then the count
|
|
2813
|
+
* members are not bound on a system wide basis.
|
|
2814
|
+
*
|
|
2815
|
+
* @param {Callback<number | undefined> =} callback
|
|
2816
|
+
**/
|
|
2817
|
+
maxPoolMembers: GenericStorageQuery<() => number | undefined>;
|
|
2818
|
+
/**
|
|
2819
|
+
* Maximum number of members that may belong to pool. If `None`, then the count of
|
|
2820
|
+
* members is not bound on a per pool basis.
|
|
2821
|
+
*
|
|
2822
|
+
* @param {Callback<number | undefined> =} callback
|
|
2823
|
+
**/
|
|
2824
|
+
maxPoolMembersPerPool: GenericStorageQuery<() => number | undefined>;
|
|
2825
|
+
/**
|
|
2826
|
+
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
|
2827
|
+
* pool commissions that are > `GlobalMaxCommission`, necessary if a future
|
|
2828
|
+
* `GlobalMaxCommission` is lower than some current pool commissions.
|
|
2829
|
+
*
|
|
2830
|
+
* @param {Callback<Perbill | undefined> =} callback
|
|
2831
|
+
**/
|
|
2832
|
+
globalMaxCommission: GenericStorageQuery<() => Perbill | undefined>;
|
|
2833
|
+
/**
|
|
2834
|
+
* Active members.
|
|
2835
|
+
*
|
|
2836
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
2837
|
+
*
|
|
2838
|
+
* @param {AccountId32Like} arg
|
|
2839
|
+
* @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
|
|
2840
|
+
**/
|
|
2841
|
+
poolMembers: GenericStorageQuery<(arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined>;
|
|
2842
|
+
/**
|
|
2843
|
+
* Counter for the related counted storage map
|
|
2844
|
+
*
|
|
2845
|
+
* @param {Callback<number> =} callback
|
|
2846
|
+
**/
|
|
2847
|
+
counterForPoolMembers: GenericStorageQuery<() => number>;
|
|
2848
|
+
/**
|
|
2849
|
+
* Storage for bonded pools.
|
|
2850
|
+
*
|
|
2851
|
+
* @param {number} arg
|
|
2852
|
+
* @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
|
|
2853
|
+
**/
|
|
2854
|
+
bondedPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsBondedPoolInner | undefined>;
|
|
2855
|
+
/**
|
|
2856
|
+
* Counter for the related counted storage map
|
|
2857
|
+
*
|
|
2858
|
+
* @param {Callback<number> =} callback
|
|
2859
|
+
**/
|
|
2860
|
+
counterForBondedPools: GenericStorageQuery<() => number>;
|
|
2861
|
+
/**
|
|
2862
|
+
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
|
2863
|
+
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
|
2864
|
+
*
|
|
2865
|
+
* @param {number} arg
|
|
2866
|
+
* @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
|
|
2867
|
+
**/
|
|
2868
|
+
rewardPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsRewardPool | undefined>;
|
|
2869
|
+
/**
|
|
2870
|
+
* Counter for the related counted storage map
|
|
2871
|
+
*
|
|
2872
|
+
* @param {Callback<number> =} callback
|
|
2873
|
+
**/
|
|
2874
|
+
counterForRewardPools: GenericStorageQuery<() => number>;
|
|
2875
|
+
/**
|
|
2876
|
+
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
|
2877
|
+
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
|
|
2878
|
+
*
|
|
2879
|
+
* @param {number} arg
|
|
2880
|
+
* @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
|
|
2881
|
+
**/
|
|
2882
|
+
subPoolsStorage: GenericStorageQuery<(arg: number) => PalletNominationPoolsSubPools | undefined>;
|
|
2883
|
+
/**
|
|
2884
|
+
* Counter for the related counted storage map
|
|
2885
|
+
*
|
|
2886
|
+
* @param {Callback<number> =} callback
|
|
2887
|
+
**/
|
|
2888
|
+
counterForSubPoolsStorage: GenericStorageQuery<() => number>;
|
|
2889
|
+
/**
|
|
2890
|
+
* Metadata for the pool.
|
|
2891
|
+
*
|
|
2892
|
+
* @param {number} arg
|
|
2893
|
+
* @param {Callback<Bytes> =} callback
|
|
2894
|
+
**/
|
|
2895
|
+
metadata: GenericStorageQuery<(arg: number) => Bytes>;
|
|
2896
|
+
/**
|
|
2897
|
+
* Counter for the related counted storage map
|
|
2898
|
+
*
|
|
2899
|
+
* @param {Callback<number> =} callback
|
|
2900
|
+
**/
|
|
2901
|
+
counterForMetadata: GenericStorageQuery<() => number>;
|
|
2902
|
+
/**
|
|
2903
|
+
* Ever increasing number of all pools created so far.
|
|
2904
|
+
*
|
|
2905
|
+
* @param {Callback<number> =} callback
|
|
2906
|
+
**/
|
|
2907
|
+
lastPoolId: GenericStorageQuery<() => number>;
|
|
2908
|
+
/**
|
|
2909
|
+
* A reverse lookup from the pool's account id to its id.
|
|
2910
|
+
*
|
|
2911
|
+
* This is only used for slashing. In all other instances, the pool id is used, and the
|
|
2912
|
+
* accounts are deterministically derived from it.
|
|
2913
|
+
*
|
|
2914
|
+
* @param {AccountId32Like} arg
|
|
2915
|
+
* @param {Callback<number | undefined> =} callback
|
|
2916
|
+
**/
|
|
2917
|
+
reversePoolIdLookup: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
|
|
2918
|
+
/**
|
|
2919
|
+
* Counter for the related counted storage map
|
|
2920
|
+
*
|
|
2921
|
+
* @param {Callback<number> =} callback
|
|
2922
|
+
**/
|
|
2923
|
+
counterForReversePoolIdLookup: GenericStorageQuery<() => number>;
|
|
2924
|
+
/**
|
|
2925
|
+
* Map from a pool member account to their opted claim permission.
|
|
2926
|
+
*
|
|
2927
|
+
* @param {AccountId32Like} arg
|
|
2928
|
+
* @param {Callback<PalletNominationPoolsClaimPermission> =} callback
|
|
2929
|
+
**/
|
|
2930
|
+
claimPermissions: GenericStorageQuery<(arg: AccountId32Like) => PalletNominationPoolsClaimPermission>;
|
|
2931
|
+
/**
|
|
2932
|
+
* Generic pallet storage query
|
|
2933
|
+
**/
|
|
2934
|
+
[storage: string]: GenericStorageQuery;
|
|
2935
|
+
};
|
|
2936
|
+
/**
|
|
2937
|
+
* Pallet `RankedPolls`'s storage queries
|
|
2938
|
+
**/
|
|
2939
|
+
rankedPolls: {
|
|
2940
|
+
/**
|
|
2941
|
+
* The next free referendum index, aka the number of referenda started so far.
|
|
2942
|
+
*
|
|
2943
|
+
* @param {Callback<number> =} callback
|
|
2944
|
+
**/
|
|
2945
|
+
referendumCount: GenericStorageQuery<() => number>;
|
|
2946
|
+
/**
|
|
2947
|
+
* Information concerning any given referendum.
|
|
2948
|
+
*
|
|
2949
|
+
* @param {number} arg
|
|
2950
|
+
* @param {Callback<PalletReferendaReferendumInfoTally | undefined> =} callback
|
|
2951
|
+
**/
|
|
2952
|
+
referendumInfoFor: GenericStorageQuery<(arg: number) => PalletReferendaReferendumInfoTally | undefined>;
|
|
2953
|
+
/**
|
|
2954
|
+
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
2955
|
+
* conviction-weighted approvals.
|
|
2956
|
+
*
|
|
2957
|
+
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
|
2958
|
+
*
|
|
2959
|
+
* @param {number} arg
|
|
2960
|
+
* @param {Callback<Array<[number, number]>> =} callback
|
|
2961
|
+
**/
|
|
2962
|
+
trackQueue: GenericStorageQuery<(arg: number) => Array<[number, number]>>;
|
|
2963
|
+
/**
|
|
2964
|
+
* The number of referenda being decided currently.
|
|
2965
|
+
*
|
|
2966
|
+
* @param {number} arg
|
|
2967
|
+
* @param {Callback<number> =} callback
|
|
2968
|
+
**/
|
|
2969
|
+
decidingCount: GenericStorageQuery<(arg: number) => number>;
|
|
2970
|
+
/**
|
|
2971
|
+
* The metadata is a general information concerning the referendum.
|
|
2972
|
+
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
2973
|
+
* dump or IPFS hash of a JSON file.
|
|
2974
|
+
*
|
|
2975
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
2976
|
+
* large preimages.
|
|
2977
|
+
*
|
|
2978
|
+
* @param {number} arg
|
|
2979
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
2980
|
+
**/
|
|
2981
|
+
metadataOf: GenericStorageQuery<(arg: number) => H256 | undefined>;
|
|
2982
|
+
/**
|
|
2983
|
+
* Generic pallet storage query
|
|
2984
|
+
**/
|
|
2985
|
+
[storage: string]: GenericStorageQuery;
|
|
2986
|
+
};
|
|
2987
|
+
/**
|
|
2988
|
+
* Pallet `RankedCollective`'s storage queries
|
|
2989
|
+
**/
|
|
2990
|
+
rankedCollective: {
|
|
2991
|
+
/**
|
|
2992
|
+
* The number of members in the collective who have at least the rank according to the index
|
|
2993
|
+
* of the vec.
|
|
2994
|
+
*
|
|
2995
|
+
* @param {number} arg
|
|
2996
|
+
* @param {Callback<number> =} callback
|
|
2997
|
+
**/
|
|
2998
|
+
memberCount: GenericStorageQuery<(arg: number) => number>;
|
|
2999
|
+
/**
|
|
3000
|
+
* The current members of the collective.
|
|
3001
|
+
*
|
|
3002
|
+
* @param {AccountId32Like} arg
|
|
3003
|
+
* @param {Callback<PalletRankedCollectiveMemberRecord | undefined> =} callback
|
|
3004
|
+
**/
|
|
3005
|
+
members: GenericStorageQuery<(arg: AccountId32Like) => PalletRankedCollectiveMemberRecord | undefined>;
|
|
3006
|
+
/**
|
|
3007
|
+
* The index of each ranks's member into the group of members who have at least that rank.
|
|
3008
|
+
*
|
|
3009
|
+
* @param {[number, AccountId32Like]} arg
|
|
3010
|
+
* @param {Callback<number | undefined> =} callback
|
|
3011
|
+
**/
|
|
3012
|
+
idToIndex: GenericStorageQuery<(arg: [number, AccountId32Like]) => number | undefined>;
|
|
3013
|
+
/**
|
|
3014
|
+
* The members in the collective by index. All indices in the range `0..MemberCount` will
|
|
3015
|
+
* return `Some`, however a member's index is not guaranteed to remain unchanged over time.
|
|
3016
|
+
*
|
|
3017
|
+
* @param {[number, number]} arg
|
|
3018
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
3019
|
+
**/
|
|
3020
|
+
indexToId: GenericStorageQuery<(arg: [number, number]) => AccountId32 | undefined>;
|
|
3021
|
+
/**
|
|
3022
|
+
* Votes on a given proposal, if it is ongoing.
|
|
3023
|
+
*
|
|
3024
|
+
* @param {[number, AccountId32Like]} arg
|
|
3025
|
+
* @param {Callback<PalletRankedCollectiveVoteRecord | undefined> =} callback
|
|
3026
|
+
**/
|
|
3027
|
+
voting: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletRankedCollectiveVoteRecord | undefined>;
|
|
3028
|
+
/**
|
|
3029
|
+
*
|
|
3030
|
+
* @param {number} arg
|
|
3031
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
3032
|
+
**/
|
|
3033
|
+
votingCleanup: GenericStorageQuery<(arg: number) => Bytes | undefined>;
|
|
3034
|
+
/**
|
|
3035
|
+
* Generic pallet storage query
|
|
3036
|
+
**/
|
|
3037
|
+
[storage: string]: GenericStorageQuery;
|
|
3038
|
+
};
|
|
3039
|
+
/**
|
|
3040
|
+
* Pallet `AssetConversion`'s storage queries
|
|
3041
|
+
**/
|
|
3042
|
+
assetConversion: {
|
|
3043
|
+
/**
|
|
3044
|
+
* Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
|
|
3045
|
+
* created rather than people sending tokens directly to a pool's public account.
|
|
3046
|
+
*
|
|
3047
|
+
* @param {[PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]} arg
|
|
3048
|
+
* @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
|
|
3049
|
+
**/
|
|
3050
|
+
pools: GenericStorageQuery<(arg: [PalletAssetConversionNativeOrAssetId, PalletAssetConversionNativeOrAssetId]) => PalletAssetConversionPoolInfo | undefined>;
|
|
3051
|
+
/**
|
|
3052
|
+
* Stores the `PoolAssetId` that is going to be used for the next lp token.
|
|
3053
|
+
* This gets incremented whenever a new lp pool is created.
|
|
3054
|
+
*
|
|
3055
|
+
* @param {Callback<number | undefined> =} callback
|
|
3056
|
+
**/
|
|
3057
|
+
nextPoolAssetId: GenericStorageQuery<() => number | undefined>;
|
|
3058
|
+
/**
|
|
3059
|
+
* Generic pallet storage query
|
|
3060
|
+
**/
|
|
3061
|
+
[storage: string]: GenericStorageQuery;
|
|
3062
|
+
};
|
|
3063
|
+
/**
|
|
3064
|
+
* Pallet `FastUnstake`'s storage queries
|
|
3065
|
+
**/
|
|
3066
|
+
fastUnstake: {
|
|
3067
|
+
/**
|
|
3068
|
+
* The current "head of the queue" being unstaked.
|
|
3069
|
+
*
|
|
3070
|
+
* The head in itself can be a batch of up to [`Config::BatchSize`] stakers.
|
|
3071
|
+
*
|
|
3072
|
+
* @param {Callback<PalletFastUnstakeUnstakeRequest | undefined> =} callback
|
|
3073
|
+
**/
|
|
3074
|
+
head: GenericStorageQuery<() => PalletFastUnstakeUnstakeRequest | undefined>;
|
|
3075
|
+
/**
|
|
3076
|
+
* The map of all accounts wishing to be unstaked.
|
|
3077
|
+
*
|
|
3078
|
+
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
|
3079
|
+
*
|
|
3080
|
+
* @param {AccountId32Like} arg
|
|
3081
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
3082
|
+
**/
|
|
3083
|
+
queue: GenericStorageQuery<(arg: AccountId32Like) => bigint | undefined>;
|
|
3084
|
+
/**
|
|
3085
|
+
* Counter for the related counted storage map
|
|
3086
|
+
*
|
|
3087
|
+
* @param {Callback<number> =} callback
|
|
3088
|
+
**/
|
|
3089
|
+
counterForQueue: GenericStorageQuery<() => number>;
|
|
3090
|
+
/**
|
|
3091
|
+
* Number of eras to check per block.
|
|
3092
|
+
*
|
|
3093
|
+
* If set to 0, this pallet does absolutely nothing. Cannot be set to more than
|
|
3094
|
+
* [`Config::MaxErasToCheckPerBlock`].
|
|
3095
|
+
*
|
|
3096
|
+
* Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are
|
|
3097
|
+
* checked. The checking is represented by updating [`UnstakeRequest::checked`], which is
|
|
3098
|
+
* stored in [`Head`].
|
|
3099
|
+
*
|
|
3100
|
+
* @param {Callback<number> =} callback
|
|
3101
|
+
**/
|
|
3102
|
+
erasToCheckPerBlock: GenericStorageQuery<() => number>;
|
|
3103
|
+
/**
|
|
3104
|
+
* Generic pallet storage query
|
|
3105
|
+
**/
|
|
3106
|
+
[storage: string]: GenericStorageQuery;
|
|
3107
|
+
};
|
|
3108
|
+
/**
|
|
3109
|
+
* Pallet `MessageQueue`'s storage queries
|
|
3110
|
+
**/
|
|
3111
|
+
messageQueue: {
|
|
3112
|
+
/**
|
|
3113
|
+
* The index of the first and last (non-empty) pages.
|
|
3114
|
+
*
|
|
3115
|
+
* @param {number} arg
|
|
3116
|
+
* @param {Callback<PalletMessageQueueBookState> =} callback
|
|
3117
|
+
**/
|
|
3118
|
+
bookStateFor: GenericStorageQuery<(arg: number) => PalletMessageQueueBookState>;
|
|
3119
|
+
/**
|
|
3120
|
+
* The origin at which we should begin servicing.
|
|
3121
|
+
*
|
|
3122
|
+
* @param {Callback<number | undefined> =} callback
|
|
3123
|
+
**/
|
|
3124
|
+
serviceHead: GenericStorageQuery<() => number | undefined>;
|
|
3125
|
+
/**
|
|
3126
|
+
* The map of page indices to pages.
|
|
3127
|
+
*
|
|
3128
|
+
* @param {[number, number]} arg
|
|
3129
|
+
* @param {Callback<PalletMessageQueuePage | undefined> =} callback
|
|
3130
|
+
**/
|
|
3131
|
+
pages: GenericStorageQuery<(arg: [number, number]) => PalletMessageQueuePage | undefined>;
|
|
3132
|
+
/**
|
|
3133
|
+
* Generic pallet storage query
|
|
3134
|
+
**/
|
|
3135
|
+
[storage: string]: GenericStorageQuery;
|
|
3136
|
+
};
|
|
3137
|
+
/**
|
|
3138
|
+
* Pallet `Pov`'s storage queries
|
|
3139
|
+
**/
|
|
3140
|
+
pov: {
|
|
3141
|
+
/**
|
|
3142
|
+
*
|
|
3143
|
+
* @param {Callback<number | undefined> =} callback
|
|
3144
|
+
**/
|
|
3145
|
+
value: GenericStorageQuery<() => number | undefined>;
|
|
3146
|
+
/**
|
|
3147
|
+
*
|
|
3148
|
+
* @param {Callback<number | undefined> =} callback
|
|
3149
|
+
**/
|
|
3150
|
+
value2: GenericStorageQuery<() => number | undefined>;
|
|
3151
|
+
/**
|
|
3152
|
+
* A value without a MEL bound.
|
|
3153
|
+
*
|
|
3154
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
3155
|
+
**/
|
|
3156
|
+
unboundedValue: GenericStorageQuery<() => Bytes | undefined>;
|
|
3157
|
+
/**
|
|
3158
|
+
* A value with a MEL bound of 32 byte.
|
|
3159
|
+
*
|
|
3160
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
3161
|
+
**/
|
|
3162
|
+
boundedValue: GenericStorageQuery<() => Bytes | undefined>;
|
|
3163
|
+
/**
|
|
3164
|
+
* 4MiB value.
|
|
3165
|
+
*
|
|
3166
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
3167
|
+
**/
|
|
3168
|
+
largeValue: GenericStorageQuery<() => Bytes | undefined>;
|
|
3169
|
+
/**
|
|
3170
|
+
*
|
|
3171
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
3172
|
+
**/
|
|
3173
|
+
largeValue2: GenericStorageQuery<() => Bytes | undefined>;
|
|
3174
|
+
/**
|
|
3175
|
+
* A map with a maximum of 1M entries.
|
|
3176
|
+
*
|
|
3177
|
+
* @param {number} arg
|
|
3178
|
+
* @param {Callback<number | undefined> =} callback
|
|
3179
|
+
**/
|
|
3180
|
+
map1M: GenericStorageQuery<(arg: number) => number | undefined>;
|
|
3181
|
+
/**
|
|
3182
|
+
* A map with a maximum of 16M entries.
|
|
3183
|
+
*
|
|
3184
|
+
* @param {number} arg
|
|
3185
|
+
* @param {Callback<number | undefined> =} callback
|
|
3186
|
+
**/
|
|
3187
|
+
map16M: GenericStorageQuery<(arg: number) => number | undefined>;
|
|
3188
|
+
/**
|
|
3189
|
+
*
|
|
3190
|
+
* @param {[number, number]} arg
|
|
3191
|
+
* @param {Callback<number | undefined> =} callback
|
|
3192
|
+
**/
|
|
3193
|
+
doubleMap1M: GenericStorageQuery<(arg: [number, number]) => number | undefined>;
|
|
3194
|
+
/**
|
|
3195
|
+
*
|
|
3196
|
+
* @param {number} arg
|
|
3197
|
+
* @param {Callback<Array<number> | undefined> =} callback
|
|
3198
|
+
**/
|
|
3199
|
+
unboundedMap: GenericStorageQuery<(arg: number) => Array<number> | undefined>;
|
|
3200
|
+
/**
|
|
3201
|
+
*
|
|
3202
|
+
* @param {number} arg
|
|
3203
|
+
* @param {Callback<Array<number> | undefined> =} callback
|
|
3204
|
+
**/
|
|
3205
|
+
unboundedMap2: GenericStorageQuery<(arg: number) => Array<number> | undefined>;
|
|
3206
|
+
/**
|
|
3207
|
+
*
|
|
3208
|
+
* @param {number} arg
|
|
3209
|
+
* @param {Callback<Array<number> | undefined> =} callback
|
|
3210
|
+
**/
|
|
3211
|
+
unboundedMapTwox: GenericStorageQuery<(arg: number) => Array<number> | undefined>;
|
|
3212
|
+
/**
|
|
3213
|
+
* Generic pallet storage query
|
|
3214
|
+
**/
|
|
3215
|
+
[storage: string]: GenericStorageQuery;
|
|
3216
|
+
};
|
|
3217
|
+
/**
|
|
3218
|
+
* Pallet `TxPause`'s storage queries
|
|
3219
|
+
**/
|
|
3220
|
+
txPause: {
|
|
3221
|
+
/**
|
|
3222
|
+
* The set of calls that are explicitly paused.
|
|
3223
|
+
*
|
|
3224
|
+
* @param {[BytesLike, BytesLike]} arg
|
|
3225
|
+
* @param {Callback<[] | undefined> =} callback
|
|
3226
|
+
**/
|
|
3227
|
+
pausedCalls: GenericStorageQuery<(arg: [BytesLike, BytesLike]) => [] | undefined>;
|
|
3228
|
+
/**
|
|
3229
|
+
* Generic pallet storage query
|
|
3230
|
+
**/
|
|
3231
|
+
[storage: string]: GenericStorageQuery;
|
|
3232
|
+
};
|
|
3233
|
+
/**
|
|
3234
|
+
* Pallet `SafeMode`'s storage queries
|
|
3235
|
+
**/
|
|
3236
|
+
safeMode: {
|
|
3237
|
+
/**
|
|
3238
|
+
* Contains the last block number that the safe-mode will remain entered in.
|
|
3239
|
+
*
|
|
3240
|
+
* Set to `None` when safe-mode is exited.
|
|
3241
|
+
*
|
|
3242
|
+
* Safe-mode is automatically exited when the current block number exceeds this value.
|
|
3243
|
+
*
|
|
3244
|
+
* @param {Callback<number | undefined> =} callback
|
|
3245
|
+
**/
|
|
3246
|
+
enteredUntil: GenericStorageQuery<() => number | undefined>;
|
|
3247
|
+
/**
|
|
3248
|
+
* Holds the reserve that was taken from an account at a specific block number.
|
|
3249
|
+
*
|
|
3250
|
+
* This helps governance to have an overview of outstanding deposits that should be returned or
|
|
3251
|
+
* slashed.
|
|
3252
|
+
*
|
|
3253
|
+
* @param {[AccountId32Like, number]} arg
|
|
3254
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
3255
|
+
**/
|
|
3256
|
+
deposits: GenericStorageQuery<(arg: [AccountId32Like, number]) => bigint | undefined>;
|
|
3257
|
+
/**
|
|
3258
|
+
* Generic pallet storage query
|
|
3259
|
+
**/
|
|
3260
|
+
[storage: string]: GenericStorageQuery;
|
|
3261
|
+
};
|
|
3262
|
+
/**
|
|
3263
|
+
* Pallet `Broker`'s storage queries
|
|
3264
|
+
**/
|
|
3265
|
+
broker: {
|
|
3266
|
+
/**
|
|
3267
|
+
* The current configuration of this pallet.
|
|
3268
|
+
*
|
|
3269
|
+
* @param {Callback<PalletBrokerConfigRecord | undefined> =} callback
|
|
3270
|
+
**/
|
|
3271
|
+
configuration: GenericStorageQuery<() => PalletBrokerConfigRecord | undefined>;
|
|
3272
|
+
/**
|
|
3273
|
+
* The Polkadot Core reservations (generally tasked with the maintenance of System Chains).
|
|
3274
|
+
*
|
|
3275
|
+
* @param {Callback<Array<Array<PalletBrokerScheduleItem>>> =} callback
|
|
3276
|
+
**/
|
|
3277
|
+
reservations: GenericStorageQuery<() => Array<Array<PalletBrokerScheduleItem>>>;
|
|
3278
|
+
/**
|
|
3279
|
+
* The Polkadot Core legacy leases.
|
|
3280
|
+
*
|
|
3281
|
+
* @param {Callback<Array<PalletBrokerLeaseRecordItem>> =} callback
|
|
3282
|
+
**/
|
|
3283
|
+
leases: GenericStorageQuery<() => Array<PalletBrokerLeaseRecordItem>>;
|
|
3284
|
+
/**
|
|
3285
|
+
* The current status of miscellaneous subsystems of this pallet.
|
|
3286
|
+
*
|
|
3287
|
+
* @param {Callback<PalletBrokerStatusRecord | undefined> =} callback
|
|
3288
|
+
**/
|
|
3289
|
+
status: GenericStorageQuery<() => PalletBrokerStatusRecord | undefined>;
|
|
3290
|
+
/**
|
|
3291
|
+
* The details of the current sale, including its properties and status.
|
|
3292
|
+
*
|
|
3293
|
+
* @param {Callback<PalletBrokerSaleInfoRecord | undefined> =} callback
|
|
3294
|
+
**/
|
|
3295
|
+
saleInfo: GenericStorageQuery<() => PalletBrokerSaleInfoRecord | undefined>;
|
|
3296
|
+
/**
|
|
3297
|
+
* Records of allowed renewals.
|
|
3298
|
+
*
|
|
3299
|
+
* @param {PalletBrokerAllowedRenewalId} arg
|
|
3300
|
+
* @param {Callback<PalletBrokerAllowedRenewalRecord | undefined> =} callback
|
|
3301
|
+
**/
|
|
3302
|
+
allowedRenewals: GenericStorageQuery<(arg: PalletBrokerAllowedRenewalId) => PalletBrokerAllowedRenewalRecord | undefined>;
|
|
3303
|
+
/**
|
|
3304
|
+
* The current (unassigned) Regions.
|
|
3305
|
+
*
|
|
3306
|
+
* @param {PalletBrokerRegionId} arg
|
|
3307
|
+
* @param {Callback<PalletBrokerRegionRecord | undefined> =} callback
|
|
3308
|
+
**/
|
|
3309
|
+
regions: GenericStorageQuery<(arg: PalletBrokerRegionId) => PalletBrokerRegionRecord | undefined>;
|
|
3310
|
+
/**
|
|
3311
|
+
* The work we plan on having each core do at a particular time in the future.
|
|
3312
|
+
*
|
|
3313
|
+
* @param {[number, number]} arg
|
|
3314
|
+
* @param {Callback<Array<PalletBrokerScheduleItem> | undefined> =} callback
|
|
3315
|
+
**/
|
|
3316
|
+
workplan: GenericStorageQuery<(arg: [number, number]) => Array<PalletBrokerScheduleItem> | undefined>;
|
|
3317
|
+
/**
|
|
3318
|
+
* The current workload of each core. This gets updated with workplan as timeslices pass.
|
|
3319
|
+
*
|
|
3320
|
+
* @param {number} arg
|
|
3321
|
+
* @param {Callback<Array<PalletBrokerScheduleItem>> =} callback
|
|
3322
|
+
**/
|
|
3323
|
+
workload: GenericStorageQuery<(arg: number) => Array<PalletBrokerScheduleItem>>;
|
|
3324
|
+
/**
|
|
3325
|
+
* Record of a single contribution to the Instantaneous Coretime Pool.
|
|
3326
|
+
*
|
|
3327
|
+
* @param {PalletBrokerRegionId} arg
|
|
3328
|
+
* @param {Callback<PalletBrokerContributionRecord | undefined> =} callback
|
|
3329
|
+
**/
|
|
3330
|
+
instaPoolContribution: GenericStorageQuery<(arg: PalletBrokerRegionId) => PalletBrokerContributionRecord | undefined>;
|
|
3331
|
+
/**
|
|
3332
|
+
* Record of Coretime entering or leaving the Instantaneous Coretime Pool.
|
|
3333
|
+
*
|
|
3334
|
+
* @param {number} arg
|
|
3335
|
+
* @param {Callback<PalletBrokerPoolIoRecord> =} callback
|
|
3336
|
+
**/
|
|
3337
|
+
instaPoolIo: GenericStorageQuery<(arg: number) => PalletBrokerPoolIoRecord>;
|
|
3338
|
+
/**
|
|
3339
|
+
* Total InstaPool rewards for each Timeslice and the number of core parts which contributed.
|
|
3340
|
+
*
|
|
3341
|
+
* @param {number} arg
|
|
3342
|
+
* @param {Callback<PalletBrokerInstaPoolHistoryRecord | undefined> =} callback
|
|
3343
|
+
**/
|
|
3344
|
+
instaPoolHistory: GenericStorageQuery<(arg: number) => PalletBrokerInstaPoolHistoryRecord | undefined>;
|
|
3345
|
+
/**
|
|
3346
|
+
* Generic pallet storage query
|
|
3347
|
+
**/
|
|
3348
|
+
[storage: string]: GenericStorageQuery;
|
|
3349
|
+
};
|
|
3350
|
+
}
|