2017-09-05 11:32:14 -05:00

14 lines
513 B
JavaScript

// @flow
import Big from 'bignumber.js';
import type { TransactionWithoutGas } from 'libs/transaction';
import type { Token } from 'config/data';
export interface INode {
getBalance(_address: string): Promise<Big>,
getTokenBalance(_address: string, _token: Token): Promise<Big>,
getTokenBalances(_address: string, _tokens: Token[]): Promise<Big>,
estimateGas(_tx: TransactionWithoutGas): Promise<Big>,
getTransactionCount(_address: string): Promise<string>,
sendRawTx(_tx: string): Promise<string>
}