2018-04-06 21:32:25 +00:00
|
|
|
import { IFullWallet } from '../IWallet';
|
|
|
|
|
2018-04-09 17:13:27 +00:00
|
|
|
export const wikiLink = 'https://wiki.parity.io/Parity-Signer-Mobile-App-MyCrypto-tutorial';
|
2018-04-06 21:32:25 +00:00
|
|
|
|
|
|
|
export default class ParitySignerWallet implements IFullWallet {
|
|
|
|
public address: string;
|
|
|
|
|
|
|
|
constructor(address: string) {
|
|
|
|
this.address = address;
|
|
|
|
}
|
|
|
|
|
|
|
|
public signRawTransaction = () =>
|
2018-04-26 00:36:29 +00:00
|
|
|
Promise.reject(new Error('Parity Signer cannot sign raw transactions.'));
|
2018-04-06 21:32:25 +00:00
|
|
|
|
2018-04-26 00:36:29 +00:00
|
|
|
public signMessage = () => Promise.reject(new Error('Parity Signer cannot sign messages.'));
|
2018-04-06 21:32:25 +00:00
|
|
|
|
|
|
|
public getAddressString() {
|
|
|
|
return this.address;
|
|
|
|
}
|
|
|
|
}
|