truffle-config.js 614 B

123456789101112131415161718192021222324252627282930313233
  1. require('chai/register-should');
  2. const solcStable = {
  3. version: '0.5.7',
  4. };
  5. const solcNightly = {
  6. version: 'nightly',
  7. docker: true,
  8. };
  9. const useSolcNightly = process.env.SOLC_NIGHTLY === 'true';
  10. module.exports = {
  11. networks: {
  12. development: {
  13. host: 'localhost',
  14. port: 8545,
  15. network_id: '*', // eslint-disable-line camelcase
  16. },
  17. coverage: {
  18. host: 'localhost',
  19. network_id: '*', // eslint-disable-line camelcase
  20. port: 8555,
  21. gas: 0xfffffffffff,
  22. gasPrice: 0x01,
  23. },
  24. },
  25. compilers: {
  26. solc: useSolcNightly ? solcNightly : solcStable,
  27. },
  28. };