truffle.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. module.exports = {
  2. // Uncommenting the defaults below
  3. // provides for an easier quick-start with Ganache.
  4. // You can also follow this format for other networks;
  5. // see <http://truffleframework.com/docs/advanced/configuration>
  6. // for more details on how to specify configuration options!
  7. //
  8. networks: {
  9. // development: {
  10. // host: '127.0.0.1',
  11. // port: 8545,
  12. // network_id: '*',
  13. // },
  14. // test: {
  15. // host: "127.0.0.1",
  16. // port: 7545,
  17. // network_id: "*"
  18. // }
  19. coverage: {
  20. host: 'localhost',
  21. network_id: '*',
  22. port: 8554, // <-- If you change this, also set the port option in .solcover.js.
  23. gas: 0xfffffffffff, // <-- Use this high gas value
  24. gasPrice: 0x01, // <-- Use this low gas price
  25. },
  26. },
  27. compilers: {
  28. solc: {
  29. version: '0.6.12',
  30. settings: {
  31. optimizer: {
  32. enabled: true,
  33. runs: 200,
  34. },
  35. },
  36. },
  37. },
  38. plugins: ['truffle-plugin-verify', 'solidity-coverage'],
  39. }