Unified cross-chain DeFi with AI trading - ETH↔ICP↔Aptos bridges + 1inch MCP
Doraemon is a powerful DeFi platform designed to connect three major blockchain ecosystems through an integrated set of tools:
Ethereum ↔ ICP Bridge (eth-icp/) This component lets users swap assets between Ethereum and the Internet Computer Protocol. It combines Solidity smart contracts with Rust canisters to enable atomic swaps, secure cross-chain escrow, and efficient transaction routing.
Ethereum ↔ Aptos Bridge (eth-aptos/) Bridging Ethereum and Aptos, this system uses Solidity on one end and Move smart contracts on the other. It supports cross-chain interactions with liquidity pools and resolver mechanisms for smooth execution.
1inch MCP Server + Web Interface (1inch-mcp/ + ui/) An AI-driven trading experience built on the Model Context Protocol. It aggregates decentralized exchanges (DEXs) for best trade execution, offers real-time portfolio tracking, and provides smart trading recommendations using the OpenRouter API—all within a user-friendly interface.
Doraemon is a next-gen cross-chain DeFi platform that brings together blockchain bridging, AI-assisted trading, and a smooth, unified web interface. It’s built with a modular microservices architecture using TypeScript and Node.js on the backend (MCP server), a React/Next.js frontend, Solidity smart contracts on Ethereum, Rust for Internet Computer (ICP), and Move contracts on Aptos.
One of the biggest technical hurdles was rendering Mermaid diagrams in the UI. Making them work well in a Next.js environment required a lot of trial and error. We had to figure out how to handle dark/light themes, control the SVG rendering lifecycle, ensure proper hydration, and even tweak SVGs for download. It was a bit of a hacky process—timing the Mermaid initialization just right, detecting theme changes, and manually tweaking the visuals—but the result is a beautiful charting experience when users request graph-based insights.
The platform uses 1inch’s Fusion+ protocol and OpenRouter to power AI trading features, while cross-chain swaps are secured with atomic swap mechanisms using hashlock and timelock logic. Swapping assets across Ethereum, ICP, and Aptos happens securely and seamlessly.

