import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import * as dotenv from "dotenv";

dotenv.config({ path: "../../apps/web/.env" }); // Load from root workspace web/.env

const config: HardhatUserConfig = {
  solidity: "0.8.20",
  networks: {
    base: {
      url: "https://mainnet.base.org",
      accounts: process.env.PLATFORM_TREASURY_PRIVATE_KEY ? [process.env.PLATFORM_TREASURY_PRIVATE_KEY] : []
    }
  }
};

export default config;
