Skip to content

feat: implement Soroban Cross-Chain Intelligence Hub#573

Open
yusuftomilola wants to merge 5 commits into
MDTechLabs:mainfrom
yusuftomilola:feat/543-soroban-cross-chain-intelligence-hub
Open

feat: implement Soroban Cross-Chain Intelligence Hub#573
yusuftomilola wants to merge 5 commits into
MDTechLabs:mainfrom
yusuftomilola:feat/543-soroban-cross-chain-intelligence-hub

Conversation

@yusuftomilola

Copy link
Copy Markdown
Contributor

Summary

  • Implements a centralized intelligence layer for Stellar cross-chain routing under apps/api/src/intelligence-hub/stellar/
  • Aggregates route, provider, and asset intelligence from across the bridging system
  • Exposes REST endpoints for querying aggregated insights and full-text search

Changes

  • intelligence-hub.types.ts — Type definitions for RouteIntelligence, ProviderIntelligence, AssetIntelligence, IntelligenceSearchResult, and IntelligenceHubSnapshot
  • intelligence-hub.service.ts — Service that aggregates route, provider, and asset intelligence with keyword search support
  • intelligence-hub.controller.ts — REST controller exposing /intelligence-hub/stellar endpoints (snapshot, routes, providers, assets, search)
  • intelligence-hub.module.ts — NestJS module wiring
  • app.module.ts — Registers IntelligenceHubModule in the root application module

Endpoints

Method Path Description
GET /intelligence-hub/stellar/snapshot Full hub snapshot
GET /intelligence-hub/stellar/routes Aggregate route intelligence
GET /intelligence-hub/stellar/providers Aggregate provider intelligence
GET /intelligence-hub/stellar/assets Aggregate asset intelligence
GET /intelligence-hub/stellar/search?q= Cross-intelligence search

Test plan

  • CI build passes (pnpm run build)
  • GET /intelligence-hub/stellar/snapshot returns all aggregated data
  • GET /intelligence-hub/stellar/routes returns Stellar route intelligence
  • GET /intelligence-hub/stellar/providers returns provider intelligence
  • GET /intelligence-hub/stellar/assets returns asset intelligence
  • GET /intelligence-hub/stellar/search?q=usdc returns matching results across routes, providers, and assets
  • GET /intelligence-hub/stellar/search without q returns 400 Bad Request

closes #543

@mijinummi

Copy link
Copy Markdown
Collaborator

hello @yusuftomilola , please kindly run npm build , update your branch from main to receive latest changes. Thank you for your contribution so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Soroban Cross-Chain Intelligence Hub

2 participants