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

18 lines
735 B
TypeScript
Raw Permalink Normal View History

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