Daniel Ternyak e3d3b2c8e8 Refactor Send (#164)
* refactor SendTransaction component and transaction helper lib

* move transaction generation out of component; refactor tx types and simply tx generation

* remove commented out try/catch

* address todo; rename function/types

* fix imports and address comments
2017-09-05 16:28:19 -05:00

14 lines
510 B
JavaScript

// @flow
import Big from 'bignumber.js';
import type { TransactionWithoutGas } from 'libs/messages';
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>
}