ganache

Documentation for eth_defi.ganache module.

Ganache EVM test backend and mainnet forking.

This module contains utilities to automatically launch and manipulate ganache-cli process.

You need to have ganache-cli installed in order to use these.

How to install ganache-cli using npm:

npm install -g ganache

For more information about Ganache see

Most of this code is lifted from Brownie project (MIT) and it is not properly cleaned up yet.

Module Attributes

EVM_DEFAULT

The default hardfork rules used by Ganache

Functions

fork_network(json_rpc_url[, ...])

Creates the ganache "fork" of given JSON-RPC endpoint.

Classes

GanacheLaunch

Control ganache-cli processes launched on background.

Exceptions

InvalidArgumentWarning

Warned when there are issued with ganache-cli command line.

NoGanacheInstalled

We could not launch because ganache-cli command is missing