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

WIP: Add Community Token Implementation #82

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

defijesus
Copy link

@defijesus defijesus commented Dec 5, 2022

WIP - please don't merge & roasting is encouraged

This PR adds a new Token implementation that make the following modifications:

  • Adds bytes32 merkleRoot, uint256 auctionOffset , bool isClaimOpen & mapping(uint256 => bool) claimed to Storage.
  • Adds onlyOwner functions to modify merkleRoot, auctionOffset & isClaimOpen.
  • Adds 2 public payable claim functions that verify merkle proof and mint respective token to respective recipient
  • Adds public rescueEth function to send all Token ETH balance to Treasury
  • Modifies mint function to use auctionOffset

This results in an existing NFT community to create a snapshot of holders, create a merkle tree with holders list, each community member can now claim a their corresponding token and enjoy all the nouns-builder ecosystem goodies.

The test suit contains full coverage of modifications + upgradeability.

TODO:

  • - Allow multiple NFT claims in single function call

papa bless ☀️

@defijesus defijesus changed the title WIP: Add Community Token implementation & tests WIP: Add Community Token Implementation Dec 5, 2022
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

Successfully merging this pull request may close these issues.

1 participant