Table of Contents

Crypto: adding support for ganache-cli

Hi guys! So as discussed at the end of my previous article, I want to add support for the deployment/usage of ganache-cli to be able to test my contracts effectively. This is what we will focus on in this new post.

Adding support to deploy nodejs environment

Running ganache from command line

Testing PairChecker on BSC ganache fork

In the process I also started to use https://account.getblock.io/ as provider url: this was necessary to avoid those continuous “missing trie node” errors in ganache because some archive node was not available anymore in the base node. Update: well I spoke too quickly, I still eventually get that error anyway with getblock.io, so no luck.

Studying arb setup duration

A duration of “-1” in the graph above is the default value I'm writing when I'm not in “dry-run” mode and I'm actually trying to the arbitrage: in that case I will never when the arb setup will “naturally vanish” so I'm reporting a negative value to be able to separate those entries if I have to at some point.

Conclusion