@nomicfoundation/hardhat-keystore
Version:
A module for managing keystore files that store a map from IDs to encrypted string values.
12 lines • 518 B
JavaScript
import { FileManagerImpl } from "../loaders/file-manager.js";
import { KeystoreFileLoader } from "../loaders/keystore-file-loader.js";
/**
* Factory for setting up the keyloader based on the
* keystore file path from the hre config.
*/
export function setupKeystoreLoaderFrom({ config, }) {
const keystoreFilePath = config.keystore.filePath;
const fileManager = new FileManagerImpl();
return new KeystoreFileLoader(keystoreFilePath, fileManager);
}
//# sourceMappingURL=setup-keystore-loader-from.js.map