-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
23 lines (22 loc) · 797 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
require('dotenv').config();
const Web3 = require('web3');
var HDWalletProvider = require("truffle-hdwallet-provider");
const transmuteConfig = require('./src/transmute-config');
module.exports = {
migrations_directory: './migrations',
networks: {
development: {
provider: new Web3.providers.HttpProvider(
transmuteConfig.web3Config.providerUrl
),
network_id: '*' // Match any network id
},
// Providers using HDWallet need to be wrapped in a function: https://truffleframework.com/docs/advanced/configuration#providers
rinkeby: {
provider: function () {
return new HDWalletProvider(process.env.REACT_APP_TESTNET_MNEMONIC, `https://rinkeby.infura.io/${process.env.REACT_APP_INFURA_API_TOKEN}`);
},
network_id: 4
}
}
};