-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtruffle-config.js
More file actions
49 lines (46 loc) · 1.01 KB
/
truffle-config.js
File metadata and controls
49 lines (46 loc) · 1.01 KB
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
'use strict';
require('dotenv').config();
const {getProvider} = require('provider');
/**
* Truffle configuration object.
*
* @see http://truffleframework.com/docs/advanced/configuration
* @return {Object}
*/
module.exports = {
compilers: {
solc: {
version: '0.6.11',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
},
networks: {
development: {
host: '127.0.0.1',
port: 9545,
network_id: '*'
},
ropsten: {
provider: () => {
return getProvider();
},
network_id: 3,
gas: 8000000,
skipDryRun: true
},
mainnet: {
provider: () => {
return getProvider();
},
network_id: 1,
gas: 2000000,
gasPrice: 112000000000,
skipDryRun: true
}
}
};