-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.js
82 lines (69 loc) · 1.64 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
71
72
73
74
75
76
77
78
79
80
81
82
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config({ path: ".env" });
const defaultNetwork = "localhost";
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.17",
settings: {
metadata: {
// Not including the metadata hash
// https://github.com/paulrberg/solidity-template/issues/31
bytecodeHash: "none"
},
optimizer: {
enabled: true,
runs: 200
},
viaIR: true
}
},
defaultNetwork,
networks: {
localhost: {
chainId: 31337
},
/////////
// L1 NETWORKS
/////////
// mainnet: {
// chainId: 1,
// url: `{process.env.QUICKNODE_API_KEY_MAINNET}`,
// accounts: [`${process.env.PRIVATE_KEY}`],
// },
// L1 TEST NETWORKS
goerli: {
chainId: 5,
url: `${process.env.QUICKNODE_API_KEY_GOERLI}`,
accounts: [`${process.env.PRIVATE_KEY}`]
}
/////////
// L2 NETWORKS
/////////
// polygon: {
// chainId: 137,
// url: `{process.env.QUICKNODE_API_KEY_GOERLI_POLYGON}`,
// accounts: [`${process.env.PRIVATE_KEY}`],
// },
// L2 TEST NETWORKS
// mumbai: {
// chainId: 80001,
// url: `${process.env.QUICKNODE_API_KEY_MUMBAI}`,
// accounts: [`${process.env.PRIVATE_KEY}`],
// },
},
namedAccounts: {
deployer: {
default: 0 // here this will by default take the first account as deployer
},
tokenOwner: 1,
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
}
},
etherscan: {
apiKey: {
goerli: process.env.ETHERSCAN_API_KEY
}
}
};