mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-12 12:04:21 +00:00
e3d3b2c8e8
* 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
14 lines
510 B
JavaScript
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>
|
|
}
|