mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 07:45:18 +00:00
34 lines
747 B
TypeScript
34 lines
747 B
TypeScript
import "hardhat-abi-exporter";
|
|
import { HardhatUserConfig } from "hardhat/types";
|
|
|
|
const config: HardhatUserConfig = {
|
|
paths: {
|
|
artifacts: "build/artifacts",
|
|
cache: "build/cache",
|
|
sources: "contracts",
|
|
},
|
|
solidity: {
|
|
compilers: [
|
|
{
|
|
version: "0.8.20",
|
|
settings: {
|
|
evmVersion: "istanbul",
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 200,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
abiExporter: {
|
|
path: "./abis",
|
|
runOnCompile: true,
|
|
clear: true,
|
|
flat: true,
|
|
format: "json",
|
|
},
|
|
};
|
|
|
|
export default config;
|