mirror of
https://github.com/selfxyz/self.git
synced 2026-04-27 03:01:15 -04:00
51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
import { HardhatUserConfig } from "hardhat/config";
|
|
import "@nomicfoundation/hardhat-toolbox";
|
|
require("dotenv").config();
|
|
import "hardhat-contract-sizer";
|
|
|
|
const config: HardhatUserConfig = {
|
|
solidity: {
|
|
version: "0.8.18",
|
|
settings: {
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 200,
|
|
details: {
|
|
yul: true
|
|
}
|
|
},
|
|
|
|
metadata: {
|
|
bytecodeHash: "none"
|
|
},
|
|
viaIR: false,
|
|
},
|
|
},
|
|
paths: {
|
|
sources: "./contracts",
|
|
tests: "./test",
|
|
cache: "./cache",
|
|
artifacts: "./artifacts"
|
|
},
|
|
defaultNetwork: "hardhat",
|
|
networks: {
|
|
goerli: {
|
|
url: "https://eth-goerli.public.blastapi.io",
|
|
accounts: [process.env.PKEY as string],
|
|
},
|
|
polygon: {
|
|
url: "https://polygon.llamarpc.com",
|
|
accounts: [process.env.PKEY as string],
|
|
},
|
|
mumbai: {
|
|
url: "https://polygon-mumbai-bor.publicnode.com",
|
|
accounts: [process.env.PKEY as string],
|
|
},
|
|
sepolia: {
|
|
url: "https://eth-sepolia.public.blastapi.io",
|
|
accounts: [process.env.PKEY as string],
|
|
}
|
|
},
|
|
};
|
|
|
|
export default config; |