Files
2025-12-27 21:42:21 -08:00

33 lines
929 B
TypeScript

// Plugins
import "@nomicfoundation/hardhat-toolbox";
import "@luxfhe/hardhat-plugin";
import "@luxfhe/hardhat-docker";
import "hardhat-deploy";
import { HardhatUserConfig } from "hardhat/config";
import { config as dotenvConfig } from "dotenv";
import { resolve } from "path";
const dotenvConfigPath: string = process.env.DOTENV_CONFIG_PATH || "./.env";
dotenvConfig({ path: resolve(__dirname, dotenvConfigPath) });
// Tasks
import "./tasks";
// Ensure that we have all the environment variables we need.
const mnemonic: string | undefined = process.env.MNEMONIC;
const config: HardhatUserConfig = {
solidity: "0.8.31",
// Optional: defaultNetwork is already being set to "localluxfhe" by @luxfhe/hardhat-plugin
defaultNetwork: "localluxfhe",
networks: {
luxfheTestnet: {
accounts: { mnemonic },
chainId: 42069,
url: "http://api.testnet.luxfhe.zone:7747",
},
}
};
export default config;