-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtruffle-config.js
More file actions
51 lines (46 loc) · 1.03 KB
/
truffle-config.js
File metadata and controls
51 lines (46 loc) · 1.03 KB
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
/* NEXT.EXCHANGE SMART CONTRACT CONFIG */
var HDWalletProvider = require("truffle-hdwallet-provider");
const MNEMONIC = '';
const Web3 = require("web3");
const web3 = new Web3();
module.exports = {
//plugins: ["truffle-security"],
compilers: {
solc: {
version: "^0.6.0",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
},
networks: {
development: {
host: "127.0.0.1",
port: 9545,
network_id: "*"
},
mainnet: {
provider: function() {
return new HDWalletProvider(MNEMONIC,"https://mainnet.infura.io/v3/")
},
network_id: '1',
gas: 8000000,
gasPrice: 41000000000,
timeoutBlocks: 200,
skipDryRun: true
},
ropsten: {
provider: function() {
return new HDWalletProvider(MNEMONIC,"https://ropsten.infura.io/v3/")
},
network_id: '3',
gas: 8000000,
gasPrice: web3.utils.toWei('41', 'gwei'), // 41 GWEI
timeoutBlocks: 200,
skipDryRun: true
},
}
};