Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Truffle v0.3.0!

Compare
Choose a tag to compare
@tcoulter tcoulter released this 06 Jan 23:31
· 16046 commits to master since this release

Happy New Year folks. A new year equals a new version of Truffle. Not bad.

Why the version bump?


Truffle v0.3.0 comes with a greater focus on comprehension as well as better management of dapp versions between environments (think, different blockchains). It also comes with loads of new features -- hats off to the people in the "Special Thanks" section below -- and given all the changes, we figured a version bump was necessary. You _will_ need to reorganize some files in your dapp in order to use version 0.3.0, but don't worry, it's easy. We've written migration instructions just for you!

New Features


  • Built versions of your dapp are now saved per environment! This means you can deploy to your private blockchain, Morden and the main network, and maintain the built version of your dapp for each one, addresses, contracts and all. This required moving the old ./build and ./dist directories into their respective environment directories, but it was well worth it. Note that other file restructuring was done as well. Be sure to check out the migration instructions.
  • All dapps get Mist integration, free. That is, all dapps that use the Truffle build system get Mist integration without doing any extra work. The build system will bootstrap your dapp and automatically detect Mist (or any other wallet that provides the web3 object) if it's available. Splendid!
  • Tests run up to 50% faster, in some cases. If you're using @tcoulter's version of EtherSim or the pyethereum TestRPC, then Truffle can take advantage of EVM snapshotting within your tests to do away with excess deploys. In some cases, this has improved total test run time by up to 50%. You'll see more of a speedup the more test files you have.
  • Event logs are displayed on test failures. If a test fails and your Ethereum client supports events, Truffle will now list the events fired during the test run so you can better debug what happened.

Special Thanks


I'd like to thank @chetan for his great work beefing up our test infrastructure; @FlySwatter for the bugs and suggestions; and everyone who aided the release of Truffle v0.3.0.

Also, shout out to @josiahwood for getting truffle working on Cloud9.