-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtruffle-config.js
39 lines (38 loc) · 959 Bytes
/
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
const path = require("path");
var HDWalletProvider = require("@truffle/hdwallet-provider");
require("dotenv").config();
var mnemonic =
"track urban song body clarify alarm firm bike guard agent small around" ||
process.env.MNEMONIC;
var apiKey =
"https://rinkeby.infura.io/v3/76572308a2714058a90cddf49b651930" ||
process.env.API_KEY;
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: "*",
},
rinkeby: {
provider: new HDWalletProvider(mnemonic, apiKey),
network_id: 4,
// networkCheckTimeout: 10
gas: 4500000,
gasPrice: 10000000000,
},
},
compilers: {
solc: {
version: "0.6.10",
// optimizer: {
// enabled: true,
// runs: 1000
// },
// evmVersion: "homestead"
},
},
};