Skip to content

aliqbdoli/GrayChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌌 GrayVault & GrayToken

Welcome to GrayChain — a simple yet secure smart contract system built on Solidity.
This project contains two core components:

  1. GrayToken (GRE) – A custom ERC20 token with mint and burn functionality.
  2. GrayVault – A secure vault that lets users deposit and withdraw GRE tokens safely.

This project is designed for learning, experimenting, and showcasing Solidity development with a strong emphasis on security practices (using OpenZeppelin, Pausable, ReentrancyGuard, and SafeERC20).


✨ Features

  • GrayToken (GRE)

    • Standard ERC20 token
    • Minting and burning by the contract owner
    • Useful for testing vault interactions
  • GrayVault

    • Deposit GRE tokens into the vault
    • Withdraw tokens at any time
    • Emergency withdraw (only possible if the vault is paused)
    • Contract owner can pause/unpause
    • Protected against reentrancy
    • Events emitted for every critical action
  • Testing

    • Full unit tests and fuzz tests written in Foundry
    • Includes invariants to ensure vault safety
    • Covers edge cases like zero deposits, over-withdraws, and paused state

🛠️ Installation & Setup

Make sure you have Foundry installed.

Clone the repository:

git clone https://github.com/YOUR_USERNAME/GrayVault.git
cd GrayVault
forge build
forge test# GrayChain

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published