forked from openlawteam/Artblocks-Contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuidler.config.js
57 lines (55 loc) · 1.42 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
require('dotenv').config();
usePlugin("@nomiclabs/buidler-waffle");
usePlugin("@nomiclabs/buidler-truffle5");
usePlugin("buidler-gas-reporter");
usePlugin("solidity-coverage");
usePlugin("@nomiclabs/buidler-solhint");
const INFURA_PROJECT_ID = process.env.PROTOTYPE_BR_INFURA_KEY;
const PRIVATE_KEY = process.env.PRIVATE_KEY;
const MNEMONIC = process.env.MNEMONIC;
module.exports = {
solc: {
version: '0.5.17',
optimizer: {
enabled: true,
runs: 200
}
},
gasReporter: {
currency: 'USD',
enabled: true
},
networks: {
buidlerevm: {
gasPrice: 0, // 0 gwei
},
mainnet: {
url: `https://mainnet.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: {mnemonic:`${MNEMONIC}`},
gasPrice: 30000000000
},
ropsten: {
url: `http://127.0.0.1:8545`,
chainId:3,
from: `0x8De4e517A6F0B84654625228D8293b70AB49cF6C`
},
/*
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [`0x${PRIVATE_KEY}`]
},
*/
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: {mnemonic:`update worry tide frequent intact pave fun daring abandon already payment wonder`}
},
kovan: {
url: `https://kovan.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [`0x${PRIVATE_KEY}`]
},
coverage: {
url: 'http://localhost:8555',
gasPrice: 8000000000, // 8 gwei
}
}
};