-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
65 lines (65 loc) · 1.75 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// 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,
skipDryRun: true,
network_id: '*' // Match any network id
},
kovan: {
provider: function () {
return new HDWalletProvider(mnemonic, 'https://kovan.infura.io/v3/c3422181d0594697a38defe7706a1e5b')
},
skipDryRun: true,
network_id: 42
},
rinkeby: {
provider: function () {
return new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io/v3/c3422181d0594697a38defe7706a1e5b')
},
skipDryRun: true,
network_id: 4
},
ropsten: {
provider: function () {
return new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/v3/c3422181d0594697a38defe7706a1e5b')
},
network_id: 3,
skipDryRun: true,
gasLimit: 2.8e6
},
kotti: {
provider: function () {
const wallet = new HDWalletProvider(mnemonic, 'https://www.ethercluster.com/kotti')
return wallet
},
skipDryRun: true,
network_id: 6
},
ethereum_classic_mainnet: {
provider: function () {
const wallet = new HDWalletProvider(mnemonic, 'https://www.ethercluster.com/etc')
return wallet
},
skipDryRun: true,
network_id: 61
}
},
compilers: {
solc: {
version: "pragma",
}
}
}