forked from paxosglobal/usdp-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
50 lines (49 loc) · 1.25 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
var HDWalletProvider = require("@truffle/hdwallet-provider");
const mnemonic = "<your-mnemonic>";
const walletChildNum = 0;
const networkAddressMainnet = "https://mainnet.infura.io/v3/<your-api-key>";
const networkAddressTestnet = "https://ropsten.infura.io/v3/<your-api-key>";
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: {
host: '127.0.0.1',
port: 8545, // ganache-cli
network_id: '*', // Match any network id
gas: 6700000,
gasPrice: 0x01
},
coverage: {
host: 'localhost',
network_id: '*',
port: 8321,
gas: 10000000000000,
gasPrice: 0x01
},
mainnet: {
network_id: 1,
provider: function() {
return new HDWalletProvider(mnemonic, networkAddressMainnet, walletChildNum)
},
},
ropsten: {
provider: function() {
return new HDWalletProvider(mnemonic, networkAddressTestnet, walletChildNum)
},
network_id: 3,
gas: 4000000
}
},
solc: {
optimizer: {
enabled: true,
runs: 200,
},
},
compilers: {
solc: {
version: "v0.4.24+commit.e67f0147" // Freeze solidity version
}
}
};