This project includes smart contracts and tests for performing batch transfers of ERC20 tokens based on Merkle proofs.
The MerkleBatchTransfers.sol
contract allows batch transfers of ERC20 tokens based on a Merkle proof. It provides a secure and efficient way to distribute tokens to multiple recipients in a single transaction.
The MyErc20.sol
contract is an example ERC20 token implementation for testing purposes only. It extends the ERC20
contract from the OpenZeppelin library and includes basic functionality for token transfers and approvals.
The MerkleBatchTransfers.ts
test file contains test cases written in TypeScript for the MerkleBatchTransfers
contract.
To get started with the project, follow these steps:
- Clone the repository:
git clone https://github.com/lgalende/merkle-batch-transfers.git
- Install the dependencies:
npm install
- Compile the smart contracts:
npx hardhat compile
- Run the tests:
npx hardhat test