-
Notifications
You must be signed in to change notification settings - Fork 61
/
truffle-config.js
44 lines (43 loc) · 1.22 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
// const HDWalletProvider = require('@truffle/hdwallet-provider');
// const mnemonic = 'insect minimum meadow eight hard voyage buzz cotton shrimp time vague banana';
// const infura_id = '68e794f7333f47c2855ee7491aefeef4';
module.exports = {
plugins: ["solidity-coverage"],
networks: {
development: {
host: "127.0.0.1",
port: 9545,
gasLimit: 8000000,
network_id: 5777
},
/* rinkeby: {
provider: () => new HDWalletProvider(mnemonic, `https://rinkeby.infura.io/v3/${infura_id}`),
network_id: 4,
skipDryRun: true
},
ropsten: {
provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/${infura_id}`),
network_id: 3,
skipDryRun: true
}*/
},
mocha: {
useColors: true,
reporter: "eth-gas-reporter",
reporterOptions: {
currency: "USD",
gasPrice: 5
}
},
compilers: {
solc: {
version: "^0.8.14",
settings: {
optimizer: {
enabled: true,
runs: 200
},
}
}
}
};