-
Notifications
You must be signed in to change notification settings - Fork 2
/
truffle-config.js
35 lines (35 loc) · 1.02 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
require('babel-register');
require('babel-polyfill');
const dotenv = require("dotenv");
dotenv.config();
const HDWalletProvider = require("@truffle/hdwallet-provider");
module.exports = {
compilers: {
solc: {
version: "^0.6.0",
},
},
networks: {
mainnet: {
provider: function() {
return new HDWalletProvider(process.env.KEY_MAIN, "https://mainnet.infura.io/v3/" + process.env.INFURA_TOKEN)
},
network_id: 1,
skipDryRun: true,
},
ropsten: {
provider: function() {
return new HDWalletProvider(process.env.KEY_TEST, "https://ropsten.infura.io/v3/" + process.env.INFURA_TOKEN)
},
network_id: 3,
skipDryRun: true,
},
ganache: {
provider: function() {
return new HDWalletProvider(process.env.KEY_TEST, "http://127.0.0.1:8545")
},
network_id: 4,
skipDryRun: true,
}
}
};