mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-18 23:22:07 +00:00
22 lines
582 B
TypeScript
22 lines
582 B
TypeScript
|
import { IFullWallet } from '../IWallet';
|
||
|
|
||
|
export const wikiLink = 'https://wiki.parity.io/Parity-Signer-Mobile-App-MyCrypto-tutorial.md';
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
}
|