Closed davidmurdoch closed 11 months ago
Latest commit: |
78bbafc
|
Status: | β Deploy successful! |
Preview URL: | https://1f639a07.ganache.pages.dev |
Branch Preview URL: | https://remove-filecoin.ganache.pages.dev |
@jeffsmale90 I'm π on all your suggestions, as long as they still work π
I'm π on all your new suggestions. Feel free to make the changes if you'd like.
Refactor ganache to allow for external plugins, aka "flavors".
Ganache Flavors are plugins that can be used to launch test networks for chains other than Ganache's built-in Ethereum networks. They are loaded at runtime via Ganache's
--flavor
flag.We first shipped this as an internal feature in Q2 2021 with the
filecoin
flavor. We are now externalizing this feature by providing a way for the community to build their own ganache flavors.This first external implementation is experimental. We'd like to collect feedback from users and get an idea for what to add or change to the new
@ganache/flavor
package. If you don't like something about this interface or feel like it's missing things (it is!) please open a new issue and let us know about it. We'd be happy to chat about this or even hop on a short call to discuss what you are looking for.What this is not: this is not a way of extending our Ethereum implementation. While we'd love to make our default Ethereum flavor even more flexible and configurable, this is not what this change does.
To create a new flavor, you must create a new package that exports your "Flavor". A flavor is a JavaScript object that implements our Flavor interface.
Here is an example of a "Hello World"-style flavor in TypeScript:
Check out the example implementation for a more-in-depth example.