ethers.js/lib.esm/wallet/json-crowdsale.d.ts

27 lines
929 B
TypeScript
Raw Normal View History

2022-11-30 23:44:23 +03:00
/**
* @_subsection: api/wallet:JSON Wallets [json-wallets]
*/
/**
* The data stored within a JSON Crowdsale wallet is fairly
* minimal.
*/
2023-02-02 12:05:47 +03:00
export type CrowdsaleAccount = {
2022-09-05 23:57:11 +03:00
privateKey: string;
address: string;
2022-11-30 23:44:23 +03:00
};
/**
* Returns true if %%json%% is a valid JSON Crowdsale wallet.
*/
2022-09-05 23:57:11 +03:00
export declare function isCrowdsaleJson(json: string): boolean;
2022-11-30 23:44:23 +03:00
/**
* Before Ethereum launched, it was necessary to create a wallet
* format for backers to use, which would be used to receive ether
* as a reward for contributing to the project.
*
* The [[link-crowdsale]] format is now obsolete, but it is still
* useful to support and the additional code is fairly trivial as
* all the primitives required are used through core portions of
* the library.
*/
2022-09-05 23:57:11 +03:00
export declare function decryptCrowdsaleJson(json: string, _password: string | Uint8Array): CrowdsaleAccount;
//# sourceMappingURL=json-crowdsale.d.ts.map