v2.0.0 - Chocolate Birthday Cake 🎂
The snow is melting and birds are chirping once again. 🐣 A mild breeze wafts over the smell of freshly baked chocolate cake – it's finally ready! 🎂
Version 2.0.0 adds a number of new features aimed at making dapp development easier and more akin to the modern development experience we expect from other platforms. We hope you enjoy this tasty treat and thank the community for their work and support in getting this release out of the oven!
Contents
New Features
Workspaces
You can now save your development blockchains in workspaces. These workspaces contain the configuration of your development chain, along with any Truffle projects you've provided to decode contract and event data. We haven't forgotten the convenience of a one-click blockchain though! Select the QUICKSTART
option on the home screen for a familiar Ganache initialization experience.
📖 Pertinent Docs:
Contract State Decoding
The new Contracts page contains a list of your smart contracts by project. At a glance we can see the contract's name, address, transaction count, and deployment status.
📖 Pertinent Docs:
Event Decoding
The new events page shows the events that have fired during this chain's life. We'll try to decode the events if possible. A decoded event will show its name, the emitting contract, hash of the transaction it appears in, log index, and block time. Encoded events will not display decoded names (they appear instead with the generic name Encoded Event) or contract names.
📖 Pertinent Docs:
New Options
Hardfork
Ganache now features an option to change the hardfork. Possible options are: Petersburg, Constantinople, and Byzantium.
Changelog (Since 2.0.0-beta.2
)
New Features
- #1107 Add hardfork indicator to status bar (@davidmurdoch)
- #1109 Update ganache-core to v2.4.0 and add Byzantium + Constantinople hardfork options (@davidmurdoch)
- #1142 Update to [email protected] and add Petersburg fork default setting (@davidmurdoch)
Bug Fixes/Improvements
- #1081 Add ESLint and Prettier (@honestbonsai)
- #1083 Add React Storybook (@honestbonsai)
- #1086 Move Truffle project loading to separate process, removing dependency on OS version of Node (@seesemichaelj)
- #1087 Prettier auto-formatting (@honestbonsai)
- #1088 Manual formatting based on Prettier recommendations (@honestbonsai)
- #1089 Fix Google Analytics Reporting for 2.x (@seesemichaelj)
- #1096 Fix/not linking truffle projects (@honestbonsai)
- #1100 Fix search for tx hash inside tx screen not working (@honestbonsai)
- #1103 Add Jest (@honestbonsai)
- #1104 Improved Truffle project linking instructions (@honestbonsai)
- #1130 Mac: Fix not closing all processes when closing app from dock (@honestbonsai)
- #1145 Fix No Transactions not being centered (@honestbonsai)
- #1149 Ensure the Truffle Project Loader can be loaded in both development and production (@seesemichaelj)
- #1151 Fix/react infinite list (significant resource reduction on Logs page) (@honestbonsai)
- #1153 Write Truffle Project Loader Script to Temp Directory to Circumvent Windows Permission Issues (@seesemichaelj)
- #1163 Fix/mac truffle link (@honestbonsai)
Acknowledgements
We mentioned this in the beta.1 notes, but it bears repeating: Ganache 2.0 has been on the drawing board for awhile, and it has taken several months to complete. We'd like to thank the community for their support and patience while we implemented these features! Also thank you to the devs who made this vision happen: @seesemichaelj, @honestbonsai, @adrianmcli, @nicholasjpaterno, @eshaben and @davidmurdoch. 🤗