22 lines
508 B
JavaScript
Raw Normal View History

2017-06-30 03:03:11 +04:00
// @flow
import { stripHex } from 'libs/values';
import type { RawTransaction } from 'libs/transaction';
2017-06-30 03:03:11 +04:00
export default class BaseWallet {
getAddress(): Promise<string> {
return Promise.reject('Implement me');
2017-07-03 22:21:19 -05:00
}
getNakedAddress(): Promise<string> {
return new Promise(resolve => {
this.getAddress().then(address => {
resolve(stripHex(address));
});
});
}
signRawTransaction(_tx: RawTransaction): Promise<string> {
return Promise.reject('Implement me');
}
2017-06-30 03:03:11 +04:00
}