truffle.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. external: {
  38. command: 'node ./compileHasher.js',
  39. targets: [
  40. {
  41. path: './build/contracts/Hasher2.json',
  42. },
  43. {
  44. path: './build/contracts/Hasher3.json',
  45. },
  46. ],
  47. },
  48. },
  49. plugins: ['truffle-plugin-verify', 'solidity-coverage'],
  50. }