-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
70 lines (69 loc) · 2.02 KB
/
hardhat.config.js
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/** @type import('hardhat/config').HardhatUserConfig */
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
module.exports = {
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 1337,
},
evmVersion: "paris",
viaIR: true,
},
},
networks: {
hardhat: {},
mainnet: {
url: process.env.ETHEREUM_PROVIDER || "http://127.0.0.1:8555",
accounts: [process.env.ETHEREUM_PRIVATE_KEY],
},
goerli: {
url: process.env.GOERLI_PROVIDER || "http://127.0.0.1:8555",
accounts: [process.env.GOERLI_PRIVATE_KEY],
},
"base-goerli": {
url: "https://goerli.base.org",
accounts: [process.env.GOERLI_PRIVATE_KEY],
gasPrice: 1000000000,
},
"base-mainnet": {
url: "https://mainnet.base.org",
accounts: [process.env.ETHEREUM_PRIVATE_KEY],
gasPrice: 1000000000,
},
},
etherscan: {
apiKey: {
goerli: process.env.ETHERSCAN_APIKEY,
mainnet: process.env.ETHERSCAN_APIKEY,
"base-goerli": process.env.BASESCAN_APIKEY,
"base-mainnet": process.env.BASESCAN_APIKEY,
},
customChains: [
{
network: "base-goerli",
chainId: 84531,
urls: {
apiURL: "https://api-goerli.basescan.org/api",
browserURL: "https://goerli.basescan.org",
},
},
{
network: "base-mainnet",
chainId: 8453,
urls: {
apiURL: "https://api.basescan.org/api",
browserURL: "https://basescan.org",
},
},
],
},
gasReporter: {
enabled: true,
currency: "USD",
gasPrice: 21,
url: "http://localhost:8545",
},
};