-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
38 lines (36 loc) · 964 Bytes
/
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
const connectionConfig = require('frg-ethereum-runners/config/network_config.json');
const HDWalletProvider = require('truffle-hdwallet-provider');
require('dotenv').config();
module.exports = {
networks: {
ganacheUnitTest: connectionConfig.ganacheUnitTest,
gethUnitTest: connectionConfig.gethUnitTest,
testrpcCoverage: connectionConfig.testrpcCoverage,
ropsten: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, process.env.ROPSTEN_PROVIDER),
network_id: 3,
gas: 2000000,
gasPrice: 10000000000
},
mainnet: {
ref: 'mainnet-prod',
network_id: 1,
provider: () => new HDWalletProvider(process.env.MNEMONIC, process.env.MAINNET_PROVIDER),
gasPrice: 50000000000
}
},
mocha: {
enableTimeouts: false
},
compilers: {
solc: {
version: '0.4.24',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}
};