import { HardhatUserConfig } from "hardhat/config"; import "hardhat-typechain"; const config: HardhatUserConfig = { solidity: { compilers: [ { version: "0.8.10", settings: { optimizer: { enabled: true } } }, ], }, typechain: { outDir: "typechain", target: "ethers-v5", }, }; export default config;