forked from vigneshncc/AnonymousSurvey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
34 lines (33 loc) · 920 Bytes
/
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
const path = require("path");
const HDWalletProvider = require("truffle-hdwallet-provider");
const MNEMONIC = '<SEED>';
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
contracts_build_directory: path.join(__dirname, "client/src/contracts"),
networks: {
development: {
host: "127.0.0.1",
port: 9545,
network_id: 5777 // Match any network id
},
ropsten: {
provider: function() {
return new HDWalletProvider(MNEMONIC, "https://ropsten.infura.io/v3/<project ID - Hash>")
},
network_id: 3,
gas: 6912390
},
rinkeby: {
provider: function() {
return new HDWalletProvider(MNEMONIC, "https://rinkeby.infura.io/v3/<project ID - Hash>")
},
network_id: 4,
gas: 6912390
},
rpc: {
host: "127.0.0.1",
post: 8545
}
}
};