Skip to content

beiweiprogrammer/ERC20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC20

The test environment is supported by Foundry

This project is intended to implement ERC20 standard using solidity from scratch. The key function of ERC20 includes

  • constructor,
  • transfer,
  • burn,
  • mint,
  • approve,
  • transferFrom,
  • increaseAllowance,
  • decreaseAllowance,
  • permit.
    Also, to evaluate the correctness of my contract, I also designed a few functions to test them.

Project Structure

  ├── Counter.sol
  ├── MaliciousSpender.sol
  ├── HomeworkERC20.sol
  ├── ReentrancyAttacker.sol

test/
  ├── Counter.t.sol
  ├── HomeworkERC20.t.sol

Setup

Install dependencies:

forge install
forge test -vvv

Tech Stack

- Foundry
- OpenZeppelin Contracts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published