cantbeevil / merkle-distributor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Updateable @uniswap/merkle-distributor with SafeERC & test coverage

Forked from https://github.com/Uniswap/merkle-distributor

Added SafeERC capabilities for non-standard tokens Added full test coverage / reports

Update: Added Ownable, and the ability of the owner to:

  • Withdraw tokens
  • Update the Merkle Root
❗ Addresses can only claim one time even if they are airdropped more tokens by updating the merkle root

Installation:

Hardhat

yarn add global hardhat 

Running test

Testing

1. Running hardhat node

running hardhat node in your terminal

npx hardhat node

2. Running testing code

open another tab, and go to the testing code directory, run:

npx hardhat test

3. Running coverage

in the file directory, run:

npx hardhat coverage

About

License:GNU General Public License v3.0


Languages

Language:HTML 43.2%Language:TypeScript 42.8%Language:JavaScript 5.2%Language:CSS 4.7%Language:Solidity 4.1%