@nomicfoundation/hardhat-keystore
Version:
A module for managing keystore files that store a map from IDs to encrypted string values.
20 lines • 773 B
JavaScript
import debug from "debug";
import { getKeystoreFilePath } from "../utils/get-keystore-file-path.js";
const log = debug("hardhat:keystore:hooks:config");
export default async () => {
const handlers = {
resolveUserConfig: async (userConfig, resolveConfigurationVariable, next) => {
const resolvedConfig = await next(userConfig, resolveConfigurationVariable);
const defaultKeystoreFilePath = await getKeystoreFilePath();
log(`path to keystore file: ${defaultKeystoreFilePath}`);
return {
...resolvedConfig,
keystore: {
filePath: defaultKeystoreFilePath,
},
};
},
};
return handlers;
};
//# sourceMappingURL=config.js.map