-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtruffle.js
48 lines (43 loc) · 1.21 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
'use strict';
require('@babel/register');
require('@babel/polyfill');
const PrivateKeyProvider = require('truffle-privatekey-provider');
const infura_apikey = process.env.INFURA_API_KEY;
const privateKey = process.env.ACCOUNT_PRIVATE_KEY;
const lowGas = 4712388;
const highGas = 6700000;
module.exports = {
networks: {
ganache: {
host: 'localhost',
port: 8545,
network_id: '*'
},
coverage: {
host: 'localhost',
port: 8555,
network_id: '*',
gas: 0xfffffffffff,
gasPrice: 0x01
},
infura_ropsten: {
provider: _ => new PrivateKeyProvider(privateKey, `https://ropsten.infura.io/${infura_apikey}`),
network_id: 3,
gas: lowGas
},
infura_rinkeby: {
provider: _ => new PrivateKeyProvider(privateKey, `https://rinkeby.infura.io/${infura_apikey}`),
network_id: '*',
gas: highGas
},
pandora_rinkeby: {
host: 'http://rinkeby.pandora.network',
port: 8545,
network_id: '*',
gas: highGas
}
},
mocha: {
enableTimeouts: false
}
};