10grans-ng/hardhat.config.ts

38 lines
932 B
TypeScript

import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-contract-sizer";
import dotenv from "dotenv";
dotenv.config({ path: `.env.${process.env.NODE_ENV || "local"}` });
const config: HardhatUserConfig = {
solidity: {
version: "0.8.19", // don"t make this higher
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
networks: {
"base-mainnet": {
url: "https://mainnet.base.org",
accounts: [process.env.WALLET_KEY as string],
gasPrice: 1000000000,
},
"base-goerli": {
url: "https://goerli.base.org",
accounts: [process.env.WALLET_KEY as string],
gasPrice: 1000000000,
},
"base-local": {
url: "http://localhost:8545",
accounts: [process.env.WALLET_KEY as string],
gasPrice: 1000000000,
},
},
defaultNetwork: "hardhat",
};
export default config;