truffle.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. var HDWalletProvider = require("truffle-hdwallet-provider");
  2. var mnemonic = "all chunk subway drop another cat human element drastic crazy glance sense";
  3. module.exports = {
  4. migrations_directory: "./migrations",
  5. networks: {
  6. development: {
  7. host: "127.0.0.1",
  8. port: 8545,
  9. network_id: "*", // Match any network id
  10. //from: "0xdC75EB0973F96b735087B6B2f20ef73595509354"
  11. },
  12. ropsten: {
  13. // provider: function() {
  14. // return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/btMU7XaHF8J9L2SYkqTA");
  15. // },
  16. provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/btMU7XaHF8J9L2SYkqTA"),
  17. gas: 2706583,
  18. network_id: '3',
  19. }
  20. }
  21. // See <http://truffleframework.com/docs/advanced/configuration>
  22. // to customize your Truffle configuration!
  23. // networks: {
  24. // development: {
  25. // host: "127.0.0.1",
  26. // port: 8545,
  27. // network_id: "*", // Match any network id
  28. // //from: "0xdC75EB0973F96b735087B6B2f20ef73595509354"
  29. // }
  30. // }
  31. };