-
Notifications
You must be signed in to change notification settings - Fork 8
/
truffle-config.js
50 lines (49 loc) · 1.3 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
require('dotenv').config();
var HDWalletProvider = require('truffle-hdwallet-provider');
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*", // Match any network id
gas: 0xfffffffff,
},
pools: {
host: "127.0.0.1",
port: 8545,
network_id: "*", // Match any network id
gas: 10000000,
},
kovan: {
networkCheckTimeout: 10000,
provider: function() {
return new HDWalletProvider(process.env.PRIVATE_KEY_KOVAN, "https://kovan.infura.io/v3/" + process.env.INFURA_API_KEY)
},
network_id: 42,
from: process.env.EXCHANGE_LAUNCH_ADDRESS_KOVAN,
gasPrice: 5000000000,
gas: 12467770,
timeoutBlocks: 220
// skipDryRun: true,
},
mainnet: {
provider: function() {
return new HDWalletProvider(process.env.PRIVATE_KEY_MAINNET, "https://mainnet.infura.io/v3/" + process.env.INFURA_API_KEY)
},
network_id: 1,
from: process.env.EXCHANGE_LAUNCH_ADDRESS_MAINNET,
// gasPrice: 50000000000,
// gas: 12000000,
timeoutBlocks: 220
},
},
compilers: {
solc: {
version: "0.7.6",
settings: {
optimizer: {
enabled: true,
runs: 200
}}
}}
};