UNPKG

hardhat-secure-accounts

Version:
16 lines 719 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SecureAccountsProvider = void 0; const accounts_1 = require("hardhat/internal/core/providers/accounts"); const account_1 = require("./account"); class SecureAccountsProvider extends accounts_1.HDWalletProvider { constructor(provider, mnemonic) { super(provider, mnemonic); } static async create(provider, accountsDir, accountName, accountPassword) { const phrase = await (0, account_1.unlockAccount)(accountsDir, accountName, accountPassword); return new SecureAccountsProvider(provider, phrase); } } exports.SecureAccountsProvider = SecureAccountsProvider; //# sourceMappingURL=provider.js.map