import type { AccountId32, AccountId32Like, Bytes, BytesLike, Data, Digest, FixedBytes, FixedU128, FixedU64, H160, H256, Perbill, Percent, Phase } from '@dedot/codecs'; import type { GenericChainStorage, GenericStorageQuery } from '@dedot/types'; import type { FrameSupportDispatchPerDispatchClass, FrameSupportPreimagesBounded, FrameSupportTokensFungibleHoldConsideration, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmount, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, KitchensinkRuntimeRuntimeCall, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetRewardsPoolInfo, PalletAssetRewardsPoolStakerInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAutoRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerOnDemandRevenueRecord, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDelegatedStakingAgentLedger, PalletDelegatedStakingDelegation, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityProvider, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletIdentityUsernameInformation, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsBitFlagsCollectionRole, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletReferendaReferendumInfoTally, PalletReviveStorageContractInfo, PalletReviveStorageDeletionQueueManager, PalletReviveWasmCodeInfo, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpConsensusSlotsSlot, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingOffenceOffenceSeverity, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight } from './types.js'; export interface ChainStorage extends GenericChainStorage { /** * Pallet `System`'s storage queries **/ system: { /** * The full account information for a particular account ID. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ account: GenericStorageQuery<(arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>; /** * Total extrinsics count for the current block. * * @param {Callback =} callback **/ extrinsicCount: GenericStorageQuery<() => number | undefined>; /** * Whether all inherents have been applied. * * @param {Callback =} callback **/ inherentsApplied: GenericStorageQuery<() => boolean>; /** * The current weight for the block. * * @param {Callback =} callback **/ blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>; /** * Total length (in bytes) for all extrinsics put together, for the current block. * * @param {Callback =} callback **/ allExtrinsicsLen: GenericStorageQuery<() => number | undefined>; /** * Map of block numbers to block hashes. * * @param {number} arg * @param {Callback =} callback **/ blockHash: GenericStorageQuery<(arg: number) => H256, number>; /** * Extrinsics data for the current block (maps an extrinsic's index to its data). * * @param {number} arg * @param {Callback =} callback **/ extrinsicData: GenericStorageQuery<(arg: number) => Bytes, number>; /** * The current block number being processed. Set by `execute_block`. * * @param {Callback =} callback **/ number: GenericStorageQuery<() => number>; /** * Hash of the previous block. * * @param {Callback =} callback **/ parentHash: GenericStorageQuery<() => H256>; /** * Digest of the current block, also part of the block header. * * @param {Callback =} callback **/ digest: GenericStorageQuery<() => Digest>; /** * Events deposited for the current block. * * NOTE: The item is unbound and should therefore never be read on chain. * It could otherwise inflate the PoV size of a block. * * Events have a large in-memory size. Box the events to not go out-of-memory * just in case someone still reads them from within the runtime. * * @param {Callback> =} callback **/ events: GenericStorageQuery<() => Array>; /** * The number of events in the `Events` list. * * @param {Callback =} callback **/ eventCount: GenericStorageQuery<() => number>; /** * Mapping between a topic (represented by T::Hash) and a vector of indexes * of events in the `>` list. * * All topic vectors have deterministic storage locations depending on the topic. This * allows light-clients to leverage the changes trie storage tracking mechanism and * in case of changes fetch the list of events of interest. * * The value has the type `(BlockNumberFor, EventIndex)` because if we used only just * the `EventIndex` then in case if the topic has the same contents on the next block * no notification will be triggered thus the event might be lost. * * @param {H256} arg * @param {Callback> =} callback **/ eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>, H256>; /** * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. * * @param {Callback =} callback **/ lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>; /** * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. * * @param {Callback =} callback **/ upgradedToU32RefCount: GenericStorageQuery<() => boolean>; /** * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False * (default) if not. * * @param {Callback =} callback **/ upgradedToTripleRefCount: GenericStorageQuery<() => boolean>; /** * The execution phase of the block. * * @param {Callback =} callback **/ executionPhase: GenericStorageQuery<() => Phase | undefined>; /** * `Some` if a code upgrade has been authorized. * * @param {Callback =} callback **/ authorizedUpgrade: GenericStorageQuery<() => FrameSystemCodeUpgradeAuthorization | undefined>; /** * The weight reclaimed for the extrinsic. * * This information is available until the end of the extrinsic execution. * More precisely this information is removed in `note_applied_extrinsic`. * * Logic doing some post dispatch weight reduction must update this storage to avoid duplicate * reduction. * * @param {Callback =} callback **/ extrinsicWeightReclaimed: GenericStorageQuery<() => SpWeightsWeightV2Weight>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Babe`'s storage queries **/ babe: { /** * Current epoch index. * * @param {Callback =} callback **/ epochIndex: GenericStorageQuery<() => bigint>; /** * Current epoch authorities. * * @param {Callback> =} callback **/ authorities: GenericStorageQuery<() => Array<[SpConsensusBabeAppPublic, bigint]>>; /** * The slot at which the first epoch actually started. This is 0 * until the first block of the chain. * * @param {Callback =} callback **/ genesisSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>; /** * Current slot number. * * @param {Callback =} callback **/ currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>; /** * The epoch randomness for the *current* epoch. * * # Security * * This MUST NOT be used for gambling, as it can be influenced by a * malicious validator in the short term. It MAY be used in many * cryptographic protocols, however, so long as one remembers that this * (like everything else on-chain) it is public. For example, it can be * used where a number is needed that cannot have been chosen by an * adversary, for purposes such as public-coin zero-knowledge proofs. * * @param {Callback> =} callback **/ randomness: GenericStorageQuery<() => FixedBytes<32>>; /** * Pending epoch configuration change that will be applied when the next epoch is enacted. * * @param {Callback =} callback **/ pendingEpochConfigChange: GenericStorageQuery<() => SpConsensusBabeDigestsNextConfigDescriptor | undefined>; /** * Next epoch randomness. * * @param {Callback> =} callback **/ nextRandomness: GenericStorageQuery<() => FixedBytes<32>>; /** * Next epoch authorities. * * @param {Callback> =} callback **/ nextAuthorities: GenericStorageQuery<() => Array<[SpConsensusBabeAppPublic, bigint]>>; /** * Randomness under construction. * * We make a trade-off between storage accesses and list length. * We store the under-construction randomness in segments of up to * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`. * * Once a segment reaches this length, we begin the next one. * We reset all segments and return to `0` at the beginning of every * epoch. * * @param {Callback =} callback **/ segmentIndex: GenericStorageQuery<() => number>; /** * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay. * * @param {number} arg * @param {Callback>> =} callback **/ underConstruction: GenericStorageQuery<(arg: number) => Array>, number>; /** * Temporary value (cleared at block finalization) which is `Some` * if per-block initialization has already been called for current block. * * @param {Callback =} callback **/ initialized: GenericStorageQuery<() => SpConsensusBabeDigestsPreDigest | undefined | undefined>; /** * This field should always be populated during block processing unless * secondary plain slots are enabled (which don't contain a VRF output). * * It is set in `on_finalize`, before it will contain the value from the last block. * * @param {Callback | undefined> =} callback **/ authorVrfRandomness: GenericStorageQuery<() => FixedBytes<32> | undefined>; /** * The block numbers when the last and current epoch have started, respectively `N-1` and * `N`. * NOTE: We track this is in order to annotate the block number when a given pool of * entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in * slots, which may be skipped, the block numbers may not line up with the slot numbers. * * @param {Callback<[number, number]> =} callback **/ epochStart: GenericStorageQuery<() => [number, number]>; /** * How late the current block is compared to its parent. * * This entry is populated as part of block execution and is cleaned up * on block finalization. Querying this storage entry outside of block * execution context should always yield zero. * * @param {Callback =} callback **/ lateness: GenericStorageQuery<() => number>; /** * The configuration for the current epoch. Should never be `None` as it is initialized in * genesis. * * @param {Callback =} callback **/ epochConfig: GenericStorageQuery<() => SpConsensusBabeBabeEpochConfiguration | undefined>; /** * The configuration for the next epoch, `None` if the config will not change * (you can fallback to `EpochConfig` instead in that case). * * @param {Callback =} callback **/ nextEpochConfig: GenericStorageQuery<() => SpConsensusBabeBabeEpochConfiguration | undefined>; /** * A list of the last 100 skipped epochs and the corresponding session index * when the epoch was skipped. * * This is only used for validating equivocation proofs. An equivocation proof * must contains a key-ownership proof for a given session, therefore we need a * way to tie together sessions and epoch indices, i.e. we need to validate that * a validator was the owner of a given key on a given session, and what the * active epoch index was during that session. * * @param {Callback> =} callback **/ skippedEpochs: GenericStorageQuery<() => Array<[bigint, number]>>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Timestamp`'s storage queries **/ timestamp: { /** * The current time for the current block. * * @param {Callback =} callback **/ now: GenericStorageQuery<() => bigint>; /** * Whether the timestamp has been updated in this block. * * This value is updated to `true` upon successful submission of a timestamp by a node. * It is then checked at the end of each block execution in the `on_finalize` hook. * * @param {Callback =} callback **/ didUpdate: GenericStorageQuery<() => boolean>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Authorship`'s storage queries **/ authorship: { /** * Author of current block. * * @param {Callback =} callback **/ author: GenericStorageQuery<() => AccountId32 | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Indices`'s storage queries **/ indices: { /** * The lookup from index to account. * * @param {number} arg * @param {Callback<[AccountId32, bigint, boolean] | undefined> =} callback **/ accounts: GenericStorageQuery<(arg: number) => [AccountId32, bigint, boolean] | undefined, number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Balances`'s storage queries **/ balances: { /** * The total units issued in the system. * * @param {Callback =} callback **/ totalIssuance: GenericStorageQuery<() => bigint>; /** * The total units of outstanding deactivated balance in the system. * * @param {Callback =} callback **/ inactiveIssuance: GenericStorageQuery<() => bigint>; /** * The Balances pallet example of storing the balance of an account. * * # Example * * ```nocompile * impl pallet_balances::Config for Runtime { * type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> * } * ``` * * You can also store the balance of an account in the `System` pallet. * * # Example * * ```nocompile * impl pallet_balances::Config for Runtime { * type AccountStore = System * } * ``` * * But this comes with tradeoffs, storing account balances in the system pallet stores * `frame_system` data alongside the account data contrary to storing account balances in the * `Balances` pallet, which uses a `StorageMap` to store balances data only. * NOTE: This is only used in the case that this pallet is used to store balances. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>; /** * Any liquidity locks on some account balances. * NOTE: Should only be accessed when setting, changing and freeing a lock. * * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/` * * @param {AccountId32Like} arg * @param {Callback> =} callback **/ locks: GenericStorageQuery<(arg: AccountId32Like) => Array, AccountId32>; /** * Named reserves on some account balances. * * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` * * @param {AccountId32Like} arg * @param {Callback> =} callback **/ reserves: GenericStorageQuery<(arg: AccountId32Like) => Array, AccountId32>; /** * Holds on account balances. * * @param {AccountId32Like} arg * @param {Callback> =} callback **/ holds: GenericStorageQuery<(arg: AccountId32Like) => Array, AccountId32>; /** * Freeze locks on account balances. * * @param {AccountId32Like} arg * @param {Callback> =} callback **/ freezes: GenericStorageQuery<(arg: AccountId32Like) => Array, AccountId32>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `TransactionPayment`'s storage queries **/ transactionPayment: { /** * * @param {Callback =} callback **/ nextFeeMultiplier: GenericStorageQuery<() => FixedU128>; /** * * @param {Callback =} callback **/ storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `ElectionProviderMultiPhase`'s storage queries **/ electionProviderMultiPhase: { /** * Internal counter for the number of rounds. * * This is useful for de-duplication of transactions submitted to the pool, and general * diagnostics of the pallet. * * This is merely incremented once per every time that an upstream `elect` is called. * * @param {Callback =} callback **/ round: GenericStorageQuery<() => number>; /** * Current phase. * * @param {Callback =} callback **/ currentPhase: GenericStorageQuery<() => PalletElectionProviderMultiPhasePhase>; /** * Current best solution, signed or unsigned, queued to be returned upon `elect`. * * Always sorted by score. * * @param {Callback =} callback **/ queuedSolution: GenericStorageQuery<() => PalletElectionProviderMultiPhaseReadySolution | undefined>; /** * Snapshot data of the round. * * This is created at the beginning of the signed phase and cleared upon calling `elect`. * Note: This storage type must only be mutated through [`SnapshotWrapper`]. * * @param {Callback =} callback **/ snapshot: GenericStorageQuery<() => PalletElectionProviderMultiPhaseRoundSnapshot | undefined>; /** * Desired number of targets to elect for this round. * * Only exists when [`Snapshot`] is present. * Note: This storage type must only be mutated through [`SnapshotWrapper`]. * * @param {Callback =} callback **/ desiredTargets: GenericStorageQuery<() => number | undefined>; /** * The metadata of the [`RoundSnapshot`] * * Only exists when [`Snapshot`] is present. * Note: This storage type must only be mutated through [`SnapshotWrapper`]. * * @param {Callback =} callback **/ snapshotMetadata: GenericStorageQuery<() => PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined>; /** * The next index to be assigned to an incoming signed submission. * * Every accepted submission is assigned a unique index; that index is bound to that particular * submission for the duration of the election. On election finalization, the next index is * reset to 0. * * We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its * capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`, * because iteration is slow. Instead, we store the value here. * * @param {Callback =} callback **/ signedSubmissionNextIndex: GenericStorageQuery<() => number>; /** * A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a * value in `SignedSubmissions`. * * We never need to process more than a single signed submission at a time. Signed submissions * can be quite large, so we're willing to pay the cost of multiple database accesses to access * them one at a time instead of reading and decoding all of them at once. * * @param {Callback> =} callback **/ signedSubmissionIndices: GenericStorageQuery<() => Array<[SpNposElectionsElectionScore, number, number]>>; /** * Unchecked, signed solutions. * * Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while * allowing us to keep only a single one in memory at a time. * * Twox note: the key of the map is an auto-incrementing index which users cannot inspect or * affect; we shouldn't need a cryptographically secure hasher. * * @param {number} arg * @param {Callback =} callback **/ signedSubmissionsMap: GenericStorageQuery<(arg: number) => PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined, number>; /** * The minimum score that each 'untrusted' solution must attain in order to be considered * feasible. * * Can be set via `set_minimum_untrusted_score`. * * @param {Callback =} callback **/ minimumUntrustedScore: GenericStorageQuery<() => SpNposElectionsElectionScore | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Staking`'s storage queries **/ staking: { /** * The ideal number of active validators. * * @param {Callback =} callback **/ validatorCount: GenericStorageQuery<() => number>; /** * Minimum number of staking participants before emergency conditions are imposed. * * @param {Callback =} callback **/ minimumValidatorCount: GenericStorageQuery<() => number>; /** * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're * easy to initialize and the performance hit is minimal (we expect no more than four * invulnerables) and restricted to testnets. * * @param {Callback> =} callback **/ invulnerables: GenericStorageQuery<() => Array>; /** * Map from all locked "stash" accounts to the controller account. * * TWOX-NOTE: SAFE since `AccountId` is a secure hash. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ bonded: GenericStorageQuery<(arg: AccountId32Like) => AccountId32 | undefined, AccountId32>; /** * The minimum active bond to become and maintain the role of a nominator. * * @param {Callback =} callback **/ minNominatorBond: GenericStorageQuery<() => bigint>; /** * The minimum active bond to become and maintain the role of a validator. * * @param {Callback =} callback **/ minValidatorBond: GenericStorageQuery<() => bigint>; /** * The minimum active nominator stake of the last successful election. * * @param {Callback =} callback **/ minimumActiveStake: GenericStorageQuery<() => bigint>; /** * The minimum amount of commission that validators can set. * * If set to `0`, no limit exists. * * @param {Callback =} callback **/ minCommission: GenericStorageQuery<() => Perbill>; /** * Map from all (unlocked) "controller" accounts to the info regarding the staking. * * Note: All the reads and mutations to this storage *MUST* be done through the methods exposed * by [`StakingLedger`] to ensure data and lock consistency. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingStakingLedger | undefined, AccountId32>; /** * Where the reward payment should be made. Keyed by stash. * * TWOX-NOTE: SAFE since `AccountId` is a secure hash. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ payee: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingRewardDestination | undefined, AccountId32>; /** * The map from (wannabe) validator stash key to the preferences of that validator. * * TWOX-NOTE: SAFE since `AccountId` is a secure hash. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ validators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingValidatorPrefs, AccountId32>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForValidators: GenericStorageQuery<() => number>; /** * The maximum validator count before we stop allowing new validators to join. * * When this value is not set, no limits are enforced. * * @param {Callback =} callback **/ maxValidatorsCount: GenericStorageQuery<() => number | undefined>; /** * The map from nominator stash key to their nomination preferences, namely the validators that * they wish to support. * * Note that the keys of this storage map might become non-decodable in case the * account's [`NominationsQuota::MaxNominations`] configuration is decreased. * In this rare case, these nominators * are still existent in storage, their key is correct and retrievable (i.e. `contains_key` * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable * nominators will effectively not-exist, until they re-submit their preferences such that it * is within the bounds of the newly set `Config::MaxNominations`. * * This implies that `::iter_keys().count()` and `::iter().count()` might return different * values for this map. Moreover, the main `::count()` is aligned with the former, namely the * number of keys that exist. * * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via * [`Call::chill_other`] dispatchable by anyone. * * TWOX-NOTE: SAFE since `AccountId` is a secure hash. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ nominators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingNominations | undefined, AccountId32>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForNominators: GenericStorageQuery<() => number>; /** * Stakers whose funds are managed by other pallets. * * This pallet does not apply any locks on them, therefore they are only virtually bonded. They * are expected to be keyless accounts and hence should not be allowed to mutate their ledger * directly via this pallet. Instead, these accounts are managed by other pallets and accessed * via low level apis. We keep track of them to do minimal integrity checks. * * @param {AccountId32Like} arg * @param {Callback<[] | undefined> =} callback **/ virtualStakers: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForVirtualStakers: GenericStorageQuery<() => number>; /** * The maximum nominator count before we stop allowing new validators to join. * * When this value is not set, no limits are enforced. * * @param {Callback =} callback **/ maxNominatorsCount: GenericStorageQuery<() => number | undefined>; /** * The current era index. * * This is the latest planned era, depending on how the Session pallet queues the validator * set, it might be active or not. * * @param {Callback =} callback **/ currentEra: GenericStorageQuery<() => number | undefined>; /** * The active era information, it holds index and start. * * The active era is the era being currently rewarded. Validator set of this era must be * equal to [`SessionInterface::validators`]. * * @param {Callback =} callback **/ activeEra: GenericStorageQuery<() => PalletStakingActiveEraInfo | undefined>; /** * The session index at which the era start for the last [`Config::HistoryDepth`] eras. * * Note: This tracks the starting session (i.e. session index when era start being active) * for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`. * * @param {number} arg * @param {Callback =} callback **/ erasStartSessionIndex: GenericStorageQuery<(arg: number) => number | undefined, number>; /** * Exposure of validator at era. * * This is keyed first by the era index to allow bulk deletion and then the stash account. * * Is it removed after [`Config::HistoryDepth`] eras. * If stakers hasn't been set or has been removed then empty exposure is returned. * * Note: Deprecated since v14. Use `EraInfo` instead to work with exposures. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ erasStakers: GenericStorageQuery<(arg: [number, AccountId32Like]) => SpStakingExposure, [number, AccountId32]>; /** * Summary of validator exposure at a given era. * * This contains the total stake in support of the validator and their own stake. In addition, * it can also be used to get the number of nominators backing this validator and the number of * exposure pages they are divided into. The page count is useful to determine the number of * pages of rewards that needs to be claimed. * * This is keyed first by the era index to allow bulk deletion and then the stash account. * Should only be accessed through `EraInfo`. * * Is it removed after [`Config::HistoryDepth`] eras. * If stakers hasn't been set or has been removed then empty overview is returned. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ erasStakersOverview: GenericStorageQuery<(arg: [number, AccountId32Like]) => SpStakingPagedExposureMetadata | undefined, [ number, AccountId32 ]>; /** * Clipped Exposure of validator at era. * * Note: This is deprecated, should be used as read-only and will be removed in the future. * New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead. * * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the * `T::MaxExposurePageSize` biggest stakers. * (Note: the field `total` and `own` of the exposure remains unchanged). * This is used to limit the i/o cost for the nominator payout. * * This is keyed fist by the era index to allow bulk deletion and then the stash account. * * It is removed after [`Config::HistoryDepth`] eras. * If stakers hasn't been set or has been removed then empty exposure is returned. * * Note: Deprecated since v14. Use `EraInfo` instead to work with exposures. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ erasStakersClipped: GenericStorageQuery<(arg: [number, AccountId32Like]) => SpStakingExposure, [ number, AccountId32 ]>; /** * Paginated exposure of a validator at given era. * * This is keyed first by the era index to allow bulk deletion, then stash account and finally * the page. Should only be accessed through `EraInfo`. * * This is cleared after [`Config::HistoryDepth`] eras. * * @param {[number, AccountId32Like, number]} arg * @param {Callback =} callback **/ erasStakersPaged: GenericStorageQuery<(arg: [number, AccountId32Like, number]) => SpStakingExposurePage | undefined, [ number, AccountId32, number ]>; /** * History of claimed paged rewards by era and validator. * * This is keyed by era and validator stash which maps to the set of page indexes which have * been claimed. * * It is removed after [`Config::HistoryDepth`] eras. * * @param {[number, AccountId32Like]} arg * @param {Callback> =} callback **/ claimedRewards: GenericStorageQuery<(arg: [number, AccountId32Like]) => Array, [number, AccountId32]>; /** * Similar to `ErasStakers`, this holds the preferences of validators. * * This is keyed first by the era index to allow bulk deletion and then the stash account. * * Is it removed after [`Config::HistoryDepth`] eras. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ erasValidatorPrefs: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingValidatorPrefs, [ number, AccountId32 ]>; /** * The total validator era payout for the last [`Config::HistoryDepth`] eras. * * Eras that haven't finished yet or has been removed doesn't have reward. * * @param {number} arg * @param {Callback =} callback **/ erasValidatorReward: GenericStorageQuery<(arg: number) => bigint | undefined, number>; /** * Rewards for the last [`Config::HistoryDepth`] eras. * If reward hasn't been set or has been removed then 0 reward is returned. * * @param {number} arg * @param {Callback =} callback **/ erasRewardPoints: GenericStorageQuery<(arg: number) => PalletStakingEraRewardPoints, number>; /** * The total amount staked for the last [`Config::HistoryDepth`] eras. * If total hasn't been set or has been removed then 0 stake is returned. * * @param {number} arg * @param {Callback =} callback **/ erasTotalStake: GenericStorageQuery<(arg: number) => bigint, number>; /** * Mode of era forcing. * * @param {Callback =} callback **/ forceEra: GenericStorageQuery<() => PalletStakingForcing>; /** * Maximum staked rewards, i.e. the percentage of the era inflation that * is used for stake rewards. * See [Era payout](./index.html#era-payout). * * @param {Callback =} callback **/ maxStakedRewards: GenericStorageQuery<() => Percent | undefined>; /** * The percentage of the slash that is distributed to reporters. * * The rest of the slashed value is handled by the `Slash`. * * @param {Callback =} callback **/ slashRewardFraction: GenericStorageQuery<() => Perbill>; /** * The amount of currency given to reporters of a slash event which was * canceled by extraordinary circumstances (e.g. governance). * * @param {Callback =} callback **/ canceledSlashPayout: GenericStorageQuery<() => bigint>; /** * All unapplied slashes that are queued for later. * * @param {number} arg * @param {Callback> =} callback **/ unappliedSlashes: GenericStorageQuery<(arg: number) => Array, number>; /** * A mapping from still-bonded eras to the first session index of that era. * * Must contains information for eras for the range: * `[active_era - bounding_duration; active_era]` * * @param {Callback> =} callback **/ bondedEras: GenericStorageQuery<() => Array<[number, number]>>; /** * All slashing events on validators, mapped by era to the highest slash proportion * and slash value of the era. * * @param {[number, AccountId32Like]} arg * @param {Callback<[Perbill, bigint] | undefined> =} callback **/ validatorSlashInEra: GenericStorageQuery<(arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined, [ number, AccountId32 ]>; /** * All slashing events on nominators, mapped by era to the highest slash value of the era. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ nominatorSlashInEra: GenericStorageQuery<(arg: [number, AccountId32Like]) => bigint | undefined, [ number, AccountId32 ]>; /** * Slashing spans for stash accounts. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ slashingSpans: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingSlashingSlashingSpans | undefined, AccountId32>; /** * Records information about the maximum slash of a stash within a slashing span, * as well as how much reward has been paid out. * * @param {[AccountId32Like, number]} arg * @param {Callback =} callback **/ spanSlash: GenericStorageQuery<(arg: [AccountId32Like, number]) => PalletStakingSlashingSpanRecord, [ AccountId32, number ]>; /** * The last planned session scheduled by the session pallet. * * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]. * * @param {Callback =} callback **/ currentPlannedSession: GenericStorageQuery<() => number>; /** * The threshold for when users can start calling `chill_other` for other validators / * nominators. The threshold is compared to the actual number of validators / nominators * (`CountFor*`) in the system compared to the configured max (`Max*Count`). * * @param {Callback =} callback **/ chillThreshold: GenericStorageQuery<() => Percent | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Session`'s storage queries **/ session: { /** * The current set of validators. * * @param {Callback> =} callback **/ validators: GenericStorageQuery<() => Array>; /** * Current index of the session. * * @param {Callback =} callback **/ currentIndex: GenericStorageQuery<() => number>; /** * True if the underlying economic identities or weighting behind the validators * has changed in the queued validator set. * * @param {Callback =} callback **/ queuedChanged: GenericStorageQuery<() => boolean>; /** * The queued keys for the next session. When the next session begins, these keys * will be used to determine the validator's session keys. * * @param {Callback> =} callback **/ queuedKeys: GenericStorageQuery<() => Array<[AccountId32, KitchensinkRuntimeSessionKeys]>>; /** * Indices of disabled validators. * * The vec is always kept sorted so that we can find whether a given validator is * disabled using binary search. It gets cleared when `on_session_ending` returns * a new set of identities. * * @param {Callback> =} callback **/ disabledValidators: GenericStorageQuery<() => Array<[number, SpStakingOffenceOffenceSeverity]>>; /** * The next session keys for a validator. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ nextKeys: GenericStorageQuery<(arg: AccountId32Like) => KitchensinkRuntimeSessionKeys | undefined, AccountId32>; /** * The owner of a key. The key is the `KeyTypeId` + the encoded key. * * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg * @param {Callback =} callback **/ keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined, [ SpCoreCryptoKeyTypeId, Bytes ]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Democracy`'s storage queries **/ democracy: { /** * The number of (public) proposals that have been made so far. * * @param {Callback =} callback **/ publicPropCount: GenericStorageQuery<() => number>; /** * The public proposals. Unsorted. The second item is the proposal. * * @param {Callback> =} callback **/ publicProps: GenericStorageQuery<() => Array<[number, FrameSupportPreimagesBounded, AccountId32]>>; /** * Those who have locked a deposit. * * TWOX-NOTE: Safe, as increasing integer keys are safe. * * @param {number} arg * @param {Callback<[Array, bigint] | undefined> =} callback **/ depositOf: GenericStorageQuery<(arg: number) => [Array, bigint] | undefined, number>; /** * The next free referendum index, aka the number of referenda started so far. * * @param {Callback =} callback **/ referendumCount: GenericStorageQuery<() => number>; /** * The lowest referendum index representing an unbaked referendum. Equal to * `ReferendumCount` if there isn't a unbaked referendum. * * @param {Callback =} callback **/ lowestUnbaked: GenericStorageQuery<() => number>; /** * Information concerning any given referendum. * * TWOX-NOTE: SAFE as indexes are not under an attacker’s control. * * @param {number} arg * @param {Callback =} callback **/ referendumInfoOf: GenericStorageQuery<(arg: number) => PalletDemocracyReferendumInfo | undefined, number>; /** * All votes for a particular voter. We store the balance for the number of votes that we * have recorded. The second item is the total amount of delegations, that will be added. * * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ votingOf: GenericStorageQuery<(arg: AccountId32Like) => PalletDemocracyVoteVoting, AccountId32>; /** * True if the last referendum tabled was submitted externally. False if it was a public * proposal. * * @param {Callback =} callback **/ lastTabledWasExternal: GenericStorageQuery<() => boolean>; /** * The referendum to be tabled whenever it would be valid to table an external proposal. * This happens when a referendum needs to be tabled and one of two conditions are met: * - `LastTabledWasExternal` is `false`; or * - `PublicProps` is empty. * * @param {Callback<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined> =} callback **/ nextExternal: GenericStorageQuery<() => [FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined>; /** * A record of who vetoed what. Maps proposal hash to a possible existent block number * (until when it may not be resubmitted) and who vetoed it. * * @param {H256} arg * @param {Callback<[number, Array] | undefined> =} callback **/ blacklist: GenericStorageQuery<(arg: H256) => [number, Array] | undefined, H256>; /** * Record of all proposals that have been subject to emergency cancellation. * * @param {H256} arg * @param {Callback =} callback **/ cancellations: GenericStorageQuery<(arg: H256) => boolean, H256>; /** * General information concerning any proposal or referendum. * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON * dump or IPFS hash of a JSON file. * * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove) * large preimages. * * @param {PalletDemocracyMetadataOwner} arg * @param {Callback =} callback **/ metadataOf: GenericStorageQuery<(arg: PalletDemocracyMetadataOwner) => H256 | undefined, PalletDemocracyMetadataOwner>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Council`'s storage queries **/ council: { /** * The hashes of the active proposals. * * @param {Callback> =} callback **/ proposals: GenericStorageQuery<() => Array>; /** * Actual proposal for a given hash, if it's current. * * @param {H256} arg * @param {Callback =} callback **/ proposalOf: GenericStorageQuery<(arg: H256) => KitchensinkRuntimeRuntimeCall | undefined, H256>; /** * Consideration cost created for publishing and storing a proposal. * * Determined by [Config::Consideration] and may be not present for certain proposals (e.g. if * the proposal count at the time of creation was below threshold N). * * @param {H256} arg * @param {Callback<[AccountId32, FrameSupportTokensFungibleHoldConsideration] | undefined> =} callback **/ costOf: GenericStorageQuery<(arg: H256) => [AccountId32, FrameSupportTokensFungibleHoldConsideration] | undefined, H256>; /** * Votes on a given proposal, if it is ongoing. * * @param {H256} arg * @param {Callback =} callback **/ voting: GenericStorageQuery<(arg: H256) => PalletCollectiveVotes | undefined, H256>; /** * Proposals so far. * * @param {Callback =} callback **/ proposalCount: GenericStorageQuery<() => number>; /** * The current members of the collective. This is stored sorted (just by value). * * @param {Callback> =} callback **/ members: GenericStorageQuery<() => Array>; /** * The prime member that helps determine the default vote behavior in case of abstentions. * * @param {Callback =} callback **/ prime: GenericStorageQuery<() => AccountId32 | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `TechnicalCommittee`'s storage queries **/ technicalCommittee: { /** * The hashes of the active proposals. * * @param {Callback> =} callback **/ proposals: GenericStorageQuery<() => Array>; /** * Actual proposal for a given hash, if it's current. * * @param {H256} arg * @param {Callback =} callback **/ proposalOf: GenericStorageQuery<(arg: H256) => KitchensinkRuntimeRuntimeCall | undefined, H256>; /** * Consideration cost created for publishing and storing a proposal. * * Determined by [Config::Consideration] and may be not present for certain proposals (e.g. if * the proposal count at the time of creation was below threshold N). * * @param {H256} arg * @param {Callback<[AccountId32, []] | undefined> =} callback **/ costOf: GenericStorageQuery<(arg: H256) => [AccountId32, []] | undefined, H256>; /** * Votes on a given proposal, if it is ongoing. * * @param {H256} arg * @param {Callback =} callback **/ voting: GenericStorageQuery<(arg: H256) => PalletCollectiveVotes | undefined, H256>; /** * Proposals so far. * * @param {Callback =} callback **/ proposalCount: GenericStorageQuery<() => number>; /** * The current members of the collective. This is stored sorted (just by value). * * @param {Callback> =} callback **/ members: GenericStorageQuery<() => Array>; /** * The prime member that helps determine the default vote behavior in case of abstentions. * * @param {Callback =} callback **/ prime: GenericStorageQuery<() => AccountId32 | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Elections`'s storage queries **/ elections: { /** * The current elected members. * * Invariant: Always sorted based on account id. * * @param {Callback> =} callback **/ members: GenericStorageQuery<() => Array>; /** * The current reserved runners-up. * * Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the * last (i.e. _best_) runner-up will be replaced. * * @param {Callback> =} callback **/ runnersUp: GenericStorageQuery<() => Array>; /** * The present candidate list. A current member or runner-up can never enter this vector * and is always implicitly assumed to be a candidate. * * Second element is the deposit. * * Invariant: Always sorted based on account id. * * @param {Callback> =} callback **/ candidates: GenericStorageQuery<() => Array<[AccountId32, bigint]>>; /** * The total number of vote rounds that have happened, excluding the upcoming one. * * @param {Callback =} callback **/ electionRounds: GenericStorageQuery<() => number>; /** * Votes and locked stake of a particular voter. * * TWOX-NOTE: SAFE as `AccountId` is a crypto hash. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ voting: GenericStorageQuery<(arg: AccountId32Like) => PalletElectionsPhragmenVoter, AccountId32>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `TechnicalMembership`'s storage queries **/ technicalMembership: { /** * The current membership, stored as an ordered Vec. * * @param {Callback> =} callback **/ members: GenericStorageQuery<() => Array>; /** * The current prime member, if one exists. * * @param {Callback =} callback **/ prime: GenericStorageQuery<() => AccountId32 | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Grandpa`'s storage queries **/ grandpa: { /** * State of the current authority set. * * @param {Callback =} callback **/ state: GenericStorageQuery<() => PalletGrandpaStoredState>; /** * Pending change: (signaled at, scheduled change). * * @param {Callback =} callback **/ pendingChange: GenericStorageQuery<() => PalletGrandpaStoredPendingChange | undefined>; /** * next block number where we can force a change. * * @param {Callback =} callback **/ nextForced: GenericStorageQuery<() => number | undefined>; /** * `true` if we are currently stalled. * * @param {Callback<[number, number] | undefined> =} callback **/ stalled: GenericStorageQuery<() => [number, number] | undefined>; /** * The number of changes (both in terms of keys and underlying economic responsibilities) * in the "set" of Grandpa validators from genesis. * * @param {Callback =} callback **/ currentSetId: GenericStorageQuery<() => bigint>; /** * A mapping from grandpa set ID to the index of the *most recent* session for which its * members were responsible. * * This is only used for validating equivocation proofs. An equivocation proof must * contains a key-ownership proof for a given session, therefore we need a way to tie * together sessions and GRANDPA set ids, i.e. we need to validate that a validator * was the owner of a given key on a given session, and what the active set ID was * during that session. * * TWOX-NOTE: `SetId` is not under user control. * * @param {bigint} arg * @param {Callback =} callback **/ setIdSession: GenericStorageQuery<(arg: bigint) => number | undefined, bigint>; /** * The current list of authorities. * * @param {Callback> =} callback **/ authorities: GenericStorageQuery<() => Array<[SpConsensusGrandpaAppPublic, bigint]>>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Treasury`'s storage queries **/ treasury: { /** * DEPRECATED: associated with `spend_local` call and will be removed in May 2025. * Refer to for migration to `spend`. * * Number of proposals that have been made. * * @param {Callback =} callback **/ proposalCount: GenericStorageQuery<() => number>; /** * DEPRECATED: associated with `spend_local` call and will be removed in May 2025. * Refer to for migration to `spend`. * * Proposals that have been made. * * @param {number} arg * @param {Callback =} callback **/ proposals: GenericStorageQuery<(arg: number) => PalletTreasuryProposal | undefined, number>; /** * The amount which has been reported as inactive to Currency. * * @param {Callback =} callback **/ deactivated: GenericStorageQuery<() => bigint>; /** * DEPRECATED: associated with `spend_local` call and will be removed in May 2025. * Refer to for migration to `spend`. * * Proposal indices that have been approved but not yet awarded. * * @param {Callback> =} callback **/ approvals: GenericStorageQuery<() => Array>; /** * The count of spends that have been made. * * @param {Callback =} callback **/ spendCount: GenericStorageQuery<() => number>; /** * Spends that have been approved and being processed. * * @param {number} arg * @param {Callback =} callback **/ spends: GenericStorageQuery<(arg: number) => PalletTreasurySpendStatus | undefined, number>; /** * The blocknumber for the last triggered spend period. * * @param {Callback =} callback **/ lastSpendPeriod: GenericStorageQuery<() => number | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `AssetRate`'s storage queries **/ assetRate: { /** * Maps an asset to its fixed point representation in the native balance. * * E.g. `native_amount = asset_amount * ConversionRateToNative::::get(asset_kind)` * * @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} arg * @param {Callback =} callback **/ conversionRateToNative: GenericStorageQuery<(arg: FrameSupportTokensFungibleUnionOfNativeOrWithId) => FixedU128 | undefined, FrameSupportTokensFungibleUnionOfNativeOrWithId>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Contracts`'s storage queries **/ contracts: { /** * A mapping from a contract's code hash to its code. * * @param {H256} arg * @param {Callback =} callback **/ pristineCode: GenericStorageQuery<(arg: H256) => Bytes | undefined, H256>; /** * A mapping from a contract's code hash to its code info. * * @param {H256} arg * @param {Callback =} callback **/ codeInfoOf: GenericStorageQuery<(arg: H256) => PalletContractsWasmCodeInfo | undefined, H256>; /** * This is a **monotonic** counter incremented on contract instantiation. * * This is used in order to generate unique trie ids for contracts. * The trie id of a new contract is calculated from hash(account_id, nonce). * The nonce is required because otherwise the following sequence would lead to * a possible collision of storage: * * 1. Create a new contract. * 2. Terminate the contract. * 3. Immediately recreate the contract with the same account_id. * * This is bad because the contents of a trie are deleted lazily and there might be * storage of the old instantiation still in it when the new contract is created. Please * note that we can't replace the counter by the block number because the sequence above * can happen in the same block. We also can't keep the account counter in memory only * because storage is the only way to communicate across different extrinsics in the * same block. * * # Note * * Do not use it to determine the number of contracts. It won't be decremented if * a contract is destroyed. * * @param {Callback =} callback **/ nonce: GenericStorageQuery<() => bigint>; /** * The code associated with a given account. * * TWOX-NOTE: SAFE since `AccountId` is a secure hash. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ contractInfoOf: GenericStorageQuery<(arg: AccountId32Like) => PalletContractsStorageContractInfo | undefined, AccountId32>; /** * Evicted contracts that await child trie deletion. * * Child trie deletion is a heavy operation depending on the amount of storage items * stored in said trie. Therefore this operation is performed lazily in `on_idle`. * * @param {number} arg * @param {Callback =} callback **/ deletionQueue: GenericStorageQuery<(arg: number) => Bytes | undefined, number>; /** * A pair of monotonic counters used to track the latest contract marked for deletion * and the latest deleted contract in queue. * * @param {Callback =} callback **/ deletionQueueCounter: GenericStorageQuery<() => PalletContractsStorageDeletionQueueManager>; /** * A migration can span across multiple blocks. This storage defines a cursor to track the * progress of the migration, enabling us to resume from the last completed position. * * @param {Callback =} callback **/ migrationInProgress: GenericStorageQuery<() => Bytes | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Sudo`'s storage queries **/ sudo: { /** * The `AccountId` of the sudo key. * * @param {Callback =} callback **/ key: GenericStorageQuery<() => AccountId32 | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `ImOnline`'s storage queries **/ imOnline: { /** * The block number after which it's ok to send heartbeats in the current * session. * * At the beginning of each session we set this to a value that should fall * roughly in the middle of the session duration. The idea is to first wait for * the validators to produce a block in the current session, so that the * heartbeat later on will not be necessary. * * This value will only be used as a fallback if we fail to get a proper session * progress estimate from `NextSessionRotation`, as those estimates should be * more accurate then the value we calculate for `HeartbeatAfter`. * * @param {Callback =} callback **/ heartbeatAfter: GenericStorageQuery<() => number>; /** * The current set of keys that may issue a heartbeat. * * @param {Callback> =} callback **/ keys: GenericStorageQuery<() => Array>; /** * For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`. * * @param {[number, number]} arg * @param {Callback =} callback **/ receivedHeartbeats: GenericStorageQuery<(arg: [number, number]) => boolean | undefined, [number, number]>; /** * For each session index, we keep a mapping of `ValidatorId` to the * number of blocks authored by the given authority. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ authoredBlocks: GenericStorageQuery<(arg: [number, AccountId32Like]) => number, [number, AccountId32]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `AuthorityDiscovery`'s storage queries **/ authorityDiscovery: { /** * Keys of the current authority set. * * @param {Callback> =} callback **/ keys: GenericStorageQuery<() => Array>; /** * Keys of the next authority set. * * @param {Callback> =} callback **/ nextKeys: GenericStorageQuery<() => Array>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Offences`'s storage queries **/ offences: { /** * The primary structure that holds all offence records keyed by report identifiers. * * @param {H256} arg * @param {Callback =} callback **/ reports: GenericStorageQuery<(arg: H256) => SpStakingOffenceOffenceDetails | undefined, H256>; /** * A vector of reports of the same kind that happened at the same time slot. * * @param {[FixedBytes<16>, BytesLike]} arg * @param {Callback> =} callback **/ concurrentReportsIndex: GenericStorageQuery<(arg: [FixedBytes<16>, BytesLike]) => Array, [ FixedBytes<16>, Bytes ]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Historical`'s storage queries **/ historical: { /** * Mapping from historical session indices to session-data root hash and validator count. * * @param {number} arg * @param {Callback<[H256, number] | undefined> =} callback **/ historicalSessions: GenericStorageQuery<(arg: number) => [H256, number] | undefined, number>; /** * The range of historical sessions we store. [first, last) * * @param {Callback<[number, number] | undefined> =} callback **/ storedRange: GenericStorageQuery<() => [number, number] | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `RandomnessCollectiveFlip`'s storage queries **/ randomnessCollectiveFlip: { /** * Series of block headers from the last 81 blocks that acts as random seed material. This * is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of * the oldest hash. * * @param {Callback> =} callback **/ randomMaterial: GenericStorageQuery<() => Array>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Identity`'s storage queries **/ identity: { /** * Information that is pertinent to identify the entity behind an account. First item is the * registration, second is the account's primary username. * * TWOX-NOTE: OK ― `AccountId` is a secure hash. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ identityOf: GenericStorageQuery<(arg: AccountId32Like) => PalletIdentityRegistration | undefined, AccountId32>; /** * Identifies the primary username of an account. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ usernameOf: GenericStorageQuery<(arg: AccountId32Like) => Bytes | undefined, AccountId32>; /** * The super-identity of an alternative "sub" identity together with its name, within that * context. If the account is not some other account's sub-identity, then just `None`. * * @param {AccountId32Like} arg * @param {Callback<[AccountId32, Data] | undefined> =} callback **/ superOf: GenericStorageQuery<(arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>; /** * Alternative "sub" identities of this account. * * The first item is the deposit, the second is a vector of the accounts. * * TWOX-NOTE: OK ― `AccountId` is a secure hash. * * @param {AccountId32Like} arg * @param {Callback<[bigint, Array]> =} callback **/ subsOf: GenericStorageQuery<(arg: AccountId32Like) => [bigint, Array], AccountId32>; /** * The set of registrars. Not expected to get very big as can only be added through a * special origin (likely a council motion). * * The index into this can be cast to `RegistrarIndex` to get a valid value. * * @param {Callback> =} callback **/ registrars: GenericStorageQuery<() => Array>; /** * A map of the accounts who are authorized to grant usernames. * * @param {BytesLike} arg * @param {Callback =} callback **/ authorityOf: GenericStorageQuery<(arg: BytesLike) => PalletIdentityAuthorityProperties | undefined, Bytes>; /** * Reverse lookup from `username` to the `AccountId` that has registered it and the provider of * the username. The `owner` value should be a key in the `UsernameOf` map, but it may not if * the user has cleared their username or it has been removed. * * Multiple usernames may map to the same `AccountId`, but `UsernameOf` will only map to one * primary username. * * @param {BytesLike} arg * @param {Callback =} callback **/ usernameInfoOf: GenericStorageQuery<(arg: BytesLike) => PalletIdentityUsernameInformation | undefined, Bytes>; /** * Usernames that an authority has granted, but that the account controller has not confirmed * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature * because they are a pure proxy, multisig, etc. In order to confirm it, they should call * [accept_username](`Call::accept_username`). * * First tuple item is the account and second is the acceptance deadline. * * @param {BytesLike} arg * @param {Callback<[AccountId32, number, PalletIdentityProvider] | undefined> =} callback **/ pendingUsernames: GenericStorageQuery<(arg: BytesLike) => [AccountId32, number, PalletIdentityProvider] | undefined, Bytes>; /** * Usernames for which the authority that granted them has started the removal process by * unbinding them. Each unbinding username maps to its grace period expiry, which is the first * block in which the username could be deleted through a * [remove_username](`Call::remove_username`) call. * * @param {BytesLike} arg * @param {Callback =} callback **/ unbindingUsernames: GenericStorageQuery<(arg: BytesLike) => number | undefined, Bytes>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Society`'s storage queries **/ society: { /** * The max number of members for the society at one time. * * @param {Callback =} callback **/ parameters: GenericStorageQuery<() => PalletSocietyGroupParams | undefined>; /** * Amount of our account balance that is specifically for the next round's bid(s). * * @param {Callback =} callback **/ pot: GenericStorageQuery<() => bigint>; /** * The first member. * * @param {Callback =} callback **/ founder: GenericStorageQuery<() => AccountId32 | undefined>; /** * The most primary from the most recently approved rank 0 members in the society. * * @param {Callback =} callback **/ head: GenericStorageQuery<() => AccountId32 | undefined>; /** * A hash of the rules of this society concerning membership. Can only be set once and * only by the founder. * * @param {Callback =} callback **/ rules: GenericStorageQuery<() => H256 | undefined>; /** * The current members and their rank. Doesn't include `SuspendedMembers`. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ members: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyMemberRecord | undefined, AccountId32>; /** * Information regarding rank-0 payouts, past and future. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ payouts: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyPayoutRecord, AccountId32>; /** * The number of items in `Members` currently. (Doesn't include `SuspendedMembers`.) * * @param {Callback =} callback **/ memberCount: GenericStorageQuery<() => number>; /** * The current items in `Members` keyed by their unique index. Keys are densely populated * `0..MemberCount` (does not include `MemberCount`). * * @param {number} arg * @param {Callback =} callback **/ memberByIndex: GenericStorageQuery<(arg: number) => AccountId32 | undefined, number>; /** * The set of suspended members, with their old membership record. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ suspendedMembers: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyMemberRecord | undefined, AccountId32>; /** * The number of rounds which have passed. * * @param {Callback =} callback **/ roundCount: GenericStorageQuery<() => number>; /** * The current bids, stored ordered by the value of the bid. * * @param {Callback> =} callback **/ bids: GenericStorageQuery<() => Array>; /** * * @param {AccountId32Like} arg * @param {Callback =} callback **/ candidates: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyCandidacy | undefined, AccountId32>; /** * The current skeptic. * * @param {Callback =} callback **/ skeptic: GenericStorageQuery<() => AccountId32 | undefined>; /** * Double map from Candidate -> Voter -> (Maybe) Vote. * * @param {[AccountId32Like, AccountId32Like]} arg * @param {Callback =} callback **/ votes: GenericStorageQuery<(arg: [AccountId32Like, AccountId32Like]) => PalletSocietyVote | undefined, [ AccountId32, AccountId32 ]>; /** * Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ voteClearCursor: GenericStorageQuery<(arg: AccountId32Like) => Bytes | undefined, AccountId32>; /** * At the end of the claim period, this contains the most recently approved members (along with * their bid and round ID) who is from the most recent round with the lowest bid. They will * become the new `Head`. * * @param {Callback =} callback **/ nextHead: GenericStorageQuery<() => PalletSocietyIntakeRecord | undefined>; /** * The number of challenge rounds there have been. Used to identify stale DefenderVotes. * * @param {Callback =} callback **/ challengeRoundCount: GenericStorageQuery<() => number>; /** * The defending member currently being challenged, along with a running tally of votes. * * @param {Callback<[AccountId32, AccountId32, PalletSocietyTally] | undefined> =} callback **/ defending: GenericStorageQuery<() => [AccountId32, AccountId32, PalletSocietyTally] | undefined>; /** * Votes for the defender, keyed by challenge round. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ defenderVotes: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletSocietyVote | undefined, [ number, AccountId32 ]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Recovery`'s storage queries **/ recovery: { /** * The set of recoverable accounts and their recovery configuration. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ recoverable: GenericStorageQuery<(arg: AccountId32Like) => PalletRecoveryRecoveryConfig | undefined, AccountId32>; /** * Active recovery attempts. * * First account is the account to be recovered, and the second account * is the user trying to recover the account. * * @param {[AccountId32Like, AccountId32Like]} arg * @param {Callback =} callback **/ activeRecoveries: GenericStorageQuery<(arg: [AccountId32Like, AccountId32Like]) => PalletRecoveryActiveRecovery | undefined, [ AccountId32, AccountId32 ]>; /** * The list of allowed proxy accounts. * * Map from the user who can access it to the recovered account. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ proxy: GenericStorageQuery<(arg: AccountId32Like) => AccountId32 | undefined, AccountId32>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Vesting`'s storage queries **/ vesting: { /** * Information regarding the vesting of a given account. * * @param {AccountId32Like} arg * @param {Callback | undefined> =} callback **/ vesting: GenericStorageQuery<(arg: AccountId32Like) => Array | undefined, AccountId32>; /** * Storage version of the pallet. * * New networks start with latest version, as determined by the genesis build. * * @param {Callback =} callback **/ storageVersion: GenericStorageQuery<() => PalletVestingReleases>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Scheduler`'s storage queries **/ scheduler: { /** * Block number at which the agenda began incomplete execution. * * @param {Callback =} callback **/ incompleteSince: GenericStorageQuery<() => number | undefined>; /** * Items to be executed, indexed by the block number that they should be executed on. * * @param {number} arg * @param {Callback> =} callback **/ agenda: GenericStorageQuery<(arg: number) => Array, number>; /** * Retry configurations for items to be executed, indexed by task address. * * @param {[number, number]} arg * @param {Callback =} callback **/ retries: GenericStorageQuery<(arg: [number, number]) => PalletSchedulerRetryConfig | undefined, [number, number]>; /** * Lookup from a name to the block number and index of the task. * * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4 * identities. * * @param {FixedBytes<32>} arg * @param {Callback<[number, number] | undefined> =} callback **/ lookup: GenericStorageQuery<(arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Glutton`'s storage queries **/ glutton: { /** * The proportion of the remaining `ref_time` to consume during `on_idle`. * * `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to * over `1.0` could stall the chain. * * @param {Callback =} callback **/ compute: GenericStorageQuery<() => FixedU64>; /** * The proportion of the remaining `proof_size` to consume during `on_idle`. * * `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to * over `1.0` could stall the chain. * * @param {Callback =} callback **/ storage: GenericStorageQuery<() => FixedU64>; /** * The proportion of the `block length` to consume on each block. * * `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to * over `1.0` could stall the chain. * * @param {Callback =} callback **/ length: GenericStorageQuery<() => FixedU64>; /** * Storage map used for wasting proof size. * * It contains no meaningful data - hence the name "Trash". The maximal number of entries is * set to 65k, which is just below the next jump at 16^4. This is important to reduce the proof * size benchmarking overestimate. The assumption here is that we won't have more than 65k * * 1KiB = 65MiB of proof size wasting in practice. However, this limit is not enforced, so the * pallet would also work out of the box with more entries, but its benchmarked proof weight * would possibly be underestimated in that case. * * @param {number} arg * @param {Callback | undefined> =} callback **/ trashData: GenericStorageQuery<(arg: number) => FixedBytes<1024> | undefined, number>; /** * The current number of entries in `TrashData`. * * @param {Callback =} callback **/ trashDataCount: GenericStorageQuery<() => number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Preimage`'s storage queries **/ preimage: { /** * The request status of a given hash. * * @param {H256} arg * @param {Callback =} callback **/ statusFor: GenericStorageQuery<(arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>; /** * The request status of a given hash. * * @param {H256} arg * @param {Callback =} callback **/ requestStatusFor: GenericStorageQuery<(arg: H256) => PalletPreimageRequestStatus | undefined, H256>; /** * * @param {[H256, number]} arg * @param {Callback =} callback **/ preimageFor: GenericStorageQuery<(arg: [H256, number]) => Bytes | undefined, [H256, number]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Proxy`'s storage queries **/ proxy: { /** * The set of account proxies. Maps the account which has delegated to the accounts * which are being delegated to, together with the amount held on deposit. * * @param {AccountId32Like} arg * @param {Callback<[Array, bigint]> =} callback **/ proxies: GenericStorageQuery<(arg: AccountId32Like) => [Array, bigint], AccountId32>; /** * The announcements made by the proxy (key). * * @param {AccountId32Like} arg * @param {Callback<[Array, bigint]> =} callback **/ announcements: GenericStorageQuery<(arg: AccountId32Like) => [Array, bigint], AccountId32>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Multisig`'s storage queries **/ multisig: { /** * The set of open multisig operations. * * @param {[AccountId32Like, FixedBytes<32>]} arg * @param {Callback =} callback **/ multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined, [ AccountId32, FixedBytes<32> ]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Bounties`'s storage queries **/ bounties: { /** * Number of bounty proposals that have been made. * * @param {Callback =} callback **/ bountyCount: GenericStorageQuery<() => number>; /** * Bounties that have been made. * * @param {number} arg * @param {Callback =} callback **/ bounties: GenericStorageQuery<(arg: number) => PalletBountiesBounty | undefined, number>; /** * The description of each bounty. * * @param {number} arg * @param {Callback =} callback **/ bountyDescriptions: GenericStorageQuery<(arg: number) => Bytes | undefined, number>; /** * Bounty indices that have been approved but not yet funded. * * @param {Callback> =} callback **/ bountyApprovals: GenericStorageQuery<() => Array>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Tips`'s storage queries **/ tips: { /** * TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value. * This has the insecure enumerable hash function since the key itself is already * guaranteed to be a secure hash. * * @param {H256} arg * @param {Callback =} callback **/ tips: GenericStorageQuery<(arg: H256) => PalletTipsOpenTip | undefined, H256>; /** * Simple preimage lookup from the reason's hash to the original data. Again, has an * insecure enumerable hash since the key is guaranteed to be the result of a secure hash. * * @param {H256} arg * @param {Callback =} callback **/ reasons: GenericStorageQuery<(arg: H256) => Bytes | undefined, H256>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Assets`'s storage queries **/ assets: { /** * Details of an asset. * * @param {number} arg * @param {Callback =} callback **/ asset: GenericStorageQuery<(arg: number) => PalletAssetsAssetDetails | undefined, number>; /** * The holdings of a specific account for a specific asset. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ account: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, [ number, AccountId32 ]>; /** * Approved balance transfers. First balance is the amount approved for transfer. Second * is the amount of `T::Currency` reserved for storing this. * First key is the asset ID, second key is the owner and third key is the delegate. * * @param {[number, AccountId32Like, AccountId32Like]} arg * @param {Callback =} callback **/ approvals: GenericStorageQuery<(arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, [ number, AccountId32, AccountId32 ]>; /** * Metadata of an asset. * * @param {number} arg * @param {Callback =} callback **/ metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata, number>; /** * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage * item has no effect. * * This can be useful for setting up constraints for IDs of the new assets. For example, by * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an * auto-increment model can be applied to all new asset IDs. * * The initial next asset ID can be set using the [`GenesisConfig`] or the * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration. * * @param {Callback =} callback **/ nextAssetId: GenericStorageQuery<() => number | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `PoolAssets`'s storage queries **/ poolAssets: { /** * Details of an asset. * * @param {number} arg * @param {Callback =} callback **/ asset: GenericStorageQuery<(arg: number) => PalletAssetsAssetDetails | undefined, number>; /** * The holdings of a specific account for a specific asset. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ account: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, [ number, AccountId32 ]>; /** * Approved balance transfers. First balance is the amount approved for transfer. Second * is the amount of `T::Currency` reserved for storing this. * First key is the asset ID, second key is the owner and third key is the delegate. * * @param {[number, AccountId32Like, AccountId32Like]} arg * @param {Callback =} callback **/ approvals: GenericStorageQuery<(arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, [ number, AccountId32, AccountId32 ]>; /** * Metadata of an asset. * * @param {number} arg * @param {Callback =} callback **/ metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata, number>; /** * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage * item has no effect. * * This can be useful for setting up constraints for IDs of the new assets. For example, by * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an * auto-increment model can be applied to all new asset IDs. * * The initial next asset ID can be set using the [`GenesisConfig`] or the * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration. * * @param {Callback =} callback **/ nextAssetId: GenericStorageQuery<() => number | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Beefy`'s storage queries **/ beefy: { /** * The current authorities set * * @param {Callback> =} callback **/ authorities: GenericStorageQuery<() => Array>; /** * The current validator set id * * @param {Callback =} callback **/ validatorSetId: GenericStorageQuery<() => bigint>; /** * Authorities set scheduled to be used with the next session * * @param {Callback> =} callback **/ nextAuthorities: GenericStorageQuery<() => Array>; /** * A mapping from BEEFY set ID to the index of the *most recent* session for which its * members were responsible. * * This is only used for validating equivocation proofs. An equivocation proof must * contains a key-ownership proof for a given session, therefore we need a way to tie * together sessions and BEEFY set ids, i.e. we need to validate that a validator * was the owner of a given key on a given session, and what the active set ID was * during that session. * * TWOX-NOTE: `ValidatorSetId` is not under user control. * * @param {bigint} arg * @param {Callback =} callback **/ setIdSession: GenericStorageQuery<(arg: bigint) => number | undefined, bigint>; /** * Block number where BEEFY consensus is enabled/started. * By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively * restarted from the newly set block number. * * @param {Callback =} callback **/ genesisBlock: GenericStorageQuery<() => number | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Mmr`'s storage queries **/ mmr: { /** * Latest MMR Root hash. * * @param {Callback =} callback **/ rootHash: GenericStorageQuery<() => H256>; /** * Current size of the MMR (number of leaves). * * @param {Callback =} callback **/ numberOfLeaves: GenericStorageQuery<() => bigint>; /** * Hashes of the nodes in the MMR. * * Note this collection only contains MMR peaks, the inner nodes (and leaves) * are pruned and only stored in the Offchain DB. * * @param {bigint} arg * @param {Callback =} callback **/ nodes: GenericStorageQuery<(arg: bigint) => H256 | undefined, bigint>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `MmrLeaf`'s storage queries **/ mmrLeaf: { /** * Details of current BEEFY authority set. * * @param {Callback =} callback **/ beefyAuthorities: GenericStorageQuery<() => SpConsensusBeefyMmrBeefyAuthoritySet>; /** * Details of next BEEFY authority set. * * This storage entry is used as cache for calls to `update_beefy_next_authority_set`. * * @param {Callback =} callback **/ beefyNextAuthorities: GenericStorageQuery<() => SpConsensusBeefyMmrBeefyAuthoritySet>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Lottery`'s storage queries **/ lottery: { /** * * @param {Callback =} callback **/ lotteryIndex: GenericStorageQuery<() => number>; /** * The configuration for the current lottery. * * @param {Callback =} callback **/ lottery: GenericStorageQuery<() => PalletLotteryLotteryConfig | undefined>; /** * Users who have purchased a ticket. (Lottery Index, Tickets Purchased) * * @param {AccountId32Like} arg * @param {Callback<[number, Array<[number, number]>]> =} callback **/ participants: GenericStorageQuery<(arg: AccountId32Like) => [number, Array<[number, number]>], AccountId32>; /** * Total number of tickets sold. * * @param {Callback =} callback **/ ticketsCount: GenericStorageQuery<() => number>; /** * Each ticket's owner. * * May have residual storage from previous lotteries. Use `TicketsCount` to see which ones * are actually valid ticket mappings. * * @param {number} arg * @param {Callback =} callback **/ tickets: GenericStorageQuery<(arg: number) => AccountId32 | undefined, number>; /** * The calls stored in this pallet to be used in an active lottery if configured * by `Config::ValidateCall`. * * @param {Callback> =} callback **/ callIndices: GenericStorageQuery<() => Array<[number, number]>>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Nis`'s storage queries **/ nis: { /** * The totals of items and balances within each queue. Saves a lot of storage reads in the * case of sparsely packed queues. * * The vector is indexed by duration in `Period`s, offset by one, so information on the queue * whose duration is one `Period` would be storage `0`. * * @param {Callback> =} callback **/ queueTotals: GenericStorageQuery<() => Array<[number, bigint]>>; /** * The queues of bids. Indexed by duration (in `Period`s). * * @param {number} arg * @param {Callback> =} callback **/ queues: GenericStorageQuery<(arg: number) => Array, number>; /** * Summary information over the general state. * * @param {Callback =} callback **/ summary: GenericStorageQuery<() => PalletNisSummaryRecord>; /** * The currently outstanding receipts, indexed according to the order of creation. * * @param {number} arg * @param {Callback =} callback **/ receipts: GenericStorageQuery<(arg: number) => PalletNisReceiptRecord | undefined, number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Uniques`'s storage queries **/ uniques: { /** * Details of a collection. * * @param {number} arg * @param {Callback =} callback **/ class: GenericStorageQuery<(arg: number) => PalletUniquesCollectionDetails | undefined, number>; /** * The collection, if any, of which an account is willing to take ownership. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ ownershipAcceptance: GenericStorageQuery<(arg: AccountId32Like) => number | undefined, AccountId32>; /** * The items held by any given account; set out this way so that items owned by a single * account can be enumerated. * * @param {[AccountId32Like, number, number]} arg * @param {Callback<[] | undefined> =} callback **/ account: GenericStorageQuery<(arg: [AccountId32Like, number, number]) => [] | undefined, [ AccountId32, number, number ]>; /** * The collections owned by any given account; set out this way so that collections owned by * a single account can be enumerated. * * @param {[AccountId32Like, number]} arg * @param {Callback<[] | undefined> =} callback **/ classAccount: GenericStorageQuery<(arg: [AccountId32Like, number]) => [] | undefined, [AccountId32, number]>; /** * The items in existence and their ownership details. * * @param {[number, number]} arg * @param {Callback =} callback **/ asset: GenericStorageQuery<(arg: [number, number]) => PalletUniquesItemDetails | undefined, [number, number]>; /** * Metadata of a collection. * * @param {number} arg * @param {Callback =} callback **/ classMetadataOf: GenericStorageQuery<(arg: number) => PalletUniquesCollectionMetadata | undefined, number>; /** * Metadata of an item. * * @param {[number, number]} arg * @param {Callback =} callback **/ instanceMetadataOf: GenericStorageQuery<(arg: [number, number]) => PalletUniquesItemMetadata | undefined, [ number, number ]>; /** * Attributes of a collection. * * @param {[number, number | undefined, BytesLike]} arg * @param {Callback<[Bytes, bigint] | undefined> =} callback **/ attribute: GenericStorageQuery<(arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined, [ number, number | undefined, Bytes ]>; /** * Price of an asset instance. * * @param {[number, number]} arg * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback **/ itemPriceOf: GenericStorageQuery<(arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, [ number, number ]>; /** * Keeps track of the number of items a collection might have. * * @param {number} arg * @param {Callback =} callback **/ collectionMaxSupply: GenericStorageQuery<(arg: number) => number | undefined, number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Nfts`'s storage queries **/ nfts: { /** * Details of a collection. * * @param {number} arg * @param {Callback =} callback **/ collection: GenericStorageQuery<(arg: number) => PalletNftsCollectionDetails | undefined, number>; /** * The collection, if any, of which an account is willing to take ownership. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ ownershipAcceptance: GenericStorageQuery<(arg: AccountId32Like) => number | undefined, AccountId32>; /** * The items held by any given account; set out this way so that items owned by a single * account can be enumerated. * * @param {[AccountId32Like, number, number]} arg * @param {Callback<[] | undefined> =} callback **/ account: GenericStorageQuery<(arg: [AccountId32Like, number, number]) => [] | undefined, [ AccountId32, number, number ]>; /** * The collections owned by any given account; set out this way so that collections owned by * a single account can be enumerated. * * @param {[AccountId32Like, number]} arg * @param {Callback<[] | undefined> =} callback **/ collectionAccount: GenericStorageQuery<(arg: [AccountId32Like, number]) => [] | undefined, [AccountId32, number]>; /** * The items in existence and their ownership details. * Stores collection roles as per account. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ collectionRoleOf: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined, [ number, AccountId32 ]>; /** * The items in existence and their ownership details. * * @param {[number, number]} arg * @param {Callback =} callback **/ item: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemDetails | undefined, [number, number]>; /** * Metadata of a collection. * * @param {number} arg * @param {Callback =} callback **/ collectionMetadataOf: GenericStorageQuery<(arg: number) => PalletNftsCollectionMetadata | undefined, number>; /** * Metadata of an item. * * @param {[number, number]} arg * @param {Callback =} callback **/ itemMetadataOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemMetadata | undefined, [ number, number ]>; /** * Attributes of a collection. * * @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback **/ attribute: GenericStorageQuery<(arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike]) => [Bytes, PalletNftsAttributeDeposit] | undefined, [ number, number | undefined, PalletNftsAttributeNamespace, Bytes ]>; /** * A price of an item. * * @param {[number, number]} arg * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback **/ itemPriceOf: GenericStorageQuery<(arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, [ number, number ]>; /** * Item attribute approvals. * * @param {[number, number]} arg * @param {Callback> =} callback **/ itemAttributesApprovalsOf: GenericStorageQuery<(arg: [number, number]) => Array, [number, number]>; /** * Stores the `CollectionId` that is going to be used for the next collection. * This gets incremented whenever a new collection is created. * * @param {Callback =} callback **/ nextCollectionId: GenericStorageQuery<() => number | undefined>; /** * Handles all the pending swaps. * * @param {[number, number]} arg * @param {Callback =} callback **/ pendingSwapOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsPendingSwap | undefined, [number, number]>; /** * Config of a collection. * * @param {number} arg * @param {Callback =} callback **/ collectionConfigOf: GenericStorageQuery<(arg: number) => PalletNftsCollectionConfig | undefined, number>; /** * Config of an item. * * @param {[number, number]} arg * @param {Callback =} callback **/ itemConfigOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemConfig | undefined, [number, number]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `NftFractionalization`'s storage queries **/ nftFractionalization: { /** * Keeps track of the corresponding NFT ID, asset ID and amount minted. * * @param {[number, number]} arg * @param {Callback =} callback **/ nftToAsset: GenericStorageQuery<(arg: [number, number]) => PalletNftFractionalizationDetails | undefined, [ number, number ]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Salary`'s storage queries **/ salary: { /** * The overall status of the system. * * @param {Callback =} callback **/ status: GenericStorageQuery<() => PalletSalaryStatusType | undefined>; /** * The status of a claimant. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ claimant: GenericStorageQuery<(arg: AccountId32Like) => PalletSalaryClaimantStatus | undefined, AccountId32>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `CoreFellowship`'s storage queries **/ coreFellowship: { /** * The overall status of the system. * * @param {Callback =} callback **/ params: GenericStorageQuery<() => PalletCoreFellowshipParamsType>; /** * The status of a claimant. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ member: GenericStorageQuery<(arg: AccountId32Like) => PalletCoreFellowshipMemberStatus | undefined, AccountId32>; /** * Some evidence together with the desired outcome for which it was presented. * * @param {AccountId32Like} arg * @param {Callback<[PalletCoreFellowshipWish, Bytes] | undefined> =} callback **/ memberEvidence: GenericStorageQuery<(arg: AccountId32Like) => [PalletCoreFellowshipWish, Bytes] | undefined, AccountId32>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `TransactionStorage`'s storage queries **/ transactionStorage: { /** * Collection of transaction metadata by block number. * * @param {number} arg * @param {Callback | undefined> =} callback **/ transactions: GenericStorageQuery<(arg: number) => Array | undefined, number>; /** * Count indexed chunks for each block. * * @param {number} arg * @param {Callback =} callback **/ chunkCount: GenericStorageQuery<(arg: number) => number, number>; /** * Storage fee per byte. * * @param {Callback =} callback **/ byteFee: GenericStorageQuery<() => bigint | undefined>; /** * Storage fee per transaction. * * @param {Callback =} callback **/ entryFee: GenericStorageQuery<() => bigint | undefined>; /** * Storage period for data in blocks. Should match `sp_storage_proof::DEFAULT_STORAGE_PERIOD` * for block authoring. * * @param {Callback =} callback **/ storagePeriod: GenericStorageQuery<() => number>; /** * * @param {Callback> =} callback **/ blockTransactions: GenericStorageQuery<() => Array>; /** * Was the proof checked in this block? * * @param {Callback =} callback **/ proofChecked: GenericStorageQuery<() => boolean>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `VoterList`'s storage queries **/ voterList: { /** * A single node, within some bag. * * Nodes store links forward and back within their respective bags. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ listNodes: GenericStorageQuery<(arg: AccountId32Like) => PalletBagsListListNode | undefined, AccountId32>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForListNodes: GenericStorageQuery<() => number>; /** * A bag stored in storage. * * Stores a `Bag` struct, which stores head and tail pointers to itself. * * @param {bigint} arg * @param {Callback =} callback **/ listBags: GenericStorageQuery<(arg: bigint) => PalletBagsListListBag | undefined, bigint>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `StateTrieMigration`'s storage queries **/ stateTrieMigration: { /** * Migration progress. * * This stores the snapshot of the last migrated keys. It can be set into motion and move * forward by any of the means provided by this pallet. * * @param {Callback =} callback **/ migrationProcess: GenericStorageQuery<() => PalletStateTrieMigrationMigrationTask>; /** * The limits that are imposed on automatic migrations. * * If set to None, then no automatic migration happens. * * @param {Callback =} callback **/ autoLimits: GenericStorageQuery<() => PalletStateTrieMigrationMigrationLimits | undefined>; /** * The maximum limits that the signed migration could use. * * If not set, no signed submission is allowed. * * @param {Callback =} callback **/ signedMigrationMaxLimits: GenericStorageQuery<() => PalletStateTrieMigrationMigrationLimits | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `ChildBounties`'s storage queries **/ childBounties: { /** * DEPRECATED: Replaced with `ParentTotalChildBounties` storage item keeping dedicated counts * for each parent bounty. Number of total child bounties. Will be removed in May 2025. * * @param {Callback =} callback **/ childBountyCount: GenericStorageQuery<() => number>; /** * Number of active child bounties per parent bounty. * Map of parent bounty index to number of child bounties. * * @param {number} arg * @param {Callback =} callback **/ parentChildBounties: GenericStorageQuery<(arg: number) => number, number>; /** * Number of total child bounties per parent bounty, including completed bounties. * * @param {number} arg * @param {Callback =} callback **/ parentTotalChildBounties: GenericStorageQuery<(arg: number) => number, number>; /** * Child bounties that have been added. * * @param {[number, number]} arg * @param {Callback =} callback **/ childBounties: GenericStorageQuery<(arg: [number, number]) => PalletChildBountiesChildBounty | undefined, [ number, number ]>; /** * The description of each child-bounty. Indexed by `(parent_id, child_id)`. * * This item replaces the `ChildBountyDescriptions` storage item from the V0 storage version. * * @param {[number, number]} arg * @param {Callback =} callback **/ childBountyDescriptionsV1: GenericStorageQuery<(arg: [number, number]) => Bytes | undefined, [number, number]>; /** * The mapping of the child bounty ids from storage version `V0` to the new `V1` version. * * The `V0` ids based on total child bounty count [`ChildBountyCount`]`. The `V1` version ids * based on the child bounty count per parent bounty [`ParentTotalChildBounties`]. * The item intended solely for client convenience and not used in the pallet's core logic. * * @param {number} arg * @param {Callback<[number, number] | undefined> =} callback **/ v0ToV1ChildBountyIds: GenericStorageQuery<(arg: number) => [number, number] | undefined, number>; /** * The cumulative child-bounty curator fee for each parent bounty. * * @param {number} arg * @param {Callback =} callback **/ childrenCuratorFees: GenericStorageQuery<(arg: number) => bigint, number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Referenda`'s storage queries **/ referenda: { /** * The next free referendum index, aka the number of referenda started so far. * * @param {Callback =} callback **/ referendumCount: GenericStorageQuery<() => number>; /** * Information concerning any given referendum. * * @param {number} arg * @param {Callback =} callback **/ referendumInfoFor: GenericStorageQuery<(arg: number) => PalletReferendaReferendumInfo | undefined, number>; /** * The sorted list of referenda ready to be decided but not yet being decided, ordered by * conviction-weighted approvals. * * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`. * * @param {number} arg * @param {Callback> =} callback **/ trackQueue: GenericStorageQuery<(arg: number) => Array<[number, bigint]>, number>; /** * The number of referenda being decided currently. * * @param {number} arg * @param {Callback =} callback **/ decidingCount: GenericStorageQuery<(arg: number) => number, number>; /** * The metadata is a general information concerning the referendum. * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON * dump or IPFS hash of a JSON file. * * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove) * large preimages. * * @param {number} arg * @param {Callback =} callback **/ metadataOf: GenericStorageQuery<(arg: number) => H256 | undefined, number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `ConvictionVoting`'s storage queries **/ convictionVoting: { /** * All voting for a particular voter in a particular voting class. We store the balance for the * number of votes that we have recorded. * * @param {[AccountId32Like, number]} arg * @param {Callback =} callback **/ votingFor: GenericStorageQuery<(arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting, [ AccountId32, number ]>; /** * The voting classes which have a non-zero lock requirement and the lock amounts which they * require. The actual amount locked on behalf of this pallet should always be the maximum of * this list. * * @param {AccountId32Like} arg * @param {Callback> =} callback **/ classLocksFor: GenericStorageQuery<(arg: AccountId32Like) => Array<[number, bigint]>, AccountId32>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Whitelist`'s storage queries **/ whitelist: { /** * * @param {H256} arg * @param {Callback<[] | undefined> =} callback **/ whitelistedCall: GenericStorageQuery<(arg: H256) => [] | undefined, H256>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `AllianceMotion`'s storage queries **/ allianceMotion: { /** * The hashes of the active proposals. * * @param {Callback> =} callback **/ proposals: GenericStorageQuery<() => Array>; /** * Actual proposal for a given hash, if it's current. * * @param {H256} arg * @param {Callback =} callback **/ proposalOf: GenericStorageQuery<(arg: H256) => KitchensinkRuntimeRuntimeCall | undefined, H256>; /** * Consideration cost created for publishing and storing a proposal. * * Determined by [Config::Consideration] and may be not present for certain proposals (e.g. if * the proposal count at the time of creation was below threshold N). * * @param {H256} arg * @param {Callback<[AccountId32, []] | undefined> =} callback **/ costOf: GenericStorageQuery<(arg: H256) => [AccountId32, []] | undefined, H256>; /** * Votes on a given proposal, if it is ongoing. * * @param {H256} arg * @param {Callback =} callback **/ voting: GenericStorageQuery<(arg: H256) => PalletCollectiveVotes | undefined, H256>; /** * Proposals so far. * * @param {Callback =} callback **/ proposalCount: GenericStorageQuery<() => number>; /** * The current members of the collective. This is stored sorted (just by value). * * @param {Callback> =} callback **/ members: GenericStorageQuery<() => Array>; /** * The prime member that helps determine the default vote behavior in case of abstentions. * * @param {Callback =} callback **/ prime: GenericStorageQuery<() => AccountId32 | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Alliance`'s storage queries **/ alliance: { /** * The IPFS CID of the alliance rule. * Fellows can propose a new rule with a super-majority. * * @param {Callback =} callback **/ rule: GenericStorageQuery<() => PalletAllianceCid | undefined>; /** * The current IPFS CIDs of any announcements. * * @param {Callback> =} callback **/ announcements: GenericStorageQuery<() => Array>; /** * Maps members to their candidacy deposit. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ depositOf: GenericStorageQuery<(arg: AccountId32Like) => bigint | undefined, AccountId32>; /** * Maps member type to members of each type. * * @param {PalletAllianceMemberRole} arg * @param {Callback> =} callback **/ members: GenericStorageQuery<(arg: PalletAllianceMemberRole) => Array, PalletAllianceMemberRole>; /** * A set of members who gave a retirement notice. They can retire after the end of retirement * period stored as a future block number. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ retiringMembers: GenericStorageQuery<(arg: AccountId32Like) => number | undefined, AccountId32>; /** * The current list of accounts deemed unscrupulous. These accounts non grata cannot submit * candidacy. * * @param {Callback> =} callback **/ unscrupulousAccounts: GenericStorageQuery<() => Array>; /** * The current list of websites deemed unscrupulous. * * @param {Callback> =} callback **/ unscrupulousWebsites: GenericStorageQuery<() => Array>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `NominationPools`'s storage queries **/ nominationPools: { /** * The sum of funds across all pools. * * This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`] * because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's * `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s. * * @param {Callback =} callback **/ totalValueLocked: GenericStorageQuery<() => bigint>; /** * Minimum amount to bond to join a pool. * * @param {Callback =} callback **/ minJoinBond: GenericStorageQuery<() => bigint>; /** * Minimum bond required to create a pool. * * This is the amount that the depositor must put as their initial stake in the pool, as an * indication of "skin in the game". * * This is the value that will always exist in the staking ledger of the pool bonded account * while all other accounts leave. * * @param {Callback =} callback **/ minCreateBond: GenericStorageQuery<() => bigint>; /** * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of * pools can exist. * * @param {Callback =} callback **/ maxPools: GenericStorageQuery<() => number | undefined>; /** * Maximum number of members that can exist in the system. If `None`, then the count * members are not bound on a system wide basis. * * @param {Callback =} callback **/ maxPoolMembers: GenericStorageQuery<() => number | undefined>; /** * Maximum number of members that may belong to pool. If `None`, then the count of * members is not bound on a per pool basis. * * @param {Callback =} callback **/ maxPoolMembersPerPool: GenericStorageQuery<() => number | undefined>; /** * The maximum commission that can be charged by a pool. Used on commission payouts to bound * pool commissions that are > `GlobalMaxCommission`, necessary if a future * `GlobalMaxCommission` is lower than some current pool commissions. * * @param {Callback =} callback **/ globalMaxCommission: GenericStorageQuery<() => Perbill | undefined>; /** * Active members. * * TWOX-NOTE: SAFE since `AccountId` is a secure hash. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ poolMembers: GenericStorageQuery<(arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined, AccountId32>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForPoolMembers: GenericStorageQuery<() => number>; /** * Storage for bonded pools. * * @param {number} arg * @param {Callback =} callback **/ bondedPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsBondedPoolInner | undefined, number>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForBondedPools: GenericStorageQuery<() => number>; /** * Reward pools. This is where there rewards for each pool accumulate. When a members payout is * claimed, the balance comes out of the reward pool. Keyed by the bonded pools account. * * @param {number} arg * @param {Callback =} callback **/ rewardPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsRewardPool | undefined, number>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForRewardPools: GenericStorageQuery<() => number>; /** * Groups of unbonding pools. Each group of unbonding pools belongs to a * bonded pool, hence the name sub-pools. Keyed by the bonded pools account. * * @param {number} arg * @param {Callback =} callback **/ subPoolsStorage: GenericStorageQuery<(arg: number) => PalletNominationPoolsSubPools | undefined, number>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForSubPoolsStorage: GenericStorageQuery<() => number>; /** * Metadata for the pool. * * @param {number} arg * @param {Callback =} callback **/ metadata: GenericStorageQuery<(arg: number) => Bytes, number>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForMetadata: GenericStorageQuery<() => number>; /** * Ever increasing number of all pools created so far. * * @param {Callback =} callback **/ lastPoolId: GenericStorageQuery<() => number>; /** * A reverse lookup from the pool's account id to its id. * * This is only used for slashing and on automatic withdraw update. In all other instances, the * pool id is used, and the accounts are deterministically derived from it. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ reversePoolIdLookup: GenericStorageQuery<(arg: AccountId32Like) => number | undefined, AccountId32>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForReversePoolIdLookup: GenericStorageQuery<() => number>; /** * Map from a pool member account to their opted claim permission. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ claimPermissions: GenericStorageQuery<(arg: AccountId32Like) => PalletNominationPoolsClaimPermission, AccountId32>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `RankedPolls`'s storage queries **/ rankedPolls: { /** * The next free referendum index, aka the number of referenda started so far. * * @param {Callback =} callback **/ referendumCount: GenericStorageQuery<() => number>; /** * Information concerning any given referendum. * * @param {number} arg * @param {Callback =} callback **/ referendumInfoFor: GenericStorageQuery<(arg: number) => PalletReferendaReferendumInfoTally | undefined, number>; /** * The sorted list of referenda ready to be decided but not yet being decided, ordered by * conviction-weighted approvals. * * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`. * * @param {number} arg * @param {Callback> =} callback **/ trackQueue: GenericStorageQuery<(arg: number) => Array<[number, number]>, number>; /** * The number of referenda being decided currently. * * @param {number} arg * @param {Callback =} callback **/ decidingCount: GenericStorageQuery<(arg: number) => number, number>; /** * The metadata is a general information concerning the referendum. * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON * dump or IPFS hash of a JSON file. * * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove) * large preimages. * * @param {number} arg * @param {Callback =} callback **/ metadataOf: GenericStorageQuery<(arg: number) => H256 | undefined, number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `RankedCollective`'s storage queries **/ rankedCollective: { /** * The number of members in the collective who have at least the rank according to the index * of the vec. * * @param {number} arg * @param {Callback =} callback **/ memberCount: GenericStorageQuery<(arg: number) => number, number>; /** * The current members of the collective. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ members: GenericStorageQuery<(arg: AccountId32Like) => PalletRankedCollectiveMemberRecord | undefined, AccountId32>; /** * The index of each ranks's member into the group of members who have at least that rank. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ idToIndex: GenericStorageQuery<(arg: [number, AccountId32Like]) => number | undefined, [number, AccountId32]>; /** * The members in the collective by index. All indices in the range `0..MemberCount` will * return `Some`, however a member's index is not guaranteed to remain unchanged over time. * * @param {[number, number]} arg * @param {Callback =} callback **/ indexToId: GenericStorageQuery<(arg: [number, number]) => AccountId32 | undefined, [number, number]>; /** * Votes on a given proposal, if it is ongoing. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ voting: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletRankedCollectiveVoteRecord | undefined, [ number, AccountId32 ]>; /** * * @param {number} arg * @param {Callback =} callback **/ votingCleanup: GenericStorageQuery<(arg: number) => Bytes | undefined, number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `AssetConversion`'s storage queries **/ assetConversion: { /** * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially * created rather than people sending tokens directly to a pool's public account. * * @param {[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]} arg * @param {Callback =} callback **/ pools: GenericStorageQuery<(arg: [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]) => PalletAssetConversionPoolInfo | undefined, [ FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId ]>; /** * Stores the `PoolAssetId` that is going to be used for the next lp token. * This gets incremented whenever a new lp pool is created. * * @param {Callback =} callback **/ nextPoolAssetId: GenericStorageQuery<() => number | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `FastUnstake`'s storage queries **/ fastUnstake: { /** * The current "head of the queue" being unstaked. * * The head in itself can be a batch of up to [`Config::BatchSize`] stakers. * * @param {Callback =} callback **/ head: GenericStorageQuery<() => PalletFastUnstakeUnstakeRequest | undefined>; /** * The map of all accounts wishing to be unstaked. * * Keeps track of `AccountId` wishing to unstake and it's corresponding deposit. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ queue: GenericStorageQuery<(arg: AccountId32Like) => bigint | undefined, AccountId32>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForQueue: GenericStorageQuery<() => number>; /** * Number of eras to check per block. * * If set to 0, this pallet does absolutely nothing. Cannot be set to more than * [`Config::MaxErasToCheckPerBlock`]. * * Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are * checked. The checking is represented by updating [`UnstakeRequest::checked`], which is * stored in [`Head`]. * * @param {Callback =} callback **/ erasToCheckPerBlock: GenericStorageQuery<() => number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `MessageQueue`'s storage queries **/ messageQueue: { /** * The index of the first and last (non-empty) pages. * * @param {number} arg * @param {Callback =} callback **/ bookStateFor: GenericStorageQuery<(arg: number) => PalletMessageQueueBookState, number>; /** * The origin at which we should begin servicing. * * @param {Callback =} callback **/ serviceHead: GenericStorageQuery<() => number | undefined>; /** * The map of page indices to pages. * * @param {[number, number]} arg * @param {Callback =} callback **/ pages: GenericStorageQuery<(arg: [number, number]) => PalletMessageQueuePage | undefined, [number, number]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Pov`'s storage queries **/ pov: { /** * * @param {Callback =} callback **/ value: GenericStorageQuery<() => number | undefined>; /** * * @param {Callback =} callback **/ value2: GenericStorageQuery<() => number | undefined>; /** * A value without a MEL bound. * * @param {Callback =} callback **/ unboundedValue: GenericStorageQuery<() => Bytes | undefined>; /** * A value with a MEL bound of 32 byte. * * @param {Callback =} callback **/ boundedValue: GenericStorageQuery<() => Bytes | undefined>; /** * 4MiB value. * * @param {Callback =} callback **/ largeValue: GenericStorageQuery<() => Bytes | undefined>; /** * * @param {Callback =} callback **/ largeValue2: GenericStorageQuery<() => Bytes | undefined>; /** * A map with a maximum of 1M entries. * * @param {number} arg * @param {Callback =} callback **/ map1M: GenericStorageQuery<(arg: number) => number | undefined, number>; /** * A map with a maximum of 16M entries. * * @param {number} arg * @param {Callback =} callback **/ map16M: GenericStorageQuery<(arg: number) => number | undefined, number>; /** * * @param {[number, number]} arg * @param {Callback =} callback **/ doubleMap1M: GenericStorageQuery<(arg: [number, number]) => number | undefined, [number, number]>; /** * * @param {number} arg * @param {Callback | undefined> =} callback **/ unboundedMap: GenericStorageQuery<(arg: number) => Array | undefined, number>; /** * * @param {number} arg * @param {Callback | undefined> =} callback **/ unboundedMap2: GenericStorageQuery<(arg: number) => Array | undefined, number>; /** * * @param {number} arg * @param {Callback | undefined> =} callback **/ unboundedMapTwox: GenericStorageQuery<(arg: number) => Array | undefined, number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `TxPause`'s storage queries **/ txPause: { /** * The set of calls that are explicitly paused. * * @param {[BytesLike, BytesLike]} arg * @param {Callback<[] | undefined> =} callback **/ pausedCalls: GenericStorageQuery<(arg: [BytesLike, BytesLike]) => [] | undefined, [Bytes, Bytes]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `SafeMode`'s storage queries **/ safeMode: { /** * Contains the last block number that the safe-mode will remain entered in. * * Set to `None` when safe-mode is exited. * * Safe-mode is automatically exited when the current block number exceeds this value. * * @param {Callback =} callback **/ enteredUntil: GenericStorageQuery<() => number | undefined>; /** * Holds the reserve that was taken from an account at a specific block number. * * This helps governance to have an overview of outstanding deposits that should be returned or * slashed. * * @param {[AccountId32Like, number]} arg * @param {Callback =} callback **/ deposits: GenericStorageQuery<(arg: [AccountId32Like, number]) => bigint | undefined, [AccountId32, number]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `MultiBlockMigrations`'s storage queries **/ multiBlockMigrations: { /** * The currently active migration to run and its cursor. * * `None` indicates that no migration is running. * * @param {Callback =} callback **/ cursor: GenericStorageQuery<() => PalletMigrationsMigrationCursor | undefined>; /** * Set of all successfully executed migrations. * * This is used as blacklist, to not re-execute migrations that have not been removed from the * codebase yet. Governance can regularly clear this out via `clear_historic`. * * @param {BytesLike} arg * @param {Callback<[] | undefined> =} callback **/ historic: GenericStorageQuery<(arg: BytesLike) => [] | undefined, Bytes>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Broker`'s storage queries **/ broker: { /** * The current configuration of this pallet. * * @param {Callback =} callback **/ configuration: GenericStorageQuery<() => PalletBrokerConfigRecord | undefined>; /** * The Polkadot Core reservations (generally tasked with the maintenance of System Chains). * * @param {Callback>> =} callback **/ reservations: GenericStorageQuery<() => Array>>; /** * The Polkadot Core legacy leases. * * @param {Callback> =} callback **/ leases: GenericStorageQuery<() => Array>; /** * The current status of miscellaneous subsystems of this pallet. * * @param {Callback =} callback **/ status: GenericStorageQuery<() => PalletBrokerStatusRecord | undefined>; /** * The details of the current sale, including its properties and status. * * @param {Callback =} callback **/ saleInfo: GenericStorageQuery<() => PalletBrokerSaleInfoRecord | undefined>; /** * Records of potential renewals. * * Renewals will only actually be allowed if `CompletionStatus` is actually `Complete`. * * @param {PalletBrokerPotentialRenewalId} arg * @param {Callback =} callback **/ potentialRenewals: GenericStorageQuery<(arg: PalletBrokerPotentialRenewalId) => PalletBrokerPotentialRenewalRecord | undefined, PalletBrokerPotentialRenewalId>; /** * The current (unassigned or provisionally assigend) Regions. * * @param {PalletBrokerRegionId} arg * @param {Callback =} callback **/ regions: GenericStorageQuery<(arg: PalletBrokerRegionId) => PalletBrokerRegionRecord | undefined, PalletBrokerRegionId>; /** * The work we plan on having each core do at a particular time in the future. * * @param {[number, number]} arg * @param {Callback | undefined> =} callback **/ workplan: GenericStorageQuery<(arg: [number, number]) => Array | undefined, [ number, number ]>; /** * The current workload of each core. This gets updated with workplan as timeslices pass. * * @param {number} arg * @param {Callback> =} callback **/ workload: GenericStorageQuery<(arg: number) => Array, number>; /** * Record of a single contribution to the Instantaneous Coretime Pool. * * @param {PalletBrokerRegionId} arg * @param {Callback =} callback **/ instaPoolContribution: GenericStorageQuery<(arg: PalletBrokerRegionId) => PalletBrokerContributionRecord | undefined, PalletBrokerRegionId>; /** * Record of Coretime entering or leaving the Instantaneous Coretime Pool. * * @param {number} arg * @param {Callback =} callback **/ instaPoolIo: GenericStorageQuery<(arg: number) => PalletBrokerPoolIoRecord, number>; /** * Total InstaPool rewards for each Timeslice and the number of core parts which contributed. * * @param {number} arg * @param {Callback =} callback **/ instaPoolHistory: GenericStorageQuery<(arg: number) => PalletBrokerInstaPoolHistoryRecord | undefined, number>; /** * Received core count change from the relay chain. * * @param {Callback =} callback **/ coreCountInbox: GenericStorageQuery<() => number | undefined>; /** * Keeping track of cores which have auto-renewal enabled. * * Sorted by `CoreIndex` to make the removal of cores from auto-renewal more efficient. * * @param {Callback> =} callback **/ autoRenewals: GenericStorageQuery<() => Array>; /** * Received revenue info from the relay chain. * * @param {Callback =} callback **/ revenueInbox: GenericStorageQuery<() => PalletBrokerOnDemandRevenueRecord | undefined>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `TasksExample`'s storage queries **/ tasksExample: { /** * Some running total. * * @param {Callback<[number, number]> =} callback **/ total: GenericStorageQuery<() => [number, number]>; /** * Numbers to be added into the total. * * @param {number} arg * @param {Callback =} callback **/ numbers: GenericStorageQuery<(arg: number) => number | undefined, number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Mixnet`'s storage queries **/ mixnet: { /** * Index of the current session. This may be offset relative to the session index tracked by * eg `pallet_session`; mixnet session indices are independent. * * @param {Callback =} callback **/ currentSessionIndex: GenericStorageQuery<() => number>; /** * Block in which the current session started. * * @param {Callback =} callback **/ currentSessionStartBlock: GenericStorageQuery<() => number>; /** * Authority list for the next session. * * @param {number} arg * @param {Callback =} callback **/ nextAuthorityIds: GenericStorageQuery<(arg: number) => SpMixnetAppPublic | undefined, number>; /** * Mixnode sets by session index. Only the mixnode sets for the previous, current, and next * sessions are kept; older sets are discarded. * * The mixnodes in each set are keyed by authority index so we can easily check if an * authority has registered a mixnode. The authority indices should only be used during * registration; the authority indices for the very first session are made up. * * @param {[number, number]} arg * @param {Callback =} callback **/ mixnodes: GenericStorageQuery<(arg: [number, number]) => PalletMixnetBoundedMixnode | undefined, [number, number]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Parameters`'s storage queries **/ parameters: { /** * Stored parameters. * * @param {KitchensinkRuntimeRuntimeParametersKey} arg * @param {Callback =} callback **/ parameters: GenericStorageQuery<(arg: KitchensinkRuntimeRuntimeParametersKey) => KitchensinkRuntimeRuntimeParametersValue | undefined, KitchensinkRuntimeRuntimeParametersKey>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `PalletExampleMbms`'s storage queries **/ palletExampleMbms: { /** * Define a storage item to illustrate multi-block migrations. * * @param {number} arg * @param {Callback =} callback **/ myMap: GenericStorageQuery<(arg: number) => bigint | undefined, number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `Revive`'s storage queries **/ revive: { /** * A mapping from a contract's code hash to its code. * * @param {H256} arg * @param {Callback =} callback **/ pristineCode: GenericStorageQuery<(arg: H256) => Bytes | undefined, H256>; /** * A mapping from a contract's code hash to its code info. * * @param {H256} arg * @param {Callback =} callback **/ codeInfoOf: GenericStorageQuery<(arg: H256) => PalletReviveWasmCodeInfo | undefined, H256>; /** * The code associated with a given account. * * @param {H160} arg * @param {Callback =} callback **/ contractInfoOf: GenericStorageQuery<(arg: H160) => PalletReviveStorageContractInfo | undefined, H160>; /** * The immutable data associated with a given account. * * @param {H160} arg * @param {Callback =} callback **/ immutableDataOf: GenericStorageQuery<(arg: H160) => Bytes | undefined, H160>; /** * Evicted contracts that await child trie deletion. * * Child trie deletion is a heavy operation depending on the amount of storage items * stored in said trie. Therefore this operation is performed lazily in `on_idle`. * * @param {number} arg * @param {Callback =} callback **/ deletionQueue: GenericStorageQuery<(arg: number) => Bytes | undefined, number>; /** * A pair of monotonic counters used to track the latest contract marked for deletion * and the latest deleted contract in queue. * * @param {Callback =} callback **/ deletionQueueCounter: GenericStorageQuery<() => PalletReviveStorageDeletionQueueManager>; /** * Map a Ethereum address to its original `AccountId32`. * * When deriving a `H160` from an `AccountId32` we use a hash function. In order to * reconstruct the original account we need to store the reverse mapping here. * Register your `AccountId32` using [`Pallet::map_account`] in order to * use it with this pallet. * * @param {H160} arg * @param {Callback =} callback **/ originalAccount: GenericStorageQuery<(arg: H160) => AccountId32 | undefined, H160>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `DelegatedStaking`'s storage queries **/ delegatedStaking: { /** * Map of Delegators to their `Delegation`. * * Implementation note: We are not using a double map with `delegator` and `agent` account * as keys since we want to restrict delegators to delegate only to one account at a time. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ delegators: GenericStorageQuery<(arg: AccountId32Like) => PalletDelegatedStakingDelegation | undefined, AccountId32>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForDelegators: GenericStorageQuery<() => number>; /** * Map of `Agent` to their `Ledger`. * * @param {AccountId32Like} arg * @param {Callback =} callback **/ agents: GenericStorageQuery<(arg: AccountId32Like) => PalletDelegatedStakingAgentLedger | undefined, AccountId32>; /** * Counter for the related counted storage map * * @param {Callback =} callback **/ counterForAgents: GenericStorageQuery<() => number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `AssetRewards`'s storage queries **/ assetRewards: { /** * State of pool stakers. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ poolStakers: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletAssetRewardsPoolStakerInfo | undefined, [ number, AccountId32 ]>; /** * State and configuration of each staking pool. * * @param {number} arg * @param {Callback =} callback **/ pools: GenericStorageQuery<(arg: number) => PalletAssetRewardsPoolInfo | undefined, number>; /** * The cost associated with storing pool information on-chain which was incurred by the pool * creator. * * This cost may be [`None`], as determined by [`Config::Consideration`]. * * @param {number} arg * @param {Callback<[AccountId32, FrameSupportTokensFungibleHoldConsideration] | undefined> =} callback **/ poolCost: GenericStorageQuery<(arg: number) => [AccountId32, FrameSupportTokensFungibleHoldConsideration] | undefined, number>; /** * Stores the [`PoolId`] to use for the next pool. * * Incremented when a new pool is created. * * @param {Callback =} callback **/ nextPoolId: GenericStorageQuery<() => number>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; /** * Pallet `AssetsFreezer`'s storage queries **/ assetsFreezer: { /** * A map that stores freezes applied on an account for a given AssetId. * * @param {[number, AccountId32Like]} arg * @param {Callback> =} callback **/ freezes: GenericStorageQuery<(arg: [number, AccountId32Like]) => Array, [ number, AccountId32 ]>; /** * A map that stores the current total frozen balance for every account on a given AssetId. * * @param {[number, AccountId32Like]} arg * @param {Callback =} callback **/ frozenBalances: GenericStorageQuery<(arg: [number, AccountId32Like]) => bigint | undefined, [number, AccountId32]>; /** * Generic pallet storage query **/ [storage: string]: GenericStorageQuery; }; }