import { Token } from 'config/data'; import { TransactionWithoutGas } from 'libs/messages'; import { Wei, TokenValue } from 'libs/units'; export interface TxObj { to: string; data: string; } export interface INode { getBalance(address: string): Promise; getTokenBalance(address: string, token: Token): Promise; getTokenBalances(address: string, tokens: Token[]): Promise; estimateGas(tx: TransactionWithoutGas): Promise; getTransactionCount(address: string): Promise; sendRawTx(tx: string): Promise; sendCallRequest(txObj: TxObj): Promise; getCurrentBlock(): Promise; }