Skip to content

feat: configurable asset registry (no contract redeploy)#106

Merged
ritik4ever merged 2 commits intoritik4ever:mainfrom
bandanadivya:feature/asset-registry
Feb 25, 2026
Merged

feat: configurable asset registry (no contract redeploy)#106
ritik4ever merged 2 commits intoritik4ever:mainfrom
bandanadivya:feature/asset-registry

Conversation

@bandanadivya
Copy link
Contributor

Configurable asset registry (no contract redeploy)

Makes assets configurable via database and admin API so new assets can be added without code or contract changes.

Backend

  • Asset registry: New assets table (PostgreSQL migration 007 + SQLite), seeded with XLM, USDC, BTC, ETH. Fields: symbol, name, contract_address, issuer_account, coingecko_id, enabled.
  • API: GET /api/assets (public), GET/POST/DELETE/PATCH /api/admin/assets (admin) for list, add, remove, enable/disable.
  • Reflector & risk: Use registry for asset list and CoinGecko IDs; fallback to default 4 when registry is empty. New assets get circuit breakers on first price update.

Frontend

  • Portfolio setup: Fetches /api/assets for the asset dropdown; add search/filter by symbol or name.
  • Price tracker: Uses registry asset list for display order; supports any assets returned by the API.

Acceptance

  • Assets configurable via admin panel (no contract redeployment).
  • Frontend shows available assets dynamically from the API.
  • Custom Stellar tokens supported via contract_address / issuer_account and optional coingecko_id.

closes #99

- Add assets table (PostgreSQL migration 007 + SQLite), seed XLM/USDC/BTC/ETH
- Asset registry service + GET /api/assets, admin CRUD /api/admin/assets
- Reflector and risk management use registry for symbol list and CoinGecko IDs
- Frontend: PortfolioSetup and PriceTracker fetch assets from API; asset search/filter
- Support custom Stellar tokens via contract_address/issuer_account
@vercel
Copy link

vercel bot commented Feb 25, 2026

Someone is attempting to deploy a commit to the ritik4ever's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ritik4ever ritik4ever merged commit aae1a24 into ritik4ever:main Feb 25, 2026
0 of 2 checks passed
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.

Make asset support configurable and extensible

2 participants