-
Notifications
You must be signed in to change notification settings - Fork 11
/
hardhat.config.ts
38 lines (36 loc) · 1.27 KB
/
hardhat.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import "dotenv/config";
import "hardhat-deploy";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-ethers";
import { env } from "process";
import { setup } from "@tenderly/hardhat-tenderly";
import type { HardhatUserConfig } from "hardhat/types";
setup({ automaticVerifications: true });
export default {
solidity: { version: "0.8.17", settings: { optimizer: { enabled: true, runs: 6_666_666 } } },
networks: {
mainnet: {
url: env.MAINNET_NODE ?? "https://mainnet.infura.io/",
...(env.MNEMONIC && { accounts: { mnemonic: env.MNEMONIC } }),
},
optimism: {
url: env.OPTIMISM_NODE ?? "https://optimism.infura.io/",
...(env.MNEMONIC && { accounts: { mnemonic: env.MNEMONIC } }),
},
goerli: {
url: env.GOERLI_NODE ?? "https://goerli.infura.io/",
...(env.MNEMONIC && { accounts: { mnemonic: env.MNEMONIC } }),
},
},
typechain: { outDir: "types" },
namedAccounts: {
deployer: { default: 0 },
owner: {
default: 0,
mainnet: "0x382d89aa156C473Fdb1c9565dF309e80e8fA4437",
optimism: "0x59C41d3629F81ef8Ce554B4eB3446a2b6A129260",
goerli: "0x1801f5EAeAbA3fD02cBF4b7ED1A7b58AD84C0705",
},
},
tenderly: { project: "exactly", username: "exactly", privateVerification: true },
} as HardhatUserConfig;