import type { HardhatUserConfig } from "hardhat/config"; import hardhatToolboxMochaEthersPlugin from "@nomicfoundation/hardhat-toolbox-mocha-ethers"; import { configVariable } from "hardhat/config"; const config: HardhatUserConfig = { plugins: [hardhatToolboxMochaEthersPlugin], solidity: { profiles: { default: { version: "0.8.28", }, production: { version: "0.8.28", settings: { optimizer: { enabled: true, runs: 200, }, }, }, }, }, networks: { hardhatMainnet: { type: "edr-simulated", chainType: "l1", }, hardhatOp: { type: "edr-simulated", chainType: "op", }, sepolia: { type: "http", chainType: "l1", url: configVariable("SEPOLIA_RPC_URL"), accounts: [configVariable("SEPOLIA_PRIVATE_KEY")], }, polygon: { type: "http", chainType: "l1", url: configVariable("POLYGON_RPC_URL"), accounts: [configVariable("POLYGON_PRIVATE_KEY")], }, amoy: { type: "http", chainType: "l1", url: configVariable("AMOY_RPC_URL"), accounts: [configVariable("AMOY_PRIVATE_KEY")], }, }, }; export default config;