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