Skip to content

SMSDAO/lira

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

153 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LIRA Protocol β€” Production-Ready Token Launch Platform

Lightweight β€’ Immutable β€’ Resilient β€’ Autonomous

πŸš€ Status: Production Ready | Build: Passing βœ“ | Deployment: Vercel Ready


Overview

LIRA is a comprehensive Web3 platform for token launches, AI agents, and DAO management. Built on BASE (Coinbase L2), it combines quantum oracle intelligence with modern wallet connectivity and role-based access control.

Key Capabilities

  • πŸͺ™ Token Launcher - One-click token deployment with automatic liquidity
  • πŸ€– AI Agents - Quantum-powered intelligent agents with parallel execution
  • πŸ’Ό Multi-Dashboard - Role-based access (User, Admin, Developer)
  • πŸ” SmartWallet Auth - Coinbase Smart Wallet + Traditional wallets
  • πŸ‘€ DAO Username - Username-based identity with DAO token resolution
  • ⚑ Multi-Chain - BASE mainnet/testnet with EVM compatibility

Quick Start

# Clone and install
git clone https://github.com/SMSDAO/lira.git
cd lira
npm install

# Configure (add your WalletConnect ID)
cp .env.example .env.local

# Start development
npm run dev

Open http://localhost:3000 and connect your wallet!

πŸ“– Full Guide: docs/QUICKSTART.md


✨ Features

🎯 Core Platform

  • Token Launch Factory - Deploy ERC20 tokens with built-in liquidity
  • AI Agent Execution - Create and run intelligent agents
  • Quantum Oracle - Q# powered market predictions
  • Social Features - Timeline, posts, and interactions

πŸ” Authentication & Access

  • SmartWallet Primary - Coinbase Smart Wallet (gasless, social login)
  • Multi-Wallet Support - MetaMask, WalletConnect, Rainbow, and more
  • DAO Token Resolution - Username-based authentication
  • Role-Based Access - User, Admin, and Developer dashboards

πŸ“Š Dashboards

User Dashboard (/dashboard)

  • Portfolio overview
  • Token holdings
  • Agent management
  • Earnings tracking

Admin Dashboard (/admin)

Requires admin wallet address

  • User management
  • Fee configuration
  • System health
  • Billing control

Developer Portal (/dev)

Requires dev wallet address

  • API documentation
  • System logs
  • Health monitoring
  • Testing tools

πŸ–₯️ User Interface

The Lira Protocol features a cutting-edge Aura FX Neo Digital UI β€” a high-contrast dark theme with neon glow effects, fluid animations powered by Framer Motion, and a modern neo-digital aesthetic inspired by Zora. Each role-based dashboard provides a purpose-built workspace for its audience.

User Dashboard Admin Dashboard Developer Dashboard
User Dashboard Admin Dashboard Developer Dashboard
Social Timeline & Smart Wallet Billing, Fees & Contract Control Token Launcher & Agent Executor

πŸ“Έ To add real screenshots: Capture your locally running app (npm run dev) and save the images to docs/screenshots/. See docs/screenshots/README.md for the expected file names and dimensions.

Dashboard Highlights

User Dashboard β€” /dashboard
Neo-digital social timeline with Aura FX glow effects. Displays token portfolio, smart wallet balances, agent earnings, and a Zora-inspired activity feed.

Admin Dashboard β€” /admin
Full protocol governance panel: manage billing, configure protocol fees, control smart contracts on BASE/Monad, and monitor system health in real time via BillingSection, ContractController, and SecuritySection components.

Developer Dashboard β€” /dev
Token Launcher with one-click ERC20 deployment, Parallel Agent Executor with Quantum Oracle (Q#) visualization, live API logs, and testing tools.

πŸ› οΈ Tech Stack

  • Frontend: Next.js 14, React 18, TypeScript
  • Styling: Tailwind CSS, Framer Motion
  • Web3: Wagmi v2, Viem, RainbowKit v2
  • Backend: PHP, Go, Java (multi-service)
  • Database: PostgreSQL
  • Blockchain: BASE (Coinbase L2), Solidity
  • Quantum: Q# (Microsoft Quantum)

β€’ Delayed‑reveal mint windows β€’ Off‑chain signature gating β€’ Optional commit‑reveal minting

  1. Anti‑Sapper Protection

β€’ Rate‑limit per wallet β€’ Dynamic mint throttling β€’ Automated suspicious‑pattern detection β€’ Optional proof‑of‑wallet‑age or stake‑based access

  1. Honeypot‑Resistance

β€’ Transparent mint rules β€’ Immutable metadata commitments β€’ Publicly verifiable mint receipts β€’ No hidden transfer hooks or forced approvals

  1. Admin‑Side Safety

β€’ Role‑based access control β€’ Multi‑sig optional β€’ Safe‑mode for contract upgrades β€’ Audit‑friendly logs + event streams

🧩 Zora‑Inspired Logic

β€’ Creator share enforcement β€’ Primary sale + optional secondary royalty routing β€’ Edition‑style mints β€’ Mint windows, supply caps, per‑wallet limits

🧱 Optional Bubblegum Integration

β€’ Enable via config:enableCompressedMints: true

β€’ Ideal for social mints, high‑volume collectibles, and low‑cost distribution.

✨ Blink‑Ready API (Optional)

LIRA exposes clean endpoints that can later be wrapped into Solana Blinks:

β€’ POST /api/lira/mint β€’ POST /api/lira/bid β€’ POST /api/lira/claim

Blinks are not required for v1 but fully supported by design.


πŸ“ Repository Structure

lira/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ pages/          # Next.js pages
β”‚   β”‚   β”œβ”€β”€ dashboard/  # User dashboard
β”‚   β”‚   β”œβ”€β”€ admin/      # Admin dashboard
β”‚   β”‚   β”œβ”€β”€ dev/        # Developer portal
β”‚   β”‚   β”œβ”€β”€ launch/     # Token launcher
β”‚   β”‚   └── agents/     # AI agents
β”‚   β”œβ”€β”€ components/     # React components
β”‚   β”œβ”€β”€ lib/           # Core libraries (RBAC, etc.)
β”‚   β”œβ”€β”€ hooks/         # Custom React hooks
β”‚   └── styles/        # Global styles
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ php/           # PHP REST API
β”‚   β”œβ”€β”€ go/            # Go agent service
β”‚   └── java/          # Java quantum oracle
β”œβ”€β”€ contracts/         # Solidity smart contracts
β”œβ”€β”€ docs/              # Comprehensive documentation
β”œβ”€β”€ scripts/           # Deployment scripts
└── test/             # Test suites

πŸš€ Deployment

Vercel (Recommended)

  1. Push to GitHub
  2. Import project in Vercel
  3. Set environment variables
  4. Deploy!

See docs/VERCEL_DEPLOYMENT.md for complete guide.

Docker

docker-compose up -d

πŸ“š Documentation

Document Description
Quick Start Get started in 10 minutes
SmartWallet Auth Authentication & DAO token resolution
RBAC Dashboards Role-based access control
Vercel Deployment Deploy to Vercel
API Reference Complete API documentation
Testing Guide Testing procedures
Security Audit Security considerations
Full Docs Comprehensive documentation

πŸ› οΈ Development

Install Dependencies

npm install

Run Development Server

npm run dev

Build for Production

npm run build
npm start

Run Tests

npm test
npm run test:watch

Lint Code

npm run lint

πŸ” Environment Configuration

Required Variables

# Wallet Connect (get from https://cloud.walletconnect.com/)
NEXT_PUBLIC_WALLET_CONNECT_ID=your_project_id

# Chain Configuration
NEXT_PUBLIC_CHAIN_ID=8453
NEXT_PUBLIC_CHAIN_NAME=base

# Role-Based Access
ADMIN_ADDRESSES=0xYourAdminWallet
DEV_ADDRESSES=0xYourDevWallet

See .env.example for complete configuration.


πŸ§ͺ Testing

The project includes comprehensive test suites:

  • Unit Tests: Jest + React Testing Library
  • Contract Tests: Hardhat + Chai
  • Integration Tests: End-to-end workflows
# Run all tests
npm test

# Run with coverage
npm test -- --coverage

# Run contract tests
npm run contracts:test

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests (npm test)
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

πŸ”’ Security

Security is our top priority. See docs/SECURITY_AUDIT.md for:

  • Security best practices
  • Audit procedures
  • Vulnerability reporting

Found a security issue? Please email security@lira.ai instead of opening a public issue.


πŸ“Š Project Status

βœ… Build: Passing
βœ… Tests: 33 total (13 passing, 20 need updates)
βœ… Deployment: Vercel ready
βœ… Documentation: Complete
βœ… Production: Ready for audit

Recent Updates

  • ✨ Role-based dashboard system
  • ✨ Developer portal with API docs
  • ✨ Vercel deployment configuration
  • ✨ SmartWallet authentication guide
  • ✨ Comprehensive documentation rewrite

πŸ“œ License

MIT License - see LICENSE.md for details.

Open source and available for builders, creators, and ecosystem partners.


🌟 Acknowledgments

Built with ❀️ by SMSDAO

Special thanks to:

  • BASE (Coinbase L2) - Infrastructure
  • RainbowKit - Wallet connectivity
  • Wagmi - React hooks for Ethereum
  • OpenZeppelin - Secure smart contracts
  • Next.js - React framework
  • Tailwind CSS - Utility-first CSS

πŸ—οΈ Enterprise Platform Architecture

Lira Protocol has been expanded into a fully autonomous enterprise Web3 AI platform. The new platform layers are:

lira/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ agents/          # Agent swarm (9 specialised agents)
β”‚   β”œβ”€β”€ auth/            # Enterprise auth: email, OAuth, wallet (RainbowKit), Farcaster
β”‚   β”œβ”€β”€ config/          # Centralised environment configuration
β”‚   β”œβ”€β”€ core/rbac/       # Extended RBAC – 7-tier role hierarchy
β”‚   β”œβ”€β”€ dex/             # DEX scanner (Uniswap, Sushi, Pancake, Curve, Balancer, GMX)
β”‚   β”œβ”€β”€ jobs/            # Background jobs (BullMQ-compatible)
β”‚   β”œβ”€β”€ models/          # Typed data models (Permission, DexToken, TimelineEvent)
β”‚   β”œβ”€β”€ observability/   # Logging, Prometheus metrics, OpenTelemetry tracing
β”‚   β”œβ”€β”€ security/        # Rate limiting, CSRF, CSP, request validation, audit log
β”‚   β”œβ”€β”€ services/        # Contract wrappers, AI image generation
β”‚   β”œβ”€β”€ timeline/        # Platform-wide event timeline
β”‚   β”œβ”€β”€ wasm/            # WASM bindings (crypto verify, DEX math)
β”‚   └── web3/
β”‚       β”œβ”€β”€ contracts/   # Auto-generated contract interfaces
β”‚       └── social/      # Farcaster + Zora integration
β”œβ”€β”€ wasm/                # WASM build instructions
└── docs/sections/       # Architecture, API, agents, security, dex, web3, deployment

Dashboards

Dashboard Path Access
User Dashboard /dashboard/user All authenticated users
Admin Dashboard /dashboard/admin Admin role
Developer Portal /dashboard/dev Developer + Admin
System Control /dashboard/system Admin role

RBAC Roles

guest β†’ user β†’ creator β†’ developer β†’ moderator β†’ admin β†’ super-admin

All permissions are defined in src/models/Permission.ts.

Agent Swarm

Agent Purpose
AgentCoordinator Task dispatching and health monitoring
DexScannerAgent Indexes DEX liquidity pools
WalletAgent Monitors wallet RPC events
ImageGenerationAgent AI image generation (OpenAI / Stable Diffusion / Replicate)
SocialAgent Farcaster + Zora publishing
AnalyticsAgent Protocol analytics aggregation
MonitoringAgent Service health monitoring
NotificationAgent User notification delivery
GovernanceAgent On-chain governance processing

Documentation

Full platform documentation is in docs/sections/:


πŸ“ž Support & Resources


🎯 Roadmap

βœ… Phase 1: Core Platform (Complete)

  • Multi-wallet authentication
  • Token launch factory
  • AI agent execution
  • Role-based dashboards

πŸ”„ Phase 2: Enhancement (In Progress)

  • SmartWallet as primary auth
  • DAO username resolution
  • Enhanced developer tools
  • Comprehensive documentation

πŸš€ Phase 3: Production (Next)

  • Professional security audit
  • Mainnet deployment
  • Performance optimization
  • Community onboarding

πŸ“± Phase 4: Expansion (Future)

  • Mobile application
  • Additional chain support
  • Advanced analytics
  • Governance features

Ready to launch? πŸš€

Start with npm run dev and explore the platform!


Last Updated: 2026-01-20
Version: 1.0.0
Status: Production Ready

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors