mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-21 15:28:32 +00:00
* Generating transaction ,placing into read only textareas. * Fix async wallet getAddress cases. * Chain id from network * remove leftover console log * Check balance before generating transaction. * Translate error msgs, check for invalid address. * Errors for gas limit and gas price issues.
31 lines
744 B
JavaScript
31 lines
744 B
JavaScript
// @flow
|
|
import Big from 'bignumber.js';
|
|
import type {
|
|
TransactionWithoutGas,
|
|
Transaction,
|
|
BroadcastTransaction
|
|
} from 'libs/transaction';
|
|
import type { Token } from 'config/data';
|
|
import type { BaseWallet } from 'libs/wallet';
|
|
|
|
export default class BaseNode {
|
|
async getBalance(_address: string): 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 generateTransaction(
|
|
_tx: Transaction,
|
|
_wallet: BaseWallet
|
|
): Promise<BroadcastTransaction> {
|
|
throw new Error('Implement me');
|
|
}
|
|
}
|