-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
56 lines (54 loc) · 1.45 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
require('@typechain/hardhat');
require("@nomiclabs/hardhat-waffle");
require('@openzeppelin/hardhat-upgrades');
require("@nomiclabs/hardhat-etherscan");
const env = require('./.env.json');
PRIV_1 = env.PRIVATE_KEY_1;
PRIV_2 = env.PRIVATE_KEY_2;
PRIV_3 = env.PRIVATE_KEY_3;
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
compilers: [
{
version: '0.8.12',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
{
version: "0.4.11",
settings: {
optimizer: {
enabled: true,
runs: 200
}
},
},
{
version: "0.7.6",
settings: {
optimizer: {
enabled: false,
runs: 200
}
},
},
]
},
networks: {
mainnet: {
url: `https://mainnet.infura.io/v3/${env.INFURA}`,
accounts: [`0x${PRIV_1}`, `0x${PRIV_2}`, `0x${PRIV_3}`]
},
mumbai: {
url: `https://polygon-mumbai.g.alchemy.com/v2/${env.ALCHEMY}`,
accounts: [`0x${PRIV_1}`, `0x${PRIV_2}`, `0x${PRIV_3}`]
}
}
};