UNPKG

chaingate

Version:

A complete TypeScript library for connecting to and making transactions on different blockchains

16 lines (15 loc) 1.16 kB
import { Seed } from '../../entities/Secret/implementations/Seed'; import { SerializedWallet } from '../../Wallet'; import { SeedableWallet, SerializedSeedableWallet } from '../../abstract/SeedableWallet'; import { Encrypted } from '../../entities/WalletEncryption/Encrypted'; import { Phrase } from '../../entities/Secret/implementations/Phrase'; import { Encrypt } from '../../entities/WalletEncryption/WalletEncryption'; import { ChainGateContext } from '../../../Currencies/CurrencyUtils/ChainGateContext'; export declare class PhraseWallet extends SeedableWallet { constructor(context: ChainGateContext, secret: Phrase | Encrypted, askForPassword?: (attempts: number, reject: () => void) => Promise<string>); protected serializeInternal(): Promise<SerializedWallet>; getPhrase(): Promise<Phrase>; getSeed(): Promise<Seed>; static new(context: ChainGateContext, phrase: string, warnAboutUnencrypted: boolean, encrypt?: Encrypt): Promise<PhraseWallet>; static import(context: ChainGateContext, serialized: SerializedSeedableWallet, askForPassword: (attempts: number, reject: () => void) => Promise<string>): Promise<PhraseWallet>; }