forked from paxosglobal/pyusd-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
57 lines (56 loc) · 1.56 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
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://goerli.infura.io/v3/<your-api-key>";
const Web3 = require("web3");
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
plugins: ["solidity-coverage"],
networks: {
development: {
provider: function() {
// ganache-cli started at http://127.0.0.1:8545/ by default
return new Web3.providers.HttpProvider("http://127.0.0.1:8545")
},
network_id: '*', // Match any network id
gas: 6700000,
gasPrice: 0x01,
disableConfirmationListener: true
},
coverage: {
provider: function() {
return new Web3.providers.HttpProvider("http://127.0.0.1:8555")
},
port: 8555,
gas: 10000000000000,
gasPrice: 0x01,
disableConfirmationListener: true
},
mainnet: {
network_id: 1,
provider: function() {
return new HDWalletProvider(mnemonic, networkAddressMainnet, walletChildNum)
}
},
goerli: {
provider: function() {
return new HDWalletProvider(mnemonic, networkAddressTestnet, walletChildNum)
},
network_id: 5,
gas: 4000000
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
},
compilers: {
solc: {
version: "v0.4.24+commit.e67f0147" // Freeze solidity version
}
}
};