Skip to content

itsdevbear/solmate-merkle-drop

Repository files navigation

ERC20/ERC721 MerkleDrop

Gas efficient ERC20 and ERC721 implementations w/Merkle Tree Redemption Method.

DISCLAIMER I have not tested this or done anything I just wrote it in like 30 seconds, if someone wants to submit a PR for tests that'd be hype.

Generating Proofs

https://github.com/miguelmota/merkletreejs-solidity

Features

Testing Utilities

Includes a Utilities.sol contract with common testing methods (like creating users with an initial balance), as well as various other utility contracts.

Preinstalled dependencies

ds-test for testing, forge-std for better cheatcode UX, and solmate for optimized contract implementations.

Linting

Pre-configured solhint and prettier-plugin-solidity. Can be run by

npm run solhint
npm run prettier

CI with Github Actions

Automatically run linting and tests on pull requests.

Default Configuration

Including .gitignore, .vscode, remappings.txt

Acknowledgement

Inspired by great dapptools templates like https://github.com/gakonst/forge-template, https://github.com/gakonst/dapptools-template and https://github.com/transmissions11/dapptools-template

About

ERC20 + ERC721 contracts that support a merkle tree drop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published