-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtruffle.js
More file actions
34 lines (31 loc) · 813 Bytes
/
truffle.js
File metadata and controls
34 lines (31 loc) · 813 Bytes
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 HDWalletProvider = require('truffle-hdwallet-provider');
const fs = require('fs');
let secrets;
let mnemonic = '';
if (fs.existsSync('secrets.json')) {
secrets = JSON.parse(fs.readFileSync('secrets.json', 'utf8'));
mnemonic = secrets.mnemonic;
}
module.exports = {
networks: {
development: {
host: 'localhost',
port: 8545,
gas: 4500000,
gasPrice: 25000000000,
network_id: '*', // Match any network id
},
rinkeby: {
provider: new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io'),
network_id: '*',
gas: 4500000,
gasPrice: 25000000000,
},
adchain: {
provider: new HDWalletProvider(mnemonic, 'https://testrpc.adchain.com:443'),
network_id: '*',
gas: 4500000,
gasPrice: 25000000000,
},
},
};