forked from Rari-Capital/rari-stable-pool-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
37 lines (36 loc) · 1021 Bytes
/
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
const HDWalletProvider = require("@truffle/hdwallet-provider");
require('dotenv').config();
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// for more about customizing your Truffle configuration!
networks: {
development: {
host: "127.0.0.1",
port: "8546",
network_id: "*",
gasPrice: 1e6,
from: process.env.DEVELOPMENT_ADDRESS
},
live: {
provider: function() {
var keys = [process.env.LIVE_DEPLOYER_PRIVATE_KEY];
if (process.env.LIVE_UPGRADE_FUND_OWNER_PRIVATE_KEY) keys.push(process.env.LIVE_UPGRADE_FUND_OWNER_PRIVATE_KEY);
return new HDWalletProvider(keys, process.env.LIVE_WEB3_PROVIDER_URL);
},
network_id: 1,
gasPrice: parseInt(process.env.LIVE_GAS_PRICE),
from: process.env.LIVE_DEPLOYER_ADDRESS
}
},
compilers: {
solc: {
version: "0.5.17",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}
};