Skip to content

haclm/Solidity-IERC20-Example

Repository files navigation

Solidity-IERC20-Example

A simple ERC20 token smart contract implementation in Solidity, tested with TypeScript using Viem and Hardhat.

Features

  • ERC20 standard functions implemented: totalSupply, balanceOf, transfer, approve, allowance, transferFrom
  • Fully tested with TypeScript + Viem
  • Demonstrates deploying contracts, interacting with functions, and testing ERC20 behavior
  • Includes examples for approve and transferFrom patterns

Tech Stack

  • Solidity ^0.8.0
  • TypeScript
  • Hardhat (local Ethereum test network)
  • Viem (contract interaction library)
  • Node.js & npm

Installation

npm install && npx hardhat test
✔ IERC20 should be able to verify all variants values
✔ deployer should hava total supply balance
✔ transfer should work correctly
✔ approve and allowacne should work
✔ transferFrom should work correctly

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published