mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-03-03 12:10:41 +00:00
* remove 'transate' property and ng-scopes * use bigs (surprised flow did not catch this) * fix dropdown not expanding -- switch to simpledropdown * Don't use generics for no real reason * Create Ether, Wei, and GWei types, and annotate. Also contains refactors and UX improvements 1. clear previously generated rawTX/signedTx when changes to transaction inputs are made. 2. reset generated rawTx/signedTx while new generateTx is loading * add toString helper method and use in place of .amount.toString() * support optional base in toString helper method and use * incorporate PR suggestions (destructure, resolve via callback)
15 lines
549 B
JavaScript
15 lines
549 B
JavaScript
// @flow
|
|
import Big from 'bignumber.js';
|
|
import type { TransactionWithoutGas } from 'libs/messages';
|
|
import type { Token } from 'config/data';
|
|
import type { Wei } from 'libs/units';
|
|
|
|
export interface INode {
|
|
getBalance(_address: string): Promise<Wei>,
|
|
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>
|
|
}
|