Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building an Merkle Tree Airdrop Contract using Solidity on Foundry #144

Open
estheroche opened this issue Oct 18, 2023 · 1 comment
Open

Comments

@estheroche
Copy link

Tutorial: Building an Merkle Tree Airdrop Contract using Solidity on Foundry

  1. Introduction
    Airdrops involve distributing tokens to a predefined set of addresses. A Merkle tree is a data structure used to efficiently prove membership in a dataset, which is essential for airdrop verification.
  2. Setting Up the Development Environment
    Before proceeding, ensure you have the following:
  3. Foundry
  4. Smart Contract Structure
    Define the necessary data structures and functions for the airdrop contract, including storing recipient addresses and token amounts.
  5. Creating a Merkle Tree
    Generate a Merkle tree using the recipient addresses and corresponding token amounts to efficiently verify airdrop eligibility.
  6. Implementing the Airdrop Contract
    Write the Solidity code for the airdrop contract, including functions to check eligibility and distribute tokens based on the Merkle tree proof.
  7. Deploying and Testing the Contract using foundry cheat codes
    Deploy the airdrop contract to an Ethereum network and test its functionality using sample data to ensure it works as expected.

Some links to my published articles are as follow:

https://medium.com/coinsbench/step-by-step-tutorial-on-how-to-develop-and-deploy-smart-contracts-with-foundry-8ca5d8f0b36f

https://medium.com/coinsbench/setting-up-the-venom-smart-contract-development-environment-777dfc217587

https://medium.com/@estheraladioche569/chat-feature-in-coinbase-wallet-mobile-app-45ff5623fba3

@akegaviar
Copy link
Collaborator

hey @estheroche this is a non-paid program right now. Let me know if still interested.

@akegaviar akegaviar changed the title [PROPOSAL] Building an Merkle Tree Airdrop Contract using Solidity on Foundry May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants