mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-17 21:47:47 +00:00
* 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
31 lines
816 B
JavaScript
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');
|
|
}
|
|
}
|