-
Notifications
You must be signed in to change notification settings - Fork 3
/
truffle.js
36 lines (34 loc) · 1012 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
const Web3 = require('web3');
const web3 = new Web3();
const WalletProvider = require('truffle-wallet-provider');
const Wallet = require('ethereumjs-wallet');
const ropstenPrivateKey = new Buffer(process.env.ROPSTEN_PRIVATE_KEY || 'c87509a1c067bbde78beb793e6fa76530b6382a4c0241e5e4a9ec0a0f44dc0d3', 'hex');
const ropstenWallet = Wallet.fromPrivateKey(ropstenPrivateKey);
const ropstenProvider = new WalletProvider(ropstenWallet, 'https://ropsten.infura.io/' + process.env.INFURA_API_TOKEN || 'mxzjp2sbsk1XcFwsVTrg');
module.exports = {
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*',
gasPrice: 22000000000
},
coverage: {
host: "localhost",
port: 8555,
network_id: "*",
gas: 0xfffffffffff,
gasPrice: 0x01
},
ropsten: {
provider: ropstenProvider,
gas: 5700000,
gasPrice: web3.utils.toWei('50', 'gwei'),
network_id: '3',
}
},
rpc: {
host: "localhost",
port: 8545
}
};