Commit graph

4 commits

Author SHA1 Message Date
Gulshan Yadav
97f42cb990 feat: add CLI commands, WebSocket channels, and API versioning
- Add CLI commands for DEX, IBC, ZK, and Compiler services
  - DEX: markets, orderbook, orders, liquidity pools
  - IBC: chains, transfers, packets, relayers
  - ZK: circuit compilation, proof generation (Groth16/PLONK/STARK)
  - Compiler: WASM compilation, ABI extraction, security scan

- Add WebSocket module for real-time event streaming
  - Block, transaction, address, contract event channels
  - Market and mining event streams
  - Subscription management with broadcast channels

- Implement API versioning strategy
  - URL path, header, and query parameter versioning
  - Version registry with deprecation support
  - Deprecation and sunset headers
2026-01-28 15:31:57 +05:30
Gulshan Yadav
8ab9c6c7a2 feat: add OpenAPI specification generation for gateway
Adds utoipa-based OpenAPI 3.1 documentation:
- OpenAPI module with API metadata, server info, and tags
- Security scheme definitions (API key and JWT bearer)
- ToSchema derives for response types
- JSON specification generation endpoint
2026-01-28 15:18:53 +05:30
Gulshan Yadav
f8c536b7cd feat: add unified API gateway crate with REST endpoints
Implements Phase 2 REST API foundation:
- Unified gateway server with Axum web framework
- Complete REST endpoints for all services:
  - Wallet (create, import, balance, sign, transactions)
  - RPC (blocks, transactions, network, mempool)
  - Storage (upload, download, pinning, CAR files)
  - DEX (markets, orders, pools, liquidity)
  - IBC (chains, channels, transfers, packets)
  - ZK (circuits, proofs, ceremonies)
  - Compiler (compile, ABI, analysis, validation)
- Authentication (JWT + API key)
- Rate limiting with tiered access
- CORS, security headers, request tracing
- Health check endpoints
- OpenAPI documentation scaffolding
2026-01-28 15:16:48 +05:30
Gulshan Yadav
03c1664739 feat: Implement standard API response types and health check endpoints
- Added `ApiResponse`, `ResponseMeta`, and related structures for standardized API responses.
- Created health check routes including basic health, liveness, and readiness checks.
- Introduced `AppState` for shared application state across routes.
- Developed wallet API endpoints for wallet management, address operations, balance queries, and transaction signing.
- Implemented RPC API endpoints for blockchain operations including block queries, transaction handling, and network information.
2026-01-28 15:03:36 +05:30