import { AxiosInstance } from 'axios'; import { DstimateGasInfo } from '../../types'; import { TransactionInfo } from '../data/transaction'; import { ExchangeRate } from '../data/index'; export default class EVMRpc { connection: AxiosInstance; address: string; constructor(connection: AxiosInstance); rpcRequest(method: string, ...params: any): Promise; getPrice(addressList: string[], currency: string[]): Promise; getTokensAndNFTs(address: string, tokenAddressList?: string[]): Promise; getTransactionsList(address: string): Promise; getTokensByTokenAddresses(address: string, tokens: string[]): Promise; getSuggestedGasFees(): Promise; getEstimateGas(params: DstimateGasInfo[]): Promise; /** * * @param contractAddress * @param functionName erc20_transfer | erc20_approve | erc20_transferFrom erc721_safeTransferFrom erc1155_safeTransferFrom or custom_{methodName} * @param params * @returns */ abiEncodeFunctionCall(contractAddress: string, functionName: string, params: any[]): Promise; getQuote(address: string, params: any): Promise; swapCheckApprove(address: string, params: any): Promise; getSwapTransactions(address: string, route: any): Promise; getTransactionReceipt(params: any): Promise; }