27 lines
724 B
JavaScript
Raw Normal View History

2017-07-04 05:25:01 +04:00
// @flow
import Big from 'bignumber.js';
import type { TransactionWithoutGas } from 'libs/transaction';
import type { Token } from 'config/data';
2017-07-04 05:25:01 +04:00
export default class BaseNode {
async getBalance(_address: string): Promise<Big> {
throw new Error('Implement me');
2017-07-03 22:21:19 -05:00
}
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');
}
2017-07-04 05:25:01 +04:00
}