forked from edge2b/mcfly-smart-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
executable file
·50 lines (44 loc) · 1.38 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
43
44
45
46
47
48
49
50
require("babel-polyfill");
require('babel-register')({
// Ignore everything in node_modules except node_modules/zeppelin-solidity.
presets: ["es2015"],
plugins: ["syntax-async-functions","transform-regenerator"],
ignore: /node_modules\/(?!zeppelin-solidity)/,
});
var provider;
var HDWalletProvider = require('truffle-hdwallet-provider');
var private = '[REDACTED]';
if (!process.env.SOLIDITY_COVERAGE){
// provider = new HDWalletProvider(private, 'https://rinkeby.infura.io')
provider = new HDWalletProvider(private, 'https://ropsten.infura.io')
}
module.exports = {
deploy: [
"Presale", "Sale"
],
networks: {
local: {
host: 'localhost',
port: 8545,
network_id: '*',
},
local_geth: {
host: 'localhost',
port: 8545,
network_id: 15
},
testnet: {
provider: provider,
// gasPrice: 200 * 10**8,
network_id: 2 // official id of the ropsten network
},
coverage: {
host: "localhost",
network_id: "*",
port: 8555, // <-- If you change this, also set the port option in .solcover.js.
gas: 0xfffffffffff, // <-- Use this high gas value
gasPrice: 0x01 // <-- Use this low gas price
},
},
build: "webpack"
};