import { AnyNumber, ITuple } from "../../../types/types"; import { Option, Raw, Vec } from "../../../types/codec"; import { Bytes, bool, u16, u32, u64 } from "../../../types/primitive"; import { AccountId, AccountIndex, Balance, BalanceOf, BlockNumber, Hash, Index, KeyTypeId, Moment, Perbill, ValidatorId, Weight } from "../../../types/interfaces/runtime"; import { UncleEntryItem } from "../../../types/interfaces/authorship"; import { BabeAuthorityWeight, MaybeVrf } from "../../../types/interfaces/babe"; import { BalanceLock, VestingSchedule } from "../../../types/interfaces/balances"; import { ProposalIndex } from "../../../types/interfaces/collective"; import { AuthorityId } from "../../../types/interfaces/consensus"; import { CodeHash, ContractInfo, Gas, PrefabWasmModule, Schedule } from "../../../types/interfaces/contracts"; import { Proposal } from "../../../types/interfaces/democracy"; import { AuthorityList, SetId, StoredPendingChange, StoredState } from "../../../types/interfaces/grandpa"; import { AuthIndex } from "../../../types/interfaces/imOnline"; import { Kind, OffenceDetails, OpaqueTimeSlot, ReportIdOf } from "../../../types/interfaces/offences"; import { Keys, SessionIndex } from "../../../types/interfaces/session"; import { EraIndex, EraPoints, Exposure, Forcing, MomentOf, Nominations, RewardDestination, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs } from "../../../types/interfaces/staking"; import { DigestOf, EventIndex, EventRecord } from "../../../types/interfaces/system"; import { TreasuryProposal } from "../../../types/interfaces/treasury"; import { Multiplier } from "../../../types/interfaces/txpayment"; import { AccountKey, AssetRule, Authorization, AuthorizationNonce, Ballot, Claim, ClaimMetaData, Counter, DidRecord, Dividend, IdentifierType, IdentityId, Investment, Link, LinkedKeyInfo, MIP, MipsMetadata, PermissionedValidator, PolymeshReferendumInfo, PolymeshVotes, PreAuthorizedKeyInfo, ProportionMatch, STO, SecurityToken, Signatory, SimpleTokenRecord, SmartExtension, SmartExtensionType, TargetIdAuthorization, Ticker, TickerRegistration, TickerRegistrationConfig } from "../../../types/interfaces/polymesh"; import { Observable } from 'rxjs'; declare module "../storage" { interface AugmentedQueries { system: { /** * Extrinsics nonce for accounts. **/ accountNonce: AugmentedQuery Observable>; /** * Total extrinsics count for the current block. **/ extrinsicCount: AugmentedQuery Observable>>; /** * Total weight for all extrinsics put together, for the current block. **/ allExtrinsicsWeight: AugmentedQuery Observable>>; /** * 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>; /** * Extrinsics data for the current block (maps an extrinsic's index to its data). **/ extrinsicData: AugmentedQuery Observable>; /** * The current block number being processed. Set by `execute_block`. **/ number: AugmentedQuery Observable>; /** * Hash of the previous block. **/ parentHash: AugmentedQuery Observable>; /** * Extrinsics root of the current block, also part of the block header. **/ extrinsicsRoot: AugmentedQuery Observable>; /** * Digest of the current block, also part of the block header. **/ digest: AugmentedQuery Observable>; /** * Events deposited for the current block. **/ events: AugmentedQuery Observable>>; /** * The number of events in the `Events` list. **/ eventCount: AugmentedQuery Observable>; /** * Mapping between a topic (represented by T::Hash) and a vector of indexes * of events in the `>` list. * The first key serves no purpose. This field is declared as double_map just * for convenience of using `remove_prefix`. * 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>>>; }; babe: { /** * Current epoch index. **/ epochIndex: AugmentedQuery Observable>; /** * Current epoch authorities. **/ authorities: AugmentedQuery Observable>>>; /** * The slot at which the first epoch actually started. This is 0 * until the first block of the chain. **/ genesisSlot: AugmentedQuery Observable>; /** * Current slot number. **/ currentSlot: AugmentedQuery Observable>; /** * 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. **/ randomness: AugmentedQuery Observable>; /** * Next epoch randomness. **/ nextRandomness: AugmentedQuery Observable>; /** * Randomness under construction. * We make a tradeoff 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. **/ segmentIndex: AugmentedQuery Observable>; underConstruction: AugmentedQuery Observable>>; /** * Temporary value (cleared at block finalization) which is `Some` * if per-block initialization has already been called for current block. **/ initialized: AugmentedQuery Observable>>; }; timestamp: { /** * Current time for the current block. **/ now: AugmentedQuery Observable>; /** * Did the timestamp get updated in this block? **/ didUpdate: AugmentedQuery Observable>; }; indices: { /** * The next free enumeration set. **/ nextEnumSet: AugmentedQuery Observable>; /** * The enumeration sets. **/ enumSet: AugmentedQuery Observable>>; }; balances: { /** * The total units issued in the system. **/ totalIssuance: AugmentedQuery Observable>; /** * Information regarding the vesting of a given account. **/ vesting: AugmentedQuery Observable>>; /** * The 'free' balance of a given account. * This is the only balance that matters in terms of most operations on tokens. It * alone is used to determine the balance when in the contract execution environment. **/ freeBalance: AugmentedQuery Observable>; /** * The amount of the balance of a given account that is externally reserved; this can still get * slashed, but gets slashed last of all. * This balance is a 'reserve' balance that other subsystems use in order to set aside tokens * that are still 'owned' by the account holder, but which are suspendable. **/ reservedBalance: AugmentedQuery Observable>; /** * Any liquidity locks on some account balances. **/ locks: AugmentedQuery Observable>>; /** * Balance held by the identity. It can be spent by its signing keys. **/ identityBalance: AugmentedQuery Observable>; /** * Signing key => Charge Fee to did?. Default is false i.e. the fee will be charged from user balance **/ chargeDid: AugmentedQuery Observable>; /** * AccountId of the block rewards reserve **/ blockRewardsReserve: AugmentedQuery Observable>; }; authorship: { /** * Uncles **/ uncles: AugmentedQuery Observable>>; /** * Author of current block. **/ author: AugmentedQuery Observable>>; /** * Whether uncles were already set in this block. **/ didSetUncles: AugmentedQuery Observable>; }; staking: { /** * The ideal number of staking participants. **/ validatorCount: AugmentedQuery Observable>; /** * Minimum number of staking participants before emergency conditions are imposed. **/ minimumValidatorCount: AugmentedQuery Observable>; /** * 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. **/ invulnerables: AugmentedQuery Observable>>; /** * Map from all locked "stash" accounts to the controller account. **/ bonded: AugmentedQuery Observable>>; /** * Map from all (unlocked) "controller" accounts to the info regarding the staking. **/ ledger: AugmentedQuery Observable>>; /** * Where the reward payment should be made. Keyed by stash. **/ payee: AugmentedQuery Observable>; /** * The map from (wannabe) validator stash key to the preferences of that validator. **/ validators: AugmentedQuery Observable>; /** * The map from nominator stash key to the set of stash keys of all validators to nominate. * NOTE: is private so that we can ensure upgraded before all typical accesses. * Direct storage APIs can still bypass this protection. **/ nominators: AugmentedQuery Observable>>; /** * Nominators for a particular account that is in action right now. You can't iterate * through validators here, but you can find them in the Session module. * This is keyed by the stash account. **/ stakers: AugmentedQuery Observable>; /** * The currently elected validator set keyed by stash account ID. **/ currentElected: AugmentedQuery Observable>>; /** * The current era index. **/ currentEra: AugmentedQuery Observable>; /** * The start of the current era. **/ currentEraStart: AugmentedQuery Observable>; /** * The session index at which the current era started. **/ currentEraStartSessionIndex: AugmentedQuery Observable>; /** * Rewards for the current era. Using indices of current elected set. **/ currentEraPointsEarned: AugmentedQuery Observable>; /** * The amount of balance actively at stake for each validator slot, currently. * This is used to derive rewards and punishments. **/ slotStake: AugmentedQuery Observable>; /** * True if the next session change will be a new era regardless of index. **/ forceEra: AugmentedQuery Observable>; /** * The percentage of the slash that is distributed to reporters. * The rest of the slashed value is handled by the `Slash`. **/ slashRewardFraction: AugmentedQuery Observable>; /** * The amount of currency given to reporters of a slash event which was * canceled by extraordinary circumstances (e.g. governance). **/ canceledSlashPayout: AugmentedQuery Observable>; /** * All unapplied slashes that are queued for later. **/ unappliedSlashes: AugmentedQuery Observable>>; /** * A mapping from still-bonded eras to the first session index of that era. **/ bondedEras: AugmentedQuery Observable>>>; /** * All slashing events on validators, mapped by era to the highest slash proportion * and slash value of the era. **/ validatorSlashInEra: AugmentedQuery Observable>>>; /** * All slashing events on nominators, mapped by era to the highest slash value of the era. **/ nominatorSlashInEra: AugmentedQuery Observable>>; /** * Slashing spans for stash accounts. **/ slashingSpans: AugmentedQuery Observable>>; /** * Records information about the maximum slash of a stash within a slashing span, * as well as how much reward has been paid out. **/ spanSlash: AugmentedQuery | [AccountId | string | Uint8Array, SpanIndex | AnyNumber | Uint8Array]) => Observable>; /** * The earliest era for which we have a pending, unapplied slash. **/ earliestUnappliedSlash: AugmentedQuery Observable>>; /** * The version of storage for upgrade. **/ storageVersion: AugmentedQuery Observable>; /** * The map from (wannabe) validators to the status of compliance **/ permissionedValidators: AugmentedQuery Observable>>; }; offences: { /** * The primary structure that holds all offence records keyed by report identifiers. **/ reports: AugmentedQuery Observable>>; /** * A vector of reports of the same kind that happened at the same time slot. **/ concurrentReportsIndex: AugmentedQuery Observable>>; /** * Enumerates all reports of a kind along with the time they happened. * All reports are sorted by the time of offence. * Note that the actual type of this mapping is `Vec`, this is because values of * different types are not supported at the moment so we are doing the manual serialization. **/ reportsByKindIndex: AugmentedQuery Observable>; }; session: { /** * The current set of validators. **/ validators: AugmentedQuery Observable>>; /** * Current index of the session. **/ currentIndex: AugmentedQuery Observable>; /** * 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>>>; /** * Indices of disabled validators. * The set is cleared when `on_session_ending` returns a new set of identities. **/ disabledValidators: AugmentedQuery Observable>>; /** * The next session keys for a validator. * The first key is always `DEDUP_KEY_PREFIX` to have all the data in the same branch of * the trie. Having all data in the same branch should prevent slowing down other queries. **/ nextKeys: AugmentedQuery Observable>>; /** * The owner of a key. The second key is the `KeyTypeId` + the encoded key. * The first key is always `DEDUP_KEY_PREFIX` to have all the data in the same branch of * the trie. Having all data in the same branch should prevent slowing down other queries. **/ keyOwner: AugmentedQuery | [KeyTypeId | AnyNumber | Uint8Array, Bytes | string | Uint8Array]) => Observable>>; }; grandpa: { /** * DEPRECATED * This used to store the current authority set, which has been migrated to the well-known * GRANDPA_AUTHORITES_KEY unhashed key. **/ authorities: AugmentedQuery Observable>; /** * State of the current authority set. **/ state: AugmentedQuery Observable>; /** * Pending change: (signaled at, scheduled change). **/ pendingChange: AugmentedQuery Observable>>; /** * next block number where we can force a change. **/ nextForced: AugmentedQuery Observable>>; /** * `true` if we are currently stalled. **/ stalled: AugmentedQuery Observable>>>; /** * The number of changes (both in terms of keys and underlying economic responsibilities) * in the "set" of Grandpa validators from genesis. **/ currentSetId: AugmentedQuery Observable>; /** * A mapping from grandpa set ID to the index of the *most recent* session for which its members were responsible. **/ setIdSession: AugmentedQuery Observable>>; }; imOnline: { /** * The block number when we should gossip. **/ gossipAt: AugmentedQuery Observable>; /** * The current set of keys that may issue a heartbeat. **/ keys: AugmentedQuery Observable>>; /** * For each session index, we keep a mapping of `AuthIndex` * to `offchain::OpaqueNetworkState`. **/ receivedHeartbeats: AugmentedQuery Observable>>; /** * For each session index, we keep a mapping of `T::ValidatorId` to the * number of blocks authored by the given authority. **/ authoredBlocks: 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>>; }; transactionPayment: { nextFeeMultiplier: AugmentedQuery Observable>; }; sudo: { /** * The `AccountId` of the sudo key. **/ key: AugmentedQuery Observable>; }; multiSig: { /** * Nonce to ensure unique MultiSig addresses are generated. starts from 1. **/ multiSigNonce: AugmentedQuery Observable>; /** * Signers of a multisig. (mulisig, signer) => true/false **/ multiSigSigners: AugmentedQuery | [AccountId | string | Uint8Array, Signatory | { identity: any; } | { accountKey: any; } | string | Uint8Array]) => Observable>; /** * Confirmations required before processing a multisig tx **/ multiSigSignsRequired: AugmentedQuery Observable>; /** * Number of transactions proposed in a multisig. Used as tx id. starts from 0 **/ multiSigTxDone: AugmentedQuery Observable>; /** * Proposals presented for voting to a multisig (multisig, proposal id) => Option. * It is deleted after proposal is processed **/ proposals: AugmentedQuery | [AccountId | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable>>; /** * Number of votes in favor of a tx. Mapping from (multisig, tx id) => no. of approvals. **/ txApprovals: AugmentedQuery | [AccountId | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable>; /** * Individual multisig signer votes. (multi sig, signer, ) **/ votes: AugmentedQuery | [AccountId | string | Uint8Array, Signatory | { identity: any; } | { accountKey: any; } | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable>; }; contracts: { /** * Gas spent so far in this block. **/ gasSpent: AugmentedQuery Observable>; /** * Current cost schedule for contracts. **/ currentSchedule: AugmentedQuery Observable>; /** * A mapping from an original code hash to the original code, untouched by instrumentation. **/ pristineCode: AugmentedQuery Observable>>; /** * A mapping between an original code hash and instrumented wasm code, ready for execution. **/ codeStorage: AugmentedQuery Observable>>; /** * The subtrie counter. **/ accountCounter: AugmentedQuery Observable>; /** * The code associated with a given account. **/ contractInfoOf: AugmentedQuery Observable>>; /** * The price of one unit of gas. **/ gasPrice: AugmentedQuery Observable>; }; treasury: { /** * Number of proposals that have been made. **/ proposalCount: AugmentedQuery Observable>; /** * Proposals that have been made. **/ proposals: AugmentedQuery Observable>>; /** * Proposal indices that have been approved but not yet awarded. **/ approvals: AugmentedQuery Observable>>; }; polymeshCommittee: { /** * The hashes of the active proposals. **/ proposals: AugmentedQuery Observable>>; /** * Actual proposal for a given hash. **/ proposalOf: AugmentedQuery Observable>>; /** * PolymeshVotes on a given proposal, if it is ongoing. **/ voting: AugmentedQuery Observable>>; /** * Proposals so far. **/ proposalCount: AugmentedQuery Observable>; /** * The current members of the committee. **/ members: AugmentedQuery Observable>>; /** * Vote threshold for an approval. **/ voteThreshold: AugmentedQuery Observable>>; }; committeeMembership: { /** * Identities that are part of this group **/ members: AugmentedQuery Observable>>; }; mips: { /** * The minimum amount to be used as a deposit for a public referendum proposal. **/ minimumProposalDeposit: AugmentedQuery Observable>; /** * Minimum stake a proposal must gather in order to be considered by the committee. **/ quorumThreshold: AugmentedQuery Observable>; /** * How long (in blocks) a ballot runs **/ proposalDuration: AugmentedQuery Observable>; /** * Proposals so far. Index can be used to keep track of MIPs off-chain. **/ proposalCount: AugmentedQuery Observable>; /** * The hashes of the active proposals. **/ proposalMetadata: AugmentedQuery Observable>>; /** * Those who have locked a deposit. * proposal hash -> (deposit, proposer) **/ deposits: AugmentedQuery Observable>>>; /** * Actual proposal for a given hash, if it's current. * proposal hash -> proposal **/ proposals: AugmentedQuery Observable>>; /** * PolymeshVotes on a given proposal, if it is ongoing. * proposal hash -> voting info **/ voting: AugmentedQuery Observable>>; /** * Active referendums. **/ referendumMetadata: AugmentedQuery Observable>>; /** * Proposals that have met the quorum threshold to be put forward to a governance committee * proposal hash -> proposal **/ referendums: AugmentedQuery Observable>>; }; asset: { /** * The DID of the fee collector **/ feeCollector: AugmentedQuery Observable>; /** * Ticker registration details * (ticker) -> TickerRegistration **/ tickers: AugmentedQuery Observable>; /** * Ticker registration config * (ticker) -> TickerRegistrationConfig **/ tickerConfig: AugmentedQuery Observable>; /** * details of the token corresponding to the token ticker * (ticker) -> SecurityToken details [returns SecurityToken struct] **/ tokens: AugmentedQuery Observable>; /** * Used to store the securityToken balance corresponds to ticker and Identity * (ticker, DID) -> balance **/ balanceOf: AugmentedQuery | [Ticker | string | Uint8Array, IdentityId | string | Uint8Array]) => Observable>; /** * A map of asset identifiers whose keys are pairs of a ticker name and an `IdentifierType` * and whose values are byte vectors. **/ identifiers: AugmentedQuery | [Ticker | string | Uint8Array, IdentifierType | { isin: any; } | { cusip: any; } | { custom: any; } | string | Uint8Array]) => Observable>; /** * (ticker, sender (DID), spender(DID)) -> allowance amount **/ allowance: AugmentedQuery | [Ticker | string | Uint8Array, IdentityId | string | Uint8Array, IdentityId | string | Uint8Array]) => Observable>; /** * cost in base currency to create a token **/ assetCreationFee: AugmentedQuery Observable>; /** * cost in base currency to register a ticker **/ tickerRegistrationFee: AugmentedQuery Observable>; /** * Checkpoints created per token * (ticker) -> no. of checkpoints **/ totalCheckpoints: AugmentedQuery Observable>; /** * Total supply of the token at the checkpoint * (ticker, checkpointId) -> total supply at given checkpoint **/ checkpointTotalSupply: AugmentedQuery | [Ticker | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable>; /** * Balance of a DID at a checkpoint * (ticker, DID, checkpoint ID) -> Balance of a DID at a checkpoint **/ checkpointBalance: AugmentedQuery | [Ticker | string | Uint8Array, IdentityId | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable>; /** * Last checkpoint updated for a DID's balance * (ticker, DID) -> List of checkpoints where user balance changed **/ userCheckpoints: AugmentedQuery | [Ticker | string | Uint8Array, IdentityId | string | Uint8Array]) => Observable>>; /** * Allowance provided to the custodian * (ticker, token holder, custodian) -> balance **/ custodianAllowance: AugmentedQuery | [Ticker | string | Uint8Array, IdentityId | string | Uint8Array, IdentityId | string | Uint8Array]) => Observable>; /** * Total custodian allowance for a given token holder * (ticker, token holder) -> balance **/ totalCustodyAllowance: AugmentedQuery | [Ticker | string | Uint8Array, IdentityId | string | Uint8Array]) => Observable>; /** * Store the nonce for off chain signature to increase the custody allowance * (ticker, token holder, nonce) -> bool **/ authenticationNonce: AugmentedQuery | [Ticker | string | Uint8Array, IdentityId | string | Uint8Array, u16 | AnyNumber | Uint8Array]) => Observable>; /** * The name of the current funding round. * ticker -> funding round **/ fundingRound: AugmentedQuery Observable>; /** * The total balances of tokens issued in all recorded funding rounds. * (ticker, funding round) -> balance **/ issuedInFundingRound: AugmentedQuery | [Ticker | string | Uint8Array, Bytes | string | Uint8Array]) => Observable>; /** * List of Smart extension added for the given tokens * ticker, AccountId (SE address) -> SmartExtension detail **/ extensionDetails: AugmentedQuery | [Ticker | string | Uint8Array, AccountId | string | Uint8Array]) => Observable>; /** * List of Smart extension added for the given tokens and for the given type * ticker, type of SE -> address/AccountId of SE **/ extensions: AugmentedQuery | [Ticker | string | Uint8Array, SmartExtensionType | { transferManager: any; } | { offerings: any; } | { custom: any; } | string | Uint8Array]) => Observable>>; /** * The set of frozen assets implemented as a membership map. * ticker -> bool **/ frozen: AugmentedQuery Observable>; }; dividend: { /** * Dividend records; (ticker, dividend ID) => dividend entry * Note: contrary to checkpoint IDs, dividend IDs are 0-indexed. **/ dividends: AugmentedQuery | [Ticker | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable>; /** * How many dividends were created for a ticker so far; (ticker) => count **/ dividendCount: AugmentedQuery Observable>; /** * Payout flags, decide whether a user already was paid their dividend * (DID, ticker, dividend_id) -> whether they got their payout **/ userPayoutCompleted: AugmentedQuery | [IdentityId | string | Uint8Array, Ticker | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable>; }; identity: { /** * Module owner. **/ owner: AugmentedQuery Observable>; /** * DID -> identity info **/ didRecords: AugmentedQuery Observable>; /** * DID -> bool that indicates if signing keys are frozen. **/ isDidFrozen: AugmentedQuery Observable>; /** * It stores the current identity for current transaction. **/ currentDid: AugmentedQuery Observable>>; /** * (DID, claim_key, claim_issuer) -> Associated claims **/ claims: AugmentedQuery | [IdentityId | string | Uint8Array, ClaimMetaData | { claim_key?: any; claim_issuer?: any; } | string | Uint8Array]) => Observable>; /** * DID -> array of (claim_key and claim_issuer) **/ claimKeys: AugmentedQuery Observable>>; keyToIdentityIds: AugmentedQuery Observable>>; /** * How much does creating a DID cost **/ didCreationFee: AugmentedQuery Observable>; /** * It stores validated identities by any KYC. **/ kYCValidation: AugmentedQuery Observable>; /** * Nonce to ensure unique actions. starts from 1. **/ multiPurposeNonce: AugmentedQuery Observable>; /** * Pre-authorize join to Identity. **/ preAuthorizedJoinDid: AugmentedQuery Observable>>; /** * Authorization nonce per Identity. Initially is 0. **/ offChainAuthorizationNonce: AugmentedQuery Observable>; /** * Inmediate revoke of any off-chain authorization. **/ revokeOffChainAuthorization: AugmentedQuery | [Signatory | { identity: any; } | { accountKey: any; } | string | Uint8Array, TargetIdAuthorization | { target_id?: any; nonce?: any; expires_at?: any; } | string | Uint8Array]) => Observable>; /** * All authorizations that an identity has **/ authorizations: AugmentedQuery | [Signatory | { identity: any; } | { accountKey: any; } | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable>; /** * Auth id of the latest auth of an identity. Used to allow iterating over auths **/ lastAuthorization: AugmentedQuery Observable>; /** * All links that an identity/key has **/ links: AugmentedQuery | [Signatory | { identity: any; } | { accountKey: any; } | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable>; /** * Link id of the latest auth of an identity/key. Used to allow iterating over links **/ lastLink: AugmentedQuery Observable>; }; generalTM: { /** * List of active rules for a ticker (Ticker -> Array of AssetRules) **/ activeRules: AugmentedQuery Observable>>; }; voting: { /** * Mapping of ticker and ballot name -> ballot details **/ ballots: AugmentedQuery | [Ticker | string | Uint8Array, Bytes | string | Uint8Array]) => Observable>; /** * Helper data to make voting cheaper. * (ticker, BallotName) -> NoOfChoices **/ totalChoices: AugmentedQuery | [Ticker | string | Uint8Array, Bytes | string | Uint8Array]) => Observable>; /** * (Ticker, BallotName, DID) -> Vector of vote weights. * weight at 0 index means weight for choice 1 of motion 1. * weight at 1 index means weight for choice 2 of motion 1. * User must enter 0 vote weight if they don't want to vote for a choice. **/ votes: AugmentedQuery | [Ticker | string | Uint8Array, Bytes | string | Uint8Array, IdentityId | string | Uint8Array]) => Observable>>; /** * (Ticker, BallotName) -> Vector of current vote weights. * weight at 0 index means weight for choice 1 of motion 1. * weight at 1 index means weight for choice 2 of motion 1. **/ results: AugmentedQuery | [Ticker | string | Uint8Array, Bytes | string | Uint8Array]) => Observable>>; }; stoCapped: { /** * Tokens can have multiple whitelists that (for now) check entries individually within each other * (ticker, sto_id) -> STO **/ stosByToken: AugmentedQuery | [Ticker | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable>; /** * It returns the sto count corresponds to its ticker * ticker -> sto count **/ stoCount: AugmentedQuery Observable>; /** * List of SimpleToken tokens which will be accepted as the fund raised type for the STO * (asset_ticker, sto_id, index) -> simple_token_ticker **/ allowedTokens: AugmentedQuery | [Ticker | string | Uint8Array, u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable>; /** * To track the index of the token address for the given STO * (Asset_ticker, sto_id, simple_token_ticker) -> index **/ tokenIndexForSTO: AugmentedQuery | [Ticker | string | Uint8Array, u32 | AnyNumber | Uint8Array, Ticker | string | Uint8Array]) => Observable>>; /** * To track the no of different tokens allowed as fund raised type for the given STO * (asset_ticker, sto_id) -> count **/ tokensCountForSto: AugmentedQuery | [Ticker | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable>; /** * To track the investment data of the investor corresponds to ticker * (asset_ticker, sto_id, DID) -> Investment structure **/ investmentData: AugmentedQuery | [Ticker | string | Uint8Array, u32 | AnyNumber | Uint8Array, IdentityId | string | Uint8Array]) => Observable>; /** * To track the investment amount of the investor corresponds to ticker using SimpleToken * (asset_ticker, simple_token_ticker, sto_id, accountId) -> Invested balance **/ simpleTokenSpent: AugmentedQuery | [Ticker | string | Uint8Array, Ticker | string | Uint8Array, u32 | AnyNumber | Uint8Array, IdentityId | string | Uint8Array]) => Observable>; }; percentageTM: { maximumPercentageEnabledForToken: AugmentedQuery Observable>; }; exemption: { exemptionList: AugmentedQuery | [Ticker | string | Uint8Array, u16 | AnyNumber | Uint8Array, IdentityId | string | Uint8Array]) => Observable>; }; simpleToken: { /** * Mapping from (ticker, owner DID, spender DID) to allowance amount **/ allowance: AugmentedQuery | [Ticker | string | Uint8Array, IdentityId | string | Uint8Array, IdentityId | string | Uint8Array]) => Observable>; /** * Mapping from (ticker, owner DID) to their balance **/ balanceOf: AugmentedQuery | [Ticker | string | Uint8Array, IdentityId | string | Uint8Array]) => Observable>; /** * The cost to create a new simple token **/ creationFee: AugmentedQuery Observable>; /** * The details associated with each simple token **/ tokens: AugmentedQuery Observable>; }; kYCServiceProviders: { /** * Identities that are part of this group **/ members: AugmentedQuery Observable>>; }; statistic: { investorCountPerAsset: AugmentedQuery Observable>; }; } }