2018-04-06 23:32:25 +02:00
|
|
|
import { IFullWallet } from '../IWallet';
|
|
|
|
|
2018-04-09 19:13:27 +02:00
|
|
|
export const wikiLink = 'https://wiki.parity.io/Parity-Signer-Mobile-App-MyCrypto-tutorial';
|
2018-04-06 23:32:25 +02:00
|
|
|
|
|
|
|
export default class ParitySignerWallet implements IFullWallet {
|
|
|
|
public address: string;
|
|
|
|
|
|
|
|
constructor(address: string) {
|
|
|
|
this.address = address;
|
|
|
|
}
|
|
|
|
|
|
|
|
public signRawTransaction = () =>
|
|
|
|
Promise.reject(new Error('Web3 wallets cannot sign raw transactions.'));
|
|
|
|
|
|
|
|
public signMessage = () =>
|
|
|
|
Promise.reject(new Error('Signing via Parity Signer not yet supported.'));
|
|
|
|
|
|
|
|
public getAddressString() {
|
|
|
|
return this.address;
|
|
|
|
}
|
|
|
|
}
|