mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-12 03:54:13 +00:00
a50dc2ebb0
* Adjust Base Wallet Interface to not return promises' for getAdderssString; adjust callers to not await * remove async for saveWalletConfig
20 lines
408 B
TypeScript
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}`;
|
|
}
|
|
}
|