Daniel Ternyak a50dc2ebb0
Adjust Wallet Interface (#1154)
* Adjust Base Wallet Interface to not return promises' for getAdderssString; adjust callers to not await

* remove async for saveWalletConfig
2018-02-21 12:23:04 -06:00

20 lines
408 B
TypeScript

export class DeterministicWallet {
protected address: string;
protected dPath: string;
protected index: number;
constructor(address: string, dPath: string, index: number) {
this.address = address;
this.dPath = dPath;
this.index = index;
}
public getAddressString(): string {
return this.address;
}
public getPath(): string {
return `${this.dPath}/${this.index}`;
}
}