-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
45 lines (44 loc) · 1.29 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
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-chai-matchers");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("solidity-coverage");
require("dotenv").config();
require("./tasks/hardhat-tasks");
/** @type import('hardhat/config').HardhatUserConfig */
const developmentChains = ["hardhat", "localhost"];
module.exports = {
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
defaultNetwork: "goerli",
networks: {
hardhat: {
chainId: 1337,
},
localhost: {
url: "http://127.0.0.1:8545/",
accounts: [process.env.PRIVATE_KEY],
},
rinkeby: {
url: "https://rinkeby.infura.io/v3/40c2813049e44ec79cb4d7e0d18de173",
accounts: [process.env.PRIVATE_KEY],
},
goerli: {
url: "https://eth-goerli.g.alchemy.com/v2/cSdN5NKZvLG6YDW9cXYHf_oKbeUywY7_",
accounts: [process.env.PRIVATE_KEY],
},
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: "CHIRAADNUI814XIT9ST36R63UFNBNDKBDY",
},
developmentChains,
};