-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
35 lines (34 loc) · 1020 Bytes
/
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
var HDWalletProvider = require("truffle-hdwallet-provider")
require('dotenv').config({silent: true})
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545, // Ganache
network_id: "*", // Match any network id
},
richard: {
host: "192.168.100.177",
port: 8545, // Ganache
network_id: "*", // Match any network id
},
ropsten: {
provider: () => new HDWalletProvider(process.env.MNENOMIC, "https://ropsten.infura.io/v3/" + process.env.INFURA_API_KEY),
network_id: 3,
gas: 4612388,
gasPrice: 21
},
rinkeby: {
provider: () => new HDWalletProvider(process.env.MNENOMIC, "https://rinkeby.infura.io/v3/" + process.env.INFURA_API_KEY),
network_id: 4,
gas: 6500000,
gasPrice: 1
},
kovan: {
provider: () => new HDWalletProvider(process.env.MNENOMIC, "https://kovan.infura.io/v3/" + process.env.INFURA_API_KEY),
network_id: 42,
gas: 6500000,
gasPrice: 1
}
}
}