-
Notifications
You must be signed in to change notification settings - Fork 171
/
hardhat.config.js
117 lines (111 loc) · 3.55 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
const networks = require('./hardhat.networks')
const RNGBlockhashRopsten = require('@pooltogether/pooltogether-rng-contracts/deployments/ropsten/RNGBlockhash.json')
const RNGBlockhashRinkeby = require('@pooltogether/pooltogether-rng-contracts/deployments/rinkeby/RNGBlockhash.json')
const RNGBlockhashKovan = require('@pooltogether/pooltogether-rng-contracts/deployments/kovan/RNGBlockhash.json')
require("@nomiclabs/hardhat-waffle");
require('hardhat-deploy')
require('hardhat-deploy-ethers')
require('solidity-coverage')
require("@nomiclabs/hardhat-etherscan")
require('hardhat-abi-exporter')
const testnetAdmin = '0xE0F4217390221aF47855E094F6e112D43C8698fE' // Account 1
const testnetUser1 = '0xeedDf4937E3A7aBe03E08963C3c20affbD770b51' // Account 3
const testnetUser2 = '0xcE53382F96FdE0DB592574ed2571B3307dB859Ce' // Account 4
const testnetUser3 = '0x381843c8b4a4a0Da3C0800708c84AA2d792D22b1' // Account 5
const optimizerEnabled = !process.env.OPTIMIZER_DISABLED
const config = {
solidity: {
version: "0.6.12",
settings:{
optimizer: {
enabled: optimizerEnabled,
runs: 200
},
evmVersion: "istanbul"
}
},
networks,
gasReporter: {
currency: 'CHF',
gasPrice: 21,
enabled: (process.env.REPORT_GAS) ? true : false
},
namedAccounts: {
deployer: {
default: 0
},
pool: {
default: "0x0cEC1A9154Ff802e7934Fc916Ed7Ca50bDE6844e"
},
comptroller: {
1: '0x4027dE966127af5F015Ea1cfd6293a3583892668',
77: '0x14e194Cf5E1dd73BB46256495aEa8ff36A7Aa454'
},
reserveRegistry: {
1: '0x3e8b9901dBFE766d3FE44B36c180A1bca2B9A295', // mainnet
4: '0xaDae16a9A1B648Cdc753558Dc19780Ea824a3904', // rinkeby
42: '0xdcC0D09beE9726E23256ebC059B7487Cd78F65a0', // kovan
100: '0x20F29CCaE4c9886964033042c6b79c2C4C816308', // xdai
77: '0x4d1639e4b237BCab6F908A1CEb0995716D5ebE36', // poaSokol
137: '0x20F29CCaE4c9886964033042c6b79c2C4C816308', //matic
80001: '0xdcC0D09beE9726E23256ebC059B7487Cd78F65a0', // mumbai
56: '0x3e8b9901dBFE766d3FE44B36c180A1bca2B9A295', // bsc
97: '0x3e8b9901dBFE766d3FE44B36c180A1bca2B9A295', //bscTestnet,
42220: '0x59b34c5BC94e2d5b9DcB97Ec935c94C353E5Eb94', // celo
44787: '0x3e8b9901dBFE766d3FE44B36c180A1bca2B9A295' // celo testnet
},
rng: {
42: RNGBlockhashKovan.address,
4: RNGBlockhashRinkeby.address,
3: RNGBlockhashRopsten.address
},
admin: {
42: testnetAdmin,
4: testnetAdmin,
3: testnetAdmin
},
testnetUser1: {
default: testnetUser1,
3: testnetUser1,
4: testnetUser1,
42: testnetUser1,
},
testnetUser2: {
default: testnetUser2,
3: testnetUser2,
4: testnetUser2,
42: testnetUser2,
},
testnetUser3: {
default: testnetUser3,
3: testnetUser3,
4: testnetUser3,
42: testnetUser3,
},
sablier: {
1: "0xA4fc358455Febe425536fd1878bE67FfDBDEC59a",
3: "0xc04Ad234E01327b24a831e3718DBFcbE245904CC",
4: "0xc04Ad234E01327b24a831e3718DBFcbE245904CC",
5: "0x590b3974533141a44a89033deEcf932F52fcFDea",
42: "0xc04Ad234E01327b24a831e3718DBFcbE245904CC"
},
testnetCDai: {
4: '0x6d7f0754ffeb405d23c51ce938289d4835be3b14',
42: '0xf0d0eb522cfa50b716b3b1604c4f0fa6f04376ad'
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.ETHERSCAN_API_KEY
},
mocha: {
timeout: 30000
},
abiExporter: {
path: './abis',
clear: true,
flat: true
}
};
module.exports = config