-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuidler.config.js
39 lines (38 loc) · 999 Bytes
/
buidler.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
usePlugin("@nomiclabs/buidler-truffle5");
usePlugin('buidler-log-remover');
usePlugin("@nomiclabs/buidler-etherscan");
//Load sercrets.json to read mnumonic private key from JSON key-value pair
var fs = require('fs');
var rawdata = fs.readFileSync('secrets.json');
var secrets = JSON.parse(rawdata);
module.exports = {
solc: {
version: "0.6.12",
},
defaultNetwork: "buidlerevm",
networks: {
buidlerevm: {
allowUnlimitedContractSize: true,
settings: {
optimizer: {
enabled: true,
runs: 200
},
evmVersion: "istanbul" //byzantium, constantinople
}
},
kovan: {
url: "https://kovan.infura.io/v3/"+secrets.infuraApiKey,
accounts: [secrets.pk]
},
ropsten: {
url: "https://ropsten.infura.io/v3/"+secrets.infuraApiKey,
accounts: [secrets.pk]
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: secrets.etherscanApiKey
}
};