Cross-chain atomic swaps between Ethereum & Cosmos using 1inch Fusion+ and HTLCs.
CosmosSwap enables secure, trustless cross-chain token swaps between Ethereum and Cosmos ecosystems using Hash Time Lock Contracts (HTLC). Built as an extension to 1inch Fusion+, it supports bidirectional swaps, timelock & hashlock security, on-chain execution, and a responsive production-ready UI with light/dark themes. GitHub: https://github.com/ritik4ever/cosmosswap-fusion Live Demo: https://cosmosswap-fusion.vercel.app/
We built CosmosSwap using:
Smart Contracts – A Solidity-based HTLC on Ethereum and a CosmWasm HTLC on Cosmos Hub, enabling secure, trustless atomic swaps with bidirectional support.
Backend Coordinator – A Node.js + Express service that orchestrates swap flows, monitors both chains, handles timelock expirations, and integrates with the 1inch API for optimal routes.
Frontend – A React + TypeScript + Vite app with MetaMask (Ethereum) and Keplr (Cosmos) wallet integration, offering a polished, responsive UI with light/dark themes.
Infrastructure – Backend deployed on Render with automatic HTTPS, frontend deployed on Vercel with environment-based builds for testnet/mainnet.
Security – Implements hashlock/timelock guarantees, reentrancy protection, secret preimage validation, and automatic refunds for expired swaps.
Partner Integration – Uses the 1inch API for instant Ethereum liquidity and deep order book access, while Cosmos contracts enable native token swaps without wrapping.