mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-03-02 19:50:38 +00:00
* add static vendor js libraries * add ledger config * add ledger components * add ledger wallet * bugfix: trezor, set dPath on change * add rlp type package, update types * change address to public * update tslint script to exclude all files in directory * revert to private address and use getAddress() * remove unnecessary eslint line out of library files * remove IWallet import * Fix ts errors * Remove version controlled vendor files from DLL
20 lines
430 B
TypeScript
20 lines
430 B
TypeScript
export default class DeterministicWallet {
|
|
private address: string;
|
|
private dPath: string;
|
|
private index: number;
|
|
|
|
constructor(address: string, dPath: string, index: number) {
|
|
this.address = address;
|
|
this.dPath = dPath;
|
|
this.index = index;
|
|
}
|
|
|
|
public getAddress(): Promise<string> {
|
|
return Promise.resolve(this.address);
|
|
}
|
|
|
|
public getPath(): string {
|
|
return `${this.dPath}/${this.index}`;
|
|
}
|
|
}
|