2023-08-13 13:15:58 +00:00
|
|
|
import { HardhatUserConfig } from "hardhat/config";
|
|
|
|
import "@nomicfoundation/hardhat-toolbox";
|
2023-08-13 23:52:11 +00:00
|
|
|
import "hardhat-contract-sizer";
|
2023-08-20 03:19:59 +00:00
|
|
|
import dotenv from "dotenv";
|
|
|
|
dotenv.config({ path: `.env.${process.env.NODE_ENV || "local"}` });
|
2023-08-13 13:15:58 +00:00
|
|
|
|
|
|
|
const config: HardhatUserConfig = {
|
2023-08-13 23:52:11 +00:00
|
|
|
solidity: {
|
2023-08-20 02:47:55 +00:00
|
|
|
version: "0.8.19", // don"t make this higher
|
2023-08-13 23:52:11 +00:00
|
|
|
settings: {
|
|
|
|
optimizer: {
|
|
|
|
enabled: true,
|
|
|
|
runs: 200
|
|
|
|
}
|
|
|
|
}
|
2023-08-20 02:47:55 +00:00
|
|
|
},
|
|
|
|
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",
|
2023-08-13 13:15:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|