import { HashOrBlockNumber, IChain, IChainConfig, ITransaction, QueryTransactionsResponse, QueryTxFilterDydx, TokeBalanceResponse, Transaction } from "../types"; import BigNumber from "bignumber.js"; import { DydxClient } from "@dydxprotocol/v3-client"; export declare class Dydx implements IChain { readonly chainConfig: IChainConfig; private apiKeyCredentials; constructor(chainConfig: IChainConfig); getTokenInfo(idOrAddrsss: string | number): Promise; getDydxClient(): DydxClient; getLatestHeight(): Promise; convertTxToEntity(data: any): Promise; convertTxToMultiEntity(data: any): Promise; getConfirmations(_hashOrHeight: HashOrBlockNumber): Promise; calcConfirmations(_targetHeight: number, _latestHeight: number): Promise; getTransactionByHash(_hash: string): Promise; /** * The api does not return the nonce value, timestamp(ms) last three number is the nonce * (warnning: there is a possibility of conflict) * @param timestamp ms * @returns */ static timestampToNonce(timestamp: number | string): string; getTransactions(_address: string, filter?: Partial): Promise; getTokenTransactions(address: string, tokenAddress: string, filter: Partial): Promise; getBalance(address: string): Promise; getBalances(_address: string): Promise; getDecimals(): Promise; getTokenBalance(address: string, tokenAddress: string): Promise; getTokenDecimals(tokenAddress: string): Promise; getTokenSymbol(tokenAddress: string): Promise; }