launchpad: Make Secp256k1HdWallet constructor protected
This commit is contained in:
parent
2c89e4bacd
commit
e22f71ba55
@ -223,7 +223,7 @@ export class Secp256k1HdWallet implements OfflineSigner {
|
||||
private readonly pubkey: Uint8Array;
|
||||
private readonly privkey: Uint8Array;
|
||||
|
||||
private constructor(
|
||||
protected constructor(
|
||||
mnemonic: EnglishMnemonic,
|
||||
hdPath: HdPath,
|
||||
privkey: Uint8Array,
|
||||
|
||||
10
packages/launchpad/types/secp256k1hdwallet.d.ts
vendored
10
packages/launchpad/types/secp256k1hdwallet.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { HdPath } from "@cosmjs/crypto";
|
||||
import { EnglishMnemonic, HdPath } from "@cosmjs/crypto";
|
||||
import { StdSignDoc } from "./encoding";
|
||||
import { AccountData, AminoSignResponse, OfflineSigner } from "./signer";
|
||||
import { EncryptionConfiguration, KdfConfiguration } from "./wallet";
|
||||
@ -66,7 +66,13 @@ export declare class Secp256k1HdWallet implements OfflineSigner {
|
||||
/** Derived data */
|
||||
private readonly pubkey;
|
||||
private readonly privkey;
|
||||
private constructor();
|
||||
protected constructor(
|
||||
mnemonic: EnglishMnemonic,
|
||||
hdPath: HdPath,
|
||||
privkey: Uint8Array,
|
||||
pubkey: Uint8Array,
|
||||
prefix: string,
|
||||
);
|
||||
get mnemonic(): string;
|
||||
private get address();
|
||||
getAccounts(): Promise<readonly AccountData[]>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user