@arr00/merkle-distributed-nft (forked from @uniswap/merkle-distributor)
Please note, these contract changes have not been audited
Local Development
The following assumes the use of node@>=10
.
Install Dependencies
yarn
Compile Contracts
yarn compile
Run Tests
yarn test
Usage
MerkleDistributedNFT
has a claim virtual function which is similar to the merkle distributor function. Users eligable for the NFT drop should be designated a 1 value when generating the merkle tree. It is not possible to distribute more than 1 NFT to each address using this code. The NFTs are distributed starting at ID 1 and incrementing for each claim.
Customization
Contracts can implement the MerkleDistributedNFT
and override the claim function to add more claiming eligibility criteria (view CompoundNFTv0
for an example of this usage).