Files
asle/README.md
defiQUG 921e81a935 Update all file references after moving unnecessary files
- Fix DOCUMENTATION_INDEX.md references:
  - Update setup flow (remove COMPLETE_SETUP_INSTRUCTIONS)
  - Update project management flow (PROJECT_REVIEW path)
  - Update help section (remove COMPLETE_SETUP_INSTRUCTIONS)
  - Update statistics (12 root files, 10 archived)
  - Remove PROJECT_ROOT_CLEANUP reference
- Fix README.md ROADMAP_PLAN.md reference to docs/project-management/
- All references now point to correct locations
2025-12-03 23:07:00 -08:00

6.5 KiB

ASLE - Ali & Saum Liquidity Engine

Hybrid Cross-Chain Liquidity Infrastructure with PMM, CCIP, ERC-2535, ERC-1155, and ISO/ICC Compliance

🚀 Overview

ASLE is a comprehensive DeFi liquidity infrastructure platform combining:

  • DODO PMM (Proactive Market Maker) for efficient liquidity provision
  • Chainlink CCIP for secure cross-chain operations
  • ERC-2535 Diamond Standard for fully upgradeable smart contracts
  • ERC-1155 & ERC-4626 for multi-asset vaults and tokenization
  • Hybrid Compliance with three modes (Regulated/Fintech/Decentralized)
  • ISO 20022 & FATF Travel Rule compliance for institutional use

📋 Features

Core Features

  • PMM Liquidity Pools with configurable parameters
  • ERC-4626 and ERC-1155 Vaults
  • Cross-chain liquidity synchronization
  • Governance with timelock and multi-sig
  • Security features (pause, circuit breakers)
  • Real-World Asset (RWA) tokenization

Compliance Features

  • Multi-mode compliance (Regulated/Fintech/Decentralized)
  • KYC/AML verification integration
  • OFAC sanctions screening
  • FATF Travel Rule compliance
  • ISO 20022 messaging
  • Multi-jurisdiction regulatory support

Infrastructure

  • RESTful API with authentication
  • GraphQL API
  • Database integration (PostgreSQL)
  • Comprehensive monitoring
  • Docker containerization
  • CI/CD pipelines

🏗️ Architecture

Smart Contracts

  • Diamond.sol: Core ERC-2535 Diamond contract
  • LiquidityFacet: DODO PMM implementation
  • VaultFacet: ERC-4626 and ERC-1155 vaults
  • ComplianceFacet: Multi-mode compliance management
  • CCIPFacet: Cross-chain messaging
  • GovernanceFacet: DAO governance with timelock
  • SecurityFacet: Pause and circuit breakers
  • RWAFacet: Real-world asset tokenization

Backend

  • Node.js/Express REST API
  • Apollo GraphQL Server
  • Prisma ORM with PostgreSQL
  • JWT authentication
  • Rate limiting and security middleware
  • Service layer architecture

Frontend

  • Next.js 16 with React 19
  • Wagmi/Viem for Web3 integration
  • Tailwind CSS for styling
  • React Query for data fetching
  • TypeScript throughout

🚦 Quick Start

Prerequisites

  • Node.js 20+
  • Docker and Docker Compose
  • Foundry (for smart contracts)
  • PostgreSQL 15+

Installation

  1. Clone the repository with submodules
# Clone with submodules (recommended)
git clone --recurse-submodules <repository-url>
cd asle

# Or if already cloned, initialize submodules
git submodule update --init --recursive
  1. Set up environment variables
cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env.local
# Edit .env files with your configuration
  1. Start infrastructure
docker-compose up -d postgres redis
  1. Set up database
cd backend
npm install
npx prisma migrate deploy
npx prisma generate
  1. Deploy contracts (see DEPLOYMENT.md)

  2. Start backend

cd backend
npm install
npm run dev
  1. Start frontend
cd frontend
npm install
npm run dev

📁 Project Structure

asle/
├── contracts/          # Smart contracts (Foundry) - Git submodule
├── backend/           # Node.js API server (monorepo)
│   ├── src/api/       # REST API routes
│   ├── src/middleware/# Express middleware
│   ├── src/jobs/      # Background jobs/orchestration
│   └── src/services/  # Business logic services
├── frontend/          # Next.js application - Git submodule
├── mobile/            # React Native mobile app
├── docs/              # Documentation
├── scripts/           # Utility scripts
└── .github/           # CI/CD workflows

Note: contracts/ and frontend/ are git submodules. See SUBMODULE_SETUP.md for details.

For detailed structure, see PROJECT_STRUCTURE.md

🧪 Testing

Smart Contracts

cd contracts
forge test
forge test -vvv  # Verbose output

Backend

cd backend
npm test

Frontend

cd frontend
npm test

For comprehensive testing guide, see TESTING.md

📚 Documentation

Additional Documentation

📖 For complete documentation navigation, see DOCUMENTATION_INDEX.md

🔒 Security

  • All contracts are upgradeable via Diamond pattern
  • Access control with role-based permissions
  • Reentrancy guards on all external functions
  • Circuit breakers for risk management
  • Comprehensive audit trail

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

📄 License

See LICENSE file in repository root for details.

🆘 Support

For issues and questions:

  • Open an issue on GitHub
  • Check documentation in /docs
  • Review DEPLOYMENT.md for deployment issues
  • See STATUS.md for current status

🔮 Roadmap

  • Additional chain support
  • Enhanced analytics dashboard
  • Mobile app
  • Additional compliance integrations
  • Advanced governance features

📋 Detailed Implementation Plan: See docs/project-management/ROADMAP_PLAN.md for comprehensive implementation plans, timelines, and technical specifications for all roadmap items.


Built with ❤️ by the ASLE team

Project Status: 100% Complete - Ready for Production