import { Token } from 'config'; import { Wei, TokenValue } from 'libs/units'; import { IHexStrTransaction } from 'libs/transaction'; export interface TxObj { to: string; data: string; } interface TokenBalanceResult { balance: TokenValue; error: string | null; } export interface INode { ping(): Promise; getBalance(address: string): Promise; getTokenBalance(address: string, token: Token): Promise; getTokenBalances(address: string, tokens: Token[]): Promise; estimateGas(tx: Partial): Promise; getTransactionCount(address: string): Promise; sendRawTx(tx: string): Promise; sendCallRequest(txObj: TxObj): Promise; getCurrentBlock(): Promise; }