2017-07-04 05:25:01 +04:00
|
|
|
// @flow
|
2017-08-07 23:45:08 -04:00
|
|
|
import Big from 'bignumber.js';
|
2017-08-23 02:57:18 -04:00
|
|
|
import type { TransactionWithoutGas } from 'libs/transaction';
|
2017-08-07 23:45:08 -04:00
|
|
|
import type { Token } from 'config/data';
|
2017-07-04 05:25:01 +04:00
|
|
|
|
|
|
|
export default class BaseNode {
|
2017-07-16 16:02:13 -05:00
|
|
|
async getBalance(_address: string): Promise<Big> {
|
2017-07-14 01:02:39 +04:00
|
|
|
throw new Error('Implement me');
|
2017-07-03 22:21:19 -05:00
|
|
|
}
|
2017-08-07 23:45:08 -04:00
|
|
|
|
2017-08-23 02:57:18 -04:00
|
|
|
async getTokenBalance(_address: string, _token: Token): Promise<Big> {
|
|
|
|
throw new Error('Implement me');
|
|
|
|
}
|
|
|
|
|
2017-08-07 23:45:08 -04: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 17:54:10 -04:00
|
|
|
|
2017-08-23 02:57:18 -04:00
|
|
|
async getTransactionCount(_address: string): Promise<string> {
|
2017-08-11 17:54:10 -04:00
|
|
|
throw new Error('Implement me');
|
|
|
|
}
|
2017-07-04 05:25:01 +04:00
|
|
|
}
|