mirror of
https://github.com/luxfhe/example-secret-santa.git
synced 2026-10-30 18:13:17 +00:00
55 lines
1.2 KiB
TypeScript
55 lines
1.2 KiB
TypeScript
import { HardhatUserConfig } from "hardhat/config";
|
|
import "hardhat-deploy";
|
|
import * as dotenv from "dotenv";
|
|
|
|
// Optional: only import fhe plugin if available
|
|
try {
|
|
require("@luxfhe/hardhat-plugin");
|
|
} catch {
|
|
console.log("@luxfhe/hardhat-plugin not available, skipping...");
|
|
}
|
|
|
|
dotenv.config();
|
|
|
|
const config: HardhatUserConfig = {
|
|
solidity: {
|
|
version: "0.8.25",
|
|
settings: {
|
|
evmVersion: "cancun", // Required for FHE operations
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 200,
|
|
},
|
|
},
|
|
},
|
|
networks: {
|
|
hardhat: {
|
|
chainId: 31337,
|
|
},
|
|
"base-sepolia": {
|
|
url: process.env.BASE_SEPOLIA_RPC_URL || "https://sepolia.base.org",
|
|
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
|
|
chainId: 84532,
|
|
},
|
|
"arb-sepolia": {
|
|
url: process.env.ARB_SEPOLIA_RPC_URL || "https://sepolia-rollup.arbitrum.io/rpc",
|
|
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
|
|
chainId: 421614,
|
|
},
|
|
},
|
|
namedAccounts: {
|
|
deployer: {
|
|
default: 0,
|
|
},
|
|
},
|
|
paths: {
|
|
sources: "./contracts",
|
|
tests: "./test",
|
|
cache: "./cache",
|
|
artifacts: "./artifacts",
|
|
deploy: "./deploy",
|
|
},
|
|
};
|
|
|
|
export default config;
|