-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
56 lines (53 loc) · 1.31 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
require('ts-node/register');
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider');
const hdWallet = host => {
return new HDWalletProvider(require(`./conf/keys.${process.env.NETWORK_ID}`), host, 0, 4);
};
module.exports = {
plugins: ["solidity-coverage"],
// All the networks we use.
networks: {
development: {
host: 'localhost',
port: '7545',
network_id: '5777',
// gas: "0x59a5380",
// gas_price: 0x01
},
// Coverage network config.
coverage: {
host: 'localhost',
network_id: '*',
port: 8555,
// gas: "0xfffffffffff",
// gasPrice: 0x01
},
// Production network.
cv: {
provider: () => hdWallet('https://chain.consilienceventures.com'),
network_id: '18021982',
// Find using `web3.eth.getBlock("pending")`.
// gas: "0x598ecec",
// gas_price: 1
},
// Staging network.
cv_dev: {
provider: () => hdWallet('https://chain.dev.consilienceventures.com'),
network_id: '18021981',
// Find using `web3.eth.getBlock("pending")`.
// gas: "0x59a5380",
// gas_price: 1
}
},
// Configure your compilers
compilers: {
solc: {
version: '0.8.11',
optimizer: {
enabled: true,
runs: 500
}
}
}
};