-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
79 lines (65 loc) · 2.03 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/**
* Truffle config for Vulcan Swap
*/
/**
* Uncomment the following lines if you want to deploy to a live network.
* You will also need to create a .env file with an INFURA_KEY constant.
* You will also need to create a `.secret` file with a private key.
*/
// require('dotenv').config()
// const HDWalletProvider = require('truffle-hdwallet-provider');
// const infuraKey = process.env.INFURA_KEY;
// const fs = require('fs');
// const mnemonic = fs.readFileSync('.secret').toString().trim();
const path = require('path');
module.exports = {
/**
* Optional dev plugins (install before using):
*/
// plugins: [
// "truffle-security",
// "truffle-plugin-verify"
// ],
// Optional plugin config: Truffle Verify
// api_keys: {
// etherscan: process.env.ETHERSCAN_API_KEY
// },
/**
* Contract compile and build directory options:
*/
// Need to do this to get contracts inside the create-react-app folder
contracts_build_directory: path.join(__dirname, 'client/src/contracts'),
// Only compile necessary contracts
contracts_directory: path.join(__dirname, 'contracts/deploy'),
/**
* Optional dev plugins (install before using):
*/
networks: {
// development: {
// host: "127.0.0.1",
// port: 7545,
// network_id: "*",
// },
// rinkeby: {
// provider: () => new HDWalletProvider(mnemonic, `https://rinkeby.infura.io/v3/${infuraKey}`),
// network_id: 4, // Rinkeby's id
// gas: 6500000, // Rinkeby has a lower block limit than mainnet
// gasPrice: 2000000000, // 2 gwei (in wei) (default: 100 gwei)
// skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
// }
},
/**
* Compiler config.
*/
compilers: {
solc: {
version: "0.5.8", // This is the solidity version specified for all contracts.
settings: {
optimizer: { // Needs optimizer because Compound contracts are massive.
enabled: true,
runs: 200
},
}
}
}
}