2017-07-04 01:25:01 +00:00
|
|
|
// @flow
|
2017-08-08 03:45:08 +00:00
|
|
|
import Big from 'bignumber.js';
|
2017-08-11 21:54:10 +00:00
|
|
|
import type {
|
|
|
|
TransactionWithoutGas,
|
|
|
|
Transaction,
|
|
|
|
BroadcastTransaction
|
|
|
|
} from 'libs/transaction';
|
2017-08-08 03:45:08 +00:00
|
|
|
import type { Token } from 'config/data';
|
2017-08-11 21:54:10 +00:00
|
|
|
import type { BaseWallet } from 'libs/wallet';
|
2017-07-04 01:25:01 +00:00
|
|
|
|
|
|
|
export default class BaseNode {
|
2017-07-16 21:02:13 +00:00
|
|
|
async getBalance(_address: string): Promise<Big> {
|
2017-07-13 21:02:39 +00:00
|
|
|
throw new Error('Implement me');
|
2017-07-04 03:21:19 +00:00
|
|
|
}
|
2017-08-08 03:45:08 +00:00
|
|
|
|
|
|
|
async getTokenBalances(_address: string, _tokens: Token[]): Promise<Big[]> {
|
|
|
|
throw new Error('Implement me');
|
|
|
|
}
|
|
|
|
|
|
|
|
async estimateGas(_tx: TransactionWithoutGas): Promise<Big> {
|
|
|
|
throw new Error('Implement me');
|
|
|
|
}
|
2017-08-11 21:54:10 +00:00
|
|
|
|
|
|
|
async generateTransaction(
|
|
|
|
_tx: Transaction,
|
|
|
|
_wallet: BaseWallet
|
|
|
|
): Promise<BroadcastTransaction> {
|
|
|
|
throw new Error('Implement me');
|
|
|
|
}
|
2017-07-04 01:25:01 +00:00
|
|
|
}
|