-
Notifications
You must be signed in to change notification settings - Fork 14
/
truffle.js
56 lines (53 loc) · 1.19 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
require('dotenv').config()
const HDWalletProvider = require('truffle-hdwallet-provider')
const rinkebyWallet =
'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat'
const rinkebyProvider = new HDWalletProvider(
rinkebyWallet,
'https://rinkeby.infura.io/'
)
const ropstenWallet =
'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat'
const ropstenProvider = new HDWalletProvider(
ropstenWallet,
'https://ropsten.infura.io/'
)
module.exports = {
migrations_directory: './migrations',
networks: {
test: {
host: 'localhost',
port: 9545,
network_id: '*',
gas: 6.5e6,
gasPrice: 5e9,
websockets: true
},
ropsten: {
network_id: 3,
gas: 6.5e6,
gasPrice: 5e9,
provider: () => ropstenProvider
},
rinkeby: {
network_id: 4,
gas: 6.5e6,
gasPrice: 5e9,
provider: () => rinkebyProvider
}
},
solc: {
optimizer: {
enabled: true,
runs: 500
}
},
mocha: {
reporter: 'mocha-multi-reporters',
useColors: true,
enableTimeouts: false,
reporterOptions: {
configFile: './mocha-smart-contracts-config.json'
}
}
}