project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

GreenDefi

Integration of 1inch with Sui and Deepbook to make liquidity available cross chain

GreenDefi

Created At

Unite Defi

Project Description

The project implements smart contracts on Sui network and frontend needed for interacting with the Sui contracts that enable integration with 1inch on Ethereum or possibly other networks.

We built a comprehensive cross-chain atomic swap application that enables trustless asset exchanges between Sui and Ethereum blockchains using Hash Time Locked Contracts (HTLCs).

  1. Smart Contract Infrastructure Sui Move Contracts: Implemented escrow and hashlock contracts on Sui blockchain HTLC Protocol: Built atomic swap contracts supporting both regular and hashlock-based escrows Multi-asset Support: Handles SUI tokens, NFTs, and custom objects

  2. Full-Stack Application Backend API: Node.js server with PostgreSQL database for indexing blockchain events Event Indexer: Real-time monitoring of escrow creation, claims, and timeouts Frontend Application: React-based UI for creating and managing atomic swaps

  3. Core Features Create Swaps: Lock assets on Sui with secret hash commitment Claim Interface: Reveal secrets to claim cross-chain assets Swap Management: Track active, completed, and expired swaps Wallet Integration: Seamless connection with Sui wallet ecosystem

  4. User Experience Intuitive Interface: Clean, accessible UI with proper form validation Real-time Updates: Live status tracking of swap progression Demo Functionality: Built-in demo features for testing and onboarding Responsive Design: Mobile-friendly interface using Radix UI components

How it's Made

We built a full-stack atomic swap platform with three core layers: smart contracts on Sui, a Node.js indexing backend, and a React frontend, all connected through real-time event monitoring and cryptographic hash commitments. Smart contracts are written in Sui Move, deployed on Sui testnet. Backend API for indexing Sui network events is written in node.js + Prisma ORM database. Frontend written in React and Typescript implementing Radix UI and Tailwind CSS.

background image mobile

Join the mailing list

Get the latest news and updates