MyCrypto/common/libs/nodes/base.js

31 lines
744 B
JavaScript
Raw Normal View History

2017-07-04 01:25:01 +00:00
// @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';
2017-07-04 01:25:01 +00:00
export default class BaseNode {
async getBalance(_address: string): Promise<Big> {
throw new Error('Implement me');
2017-07-04 03:21:19 +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');
}
async generateTransaction(
_tx: Transaction,
_wallet: BaseWallet
): Promise<BroadcastTransaction> {
throw new Error('Implement me');
}
2017-07-04 01:25:01 +00:00
}