# 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** ```bash # Clone with submodules (recommended) git clone --recurse-submodules cd asle # Or if already cloned, initialize submodules git submodule update --init --recursive ``` 2. **Set up environment variables** ```bash cp backend/.env.example backend/.env cp frontend/.env.example frontend/.env.local # Edit .env files with your configuration ``` 3. **Start infrastructure** ```bash docker-compose up -d postgres redis ``` 4. **Set up database** ```bash cd backend npm install npx prisma migrate deploy npx prisma generate ``` 5. **Deploy contracts** (see [DEPLOYMENT.md](./DEPLOYMENT.md)) 6. **Start backend** ```bash cd backend npm install npm run dev ``` 7. **Start frontend** ```bash 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](./SUBMODULE_SETUP.md) for details. For detailed structure, see [PROJECT_STRUCTURE.md](./PROJECT_STRUCTURE.md) ## ๐Ÿงช Testing ### Smart Contracts ```bash cd contracts forge test forge test -vvv # Verbose output ``` ### Backend ```bash cd backend npm test ``` ### Frontend ```bash cd frontend npm test ``` For comprehensive testing guide, see [TESTING.md](./TESTING.md) ## ๐Ÿ“š Documentation ### Quick Links - **[DOCUMENTATION_INDEX.md](./DOCUMENTATION_INDEX.md)** - Complete documentation index and navigation - **[STATUS.md](./STATUS.md)** - Current project status - **[DEPLOYMENT.md](./DEPLOYMENT.md)** - Deployment guide - **[API_DOCUMENTATION.md](./API_DOCUMENTATION.md)** - Complete API reference - **[TESTING.md](./TESTING.md)** - Testing procedures - **[PROJECT_STRUCTURE.md](./PROJECT_STRUCTURE.md)** - Project structure - **[RECOMMENDATIONS.md](./RECOMMENDATIONS.md)** - Recommendations and suggestions - **[UPGRADES_AND_VISUAL_ELEMENTS.md](./UPGRADES_AND_VISUAL_ELEMENTS.md)** - Complete list of upgrades and visual enhancements ### Additional Documentation - [docs/ARCHITECTURE.md](./docs/ARCHITECTURE.md) - System architecture - [docs/PHASES.md](./docs/PHASES.md) - Phase-by-phase implementation - [docs/README.md](./docs/README.md) - Documentation directory index - [docs/project-status/](./docs/project-status/) - Project status and audit documents - [docs/project-management/](./docs/project-management/) - Roadmap and setup guides - [contracts/FOUNDRY_SETUP.md](./contracts/FOUNDRY_SETUP.md) - Foundry setup > **๐Ÿ“– For complete documentation navigation, see [DOCUMENTATION_INDEX.md](./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](./DEPLOYMENT.md) for deployment issues - See [STATUS.md](./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](./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