mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-21 15:28:32 +00:00
* Basic reducer / action / saga setup, rendering wallets. * Better address rows, with values. * Styling + back and next buttons. * Formatting, dpath changing. * Derived -> Deterministic * Set wallet on confirm. * Flesh out Trezor wallet, add transaction signing. * Custom dpath, better handling of canceled switches and over-rendering / prop calling. * Token empty string value. * Move DPaths to config file. * Clarifying comments.
22 lines
392 B
JavaScript
22 lines
392 B
JavaScript
// @flow
|
|
import BaseWallet from './base';
|
|
|
|
export default class DeterministicWallet extends BaseWallet {
|
|
address: string;
|
|
dPath: string;
|
|
|
|
constructor(address: string, dPath: string) {
|
|
super();
|
|
this.address = address;
|
|
this.dPath = dPath;
|
|
}
|
|
|
|
getAddress(): Promise<string> {
|
|
return Promise.resolve(this.address);
|
|
}
|
|
|
|
getPath(): string {
|
|
return this.dPath;
|
|
}
|
|
}
|