Skip to content

Foundry-based ERC20 airdrop demo with BagelToken and MerkleAirdrop using OpenZeppelin, showcasing efficient Merkle proof distribution over naive methods.

License

Notifications You must be signed in to change notification settings

Lyes-Boudjabout/merkle-erc20-airdrop

Repository files navigation

Merkle ERC20 Airdrop

Author: @Lyes-Boudjabout

License: MIT

Merkle ERC20 Airdrop – A gas-efficient, verifiable token distribution system leveraging Merkle Trees for secure claim verification. Built with Solidity and OpenZeppelin Contracts, this implementation enables eligible addresses to claim ERC20 tokens by providing a valid Merkle proof, ensuring scalable and tamper-proof airdrop processes without storing the entire recipient list on-chain.

Features

  • Gas-efficient bulk distribution
  • Merkle proof verification
  • One-time claim enforcement
  • ERC20 token support
  • OpenZeppelin security patterns

Requirements

  • git
    • You'll know you did it right if you can run git --version and you see a response like git version x.x.x
  • foundry
    • You'll know you did it right if you can run forge --version and you see a response like forge 0.2.0 (816e00b 2023-03-16T00:05:26.396218Z)

Run Locally

Clone the project

  git clone https://github.com/Lyes-Boudjabout/merkle-erc20-airdrop

Go to the project directory

  cd merkle-erc20-airdrop

Install dependencies

  forge install openzeppelin/openzeppelin-contracts Cyfrin/foundry-devops dmfxyz/murky

Foundry Documentation

https://book.getfoundry.sh/

📬 Reach Me Out

I’m always open to discussions, collaborations, and feedback. Feel free to connect with me through any of the channels below:

GitHub: @Lyes-Boudjabout | LinkedIn: Lyes Boudjabout | Email: [email protected]

About

Foundry-based ERC20 airdrop demo with BagelToken and MerkleAirdrop using OpenZeppelin, showcasing efficient Merkle proof distribution over naive methods.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published