-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
49 lines (46 loc) · 1.3 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
39
40
41
42
43
44
45
46
47
48
49
import * as dotenv from "dotenv";
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox-viem";
dotenv.config();
const config: HardhatUserConfig = {
solidity: "0.8.20",
gasReporter: {
enabled: true,
currency: "USD",
},
networks: {
hardhat: {
accounts: {
mnemonic:
process.env.TEST_MNEMONIC ??
"test test test test test test test test test test test junk",
},
},
base: {
url: process.env.BASE_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
goerli: {
url: process.env.GOERLI_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
"goerli-optimism": {
url: process.env.OPTIMISM_GOERLI_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
// apiKey: process.env.ETHERSCAN_API_KEY ?? "",
apiKey: {
base: process.env.BASESCAN_API_KEY ?? "",
// optimisticEthereum: process.env.ETHERSCAN_API_KEY ?? "",
// optimisticGoerli: process.env.ETHERSCAN_API_KEY ?? "",
},
},
};
export default config;