-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtruffle-config.js
56 lines (49 loc) · 1.16 KB
/
truffle-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
const HDWalletProvider = require("truffle-hdwallet-provider");
const PrivateKeyProvider = require('truffle-privatekey-provider');
require('dotenv').config();
'use strict';
require('babel-register')({
only: '/test/'
});
require('babel-polyfill');
const mochaGasSettings = {
reporter: 'eth-gas-reporter',
reporterOptions : {
currency: 'USD',
gasPrice: 3
}
}
const mocha = process.env.GAS_REPORTER ? mochaGasSettings : {};
module.exports = {
networks: {
development: {
network_id: '*',
host: "localhost",
port: 8545,
},
staging: {
network_id: '42',
provider: new HDWalletProvider(process.env.MNEMONIC, "https://kovan.fundrequest.io/")
},
test: {
network_id: '42',
provider: new HDWalletProvider(process.env.MNEMONIC, "https://kovan.fundrequest.io/")
},
mainnet: {
network_id: '1',
provider: new HDWalletProvider(process.env.MNEMONIC_MAINNET, "https://mainnet2.fundrequest.io"),
from: process.env.MAINNET_FROM,
gas: 6721975,
gasPrice: 7000000000
},
coverage: {
host: "localhost",
network_id: "*",
port: 8555,
gas: 0xffffffffff,
gasPrice: 0x01
}
},
build: {},
mocha,
};