Bubble Bridge

Cross-chain swaps made simple: a lightweight HTLC framework for atomic token transfers.

Repo
Bubble Bridge banner

About

This project implements a lightweight cross-chain swap framework based on Hash Time-Locked Contracts (HTLCs), enabling secure and trustless token transfers between heterogeneous blockchains like Ethereum and Sui. The system is designed to be modular, developer-friendly, and secure by design.

It consists of:

1- A smart contract layer on both chains (e.g., EVM and Sui) that handles locking, claiming, and refunding of tokens based on hash preimages and timeouts. 2- A TypeScript SDK that simplifies hash lock generation, balance checking, HTLC creation, and transaction monitoring. 3- Testing and simulation scripts to deploy and verify HTLC functionality in local or testnet environments. 4- A planned browser-based UI to let users initiate atomic swaps without interacting directly with the contract layer.

How it's made

The project is built with Move and Solidity smart contracts to implement HTLC logic on Sui and Ethereum, respectively. On the Sui side, the Move contract handles Coin<T> types, time locks, and swap state. The contract securely holds tokens in escrow within the Swap<T> struct and releases or refunds them based on hash preimages and timeouts.

While Balance<T> is often used for holding coins in system modules, this project intentionally uses Coin<T> directly in the Swap struct to preserve atomicity and simplicity. By allowing Coin<T> in struct fields (via #[allow(lint(coin_field))]), the contract provides a minimal and auditable HTLC design tailored for cross-chain interaction scenarios.

The developer tooling is written in TypeScript using the Sui SDK, and leverages: 1- ts-sdk/htlc/ modules for lockHtlc(), claimHtlc(), and refundHtlc() functions 2- utils.ts for hash preimage generation and local keystore handling 3- A modular deployment structure (deployments/{network}/{timestamp}.json) to track deployments and objects 4- A shell script to check and aggregate gas balances across gas coins

I designed this framework to be easy to audit and extend. I avoided over-engineering and kept it hackathon-friendly, focusing on functionality and cross-chain interoperability. Authentication is currently local via private keys, and interaction is CLI- and SDK-based for now.

A planned web frontend (React + Wagmi + Sui Connect) will provide a clean UI for real users.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Fusion Plus Tron

Cross-chain atomic swaps between Tron and 9+ blockchains using HTLC smart contracts

ChainShift Protocol

Revolutionary cross-chain DEX enabling seamless atomic swaps between Ethereum & Aptos