-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtruffle.js
36 lines (33 loc) · 910 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 dotenv = require('dotenv').config();
const HDWalletProvider = require('truffle-hdwallet-provider-privkey');
const mnemonic = process.env.ETHEREUM_ACCOUNT_MNEMONIC;
module.exports = {
networks: {
kovan: {
provider: function() {
return new HDWalletProvider(mnemonic, `https://kovan.infura.io/`);
},
network_id: '42',
gasPrice: 12000000000
},
mainnet: {
provider: function() {
return new HDWalletProvider(mnemonic, `https://mainnet.decenter.com/`);
},
network_id: '1',
gasPrice: 5000000000
},
rinkeby: {
provider: function() {
return new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io/');
},
network_id: '4',
},
test: {
provider: function() {
return new HDWalletProvider(mnemonic, 'http://127.0.0.1:8545/');
},
network_id: '*',
},
}
}