-
Notifications
You must be signed in to change notification settings - Fork 9
/
hardhat.config.js
45 lines (41 loc) · 890 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
41
42
43
44
45
/**
* @type import('hardhat/config').HardhatUserConfig
*/
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require('dotenv').config()
const {
ALCHEMY_MAINNET_API_URL,
ALCHEMY_MUMBAI_API_URL,
ALCHEMY_POLYGON_API_URL,
ETHERSCAN_API_KEY,
PRIVATE_KEY_ETHEREUM,
PRIVATE_KEY_POLYGON
} = process.env;
module.exports = {
solidity: "0.8.11",
networks: {
mainnet: {
url: `${ALCHEMY_MAINNET_API_URL}`,
accounts: [`${PRIVATE_KEY_ETHEREUM}`]
},
mumbai: {
url: `${ALCHEMY_MUMBAI_API_URL}`,
accounts: [`${PRIVATE_KEY_POLYGON}`]
},
polygon: {
url: `${ALCHEMY_POLYGON_API_URL}`,
accounts: [`${PRIVATE_KEY_POLYGON}`]
},
localhost: {
url: "http://127.0.0.1:8545"
},
hardhat: {
// See its defaults
}
},
etherscan:
{
apiKey: `${ETHERSCAN_API_KEY}`
}
}