mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 19:16:10 +00:00
Move thirdparty wallet definitions in ethereumjs-wallet out of root into /thirdparty (#325)
* Fix definition module for thirdparty wallets
This commit is contained in:
parent
05725b660b
commit
3434ab4ef9
70
common/typescript/ethereumjs-wallet.d.ts
vendored
70
common/typescript/ethereumjs-wallet.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user