-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
39 lines (37 loc) · 1.06 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
const HDWalletProvider = require('truffle-hdwallet-provider');
const readline = require('readline-sync');
const apiKey = 'ea555dd56ce44c4ebb025fef5698abdd';
const mnemonic = readline.question('Enter your 12 word mnemonic\n');
module.exports = {
networks: {
live: this.kovan,
development: this.ganachecli,
main: {
provider: () => new HDWalletProvider(mnemonic, 'https://mainnet.infura.io/v3/' + apiKey),
network_id: '1'
},
ropsten: {
provider: () => new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/v3/' + apiKey),
network_id: '3'
},
rinkeby: {
provider: () => new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io/v3/' + apiKey),
network_id: '4'
},
kovan: {
provider: () => new HDWalletProvider(mnemonic, 'https://kovan.infura.io/v3/' + apiKey),
network_id: '42'
},
ganache: {
host: 'localhost',
port: 7545,
network_id: '*'
},
ganachecli: {
host: 'localhost',
port: 8545,
network_id: '*'
},
testrpc: this.ganachecli
}
};