Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move thirdparty wallet definitions in ethereumjs-wallet out of root into /thirdparty #325

Merged
merged 14 commits into from
Oct 27, 2017
70 changes: 39 additions & 31 deletions common/typescript/ethereumjs-wallet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,45 @@ declare module 'ethereumjs-wallet/provider-engine' {
}
}

declare module 'ethereumjs-wallet/thirdparty' {
import {
IPublicKeyOnlyWallet,
IFullWallet,
IEtherWalletLocked,
IEtherWalletUnlocked
} from 'ethereumjs-wallet';
/**
* @description import a brain wallet used by Ether.Camp
* @param input
* @param password
*/
function fromEtherCamp(passphrase: string): IFullWallet;

/**
* @description import a wallet generated by EtherWallet
* @param input
* @param password
*/
function fromEtherWallet(
input: IEtherWalletLocked | IEtherWalletUnlocked | string,
password: string
): IFullWallet;

/**
* @description import a wallet from a KryptoKit seed
* @param entropy
* @param seed
*/
function fromKryptoKit(entropy: string, seed: string): IFullWallet;

/**
* @description import a brain wallet used by Quorum Wallet
* @param passphrase
* @param userid
*/
function fromQuorumWallet(passphrase: string, userid: string): IFullWallet;
}

declare module 'ethereumjs-wallet/hdkey' {
import { Buffer } from 'buffer';
import { IPublicKeyOnlyWallet, IFullWallet } from 'ethereumjs-wallet';
Expand Down Expand Up @@ -293,35 +332,4 @@ declare module 'ethereumjs-wallet' {
input: IPresaleWallet | string,
password: string
): IFullWallet;

/**
* @description import a brain wallet used by Ether.Camp
* @param input
* @param password
*/
function fromEtherCamp(passphrase: string): IFullWallet;

/**
* @description import a wallet generated by EtherWallet
* @param input
* @param password
*/
function fromEtherWallet(
input: IEtherWalletLocked | IEtherWalletUnlocked | string,
password: string
): IFullWallet;

/**
* @description import a wallet from a KryptoKit seed
* @param entropy
* @param seed
*/
function fromKryptoKit(entropy: string, seed: string): IFullWallet;

/**
* @description import a brain wallet used by Quorum Wallet
* @param passphrase
* @param userid
*/
function fromQuorumWallet(passphrase: string, userid: string): IFullWallet;
}