-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtruffle-config.js
48 lines (46 loc) · 1.18 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
require("babel-register")({
ignore: /node_modules\/(?!openzeppelin-solidity)/,
});
require("babel-polyfill");
require("mocha-clean");
require("dotenv").config();
const HDWalletProvider = require("truffle-hdwallet-provider");
// https://github.com/trufflesuite/truffle-migrate/issues/10#issuecomment-402441008
const fullPathBuildDirectory = `${__dirname}/src/contracts`;
module.exports = {
contracts_build_directory: fullPathBuildDirectory,
networks: {
coverage: {
gas: 0xfffffffffff,
gasPrice: 0x01,
host: "localhost",
network_id: "*", // eslint-disable-line camelcase
port: 8555,
},
development: {
host: "localhost",
network_id: "*", // eslint-disable-line camelcase
port: 8545,
},
ganache: {
host: "localhost",
network_id: "*", // eslint-disable-line camelcase
port: 8545,
},
rinkeby: {
provider: function() {
return new HDWalletProvider(
process.env["RINKEBY_MNEMONIC"],
`https://rinkeby.infura.io/${process.env["RINKEBY_INFURA_API_KEY"]}`
);
},
network_id: 4,
},
},
solc: {
optimizer: {
enabled: true,
runs: 500,
},
},
};