TrueFi Engineering
Published in

TrueFi Engineering

Announcing Doppelganger

Automated testing is the cornerstone of modern software engineering. It allows developers to quickly verify if a piece of code works according to specification. This again allows for rapid iteration on both the design and implementation of a work. Mature programming languages come with a selection of test runners, assertion engines and mock libraries.

The Ethereum community made a good job of repurposing some of this tools. But until now we were missing an important piece of the testing puzzle. We were unable to easily create mocks of smart contracts. Which in turn made it almost impossible for us to write proper unit tests quickly. I’m happy to announce that with the release of Doppelganger we now have our first smart contract mocking solution.

To illustrate how Doppelganger can be used to help you test, let’s look at following smart contract:

In our tests we will be using Doppelganger to mock the ERC20 passed into the constructor.

Doppelganger was conceived as a submission for the #Cryptolife hackathon by Status, that took place October 26–29, 2018 in Prague. Where it received special recognition in the infrastructure track.

Follow us GitHub, and stay tuned as work on Doppelganger continues.




Team working on TrueFi talks about OSS (useDApp and Waffle), good software engineering practices and more!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Antoni Kędracki

Antoni Kędracki

CTO at Ethworks

More from Medium

Web3 Rummy: WebComponent SPA Part 2/4

Rust Async Actix-Web Middleware

Distributed Ledger Frameworks Comparison: Corda vs Hyperledger Fabric

Generating a JWT token in native NodeJS