-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtruffle.js
39 lines (35 loc) · 1.07 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
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = "your 12 words from metamask";
var infura_key = "your infura key";
var account_index = 0; // Index of your Ropsten account on metamask, starting at 0
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// for more about customizing your Truffle configuration!
networks: {
// Info for local deployment
development: {
host: "127.0.0.1",
port: 8545,
gas: 750000000,
network_id: "*" // Match any network id
},
//Info for deployment on Ropsten, exploiting an Infura node
ropsten: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/v3/"+infura_key, account_index)
},
network_id: 3,
host: "127.0.0.1",
port: 8545,
gas: 4700000,
gasPrice: 30000000000,
}
},
// Directive for Solidity compiler, add optimization otherwise the Catalog is too big (gas intensive)
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
};