-
Notifications
You must be signed in to change notification settings - Fork 26
/
truffle-config.js
50 lines (48 loc) · 1.48 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 path = require("path");
require("dotenv").config({path: `${__dirname}/.env`});
const HDWalletProvider = require("./client/node_modules/@truffle/hdwallet-provider");
const accountIndex = 0;
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
contracts_build_directory: path.join(__dirname, "client/src/contracts"),
networks: {
develop: {
host: "localhost",
port: 7545,
network_id: "5777"
},
ganache: {
provider: function () {
return new HDWalletProvider(process.env.DEVMNEMONIC, "http://127.0.0.1:7545", accountIndex)
},
network_id: 5777
},
goerli_infura: {
provider: function () {
return new HDWalletProvider(process.env.DEVMNEMONIC, "https://goerli.infura.io/v3/83301e4b4e234662b7769295c0f4a2e1", accountIndex)
},
network_id: 5,
skipDryRun: true
},
ropsten_infura: {
provider: function () {
return new HDWalletProvider(process.env.DEVMNEMONIC, "https://ropsten.infura.io/v3/83301e4b4e234662b7769295c0f4a2e1", accountIndex)
},
network_id: 3,
skipDryRun: true
},
mainnet_infura: {
provider: function () {
return new HDWalletProvider(process.env.PRODMNEMONIC, "https://mainnet.infura.io/v3/83301e4b4e234662b7769295c0f4a2e1", accountIndex)
},
network_id: 1,
skipDryRun: true
}
},
compilers: {
solc: {
version: "0.6.6"
}
}
};