import BigNumber from 'bignumber.js'; import memoizee from 'memoizee'; import { JsonRPCRequest } from '../../../basic/request/json-rpc'; import { CoinInfo } from '../../../types/chain'; import { AddressInfo, ClientInfo, FeePricePerUnit, PartialTokenInfo, TransactionStatus } from '../../../types/provider'; import { BaseClient } from '../../abc'; import { MmFee } from './mm-fee'; declare type EIP1559Price = { maxPriorityFeePerGas: BigNumber; maxFeePerGas: BigNumber; waitingBlock?: number; }; declare type EIP1559Fee = { baseFee: BigNumber; normal: EIP1559Price; others?: Array; }; declare class Geth extends BaseClient { static readonly __LAST_BLOCK__ = "latest"; private _mmFee; readonly rpc: JsonRPCRequest; constructor(url: string); get mmFee(): MmFee; getInfo(): Promise; getAddresses(addresses: Array): Promise>; getBalances(requests: Array<{ address: string; coin: Partial; }>): Promise>; getTransactionStatuses(txids: Array): Promise>; getTokenInfos(tokenAddresses: Array): Promise>; getFeePricePerUnit(): Promise; estimateEIP1559FeeStrategy(): Promise; estimateEIP1559Fee(): Promise; broadcastTransaction(rawTx: string): Promise; estimateGasLimit: ((fromAddress: string, toAddress: string, value: string, data?: string | undefined) => Promise) & memoizee.Memoized<(fromAddress: string, toAddress: string, value: string, data?: string | undefined) => Promise>; isContract: ((address: string) => Promise) & memoizee.Memoized<(address: string) => Promise>; batchEthCall(calls: Array<{ to: string; data: string; }>): Promise>; } export { Geth, EIP1559Price, EIP1559Fee };