-
Notifications
You must be signed in to change notification settings - Fork 11
/
truffle.js
42 lines (38 loc) · 1.11 KB
/
truffle.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
let walletProvider;
function getWalletProvider() {
if (walletProvider) {
return walletProvider;
}
const Web3Provider = require('./scripts/Web3Provider.js')
walletProvider = Web3Provider.getWalletProvider();
return walletProvider;
}
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*",
gas: 7000000, // This is the max gas estimateGas in the deployer will go up to
gasPrice: 10e9
},
rinkeby: {
provider: () => getWalletProvider(),
network_id: 4,
gas: 4000000, // See https://www.rinkeby.io/#stats to make sure this is not over the network limit
gasPrice: 10e9 // see latest blocks on https://www.rinkeby.io/#stats for reasonable prices
},
mainnet: {
provider: () => getWalletProvider(),
network_id: 1,
gas: 4000000, // See https://ethstats.net/ to make sure this is not over the network limit
gasPrice: 10e9 // GWEi: see https://ethgasstation.info/ for recommended prices
}
},
compilers: {
solc: {
version: "0.5.2"
}
},
plugins: ["solidity-coverage"]
};