import '@polkadot/api-base/types/storage'; import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types'; import type { BTreeMap, Bytes, Option, Vec, bool, i64, u128, u16, u32, u64 } from '@polkadot/types-codec'; import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletDomainsDomainMeta, PalletDomainsInnerValue, PalletPostsPost, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReactionsReaction, PalletRolesRole, PalletSpacesSpace, PalletTransactionPaymentReleases, PalletVestingReleases, PalletVestingVestingInfo, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, SubsocialParachainRuntimeSessionKeys, SubsocialSupportUser } from '@polkadot/types/lookup'; import type { Observable } from '@polkadot/types/types'; export declare type __AugmentedQuery = AugmentedQuery unknown>; export declare type __QueryableStorageEntry = QueryableStorageEntry; declare module '@polkadot/api-base/types/storage' { interface AugmentedQueries { accountFollows: { accountFollowedByAccount: AugmentedQuery | [AccountId32 | string | Uint8Array, AccountId32 | string | Uint8Array]) => Observable, [ITuple<[AccountId32, AccountId32]>]>; accountFollowers: AugmentedQuery Observable>, [AccountId32]>; accountsFollowedByAccount: AugmentedQuery Observable>, [AccountId32]>; }; aura: { /** * The current authority set. **/ authorities: AugmentedQuery Observable>, []>; /** * The current slot of this block. * * This will be set in `on_initialize`. **/ currentSlot: AugmentedQuery Observable, []>; }; auraExt: { /** * Serves as cache for the authorities. * * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session, * but we require the old authorities to verify the seal when validating a PoV. This will always * be updated to the latest AuRa authorities in `on_finalize`. **/ authorities: AugmentedQuery Observable>, []>; }; authorship: { /** * Author of current block. **/ author: AugmentedQuery Observable>, []>; /** * Whether uncles were already set in this block. **/ didSetUncles: AugmentedQuery Observable, []>; /** * Uncles **/ uncles: AugmentedQuery Observable>, []>; }; balances: { /** * 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. **/ account: AugmentedQuery Observable, [AccountId32]>; /** * The total units of outstanding deactivated balance in the system. **/ inactiveIssuance: AugmentedQuery Observable, []>; /** * Any liquidity locks on some account balances. * NOTE: Should only be accessed when setting, changing and freeing a lock. **/ locks: AugmentedQuery Observable>, [AccountId32]>; /** * Named reserves on some account balances. **/ reserves: AugmentedQuery Observable>, [AccountId32]>; /** * The total units issued in the system. **/ totalIssuance: AugmentedQuery Observable, []>; }; collatorSelection: { /** * Fixed amount to deposit to become a collator. * * When a collator calls `leave_intent` they immediately receive the deposit back. **/ candidacyBond: AugmentedQuery Observable, []>; /** * The (community, limited) collation candidates. **/ candidates: AugmentedQuery Observable>, []>; /** * Desired number of candidates. * * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct. **/ desiredCandidates: AugmentedQuery Observable, []>; /** * The invulnerable, fixed collators. **/ invulnerables: AugmentedQuery Observable>, []>; /** * Last block authored by collator. **/ lastAuthoredBlock: AugmentedQuery Observable, [AccountId32]>; }; dmpQueue: { /** * The configuration. **/ configuration: AugmentedQuery Observable, []>; /** * The overweight messages. **/ overweight: AugmentedQuery Observable>>, [u64]>; /** * The page index. **/ pageIndex: AugmentedQuery Observable, []>; /** * The queue pages. **/ pages: AugmentedQuery Observable>>, [u32]>; }; domains: { /** * TWOX-NOTE: Safe as `AccountId`s are crypto hashes anyway. **/ domainByInnerValue: AugmentedQuery Observable>, [AccountId32, PalletDomainsInnerValue]>; /** * Domains owned per account. * * TWOX-NOTE: Safe as `AccountId`s are crypto hashes anyway. **/ domainsByOwner: AugmentedQuery Observable>, [AccountId32]>; /** * Metadata associated per domain. **/ registeredDomains: AugmentedQuery Observable>, [Bytes]>; reservedWords: AugmentedQuery Observable, [Bytes]>; supportedTlds: AugmentedQuery Observable, [Bytes]>; }; energy: { /** * Energy credited to each account. **/ energyBalance: AugmentedQuery Observable, [AccountId32]>; /** * Total energy generated. **/ totalEnergy: AugmentedQuery Observable, []>; /** * The current value coefficient. **/ valueCoefficient: AugmentedQuery Observable, []>; }; freeProxy: { canAddFreeProxy: AugmentedQuery Observable, []>; }; parachainInfo: { parachainId: AugmentedQuery Observable, []>; }; parachainSystem: { /** * The number of HRMP messages we observed in `on_initialize` and thus used that number for * announcing the weight of `on_initialize` and `on_finalize`. **/ announcedHrmpMessagesPerCandidate: AugmentedQuery Observable, []>; /** * The next authorized upgrade, if there is one. **/ authorizedUpgrade: AugmentedQuery Observable>, []>; /** * A custom head data that should be returned as result of `validate_block`. * * See [`Pallet::set_custom_validation_head_data`] for more information. **/ customValidationHeadData: AugmentedQuery Observable>, []>; /** * Were the validation data set to notify the relay chain? **/ didSetValidationCode: AugmentedQuery Observable, []>; /** * The parachain host configuration that was obtained from the relay parent. * * This field is meant to be updated each block with the validation data inherent. Therefore, * before processing of the inherent, e.g. in `on_initialize` this data may be stale. * * This data is also absent from the genesis. **/ hostConfiguration: AugmentedQuery Observable>, []>; /** * HRMP messages that were sent in a block. * * This will be cleared in `on_initialize` of each new block. **/ hrmpOutboundMessages: AugmentedQuery Observable>, []>; /** * HRMP watermark that was set in a block. * * This will be cleared in `on_initialize` of each new block. **/ hrmpWatermark: AugmentedQuery Observable, []>; /** * The last downward message queue chain head we have observed. * * This value is loaded before and saved after processing inbound downward messages carried * by the system inherent. **/ lastDmqMqcHead: AugmentedQuery Observable, []>; /** * The message queue chain heads we have observed per each channel incoming channel. * * This value is loaded before and saved after processing inbound downward messages carried * by the system inherent. **/ lastHrmpMqcHeads: AugmentedQuery Observable>, []>; /** * The relay chain block number associated with the last parachain block. **/ lastRelayChainBlockNumber: AugmentedQuery Observable, []>; /** * Validation code that is set by the parachain and is to be communicated to collator and * consequently the relay-chain. * * This will be cleared in `on_initialize` of each new block if no other pallet already set * the value. **/ newValidationCode: AugmentedQuery Observable>, []>; /** * Upward messages that are still pending and not yet send to the relay chain. **/ pendingUpwardMessages: AugmentedQuery Observable>, []>; /** * In case of a scheduled upgrade, this storage field contains the validation code to be applied. * * As soon as the relay chain gives us the go-ahead signal, we will overwrite the [`:code`][well_known_keys::CODE] * which will result the next block process with the new validation code. This concludes the upgrade process. * * [well_known_keys::CODE]: sp_core::storage::well_known_keys::CODE **/ pendingValidationCode: AugmentedQuery Observable, []>; /** * Number of downward messages processed in a block. * * This will be cleared in `on_initialize` of each new block. **/ processedDownwardMessages: AugmentedQuery Observable, []>; /** * The state proof for the last relay parent block. * * This field is meant to be updated each block with the validation data inherent. Therefore, * before processing of the inherent, e.g. in `on_initialize` this data may be stale. * * This data is also absent from the genesis. **/ relayStateProof: AugmentedQuery Observable>, []>; /** * The snapshot of some state related to messaging relevant to the current parachain as per * the relay parent. * * This field is meant to be updated each block with the validation data inherent. Therefore, * before processing of the inherent, e.g. in `on_initialize` this data may be stale. * * This data is also absent from the genesis. **/ relevantMessagingState: AugmentedQuery Observable>, []>; /** * The weight we reserve at the beginning of the block for processing DMP messages. This * overrides the amount set in the Config trait. **/ reservedDmpWeightOverride: AugmentedQuery Observable>, []>; /** * The weight we reserve at the beginning of the block for processing XCMP messages. This * overrides the amount set in the Config trait. **/ reservedXcmpWeightOverride: AugmentedQuery Observable>, []>; /** * An option which indicates if the relay-chain restricts signalling a validation code upgrade. * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced * candidate will be invalid. * * This storage item is a mirror of the corresponding value for the current parachain from the * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is * set after the inherent. **/ upgradeRestrictionSignal: AugmentedQuery Observable>, []>; /** * Upward messages that were sent in a block. * * This will be cleared in `on_initialize` of each new block. **/ upwardMessages: AugmentedQuery Observable>, []>; /** * The [`PersistedValidationData`] set for this block. * This value is expected to be set only once per block and it's never stored * in the trie. **/ validationData: AugmentedQuery Observable>, []>; }; posts: { /** * The next post id. **/ nextPostId: AugmentedQuery Observable, []>; /** * Get the details of a post by its' id. **/ postById: AugmentedQuery Observable>, [u64]>; /** * Get the ids of all posts in a given space, by the space's id. **/ postIdsBySpaceId: AugmentedQuery Observable>, [u64]>; /** * Get the ids of all direct replies by their parent's post id. **/ replyIdsByPostId: AugmentedQuery Observable>, [u64]>; /** * Get the ids of all posts that have shared a given original post id. **/ sharedPostIdsByOriginalPostId: AugmentedQuery Observable>, [u64]>; }; profiles: { profileSpaceIdByAccount: AugmentedQuery Observable>, [AccountId32]>; }; proxy: { /** * The announcements made by the proxy (key). **/ announcements: AugmentedQuery Observable, u128]>>, [AccountId32]>; /** * 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. **/ proxies: AugmentedQuery Observable, u128]>>, [AccountId32]>; }; 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. **/ randomMaterial: AugmentedQuery Observable>, []>; }; reactions: { /** * The next reaction id. **/ nextReactionId: AugmentedQuery Observable, []>; postReactionIdByAccount: AugmentedQuery | [AccountId32 | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable, [ITuple<[AccountId32, u64]>]>; reactionById: AugmentedQuery Observable>, [u64]>; reactionIdsByPostId: AugmentedQuery Observable>, [u64]>; }; roles: { /** * The next role id. **/ nextRoleId: AugmentedQuery Observable, []>; /** * Get the details of a role by its' id. **/ roleById: AugmentedQuery Observable>, [u64]>; /** * Get a list of all role ids available in a given space. **/ roleIdsBySpaceId: AugmentedQuery Observable>, [u64]>; /** * Get a list of all role ids owned by a given user (account or space id) * within a given space. **/ roleIdsByUserInSpace: AugmentedQuery Observable>, [SubsocialSupportUser, u64]>; /** * Get a list of all users (account or space ids) that a given role has been granted to. **/ usersByRoleId: AugmentedQuery Observable>, [u64]>; }; session: { /** * Current index of the session. **/ currentIndex: AugmentedQuery Observable, []>; /** * 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. **/ disabledValidators: AugmentedQuery Observable>, []>; /** * The owner of a key. The key is the `KeyTypeId` + the encoded key. **/ keyOwner: AugmentedQuery | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable>, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>; /** * The next session keys for a validator. **/ nextKeys: AugmentedQuery Observable>, [AccountId32]>; /** * True if the underlying economic identities or weighting behind the validators * has changed in the queued validator set. **/ queuedChanged: AugmentedQuery Observable, []>; /** * The queued keys for the next session. When the next session begins, these keys * will be used to determine the validator's session keys. **/ queuedKeys: AugmentedQuery Observable>>, []>; /** * The current set of validators. **/ validators: AugmentedQuery Observable>, []>; }; spaceFollows: { spaceFollowedByAccount: AugmentedQuery | [AccountId32 | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable, [ITuple<[AccountId32, u64]>]>; spaceFollowers: AugmentedQuery Observable>, [u64]>; spacesFollowedByAccount: AugmentedQuery Observable>, [AccountId32]>; }; spaceOwnership: { pendingSpaceOwner: AugmentedQuery Observable>, [u64]>; }; spaces: { /** * The next space id. **/ nextSpaceId: AugmentedQuery Observable, []>; /** * Get the details of a space by its' id. **/ spaceById: AugmentedQuery Observable>, [u64]>; /** * Find the ids of all spaces owned, by a given account. **/ spaceIdsByOwner: AugmentedQuery Observable>, [AccountId32]>; }; sudo: { /** * The `AccountId` of the sudo key. **/ key: AugmentedQuery Observable>, []>; }; system: { /** * The full account information for a particular account ID. **/ account: AugmentedQuery Observable, [AccountId32]>; /** * Total length (in bytes) for all extrinsics put together, for the current block. **/ allExtrinsicsLen: AugmentedQuery Observable>, []>; /** * Map of block numbers to block hashes. **/ blockHash: AugmentedQuery Observable, [u32]>; /** * The current weight for the block. **/ blockWeight: AugmentedQuery Observable, []>; /** * Digest of the current block, also part of the block header. **/ digest: AugmentedQuery Observable, []>; /** * The number of events in the `Events` list. **/ eventCount: AugmentedQuery Observable, []>; /** * 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. **/ events: AugmentedQuery Observable>, []>; /** * 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 `(T::BlockNumber, 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. **/ eventTopics: AugmentedQuery Observable>>, [H256]>; /** * The execution phase of the block. **/ executionPhase: AugmentedQuery Observable>, []>; /** * Total extrinsics count for the current block. **/ extrinsicCount: AugmentedQuery Observable>, []>; /** * Extrinsics data for the current block (maps an extrinsic's index to its data). **/ extrinsicData: AugmentedQuery Observable, [u32]>; /** * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. **/ lastRuntimeUpgrade: AugmentedQuery Observable>, []>; /** * The current block number being processed. Set by `execute_block`. **/ number: AugmentedQuery Observable, []>; /** * Hash of the previous block. **/ parentHash: AugmentedQuery Observable, []>; /** * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False * (default) if not. **/ upgradedToTripleRefCount: AugmentedQuery Observable, []>; /** * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. **/ upgradedToU32RefCount: AugmentedQuery Observable, []>; }; timestamp: { /** * Did the timestamp get updated in this block? **/ didUpdate: AugmentedQuery Observable, []>; /** * Current time for the current block. **/ now: AugmentedQuery Observable, []>; }; transactionPayment: { nextFeeMultiplier: AugmentedQuery Observable, []>; storageVersion: AugmentedQuery Observable, []>; }; vesting: { /** * Storage version of the pallet. * * New networks start with latest version, as determined by the genesis build. **/ storageVersion: AugmentedQuery Observable, []>; /** * Information regarding the vesting of a given account. **/ vesting: AugmentedQuery Observable>>, [AccountId32]>; }; xcmpQueue: { /** * Inbound aggregate XCMP messages. It can only be one per ParaId/block. **/ inboundXcmpMessages: AugmentedQuery Observable, [u32, u32]>; /** * Status of the inbound XCMP channels. **/ inboundXcmpStatus: AugmentedQuery Observable>, []>; /** * The messages outbound in a given XCMP channel. **/ outboundXcmpMessages: AugmentedQuery Observable, [u32, u16]>; /** * The non-empty XCMP channels in order of becoming non-empty, and the index of the first * and last outbound message. If the two indices are equal, then it indicates an empty * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in * case of the need to send a high-priority signal message this block. * The bool is true if there is a signal message waiting to be sent. **/ outboundXcmpStatus: AugmentedQuery Observable>, []>; /** * The messages that exceeded max individual message weight budget. * * These message stay in this storage map until they are manually dispatched via * `service_overweight`. **/ overweight: AugmentedQuery Observable>>, [u64]>; /** * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next * available free overweight index. **/ overweightCount: AugmentedQuery Observable, []>; /** * The configuration which controls the dynamics of the outbound queue. **/ queueConfig: AugmentedQuery Observable, []>; /** * Whether or not the XCMP queue is suspended from executing incoming XCMs or not. **/ queueSuspended: AugmentedQuery Observable, []>; /** * Any signal messages waiting to be sent. **/ signalMessages: AugmentedQuery Observable, [u32]>; }; } }