ethers.js/packages/json-wallets/lib.esm/crowdsale.d.ts

18 lines
735 B
TypeScript
Raw Normal View History

2019-05-15 01:48:48 +03:00
import { ExternallyOwnedAccount } from "@ethersproject/abstract-signer";
import { Bytes } from "@ethersproject/bytes";
import { Description } from "@ethersproject/properties";
2020-04-25 10:54:54 +03:00
export interface _CrowdsaleAccount {
2020-01-08 03:58:04 +03:00
address: string;
privateKey: string;
_isCrowdsaleAccount: boolean;
}
export declare class CrowdsaleAccount extends Description<_CrowdsaleAccount> implements ExternallyOwnedAccount {
2019-05-15 01:48:48 +03:00
readonly address: string;
readonly privateKey: string;
readonly mnemonic?: string;
readonly path?: string;
2019-06-12 00:57:04 +03:00
readonly _isCrowdsaleAccount: boolean;
isCrowdsaleAccount(value: any): value is CrowdsaleAccount;
2019-05-15 01:48:48 +03:00
}
export declare function decrypt(json: string, password: Bytes | string): ExternallyOwnedAccount;