-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathtruffle.js
45 lines (44 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
// Allows us to use ES6 in our migrations and tests.
require('babel-register')
var HDWalletProvider = require('truffle-hdwallet-provider')
var mnemonic = 'give cancel discover junk point despair woman piece cart typical void bench hub tenant winter'
function readFile(name) {
const fs = require('fs')
// if (fs.existsSync(secretMnemonicFile)) {
return fs.readFileSync('.secret-mnemonic.txt', { encoding: 'utf8' })
// }
}
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*' // Match any network id
},
rinkeby: {
provider: function () {
return new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io/v3/c3422181d0594697a38defe7706a1e5b')
},
network_id: 4
},
kotti: {
provider: function () {
const wallet = new HDWalletProvider(mnemonic, 'https://www.ethercluster.com/kotti')
return wallet
},
network_id: 6
},
ethereum_classic_mainnet: {
provider: function () {
const wallet = new HDWalletProvider(mnemonic, 'https://www.ethercluster.com/etc')
return wallet
},
network_id: 1
}
},
compilers: {
solc: {
version: '0.5.16'
}
}
}