forked from xdefilab/xnsure-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
39 lines (36 loc) · 1.2 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
//require('dotenv').config();
//const HDWalletProvider = require('@truffle/hdwallet-provider');
//const mnemonic = process.env.MNEMONIC;
//var kovanProvider = new HDWalletProvider(mnemonic, process.env.RPC_URL_KOVAN);
module.exports = {
networks: {
development: {
host: 'localhost', // Localhost (default: none)
port: 9545, // Standard Ethereum port (default: none)
network_id: '*', // Any network (default: none)
gas: 5800000,
timeoutBlocks: 200,
},
kovan: {
//provider: kovanProvider,
network_id: 42, // Ropsten's id
gas: 5500000,
gasPrice: '10000000000',
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true
},
},
// Configure your compilers
compilers: {
solc: {
version: '0.5.17',
settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200,
}
//evmVersion: 'byzantium',
},
},
},
};