This project contains an implementation of a HTLC in Solidity. It requires installation of Hardhat. Please note: this codebase is an educational example only and has not been audited. See this article for a breakdown of the design.
To run the unit tests:
npm install
npx hardhat test