import type { Bytes, Option, Vec, bool, u32 } from '@polkadot/types'; import type { AnyNumber, ITuple, Observable } from '@polkadot/types/types'; import type { Currency, SignedBalance, TotalAggregates, UserGroup } from '@equilab/api/interfaces/latest'; import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship'; import type { EthereumAddress } from '@polkadot/types/interfaces/claims'; import type { SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa'; import type { AccountId, BalanceOf, BlockNumber, ExtrinsicsWeight, Hash, KeyTypeId, Moment, Releases, ValidatorId } from '@polkadot/types/interfaces/runtime'; import type { Keys, SessionIndex } from '@polkadot/types/interfaces/session'; import type { AccountInfo, DigestOf, EventIndex, EventRecord, LastRuntimeUpgradeInfo, Phase } from '@polkadot/types/interfaces/system'; import type { Multiplier } from '@polkadot/types/interfaces/txpayment'; import type { VestingInfo } from '@polkadot/types/interfaces/vesting'; import type { ApiTypes } from '@polkadot/api/types'; declare module '@polkadot/api/types/storage' { interface AugmentedQueries { authorship: { /** * Author of current block. **/ author: AugmentedQuery Observable>, []>; /** * Whether uncles were already set in this block. **/ didSetUncles: AugmentedQuery Observable, []>; /** * Uncles **/ uncles: AugmentedQuery Observable>, []>; }; balances: { account: AugmentedQueryDoubleMap Observable, [AccountId, Currency]>; isTransfersEnabled: AugmentedQuery Observable, []>; }; claim: { /** * Pallet storage - stores amount to be claimed by each `EthereumAddress` **/ claims: AugmentedQuery Observable>, [EthereumAddress]>; /** * Pallet storage - pre-claimed Ethereum accounts, by the Account ID that * they are claimed to **/ preclaims: AugmentedQuery Observable>, [AccountId]>; /** * Pallet storage - the statement kind that must be signed, if any **/ signing: AugmentedQuery Observable, [EthereumAddress]>; /** * Pallet storage - total `Claims` amount **/ total: AugmentedQuery Observable, []>; /** * Pallet storage - vesting schedule for a claim. * First balance is the total amount that should be held for vesting. * Second balance is how much should be unlocked per block. * The block number is when the vesting should start. **/ vesting: AugmentedQuery Observable>>, [EthereumAddress]>; }; eqAggregates: { /** * Pallet storage - stores user groups **/ accountUserGroups: AugmentedQueryDoubleMap Observable, [UserGroup, AccountId]>; /** * Pallet storage - stores aggregates for each user group **/ totalUserGroups: AugmentedQueryDoubleMap Observable, [UserGroup, Currency]>; }; eqParachainOffering: {}; eqSessionManager: { /** * Pallet storage - flag showing that active validators list changed * during a session **/ isChanged: AugmentedQuery Observable, []>; /** * Pallet storage - list of all active validators **/ validators: AugmentedQuery Observable, [ValidatorId]>; }; eqTreasury: {}; eqVesting: { /** * Pallet storage: information about already vested balances for given account **/ vested: AugmentedQuery Observable>, [AccountId]>; /** * Pallet storage: information regarding the vesting of a given account **/ vesting: AugmentedQuery Observable>, [AccountId]>; }; grandpa: { /** * The number of changes (both in terms of keys and underlying economic responsibilities) * in the "set" of Grandpa validators from genesis. **/ currentSetId: AugmentedQuery Observable, []>; /** * next block number where we can force a change. **/ nextForced: AugmentedQuery Observable>, []>; /** * Pending change: (signaled at, scheduled change). **/ pendingChange: AugmentedQuery Observable>, []>; /** * A mapping from grandpa set ID to the index of the *most recent* session for which its * members were responsible. * * TWOX-NOTE: `SetId` is not under user control. **/ setIdSession: AugmentedQuery Observable>, [SetId]>; /** * `true` if we are currently stalled. **/ stalled: AugmentedQuery Observable>>, []>; /** * State of the current authority set. **/ state: AugmentedQuery Observable, []>; }; 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>, []>; }; session: { /** * Current index of the session. **/ currentIndex: AugmentedQuery Observable, []>; /** * Indices of disabled validators. * * The set is 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 | [KeyTypeId | AnyNumber | Uint8Array, Bytes | string | Uint8Array]) => Observable>, [ITuple<[KeyTypeId, Bytes]>]>; /** * The next session keys for a validator. **/ nextKeys: AugmentedQuery Observable>, [ValidatorId]>; /** * 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>, []>; }; sudo: { /** * The `AccountId` of the sudo key. **/ key: AugmentedQuery Observable, []>; }; system: { /** * The full account information for a particular account ID. **/ account: AugmentedQuery Observable, [AccountId]>; /** * 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, [BlockNumber]>; /** * 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. **/ 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>>, [Hash]>; /** * 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]>; /** * Extrinsics root of the current block, also part of the block header. **/ extrinsicsRoot: AugmentedQuery Observable, []>; /** * 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 `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, []>; }; } interface QueryableStorage extends AugmentedQueries { } }