MyCrypto/common/libs/wallet/deterministic.js
William O'Beirne 1d235cf67a Trezor Unlock + Deterministic Wallet Groundwork (#137)
* 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.
2017-08-28 12:43:57 -05:00

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;
}
}