-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtruffle.js
32 lines (31 loc) · 906 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
const HDWalletProvider = require('truffle-hdwallet-provider');
const HDWalletPrikeyProvider = require('truffle-hdwallet-provider-privkey');
const mnemonic = '';
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*",
from: 'Disclosed'
},
ropsten: {
provider: function () {
return new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/x');
},
network_id: 3,
gas: 4000000,
gas_price: 100,
from: 'Disclosed'
},
main: {
provider: function () {
return new HDWalletPrikeyProvider('', 'https://mainnet.infura.io/x');
},
network_id: 1,
gas: 4000000,
gas_price: 100,
from: 'Disclosed'
}
}
};