Back to Projects

Blockchain

Token Swap

Hardhat-powered token swap sample with deployable contracts

Token Swap project banner

Overview

Token Swap is a Hardhat-centered learning project that demonstrates sample contracts, tests, and Ignition-based deployment for a basic swap flow.

It solves the need for a clean reference when practicing Solidity tooling — compile, test, and deploy without a bloated monorepo.

Aimed at developers building confidence with Hardhat before larger DeFi-style apps.

My Role

Implemented the sample contracts, tests, Ignition deploy module, and the Next.js demo surface for interacting with the deployment.

Tech Stack

Next.jsJavaScript

Key Features

  • Sample Solidity contract for swap-related logic
  • Automated contract tests in the Hardhat suite
  • Hardhat Ignition module for repeatable deploys
  • Next.js front end for demo interaction
  • Clear project layout separating contracts and UI

Challenges & Solutions

  • Challenge

    Getting comfortable with Hardhat Ignition deploy modules versus ad-hoc scripts.

    How I solved it

    Followed Ignition's module pattern so redeploys stayed deterministic and easier to demo.

  • Challenge

    Keeping the front end pointed at the latest deployed address after local resets.

    How I solved it

    Centralized deployed addresses in config updated after each Ignition run.