Mockchain Logo
Faster Smart Contract Iteration with Mockchain

Faster Smart Contract Iteration with Mockchain

7/7/2024
5 min read

Continuous development of smart contracts is more painful than it should be.

You write a contract, test it locally, manually deploy it to a testnet, hack together some scripts to poke and inspect it, verify it on Etherscan, and hope it's behaving as expected. That's if you even get test ETH from a working faucet.

Then, when you add new functionality, you have to do it all again, and update every reference to the new address across your codebase.

Mockchain simplifies all of that.

Versioning and Deployment Tracking

Mockchain's Project Contracts System turns each smart contract in your project into a fully managed unit, complete with version and deployment tracking, a dedicated dashboard, and built-in dev tools. It's all built into Mockchain's ultra-realistic private testnet - The Stagenet.

When you connect a GitHub repo to Mockchain, each contract in it is automatically turned into a Project Contract. From there, everything just works. When you push a new version to GitHub, a new version is created in Mockchain. Have an existing deployment of that version? It's linked and tracked, automatically. Deploy that version later? It's linked and tracked too.

Mockchain handles versioning and deployment tracking out-of-the-box, no manual steps required.

The Power of Project Contracts

The Project Contract system is more than just version and deployment tracking. Each contract comes with its own dedicated portal, complete with rich dashboards and tailored dev tools built for rapid iteration.

Key Features:

  • Analytics Tracker - Record and visualise ETH/ERC20 balances or function return values over time in graphs and tables
  • State Inspector - View any storage variable, including non-public ones
  • Interaction UI - Auto-generated front-end to call contract functions directly
  • Version Manager - Navigate between versions and deployments instantly
  • Recent Calls Log - See a timeline of interactions for quick debugging

All of this runs on Mockchain's stagenet, a private testnet that replays real mainnet blocks, giving you a production-like environment to test in safely.

The Mockchain Workflow

Mockchain's Project Contract system makes smart contract iteration fast and structured, allowing you to rapidly test your contracts in a true-to-life test blockchain:

  1. Create a project to spin up your own private, high-fidelity Stagenet
  2. Connect a GitHub repo to automatically detect and register your contracts as Project Contracts
  3. Push code changes - each update creates a new version, ready for deployment and tracking
  4. Deploy contracts - Mockchain automatically links deployments to the correct version
  5. Use the built-in tools to inspect state, track behavior, and verify correctness in a real, mainnet-like environment

Ready to streamline your smart contract development? Get started with Mockchain today.

Get Started:

Create a Stagenet – Get an ultra-realistic testnet, instantly
Read the Docs – Learn how to get the most out of Mockchain
Join Our Telegram – Chat with the team, get help, and ask for features
Follow our Twitter – Stay updated with the latest news and features