A sui 1inch Fusion+ Extension for make atomic cross chain swaps between Sui and Ethereum
smart contracts for Hash Time-Locked Contracts (HTLCs) in Move for the Sui Blockchain, demonstrating 1inch Fusion+ swaps from Ethereum to Move. We used the cross-chain-resolver example as base, and used the HTLC contract for atomic cross chain swaps.
We used Next and Pnpm and Move
This is a cross-chain atomic swap solution that extends 1inch Fusion+ to support swaps between Ethereum and Sui blockchains. The project demonstrates how to implement secure, trustless cross-chain transactions using Hash Time-Locked Contracts (HTLCs) in Move.
Frontend: Next.js 14 application with modern UI components (Shadcn UI + Tailwind CSS) that provides a seamless user experience for cross-chain swaps. Users can connect both MetaMask (Ethereum) and Sui Wallet to initiate swaps.
Smart Contracts:
oneinch_move
module) that handle lock/unlock mechanisms with time-based constraintsPhase 1: Quote generation and EIP-712 order creation with cryptographic secret generation Phase 2: Escrow deployment on both chains with safety deposits and timelock mechanisms Phase 3: Secret revelation and atomic claim/withdrawal process ensuring trustless execution