-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
38 lines (36 loc) · 913 Bytes
/
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
require("babel-register")({
ignore: /node_modules(?!\/zeppelin-solidity)/,
presets: [
["env", {
"targets" : {
"node" : "8.0"
}
}]
],
retainLines: true,
});
require("babel-polyfill");
/* read deployment details from external config file */
const HDWalletProvider = require("truffle-hdwallet-provider");
const w = require('./wallet.json');
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*",
gas: 5712388
},
rinkeby: {
provider: new HDWalletProvider(w['rinkeby']['mnemonic'], 'https://rinkeby.infura.io/' + w['infura']),
network_id: '*',
gas: 6700000
},
production: {
provider: new HDWalletProvider(w['production']['mnemonic'], 'https://mainnet.infura.io/' + w['infura']),
network_id: '*',
gas: 6675000,
gasPrice: 4 * 10**9 // 4 gwei
}
}
};