forked from shiruco/ERC721-Marketplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
50 lines (49 loc) · 1.01 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
const HDWalletProvider = require("truffle-hdwallet-provider")
const mnemonic = process.env.ROPSTEN_MNEMONIC
const accessToken = process.env.INFURA_ACCESS_TOKEN
module.exports = {
networks: {
ropsten: {
provider: function() {
return new HDWalletProvider(
mnemonic,
"https://ropsten.infura.io/v3/" + accessToken
)
},
network_id: 3,
gas: 5000000
},
"ropsten-fork": {
provider: function() {
return new HDWalletProvider(
mnemonic,
"https://ropsten.infura.io/v3/" + accessToken
)
},
network_id: 3,
gas: 5000000
},
// for truffle develop
develop: {
host: "localhost",
port: 9545,
gas: 5000000,
gasPrice: 5e9,
network_id: "*"
},
// for ganache-cli
local: {
host: "localhost",
port: 8545,
gas: 5000000,
gasPrice: 5e9,
network_id: "621"
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
}