MoleSwap

Cross-chain swap from TON to Ethereum using 1inch Fusion+ & BlockScout tracking

ETHGlobal PragueShipped May 30, 2025Prize winner#defi#infra#security
Repo
MoleSwap banner

About

A fully scalable, intent-based cross-chain swap protocol enabling seamless token transfers from TON to Ethereum, with support for both EVM and non-EVM networks. The solution utilizes 1inch Fusion+ and the 1inch Limit Order Protocol for efficient and decentralized trade execution. Swaps are powered by a permissionless, hash-lock-based mechanism ensuring security and trustless settlement across chains.

The platform features an intent-based order book that allows users to express trade intentions without locking funds, improving flexibility and efficiency. Order tracking is handled via an extended version of BlockScout, enhanced to support TON and other non-EVM chains, enabling transparent and real-time cross-chain transaction monitoring.

Designed to support any token across multiple ecosystems, the architecture is built for broad scalability, allowing for the addition of new blockchains as the protocol evolves.

How it's made

Our cross-chain swap solution is composed of multiple tightly integrated components, combining smart contracts, indexing infrastructure, and protocol-level innovations. The architecture is modular, permissionless, and designed for scalability across both EVM and non-EVM blockchains.

🔧 Core Components

TON Smart Contracts

We implemented a escrow contract factory and individual order contracts on the TON blockchain. These manage the source-side of the atomic swap, holding TON tokens in escrow secured by a hashlock.

EVM Smart Contracts

On Ethereum (Sepolia testnet), we deployed a corresponding escrow contract factory and order contracts that mirror the behavior of TON contracts. These handle ERC-20 tokens and ensure atomicity on the destination chain.

Hashlock Security

Swaps are secured using a hashlock-based mechanism, ensuring funds are only released if the correct secret is revealed, enabling trustless execution between unrelated chains.

Backend Indexer

A custom indexer was built to connect to both TON and Ethereum RPC nodes. It continuously tracks relevant smart contract activity, indexes swaps, and exposes real-time data to external interfaces (like BlockScout). The indexer is blockchain-agnostic and ready to support additional chains and tokens.

Extended BlockScout

We customized BlockScout to support:

Non-EVM chains (e.g., TON) by extending its schema and data models

Cross-chain transactions by linking related swaps across networks

A new UI/UX layer to display swap status, secrets, escrow details, and timing

This required deep changes in the MVC structure, new tables for tracking orders and secrets, and logic for rendering atomic swap flows.

Infrastructure & Deployment

The solution is currently deployed on:

TON Testnet

Ethereum Sepolia

DigitalOcean and AWS for backend services, indexer, and UI hosting

🔄 Atomic Swap Flow

✅ Maker creates an escrow on TON, locking tokens with a hash of a secret.

✅ Taker responds by creating a matching escrow on Ethereum, locking ERC-20 tokens.

✅ Maker claims ERC-20 tokens by revealing the secret.

✅ Taker observes the secret on-chain and uses it to claim the TON escrow.

🎯 Taker also withdraws a safety deposit (if applicable), completing the atomic swap cycle.

🤖 Notable Hacks & Innovations

Modified BlockScout to support a non-EVM chain (TON), which involved low-level database and parser modifications.

Unified cross-chain swap logic in a chain-agnostic backend indexer, allowing future integration with other chains like Solana or Aptos.

Combined 1inch Fusion+ routing with custom escrow logic to create a secure and user-driven intent-based order flow.

Prizes

  • Blockscout · Big Blockscout Explorer Pool Prize · Big Blockscout Explorer Pool Prize
  • 1inch · Extensions for 1inch Cross-chain Swap (Fusion+) · Extensions for 1inch Cross-chain Swap (Fusion+)

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.

MoleSwap

Extension for 1inch Cross-chain Swap (Fusion+) that enables swaps between EVM and TON

FusionFlow

1inch Fusion+ Cross-chain swap, with bidirectional Ethereum-Polkadot token swap via hashlocks