forked from jai-singhal/digiLocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
33 lines (32 loc) · 984 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
require('dotenv').config();
var HDWalletProvider = require("truffle-hdwallet-provider");
var NEMONIC = process.env["NEMONIC"];
var tokenKey = process.env["ENDPOINT_KEY"];
module.exports = {
contracts_directory: "./contracts/",
networks: {
rinkeby:{
host: "localhost",
provider: function() {
return new HDWalletProvider(NEMONIC, "https://rinkeby.infura.io/v3/" + tokenKey);
},
network_id: 4,
gas : 6700000,
gasPrice : 10000000000
},
development: {
host: "localhost",
port: 8545,
network_id: "*" // Match any network id
}
},
compilers: {
solc: {
optimizer: {
enabled: true,
runs: 200
},
version: "0.5.17" // ex: "0.4.20". (Default: Truffle's installed solc)
}
}
};