synor/crates/synor-economics/src/billing
Gulshan Yadav 17f0b4ce4b feat(economics): add Phase 12 - Economics & Billing infrastructure
Complete economics service implementation with:

- Price Oracle with TWAP (Time-Weighted Average Price)
  - Multi-source price aggregation
  - Configurable staleness thresholds
  - Exponential, SMA, and standard TWAP strategies

- Metering Service for L2 usage tracking
  - Storage: GB-months, retrieval bandwidth
  - Hosting: bandwidth, custom domains
  - Database: queries, vector searches
  - Compute: CPU core-hours, GPU hours, memory
  - Network: bandwidth, requests

- Billing Engine
  - Invoice generation with line items
  - Payment processing (crypto/fiat)
  - Credit management with expiration
  - Auto-pay from prepaid balance

- Pricing Tiers: Free, Standard, Premium, Enterprise
  - 0%, 10%, 20%, 30% usage discounts
  - SLA guarantees: 95%, 99%, 99.9%, 99.99%

- Cost Calculator & Estimator
  - Usage projections
  - Tier comparison recommendations
  - ROI analysis

- Docker deployment with PostgreSQL schema

All 61 tests passing.
2026-01-19 21:51:26 +05:30
..
credit.rs feat(economics): add Phase 12 - Economics & Billing infrastructure 2026-01-19 21:51:26 +05:30
invoice.rs feat(economics): add Phase 12 - Economics & Billing infrastructure 2026-01-19 21:51:26 +05:30
mod.rs feat(economics): add Phase 12 - Economics & Billing infrastructure 2026-01-19 21:51:26 +05:30
payment.rs feat(economics): add Phase 12 - Economics & Billing infrastructure 2026-01-19 21:51:26 +05:30