-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathtruffle-config.js
47 lines (46 loc) · 1.04 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
const HDWalletProvider = require('@truffle/hdwallet-provider');
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*",
gas: 6721975,
},
ropsten: {
provider: function () {
const secret = require("./secret.json");
return new HDWalletProvider(secret.mnemonic, `https://ropsten.infura.io/v3/${secret.infuraKey}`, 1);
},
network_id: 3,
gas: 4721975,
skipDryRun: true,
gasPrice: 23000000000,
},
mainnet: {
provider: function () {
const secret = require("./secret.json");
return new HDWalletProvider(secret.mnemonic, `https://mainnet.infura.io/v3/${secret.infuraKey}`);
},
network_id: 1,
gas: 6721975,
skipDryRun: true,
gasPrice: 75000000000,
},
},
mocha: {
timeout: 1200000
},
plugins: ["solidity-coverage"],
compilers: {
solc: {
version: "0.5.16",
settings: {
optimizer: {
enabled: true,
runs: 150
},
}
}
}
}