DeFi Wonderland

DeFi Wonderland

An activist fund meets a Solidity army.

defi.sucks
Share

DeFi Wonderland Introduction

DeFi Wonderland, an activist fund meets a Solidity army. We spot money legos, we push our code, and we’re off to something else. We're all mad here. Smock is the Solidity mocking library. It’s a plugin for hardhat that can be used to create mock Solidity contracts entirely in JavaScript (or TypeScript!). With Smock, it’s easier than ever to test your smart contracts. You’ll never have to write another mock contract in Solidity again. Smock is inspired by sinon, sinon-chai, and Python’s unittest.mock. Although Smock is currently only compatible with hardhat, we plan to extend support to other testing frameworks like Truffle.