Video thumbnail

Solidity Cell

Escape room meets Solidity: hack your way out using Hardhat, subgraphs, and 0G AI.

Solidity Cell

Created At

ETHGlobal Cannes

Project Description

Solidity Cell is a command-line smart contract escape room, built entirely on Hardhat v3 and powered by its viem built-in tool. Players must solve a sequence of Ethereum puzzles — each modeled after real-world vulnerabilities like storage slot probing, ABI mispacking, and signature spoofing.

Each puzzle is scripted in TypeScript, leveraging Hardhat’s new viem-native API for ultra-fast iteration and direct EVM control. Your progress is tracked on-chain, indexed via a custom Subgraph, and guided by hints from 0G AI — a decentralized inference network that acts as your cryptographic copilot.

There’s no frontend. The CLI is the game. It’s a minimal, immersive, and honest tool for learning low-level Solidity —with Hardhat, The Graph, and 0G.

🧠 Learn. 🛠️ Hack. 🧩 Escape.

How it's Made

Solidity Cell is built entirely on Hardhat v3, using its new viem-native scripting interface to create a fully command-line escape room experience. Each puzzle is solved via TypeScript scripts that interact directly with deployed contracts — enabling low-level EVM manipulation, rapid testing, and precise error feedback.

We leverage:

Hardhat’s local network simulation to model vulnerabilities like storage slot probing, reentrancy, and signature validation. Also local hardhat tests.

The Hardhat console for real-time storage inspection and contract debugging.

The viem API for modern, frictionless scripting and contract interaction.

For data-driven challenges, I made integration with The Graph protocol:

A custom subgraph (created with studio) indexes emitted events from the SolidityCell contract to track progress.

A production subgraph (Super Accounts) is queried for cross-project data validation.

The Graph Token API is used in-game to fetch live token balances to add a bit more variety inside Graph.

And with 0G, we take things a step further: If a player gets stuck, our scripts call 0G’s decentralized inference network to generate live, context-aware hints using verifiable on-chain AI — directly inside the terminal.

There is no frontend. The command line is the interface. It’s a tool-first, developer-native design that showcases Hardhat, The Graph, and 0G.

background image mobile

Join the mailing list

Get the latest news and updates