-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtruffle.js
54 lines (54 loc) · 1.44 KB
/
truffle.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
require("dotenv").config();
const Web3 = require("web3");
const web3 = new Web3();
const HDWalletProvider = require("truffle-hdwallet-provider");
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
// This is where you let your truffle connect with your private chain
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*", // Match any network id
// from: "0x527Fce59EB5332572cdc98Fc04f3c4fFAA9BCcD2",
gas: 4600000
},
ropsten: {
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://ropsten.infura.io/v3/" + process.env.API_KEY,
0,
4
);
},
network_id: 3,
from: "0xDE4dB6938e4e54717FeCC48025Cc718bA28A4C99"
},
kovan: {
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://kovan.infura.io/v3/" + process.env.API_KEY,
0,
4
);
},
network_id: 42,
from: "0xDE4dB6938e4e54717FeCC48025Cc718bA28A4C99"
},
rinkeby: {
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://rinkeby.infura.io/v3/" + process.env.API_KEY,
0,
4
);
},
network_id: 4,
from: "0xDE4dB6938e4e54717FeCC48025Cc718bA28A4C99"
}
}
};