forked from TovarishFin/rps-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
73 lines (72 loc) · 1.57 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
66
67
68
69
70
71
72
73
const HDWalletProvider = require('truffle-hdwallet-provider')
const path = require('path')
require('dotenv').config()
const testnetMnemonic = process.env.TESTNET_MNEMONIC
const mainnetMnemonic = process.env.MAINNET_MNEMONIC
module.exports = {
compilers: {
solc: {
version: '0.4.25'
}
},
contracts_build_directory: path.join(__dirname, 'contractsBuild'),
networks: {
test: {
host: 'localhost',
port: 8545,
network_id: '*',
gas: 6.5e6,
gasPrice: 5e9,
websockets: true
},
dev: {
host: 'localhost',
port: 8545,
network_id: '*',
gas: 6.5e6,
gasPrice: 5e9,
websockets: true
},
ropsten: {
network_id: 3,
gas: 6.5e6,
gasPrice: 5e9,
provider: () =>
new HDWalletProvider(testnetMnemonic, 'http://localhost:8545', 0, 10)
},
kovan: {
network_id: 42,
gas: 6.5e6,
gasPrice: 5e9,
provider: () =>
new HDWalletProvider(testnetMnemonic, 'http://localhost:8545', 0, 10)
},
rinkeby: {
network_id: 4,
gas: 6.5e6,
gasPrice: 5e9,
provider: () =>
new HDWalletProvider(
testnetMnemonic,
'https://rinkeby.infura.io',
0,
10
)
},
live: {
network_id: 1,
gas: 6.5e6,
gasPrice: 5e9,
provider: () =>
new HDWalletProvider(
mainnetMnemonic,
'https://mainnet.infura.io',
0,
10
)
}
},
mocha: {
reporter: process.env.GAS_REPORTER ? 'eth-gas-reporter' : 'spec'
}
}