-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
56 lines (55 loc) · 1.39 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* Uncommenting the defaults below
provides for an easier quick-start with Ganache.
You can also follow this format for other networks;
see <http://truffleframework.com/docs/advanced/configuration>
for more details on how to specify configuration options!
*/
var HDWalletProvider = require('truffle-hdwallet-provider')
var infura_apikey = '06b92f48aafe41a8b43bea2a19c5424c'
var mnemonic = 'wonder glare also army glimpse hold this twist gaze energy page century'
const path = require("path")
module.exports = {
contracts_build_directory: path.join(__dirname, "client/src/contracts"),
mocha: {
enableTimeouts: false
},
plugins: ['truffle-security'],
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
gas: 300000,
gasPrice: 1000000000
},
/* ropsten: {
host: '127.0.0.1',
port: 8545,
network_id: 3,
gas:1000000,
gasPrice: 20000000000,
},*/
ropsten_infura: {
provider: () => new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/v3/' + infura_apikey, 0, 10),
network_id: 3,
gas: 300000,
gasPrice: 40000000000
},
/* ganache: {
host: '127.0.0.1',
port: 7545,
network_id: 619,
gas:1000000,
gasPrice: 20000000000,
}*/
},
compilers: {
solc: {
settings: {
optimizer: {
enabled: true
}
}
}
}
}