WORK IN PROGRESS: A cross-chain DeFi protocol that bridges 1inch Fusion+ intent-based trading with Sui blockchain, enabling seamless asset swaps across multiple chains. The project implements non-custodial HTLC-based swaps with timelock protection, MEV resistance, and gasless transactions. Features include competitive Dutch auction pricing, partial fills, and cryptographic settlement without cross-chain messaging. Built with Move smart contracts for Sui and TypeScript SDK for easy integration. Resolvers compete to execute swaps at optimal rates while covering gas fees, providing users with MEV-secure, efficient cross-chain liquidity access.
Technical Architecture
Smart Contracts (Move)
- Limit Order Module: Core trading logic with order creation, validation, and execution
- Fusion Module: Cross-chain integration with HTLC (Hash Time-Locked Contract) implementation
- Timelocks: Compact storage for multi-stage timelock management
- Immutables: Cryptographic commitment structures for escrow operations
Key Components:
Order Management System
- Uses Sui's native cryptographic algorithms (for addresses, hashing, and off-chain signing)
- Event emission for order lifecycle tracking
Cross-Chain Integration
- HTLC-based escrow system for non-custodial swaps
- Timelock stages: withdrawal, cancellation, public access periods
- Cryptographic commitments instead of bridge messaging
TypeScript SDK
- LimitOrderSDK class for easy integration
- Transaction building with Sui's Transaction API
- Order validation and management utilities
Security Features
- MEV protection through intent-based trading
- Timelock protection with automatic fund recovery
- Signature validation for order authenticity
- Amount validation to prevent overflow
Implementation Flow:
- Users create orders through SDK
- Orders are hashed and stored on-chain
- Resolvers compete to fill orders via Dutch auction
- HTLC escrows secure cross-chain transfers
- Timelocks ensure fund recovery if swaps fail
The project bridges Ethereum's 1inch Fusion+ intent-based trading with Sui's Move-based smart contracts, enabling secure cross-chain DeFi operations.