-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathtruffle-config.js
31 lines (31 loc) · 913 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
// Allows us to use ES6 in our migrations and tests.
require("babel-register");
const HDWalletProvider = require("truffle-hdwallet-provider");
require("dotenv").config();
module.exports = {
networks: {
rinkeby: {
provider: function() {
return new HDWalletProvider(
process.env.MNEMONIC,
process.env.PROJECT_ENDPOINT,
address_index=0,
num_addresses=2
);
},
network_id: 4,
// gas: 4500000,
// gasPrice: 10000000000,
},
development: {
host: process.env.LOCAL_ENDPOINT.split(":")[1].slice(2),
port: process.env.LOCAL_ENDPOINT.split(":")[2],
network_id: "*",
},
compilers: {
solc: {
version: "^0.4.24",
},
},
},
};