-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
40 lines (39 loc) · 948 Bytes
/
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
require('hardhat-deploy')
require("dotenv").config()
require("@nomiclabs/hardhat-waffle")
require("@nomicfoundation/hardhat-chai-matchers")
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
networks: {
localhost: {
chainId: 31337,
// forking: {
// url: process.env.ALCHEMY_MAINNET_RPC_URL
// }
},
goerli: {
url: process.env.GOERLI_RPC_URL,
accounts: [process.env.PRIVATE_KEY],
saveDeployments: true,
chainId: 5,
verify: {
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
apiUrl: 'https://api-goerli.etherscan.io/'
},
},
},
mainnet: {
url: process.env.MAINNET_RPC_URL,
accounts: [process.env.PRIVATE_KEY],
saveDeployments: true,
chainId: 1,
}
},
namedAccounts: {
deployer: {
default: 0
}
},
solidity: "0.8.5",
};