import { Coin } from '@cosmjs/proto-signing'; import { Account, Block, QueryClient as StargateQueryClient, TxExtension } from '@cosmjs/stargate'; import { GetAuthenticatorsResponse } from '@dydxprotocol/v4-proto/src/codegen/dydxprotocol/accountplus/query'; import Long from 'long'; import { AffiliateModule, BridgeModule, ClobModule, DistributionModule, FeeTierModule, GovV1Module, PerpetualsModule, PricesModule, ProposalStatus, RateLimitModule, RewardsModule, StakingModule, SubaccountsModule, VaultModule } from './proto-includes'; import { TendermintClient } from './tendermintClient'; export declare class Get { readonly tendermintClient: TendermintClient; readonly stargateQueryClient: StargateQueryClient & TxExtension; constructor(tendermintClient: TendermintClient, stargateQueryClient: StargateQueryClient & TxExtension); /** * @description Get latest block * * @returns last block structure */ latestBlock(): Promise; /** * @description Get latest block height * * @returns last height */ latestBlockHeight(): Promise; /** * @description Get all fee tier params. * * @returns All fee tier params. */ getFeeTiers(): Promise; /** * @description Get fee tier the user belongs to * * @returns the fee tier user belongs to. */ getUserFeeTier(address: string): Promise; /** * @description Get get trading stats * * @returns return the user's taker and maker volume */ getUserStats(address: string): Promise<{ takerNotional: Long; makerNotional: Long; } | undefined>; /** * @description Get all balances for an account. * * @returns Array of Coin balances for all tokens held by an account. */ getAccountBalances(address: string): Promise; /** * @description Get balances of one denom for an account. * * @returns Coin balance for denom tokens held by an account. */ getAccountBalance(address: string, denom: string): Promise; /** * @description Get all subaccounts * * @returns All subaccounts */ getSubaccounts(): Promise; /** * @description Get a specific subaccount for an account. * * @returns Subaccount for account with given accountNumber or default subaccount if none exists. */ getSubaccount(address: string, accountNumber: number): Promise; /** * @description Get the params for the rewards module. * * @returns Params for the rewards module. */ getRewardsParams(): Promise; /** * @description Get all Clob Pairs. * * @returns Information on all Clob Pairs. */ getAllClobPairs(): Promise; /** * @description Get Clob Pair for an Id or the promise is rejected if no pair exists. * * @returns Clob Pair for a given Clob Pair Id. */ getClobPair(pairId: number): Promise; /** * @description Get all Prices across markets. * * @returns Prices across all markets. */ getAllPrices(): Promise; /** * @description Get Price for a clob Id or the promise is rejected if none exists. * * @returns Price for a given Market Id. */ getPrice(marketId: number): Promise; /** * @description Get all Perpetuals. * * @returns Information on all Perpetual pairs. */ getAllPerpetuals(): Promise; /** * @description Get Perpetual for an Id or the promise is rejected if none exists. * * @returns The Perpetual for a given Perpetual Id. */ getPerpetual(perpetualId: number): Promise; /** * @description Get Account for an address or the promise is rejected if the account * does not exist on-chain. * * @throws UnexpectedClientError if a malformed response is returned with no GRPC error. * @returns An account for a given address. */ getAccount(address: string): Promise; /** * @description Get equity tier limit configuration. * * @returns Information on all equity tiers that are configured. */ getEquityTierLimitConfiguration(): Promise; /** * @description Get user leverage settings for a given subaccount * @returns User set leverage for all clob pairs */ getPerpetualMarketsLeverage(address: string, subaccountNumber: number): Promise; /** * * @description Get all delegations from a delegator. * * @returns All delegations from a delegator. */ getDelegatorDelegations(delegatorAddr: string): Promise; /** * * @description Get all unbonding delegations from a delegator. * * @returns All unbonding delegations from a delegator. */ getDelegatorUnbondingDelegations(delegatorAddr: string): Promise; /** * * @description Get all unbonding delegations from a delegator. * * @returns All unbonding delegations from a delegator. */ getDelegationTotalRewards(delegatorAddress: string): Promise; /** * @description Get all delayed complete bridge messages, optionally filtered by address. * * @returns Information on all delayed complete bridge messages. */ getDelayedCompleteBridgeMessages(address?: string): Promise; /** * @description Get all validators of a status. * * @returns all validators of a status. */ getAllValidators(status?: string): Promise; /** * @description Get all gov proposals. * * @param proposalStatus Status of the proposal to filter by. * @param voter Voter to filter by. * @param depositor Depositor to filter by. * * @returns All gov proposals that match the filters above. */ getAllGovProposals(proposalStatus?: ProposalStatus, voter?: string, depositor?: string): Promise; getWithdrawalAndTransferGatingStatus(perpetualId: number): Promise; getWithdrawalCapacityByDenom(denom: string): Promise; getMegavaultOwnerShares(address: string): Promise; getMegavaultWithdrawalInfo(sharesToWithdraw: bigint): Promise; getAffiliateInfo(address: string): Promise; getReferredBy(address: string): Promise; getAllAffiliateTiers(): Promise; getAffiliateWhitelist(): Promise; getAuthenticators(address: string): Promise; /** * @description Get fee discounts for all perp markets. * @returns All markets' fee discounts. */ getAllPerpMarketFeeDiscounts(): Promise; /** * * @param address The address of the user to get the staking tier for. * @returns The staking tier for the user. */ getUserStakingTier(address: string): Promise; /** * @description Get all staking tiers. * @returns All staking tiers. */ getAllStakingTiers(): Promise; private sendQuery; } //# sourceMappingURL=get.d.ts.map