-
Notifications
You must be signed in to change notification settings - Fork 4
/
truffle-config.js
41 lines (39 loc) · 1.2 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
const HDWalletProvider = require('truffle-hdwallet-provider');
const infuraApikey = '323a28006e7f4470ae14d3670fe2e655';
let mnemonic = require('./mnemonic');
module.exports = {
networks: {
development: {
host: "127.0.0.1", // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none)
},
coverage: {
host: "127.0.0.1", // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none)
},
ropsten: {
provider: function () {
return new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/${infuraApikey}`);
},
network_id: 3,
gas: 7000000, // default = 4712388
gasPrice: 6000000000 // default = 100 gwei = 100000000000
},
kovan: {
provider: function () {
return new HDWalletProvider(mnemonic, `https://kovan.infura.io/v3/${infuraApikey}`);
},
network_id: 42,
gas: 7000000, // default = 4712388
gasPrice: 6000000000 // default = 100 gwei = 100000000000
},
},
mocha: {},
// Configure your compilers
compilers: {
solc: {
}
}
}