-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
37 lines (37 loc) · 1.11 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
const HDWalletProvider = require("truffle-hdwallet-provider");
MNENOMIC = "pencil wonder river token major before ordinary cargo cool left tail rude"
INFURA_API_KEY = "53c708dd5cec4b94bf212dcac7a3490f"
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: '*', // Match any network id
gas: 4612388
},
ropsten: {
provider: () => new HDWalletProvider( MNENOMIC, "https://ropsten.infura.io/v3/" + INFURA_API_KEY),
network_id: 3,
gas: 4612388
},
kovan: {
provider: () => new HDWalletProvider( MNENOMIC, "https://kovan.infura.io/v3/" + INFURA_API_KEY),
network_id: 42,
gas: 470000,
gasPrice: 21
},
rinkeby: {
provider: () => new HDWalletProvider( MNENOMIC, "https://rinkeby.infura.io/v3/" + INFURA_API_KEY),
network_id: 4,
gas: 470000,
gasPrice: 21
},
// main ethereum network(mainnet)
main: {
provider: () => new HDWalletProvider( MNENOMIC, "https://mainnet.infura.io/v3/" + INFURA_API_KEY),
network_id: 1,
gas: 470000,
gasPrice: 21
}
}
}