A Unite DeFi Hackathon project building a fully onchain, bidirectional swap bridge between Ethereum and Cosmos using HTLC (Hash Time Locked Contracts) and 1inch Fusion+ order settlement.
FusionX enables secure, atomic cross-chain swaps between Ethereum and Cosmos chains. Leveraging 1inch Fusion+ and a CosmWasm-based HTLC, users can trustlessly initiate swaps from one chain and settle on the other—without relying on off-chain infrastructure.
- Ethereum → Cosmos swaps via HTLC & secret reveal
- Cosmos → Ethereum swaps with preimage symmetry
- Powered by Solidity, CosmWasm, and Next.js
- Compatible with MetaMask, Keplr, and Leap wallets
- Solidity HTLC + Fusion+ settlement (
FusionOrderSettler.sol,EthereumHTLC.sol) - CosmWasm HTLC in Rust (
CosmosHTLC.rs) - Deploy to testnets (e.g., Sepolia, Juno, Osmosis)
- Provide ABI and deployment metadata
- Build React/Next.js DApp
- Connect Ethereum (MetaMask) and Cosmos (Keplr/Leap)
- Use Viem, Wagmi, RainbowKit (Ethereum)
- Use CosmJS (Cosmos)
- UI for swap initiation, tracking, claiming
FusionOrderSettler.sol: Initiates HTLCs based on 1inch Fusion+ ordersEthereumHTLC.sol: Locks ETH/ERC20 with hashlock + timelock- Preimage reveal enables secure claim
CosmosHTLC.rs: Locks ATOM/CW20 with identical hash and timelock- Claim enabled once preimage is revealed from Ethereum
- Wallet connections: MetaMask (EVM), Keplr/Leap (Cosmos)
- Swap creation UI: amount, chain, hashlock, timelock
- Status tracking:
LockedAwaiting secretClaimed/Refunded
- Visuals for Ethereum ↔ Cosmos flow
- Alice locks ETH in Ethereum HTLC via FusionOrderSettler
- Bob claims ATOM on Cosmos by revealing the secret
- Alice uses revealed secret to unlock ETH
- Bob locks ATOM in Cosmos HTLC
- Alice claims ATOM by revealing preimage
- Bob uses revealed preimage to unlock ETH
✅ Hashlock and timelock enforced on both chains for trustless swaps.
- Ethereum: Solidity + Foundry
- Cosmos: CosmWasm + Rust
- React + Next.js
- Tailwind CSS
- Ethereum: Viem + Wagmi + RainbowKit
- Cosmos: CosmJS + Keplr/Leap
- GitHub
- Foundry / Hardhat Anvil
- Remix (EVM test)
- Neutron Testnet
| Feature | Description |
|---|---|
| UI/UX Polish | Clean, intuitive design for end users |
| Partial Fill Logic | Support claiming partial HTLC balances |
| Relayer Service | Automate claims with offchain script |
| Resolver Registry | Select best claimant for atomic routing |
| Realtime OrderBook | Fusion+-style order book display |
- Bidirectional HTLCs with hashlock + timelock
- Working Ethereum ↔ Cosmos preimage swap
- Contracts deployed and verifiable
- Frontend DApp with wallet integration
- Demo showcasing full flow (ETH → NTRN)