-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
executable file
·45 lines (41 loc) · 1.4 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
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider'); // @notice - Should use new module.
const mnemonic = process.env.MNEMONIC;
module.exports = {
//@dev - For rtoken-contract
plugins: [
//"truffle-security",
"solidity-coverage",
"truffle-plugin-verify"
],
networks: {
development: {
host: "127.0.0.1", // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none)
},
kovan: {
provider: function() {
return new HDWalletProvider(
mnemonic,
process.env.RPC_URL_KOVAN,
0, // address_index
10, // num_addresses
true // shareNonce
)
},
network_id: 42, // Kovan's id
//gas: 7017622,
//confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 50, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
},
coverage: {
host: "localhost",
network_id: "*",
port: 8555, // <-- If you change this, also set the port option in .solcover.js.
gas: 0xfffffffffff, // <-- Use this high gas value
gasPrice: 0x01 // <-- Use this low gas price
},
}
}