forked from OpenZeppelin/ethernaut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
38 lines (34 loc) · 920 Bytes
/
truffle.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
// These are required to enable ES6 on tets
// and it's dependencies.
require('babel-register')({
ignore: /node_modules\/(?!zeppelin-solidity)/
});
require('babel-polyfill');
const constants = require('./src/constants')
module.exports = {
migrations_directory: "./migrations",
networks: {
ropsten: {
host: constants.NETWORKS.ROPSTEN.url,
port: constants.NETWORKS.ROPSTEN.port,
network_id: constants.NETWORKS.ROPSTEN.id,
gas: 3000000,
gasPrice: 100000000000,
from: constants.ADDRESSES[constants.NETWORKS.ROPSTEN.name]
},
local: {
host: constants.NETWORKS.LOCAL.url,
port: constants.NETWORKS.LOCAL.port,
network_id: constants.NETWORKS.LOCAL.id,
gas: 3000000,
gasPrice: 100000000000,
from: constants.ADDRESSES[constants.NETWORKS.LOCAL.name]
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
};