Daniel Ternyak a4ec6f6139 Finalize send (broadcast signedTx, loading indicators, error handling, form validation) (#141)
* hide buttons during send loading state

* fix transaction succeeded not clickable; provide error in action

* move BroadcastStatusTransaction into 'libs/transaction'

* use more succint Array.prototype.find

* rename resetState -> resetTransaction

* refactor and component componentDidUpdate logic

* rename disabled -> generateDisabled; comment componentDidUpdate

* add size to Spinner, use in ConfirmationModal; disable instead of hide buttons in Modal

* fix flow not understanding that an object wouldn't be null in this case anyway. silly flow

* various refactors; send entire balance working
2017-08-30 21:00:31 -07:00

31 lines
816 B
JavaScript

// @flow
import Big from 'bignumber.js';
import type { TransactionWithoutGas } from 'libs/transaction';
import type { Token } from 'config/data';
export default class BaseNode {
async getBalance(_address: string): Promise<Big> {
throw new Error('Implement me');
}
async getTokenBalance(_address: string, _token: Token): Promise<Big> {
throw new Error('Implement me');
}
async getTokenBalances(_address: string, _tokens: Token[]): Promise<Big[]> {
throw new Error('Implement me');
}
async estimateGas(_tx: TransactionWithoutGas): Promise<Big> {
throw new Error('Implement me');
}
async getTransactionCount(_address: string): Promise<string> {
throw new Error('Implement me');
}
async sendRawTx(_tx: string): Promise<string> {
throw new Error('Implement me');
}
}