Soil 2 Sauce

🌱 Soil2Sauce: A cozy farming and cooking game where you vibe with the simple life 🌾☕️

Soil 2 Sauce

Created At

ETHOnline 2025

Project Description

Soil2Sauce is a decentralized, panel-based farming simulation that runs on an EVM blockchain (for development it targets Ethereum testnets) and treats core game actions as on-chain transactions. It uses Solidity 0.8.28 for smart contracts and Hardhat 3 for building, testing, and deploying. The goal is to reimagine a classic browser farming game—planting crops, raising animals, crafting dishes, and earning currency—but with verifiable rules, programmable money, and player ownership of value.

How it's Made

I built Soil2Sauce as a fully on-chain farming simulator using Solidity 0.8.28 and Hardhat 3. The core contracts—GameToken, FarmLand, AnimalFarm, and Restaurant—run on the Ethereum Virtual Machine and handle all gameplay logic directly on-chain. GameToken is an ERC-20 (GCOIN) used as the unified in-game currency, while the other contracts mint and burn GCOIN as players perform actions like planting crops or earning restaurant revenue. Hardhat Ignition orchestrates deployments so roles and permissions are automatically configured, and the Node.js test runner with Viem handles integration testing against local and Sepolia networks.

Each time-based mechanic (crop growth, animal production, restaurant revenue) uses block timestamps instead of off-chain cron jobs, so all time checks happen during user-triggered transactions. This keeps gameplay verifiable without relying on external servers. The “hacky” part was encoding all farming logic into mappings and timestamp math to simulate real-time growth without any background process. The project also leverages OpenZeppelin libraries for token security and contract standardization, which allowed faster iteration and safer contract composition. Overall, everything—currency flow, item ownership, and time progression—was pieced together to make a trustless game loop entirely on-chain.

background image mobile

Join the mailing list

Get the latest news and updates