forked from 1Hive/unipool
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtruffle-config.js
62 lines (51 loc) · 1.45 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
57
58
59
60
61
const TruffleConfig = require('@aragon/truffle-config-v5/truffle-config')
const HDWalletProvider = require('@truffle/hdwallet-provider')
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
TruffleConfig.networks.development = {
host: 'localhost',
port: 9545,
network_id: '*',
gas: 8000000,
gasPrice: 1000000000, // web3.eth.gasPrice
};
TruffleConfig.networks.xdai = {
provider: function() {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://dai.poa.network"
)
},
network_id: 100,
gas: 2000000
}
TruffleConfig.networks.rinkeby.skipDryRun = true;
TruffleConfig.networks.rinkeby.gasPrice = 1e11; // 100 Gwei
// UPDATE TO AN ACCEPTABLE GAS PRICE
TruffleConfig.networks.mainnet.gasPrice = 1e11; // 100 Gwei
TruffleConfig.compilers = {
solc: {
version: '0.5.12',
settings: {
optimizer: {
enabled: true,
runs: 200,
}
}
}
};
TruffleConfig.mocha = { // https://github.com/cgewecke/eth-gas-reporter
reporter: 'eth-gas-reporter',
reporterOptions : {
currency: 'USD',
gasPrice: 10,
onlyCalledMethods: true,
showTimeSpent: true,
excludeContracts: ['Migrations']
}
};
TruffleConfig.plugins = ['truffle-plugin-verify'];
TruffleConfig.api_keys = {
etherscan: "Etherscan API Key"
};
module.exports = TruffleConfig;