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

* Fix definition module for thirdparty wallets
This commit is contained in:
HenryNguyen5 2017-10-27 16:30:06 -04:00 committed by Daniel Ternyak
parent 05725b660b
commit 3434ab4ef9

View File

@ -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';
@ -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;
}