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",
|
2023-08-20 14:27:29 +00:00
|
|
|
accounts: {
|
|
|
|
mnemonic: process.env.MNEMONIC as string
|
|
|
|
},
|
2023-08-20 02:47:55 +00:00
|
|
|
gasPrice: 1000000000,
|
|
|
|
},
|
|
|
|
"base-goerli": {
|
|
|
|
url: "https://goerli.base.org",
|
2023-08-20 14:27:29 +00:00
|
|
|
accounts: {
|
|
|
|
mnemonic: process.env.MNEMONIC as string
|
|
|
|
},
|
2023-08-20 02:47:55 +00:00
|
|
|
gasPrice: 1000000000,
|
|
|
|
},
|
|
|
|
"base-local": {
|
|
|
|
url: "http://localhost:8545",
|
2023-08-20 14:27:29 +00:00
|
|
|
accounts: {
|
|
|
|
mnemonic: process.env.MNEMONIC as string
|
|
|
|
},
|
2023-08-20 02:47:55 +00:00
|
|
|
gasPrice: 1000000000,
|
|
|
|
},
|
2023-08-20 14:57:57 +00:00
|
|
|
"eth-goerli": {
|
|
|
|
url: `https://goerli.infura.io/v3/${process.env.INFURA_KEY}`,
|
|
|
|
accounts: {
|
|
|
|
mnemonic: process.env.MNEMONIC as string
|
|
|
|
},
|
|
|
|
gasPrice: 1000000000,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
defaultNetwork: "base-local",
|
|
|
|
etherscan: {
|
|
|
|
apiKey: {
|
|
|
|
"base-goerli": "PLACEHOLDER_STRING"
|
|
|
|
},
|
|
|
|
customChains: [
|
|
|
|
{
|
|
|
|
network: "base-goerli",
|
|
|
|
chainId: 84531,
|
|
|
|
urls: {
|
|
|
|
apiURL: "https://api-goerli.basescan.org/api",
|
|
|
|
browserURL: "https://goerli.basescan.org"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2023-08-20 02:47:55 +00:00
|
|
|
},
|
2023-08-13 13:15:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|