-
Notifications
You must be signed in to change notification settings - Fork 6
/
truffle.js
33 lines (30 loc) · 778 Bytes
/
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
const HDWalletProvider = require('truffle-hdwallet-provider');
const path = require('path');
require('dotenv').config({ path: path.join(__dirname, '.env.development') });
const infuraKey = process.env.INFURA_KEY;
const mnemonic = process.env.DEPLOY_WALLET_MNEMONIC;
module.exports = {
networks: {
development: {
contracts_build_directory: `{__dirname}/build/devContracts`,
host: '127.0.0.1',
port: 8545,
network_id: '*'
},
coverage: {
host: 'localhost',
network_id: '*',
port: 8555,
gas: 0xfffffffffff,
gasPrice: 0x01
},
rinkeby: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://rinkeby.infura.io/${infuraKey}`
),
network_id: 4
}
}
};