truffle.js 755 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * NB: since truffle-hdwallet-provider 0.0.5 you must wrap HDWallet providers in a
  3. * function when declaring them. Failure to do so will cause commands to hang. ex:
  4. * ```
  5. * mainnet: {
  6. * provider: function() {
  7. * return new HDWalletProvider(mnemonic, 'https://mainnet.infura.io/<infura-key>')
  8. * },
  9. * network_id: '1',
  10. * gas: 4500000,
  11. * gasPrice: 10000000000,
  12. * },
  13. */
  14. module.exports = {
  15. // See <http://truffleframework.com/docs/advanced/configuration>
  16. // to customize your Truffle configuration!
  17. migrations_directory: './migrations',
  18. networks: {
  19. development: {
  20. host: 'localhost',
  21. port: 7545,
  22. network_id: '*', // Match any network id
  23. gasPrice: 1,
  24. gas: 8000000,
  25. },
  26. },
  27. }