mirror of
https://github.com/luxfhe/example-playground.git
synced 2026-10-30 18:13:21 +00:00
33 lines
929 B
TypeScript
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;
|