forked from compound-finance/compound-protocol
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathhardhat.config.js
95 lines (93 loc) · 2.18 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
83
84
85
86
87
88
89
90
91
92
93
94
95
require("@nomiclabs/hardhat-waffle");
require('@nomiclabs/hardhat-etherscan')
require('hardhat-deploy')
require('dotenv').config()
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
compilers: [
{
version: "0.5.16",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
{
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
]
},
networks:{
hardhat: {},
rinkeby:{
url: `https://eth-rinkeby.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
accounts: [process.env.RINKEBY_PRIVKEY]
},
mainnet:{
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
accounts: [process.env.MAINNET_PRIVKEY]
},
fantom:{
url: "https://rpc.ftm.tools/",
accounts: [process.env.MAINNET_PRIVKEY]
}
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
namedAccounts: {
dai: {
1:"0x6b175474e89094c44da98b954eedeac495271d0f",
4:"0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735"
},
ethFeed:{
1:"0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
4:"0x8A753747A1Fa494EC906cE90E9f37563A8AF630e"
},
yfi: {
1:"0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e"
},
delegateRegistry: {
1:"0x469788fE6E9E9681C6ebF3bF78e7Fd26Fc015446"
},
sushiFeed:{
1:"0xe572CeF69f43c2E488b33924AF04BDacE19079cf"
},
sushiExchangeRate:{
1:"0x851a040fC0Dcbb13a272EBC272F2bC2Ce1e11C4d"
},
gov:{
1:"0x926dF14a23BE491164dCF93f4c468A50ef659D5B",
4:0
},
inv: {
1: "0x41d5d79431a913c4ae7d69a668ecdfe5ff9dfb68",
4:"0xA11f04EFa86C3b32680dC9C2b9D43889E2B8136c"
},
weth:{
1:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
},
invKeep3rFeed:{
1:"0x39b1dF026010b5aEA781f90542EE19E900F2Db15",
},
stethEthFeed: {
1:"0xAb55Bf4DfBf469ebfe082b7872557D1F87692Fe6"
},
deployer:{
default:0
},
}
};