-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
36 lines (35 loc) · 1.13 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
const path = require("path");
var HDWalletProvider = require("@truffle/hdwallet-provider");
const infuraKey = "INFURA_KEY_PLACED;"
const fs = require('fs');
const mnemonic = fs.readFileSync(".secret").toString().trim();
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
contracts_build_directory: path.join(__dirname, "client/src/contracts"),
networks: {
development: {
host : "127.0.0.1",
port: 7545,
network_id : "*"
},
ropsten :{
provider: function() {
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/v3/d727f2046b3c42e3931fd0ac2b8e2184")
},
network_id: 3,
networkCheckTimeout: 10000000,
confirmations: 2,
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true ,
gas: 5500000 //make sure this gas allocation isn't over 4M, which is the max
}
},
contracts_directory: './contracts/',
contracts_build_directory: './client/src/contracts/',
compilers: {
solc: {
version: "^0.8.5"
}
}
};