Lithosphere

Lithosphere L1 Blockchain Developer Infrastructure

A next-generation Layer 1 blockchain platform with advanced DeFi capabilities, privacy-preserving smart contracts, and the LEP100 multi-chain token standard.

πŸ—οΈ Monorepo Structure

This repository uses pnpm workspaces and Turborepo for efficient monorepo management.

lithosphere/
β”œβ”€β”€ api/                    # GraphQL API server
β”œβ”€β”€ indexer/               # Blockchain event indexer
β”œβ”€β”€ contracts/             # Smart contracts (Solidity)
β”œβ”€β”€ web/                   # Next.js frontend application
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ blockchain-core/   # Core blockchain SDK & utilities
β”‚   β”œβ”€β”€ create-litho-app/  # CLI tool for scaffolding projects
β”‚   └── docs/              # Documentation & technical specs
β”œβ”€β”€ clusters/              # Kubernetes configurations (devnet, staging, mainnet)
β”œβ”€β”€ infra/                 # Infrastructure as Code & monitoring
β”œβ”€β”€ scripts/               # Deployment & utility scripts
└── templates/             # Project templates for developers

πŸ“¦ Packages & Applications

Applications

GraphQL API server providing:

  • Blockchain data querying and indexing

  • Smart contract interactions

  • Real-time event subscriptions

  • Express.js + Apollo Server

Blockchain event indexer that:

  • Indexes on-chain events from Lithosphere network

  • Provides GraphQL schema for efficient querying

  • Powers the API backend

Smart contracts including:

  • LITHO: Native blockchain token

  • LEP100: Multi-chain token standard

  • WLITHO: Wrapped token implementation

  • Lep100Access: Access control contracts

  • Built with Hardhat + Solidity

Frontend application built with:

  • Next.js 14 for server-side rendering

  • React 18 for UI components

  • Real-time blockchain data integration

  • Responsive design

Shared Packages

Core SDK providing:

  • Ledger abstraction layer

  • Cryptographic utilities (MDKM, ring signatures)

  • Consensus mechanism implementation

  • TypeScript-first API

CLI tool for scaffolding new Lithosphere projects:

  • Project template selection

  • Automatic dependency setup

  • Built with tsup for optimal bundling

Comprehensive documentation including:

  • Whitepaper and technical specifications

  • LEP100 token standard guide

  • Architecture documentation

  • Smart contract development guides

πŸš€ Quick Start

Prerequisites

  • Node.js >= 20.0.0

  • pnpm >= 9.0.0

Installation

Development Commands

πŸ”‘ Key Features

  • LEP100 Token Standard: Multi-chain compatible token standard

  • Privacy-Preserving: Ring signatures and locked account generation scheme

  • DeFi Ready: Built-in smart contracts for decentralized finance

  • High Performance: Linear Communication BFT consensus

  • Developer Friendly: Comprehensive SDK and tooling

  • Secure: Myriad Distributed Key Management (MDKM)

πŸ“– Documentation

For detailed documentation, see the docs package:

  • Technical specifications and architecture

  • LEP100 token standard

  • Smart contract development guides

  • API documentation

  • Development guides

πŸ› οΈ Technology Stack

Core:

  • Consensus: Custom Linear Communication BFT

  • Smart Contracts: Solidity (EVM-compatible)

  • Cryptography: MDKM, Ring Signatures, Threshold Signatures

Backend:

  • Runtime: Node.js >= 20.0.0

  • Language: TypeScript

  • API: Apollo Server (GraphQL)

  • Database: PostgreSQL

  • Monorepo: pnpm + Turborepo

Frontend:

  • Framework: Next.js 14

  • UI: React 18

  • Styling: TBD

Tooling:

  • Package Manager: pnpm (v9.0.0+)

  • Testing: Jest

  • Linting: ESLint

  • Code Formatting: Prettier

  • Smart Contract Dev: Hardhat

  • Container Orchestration: Docker & Kubernetes

Infrastructure:

  • Observability: Prometheus, Grafana, Loki

  • Monitoring: cAdvisor, Node Exporter, Alertmanager

  • Deployment: Kubernetes + ArgoCD

  • Log Collection: Promtail

🚒 Deployment

Local Development with Docker

The repository includes comprehensive Docker Compose configuration for local development:

Services Include:

  • πŸ”— API (GraphQL)

  • ⛓️ Blockchain Indexer

  • πŸ“Š PostgreSQL Database

  • πŸ“ˆ Prometheus (Metrics)

  • πŸ“Š Grafana (Dashboards - http://localhost:3000)

  • πŸ“ Loki (Log Aggregation)

  • 🚚 Promtail (Log Collection)

  • πŸ”” Alertmanager (Alert Routing)

Production Deployment

Deploy to Kubernetes clusters (devnet, staging, mainnet):

Environment setup:

🀝 Contributing

We welcome contributions! Please see our contributing guidelines (coming soon).

πŸ“„ License

[Add your license here]

  • Website: [Coming soon]

  • Documentation: [Coming soon]

  • Discord: [Coming soon]

  • Twitter: [Coming soon]


Built with ❀️ by the Lithosphere team

Last updated