2017-06-30 03:03:11 +04:00
|
|
|
// @flow
|
2017-08-07 23:45:08 -04:00
|
|
|
import { stripHex } from 'libs/values';
|
2017-08-11 17:54:10 -04:00
|
|
|
import type { RawTransaction } from 'libs/transaction';
|
2017-06-30 03:03:11 +04:00
|
|
|
|
|
|
|
export default class BaseWallet {
|
2017-08-11 17:54:10 -04:00
|
|
|
getAddress(): Promise<string> {
|
2017-08-07 23:25:23 -04:00
|
|
|
return Promise.reject('Implement me');
|
2017-07-03 22:21:19 -05:00
|
|
|
}
|
2017-07-14 01:02:39 +04:00
|
|
|
|
2017-08-11 17:54:10 -04:00
|
|
|
getNakedAddress(): Promise<string> {
|
2017-08-07 23:25:23 -04:00
|
|
|
return new Promise(resolve => {
|
2017-08-09 08:01:34 -04:00
|
|
|
this.getAddress().then(address => {
|
2017-08-07 23:45:08 -04:00
|
|
|
resolve(stripHex(address));
|
2017-08-07 23:25:23 -04:00
|
|
|
});
|
|
|
|
});
|
2017-07-14 01:02:39 +04:00
|
|
|
}
|
2017-08-11 17:54:10 -04:00
|
|
|
|
|
|
|
signRawTransaction(_tx: RawTransaction): Promise<string> {
|
|
|
|
return Promise.reject('Implement me');
|
|
|
|
}
|
2017-06-30 03:03:11 +04:00
|
|
|
}
|