-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtruffle-config.js
More file actions
40 lines (38 loc) · 1.4 KB
/
truffle-config.js
File metadata and controls
40 lines (38 loc) · 1.4 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
const path = require("path");
require("dotenv").config(); // Store environment-specific variable from '.env' to process.env
var HDWalletProvider = require("truffle-hdwallet-provider");
const mnemonic = process.env.MNENOMIC;
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
contracts_build_directory: path.join(__dirname, "client/src/contracts"),
compilers: {
solc: {
version: "0.5.9" // Fetch exact version from solc-bin (default: truffle's version)
}
},
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*" // Match any network id
},
rinkeby: {
// must be a thunk, otherwise truffle commands may hang in CI
provider: () =>
new HDWalletProvider(mnemonic, process.env.RINKEBY_API_URL),
network_id: "4", // Rinkeyby's id
gas: 5500000, // Rinkeby has a lower block limit than mainnet
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
},
ropsten: {
// must be a thunk, otherwise truffle commands may hang in CI
provider: () =>
new HDWalletProvider(mnemonic, process.env.ROPSTEN_API_URL),
network_id: "3",
skipDryRun: true
}
},
plugins: ["truffle-security"]
};