This is the example repository for my Medium article on Merkle Trees.
.
├── lib -- Solidity dependencies
│ ├── forge-std -- Forge standard library
│ ├── murky -- Efficient Merkle Tree implementation
│ └── openzeppelin-contracts -- OpenZeppelin!
├── script -- Additional Foundry and Hardhat scripts and utilities
├── src -- Solidity source, containing a single Airdrop.sol
└── test -- Unit tests
├── foundry -- Foundry specific tests (Solidity)
└── hardhat -- Hardhat integration tests (TypeScript)
docker build -t merkletree-sol .
docker run --rm -it merkletree-solDependencies:
Setup libraries and modules:
foundry install
bun installRun foundry tests: forge test
Run integration tests: bun run hardhat test