-
Notifications
You must be signed in to change notification settings - Fork 5
/
truffle-config.js
57 lines (55 loc) · 1.36 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
const path = require('path');
const HDWalletProvider = require("@truffle/hdwallet-provider");
const config = require('./config.json');
module.exports = {
contracts_build_directory: path.join(__dirname, config.CONTRACTS_BUILD_DIRECTORY),
networks: {
development: {
host: '127.0.0.1',
port: 7545,
network_id: '*'
},
ropsten: {
provider: function() {
return new HDWalletProvider(config.MNEMONIC, 'https://ropsten.infura.io/v3/' + config.INFURA_API_KEY);
},
network_id: 3,
gas: 7465030,
gasPrice: 10000000000
},
rinkeby: {
provider: function() {
// or use http://rinkeby.dappnode:8545
return new HDWalletProvider(config.MNEMONIC, 'https://rinkeby.infura.io/v3/' + config.INFURA_API_KEY);
},
network_id: 4,
gas: 7465030, // 6465030
gasPrice: 10000000000
},
rinkeby_DAppNode: { // Requires VPN connection
provider: () => new HDWalletProvider(config.MNEMONIC, 'http://my.rinkeby.dnp.dappnode.eth:8545'),
network_id: '*',
gas: 7465030,
gasPrice: 10000000000,
},
goerli: {
provider: function() {
return new HDWalletProvider(config.MNEMONIC, 'https://goerli.infura.io/v3/' + config.INFURA_API_KEY);
},
network_id: 5,
gas: 7465030,
gasPrice: 10000000000
}
},
compilers: {
solc: {
version: "0.5.17",
settings: {
optimizer: {
enabled: true,
runs: 200
},
}
}
}
};