cyberia/research/events/ethereum/hardhat.config.ts

import type { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-tracer";
import "@nomicfoundation/hardhat-ethers";
import "@typechain/hardhat";
import "@nomicfoundation/hardhat-chai-matchers";

const config: HardhatUserConfig = {
  solidity: {
    version: "0.8.28",
    settings: {
      optimizer: {
        enabled: true,
        runs: 200,
      },
      viaIR: true,
    },
  },
  networks: {
    hardhat: {
      loggingEnabled: false,
      initialDate: process.env.HARDHAT_INITIAL_DATE || undefined,
    },
    localhost: {
      url: "http://127.0.0.1:8545",
      timeout: 60000,
    },
    // Dedicated port for backend indexer snapshot tests (avoid conflicts with Ganache).
    indexerTest: {
      url: "http://127.0.0.1:18545",
      timeout: 60000,
    },
    cvlandTest: {
      url: "https://cvland-tickets.aishift.co/ganache",
    },
    cvlandDev: {
      url: `http://127.0.0.1:${process.env.GANACHE_PORT || 8545}`,
    },
    cyberia: {
      url: "https://cyberia.my/ganache",
    },
  },
};

export default config;

Graph