- Overview
- Architecture
- Installation
- Smart Contracts
- Backend Services
- Frontend Application
- Quantum Oracle
- Database Schema
- API Documentation
- Deployment
- Security
- Contributing
Lira Protocol is a redesigned Zora protocol implemented as a hybrid web application featuring:
- Multi-Language Architecture: React/Next.js, PHP, Go, Java, Q#
- Quantum Computing: Q# quantum brain oracle for advanced intelligence
- Smart Contracts: Solidity contracts for BASE and Monad mainnets
- Parallel Agent Execution: Deploy and execute multiple AI agents simultaneously
- Auto Token Launch: Automatic token deployment with built-in liquidity
- Social Features: Timeline, smart wallets, and social interactions (Zora-inspired)
- Admin Dashboard: Full control over fees, settings, billing, and users
- Aura FX Neo Digital UI: Dark themed glow effects with modern design
┌─────────────────────────────────────────────────────────────┐
│ Frontend (Next.js/React) │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ User Dashboard│ │Admin Dashboard│ │Token Launcher│ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────────┘
│
┌───────────────────┼───────────────────┐
│ │ │
┌───────▼──────┐ ┌──────▼──────┐ ┌──────▼──────┐
│ PHP API │ │ Go API │ │ Java API │
│ (REST/CRUD) │ │ (Agents) │ │ (Oracle) │
└───────┬──────┘ └──────┬──────┘ └──────┬──────┘
│ │ │
└───────────────────┼───────────────────┘
│
┌───────▼───────┐
│ PostgreSQL │
│ Database │
└───────────────┘
┌─────────────────────────────────────────────────────────────┐
│ Blockchain Layer (BASE/Monad) │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ LiraToken │ │TokenLauncher │ │AgentExecutor │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────┐
│ Quantum Oracle (Q#) │
│ Quantum Brain Intelligence Layer │
└─────────────────────────────────────────────────────────────┘
- Node.js >= 18.0.0
- npm >= 9.0.0
- PHP >= 8.1
- Go >= 1.21
- Java >= 17 (with Maven)
- PostgreSQL >= 14
- Docker (optional)
- Q# Development Kit (optional)
- Clone the repository
git clone https://github.com/SMSDAO/lira.git
cd lira- Run bootstrap script (Windows PowerShell)
.\scripts\bootstrap.ps1Or manually:
- Install dependencies
npm install
cd backend/php && composer install
cd ../go && go mod download
cd ../java && mvn install- Configure environment
cp .env.example .env
# Edit .env with your configuration- Set up database
psql -U postgres -d lira -f database/schema.sql- Compile contracts
npx hardhat compile- Start development servers
# Terminal 1: Frontend
npm run dev
# Terminal 2: PHP API
npm run php:serve
# Terminal 3: Go API
cd backend/go && go run cmd/api/main.go
# Terminal 4: Java API (if needed)
cd backend/java && mvn spring-boot:runThe base ERC20 token with governance features.
Key Features:
- Max supply: 1 billion tokens
- Minting control with authorized minters
- Protocol and creator fees
- Pausable for emergency situations
- BASE and Monad compatible
Contract Address (BASE): TBD after deployment
Automated token launch factory with bonding curve.
Key Features:
- One-click token deployment
- Automatic liquidity setup
- Launch fee collection
- Creator tracking
- Multi-chain support
Manages AI agent execution and model deployment.
Key Features:
- Create custom agents
- Execute agents with quantum oracle integration
- Batch parallel execution
- Fee management
- Execution history tracking
RESTful API for CRUD operations.
Endpoints:
/api/users- User management/api/tokens- Token tracking/api/agents- Agent management
High-performance agent execution service.
Endpoints:
/api/agents- Agent operations/api/agents/:id/execute- Execute single agent/api/agents/batch-execute- Parallel execution/api/models- Model management/api/quantum/*- Quantum oracle integration
Quantum oracle integration and advanced analytics.
Endpoints:
/api/quantum/predict- Quantum predictions/api/analytics/*- Advanced analytics
Access at: http://localhost:3000/dashboard
Features:
- Token portfolio
- Agent management
- Timeline feed
- Smart wallet integration
Access at: http://localhost:3000/admin
Features:
- User management
- Fee configuration
- System monitoring
- Billing oversight
- Security settings
Access at: http://localhost:3000/launch
Features:
- One-click token creation
- Logo upload/AI generation
- Parameter configuration
- Automatic deployment
The Q# quantum brain oracle provides:
- Quantum Market Predictor: Analyzes market trends using quantum superposition
- Token Launch Optimizer: Optimizes launch parameters with quantum annealing
- Parallel Agent Executor: Executes multiple agents with quantum parallelism
// Example: Market prediction
operation QuantumMarketPredictor(priceData, confidence) : (prediction, confidence)Key tables:
users- User accounts and wallet addressestokens- Launched tokens trackingagents- AI agents and modelsagent_executions- Execution historytimeline_posts- Social timelinefee_settings- Protocol fee configurationquantum_jobs- Quantum oracle jobs
POST /api/agents
Content-Type: application/json
{
"name": "Market Analyzer",
"model_type": "GPT-4"
}POST /api/agents/:id/execute
Content-Type: application/json
{
"input_data": "Analyze BTC/USD"
}const tx = await tokenFactory.launchToken(
"MyToken",
"MTK",
1000000,
{ value: ethers.parseEther("0.01") }
);- Configure environment
BASE_RPC_URL=https://mainnet.base.org
PRIVATE_KEY=your_private_key- Deploy contracts
.\scripts\contracts.ps1 -Network base -Action deploy- Verify contracts
.\scripts\contracts.ps1 -Network base -Action verifynpm run build
npm startOr use Docker:
docker-compose up -dAll smart contracts have been designed with security best practices:
- ReentrancyGuard on all external calls
- Access control with Ownable
- Pausable for emergency stops
- Input validation
- Safe math operations (Solidity 0.8+)
Audit Status: Pending professional audit
- Never commit private keys
- Use environment variables
- Enable rate limiting in production
- Regular security updates
- Monitor contract events
- Implement proper CORS
We welcome contributions! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
Apache 2.0 - See LICENSE.md
- GitHub Issues: https://github.com/SMSDAO/lira/issues
- Discord: [Coming soon]
- Email: support@lira.ai
Built with ❤️ by SMSDAO