Search projects, hackathons, sponsors and tech

    ← All projects

    Sui Extension

    A sui 1inch Fusion+ Extension for make atomic cross chain swaps between Sui and Ethereum

    Demo

    About

    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

    How it's made

    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**: - **Ethereum**: Solidity escrow contracts using the 1inch Cross-Chain SDK with resolver patterns for automated execution - **Sui**: Move language HTLC contracts (`oneinch_move` module) that handle lock/unlock mechanisms with time-based constraints ### **Key Technical Features** 1. **Atomic Swap Security**: Uses cryptographic secrets and hash locks to ensure either both sides of the swap complete or both fail 2. **Cross-Chain Communication**: Bypasses 1inch SDK chain validation limitations while maintaining security guarantees 3. **Dual Wallet Integration**: Seamless integration with both Ethereum (Wagmi/Viem) and Sui (Sui TypeScript SDK) wallets 4. **Real-time Tracking**: Complete order lifecycle monitoring with status updates and transaction confirmations 5. **Mock Fusion+ API**: Realistic simulation of 1inch Fusion+ endpoints with proper timing, cryptographic operations, and state management ### **Swap Flow Process** **Phase 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