Skip to content

Fix/issues 277 281 - #359

Merged
james2177 merged 5 commits into
stellar-vortex-protocol:mainfrom
Silasdotmd:fix/issues-277-281
Sep 2, 2026
Merged

Fix/issues 277 281#359
james2177 merged 5 commits into
stellar-vortex-protocol:mainfrom
Silasdotmd:fix/issues-277-281

Conversation

@Silasdotmd

Copy link
Copy Markdown
Contributor

Fix pagination and retention hardening for intent endpoints

This PR addresses the unbounded listing and retention issues across the intent APIs while keeping the changes narrow and consistent with the existing codebase patterns.

Summary

  • Adds pagination to GET /api/v1/intents/open and GET /api/v1/intents/user/:address using the existing ListIntentsDto validation rules, capped at 100 results.
  • Returns a paginated envelope consistent with the main intent listing: { intents, total, limit, offset }.
  • Keeps the older count field as a compatibility alias where relevant.
  • Adds a configurable in-memory retention sweep for stale terminal-state intents (filled, cancelled, expired, slashed) to prevent unbounded memory growth.
  • Exposes a solver-capability endpoint: GET /api/v1/solvers/:address/eligible-intents, filtering currently open intents by the solver's declared chain/token support.
  • Adds pagination to GET /api/v1/intents/:id/audit while preserving the oldest-first log ordering and returning total / limit / offset metadata.
  • Documents the behavior change in CHANGELOG.md.

Closes

Notes

  • The pagination defaults are bounded and safe for existing callers.
  • Retention only applies to the in-memory adapter and is a no-op when the durable backend is active.
  • Scope is intentionally limited to the listed issues and avoids unrelated churn.

Validation

  • The repo has unrelated baseline issues that prevent a clean full-project typecheck from succeeding, so I kept the fix tight and targeted to the requested issue set and performed focused smoke checks around the changed logic.

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@Silasdotmd Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@james2177
james2177 merged commit 36e1910 into stellar-vortex-protocol:main Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants