Skip to content

BigMick03/Stellar-Dex-Chat

 
 

Repository files navigation

DEX-CHAT - AI-Powered Asset to Fiat Bridge on Stellar

A decentralized exchange (DEX) interface prioritizing seamless asset-to-bank conversions leveraging AI-assisted conversations and automated Soroban smart contracts on the Stellar network.

License Next.js Rust TypeScript

Overview

DEX-CHAT connects natural AI conversation flows with Stellar's fast blockchain technology to create an intuitive platform for cryptocurrency to fiat conversions. Users interact with an AI assistant that securely triggers smart contract interactions (utilizing Soroban) directly from the chat UI.

Key Features

  • AI-Powered Interface: Intelligent conversation flow with an AI assistant
  • Fiat Offramp: Seamless conversions governed by Soroban smart contracts
  • Real Bank Integration: Verification capabilities suited for fiat channels
  • Mobile-Responsive Design: Optimized for all device sizes
  • Stellar Wallet Integration: Connect via Freighter natively
  • Real-time Portfolio: Live balance queries through the Stellar network

Architecture

The project consists of two main components:

1. Smart Contracts (/stellar-contracts)

  • Blockchain: Stellar (Soroban)
  • Main Contract: FiatBridge - Secure logic governing asset deposits/withdrawals
  • Language: Rust
  • Framework: Soroban SDK

2. Frontend Application (/dex_with_fiat_frontend)

  • Framework: Next.js 15 with TypeScript
  • Styling: Tailwind CSS
  • Blockchain Integration: @stellar/stellar-sdk and @stellar/freighter-api
  • Wallet Connection: Freighter extension integration
  • AI Integration: AI assistant API

🛠️ Technology Stack

Frontend

  • Next.js 15.3.5 - React framework with App Router
  • TypeScript - Type-safe development
  • Tailwind CSS - Utility-first styling
  • Stellar SDK - Core Stellar network interaction
  • Freighter API - Web3 Stellar wallet integration
  • React Query - State management

Smart Contracts

  • Rust - Smart contract implementation language
  • Soroban SDK - Stellar's smart contract framework
  • Cargo - Rust package manager

📋 Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (v18 or higher)
  • npm or yarn
  • Rust & Cargo tooling + wasm32-unknown-unknown target
  • Stellar CLI (for interacting with Soroban)

Installation & Setup

1. Clone the Repository

git clone https://github.com/leojay-net/DEX-CHAT.git
cd DEX-CHAT

2. Smart Contract Setup

cd stellar-contracts

# Build the smart contracts
cargo build --target wasm32-unknown-unknown --release

# Run tests
cargo test

3. Frontend Setup

cd dex_with_fiat_frontend

# Install dependencies needed for Stellar connection
npm install

# Start the development server
npm run dev

Contributing

Contributions and feature reviews are welcome. Please open up an issue to raise bugs or feature requests!

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 80.6%
  • Rust 10.7%
  • Python 6.9%
  • CSS 1.7%
  • JavaScript 0.1%