About
This project enables secure, permissionless cross-chain token ( USDC ) swaps between EVM-based chain and the Sui blockchain using Hashed Timelock Contracts (HTLCs). It allows two parties on separate blockchains to swap assets without trusting a third party, using cryptographic hashlocks and time-based constraints.
The system consists of:
- 1inch official escrow contracts on base sepolia tesnet EVM to lock ERC-20 tokens with a hashlock and timelock.
- A corresponding HTLC Move module on the Sui testnet to lock SUI-based coins under the same conditions.
Relayer/Off-chain Service:
- A relayer built with Next.js and Ethers/Sui SDKs monitors both chains, detects events (like SrcEscrowCreated or DstEscrowCreated ), and facilitates sharing of secrets for claiming or refunding actions .
Swap Flow:
One party locks tokens on chain A with a hash of a secret.
The counterparty uses the same hash to lock tokens on chain B.
When the initiator claims the tokens on chain B by revealing the preimage (secret), the counterparty can use that same preimage to claim on chain A.
If the trade is not completed within the timelock, either party can reclaim their locked assets.
Testnet Simulation:
Fully implemented and tested on Sui testnet and Base Sepolia Testnet.
Includes a working backend relayer to simulate swaps and verify correctness.
This project demonstrates how atomic swaps can work across fundamentally different blockchain architectures (EVM vs. Move) and provides a base for building more advanced cross-chain systems.
Prizes
- 1inch · Extend Fusion+ to Sui · 5th place
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






