Skip to content

feat: add loan lifecycle management endpoints and WebSocket support - #1054

Merged
ONEONUORA merged 1 commit into
Fracverse:masterfrom
GideonBature:loan-lifecycle-collateral-management
Aug 24, 2026
Merged

feat: add loan lifecycle management endpoints and WebSocket support#1054
ONEONUORA merged 1 commit into
Fracverse:masterfrom
GideonBature:loan-lifecycle-collateral-management

Conversation

@GideonBature

Copy link
Copy Markdown
Contributor

This PR:

  • Introduced new API endpoints for loan lifecycle management: freeze-loans, recall-loans, and liquidate-settle.
  • Implemented middleware to support both JWT and signature-based authentication for these endpoints.
  • Added a new PlanStatusEvent struct for WebSocket clients to receive updates on loan status.
  • Updated the WebSocket handler to manage both KYC updates and loan lifecycle status updates.
  • Enhanced the StellarSubmitClient with methods for freezing loans, recalling loans, and simulating contract invocations.
  • Updated frontend API client to handle new loan lifecycle responses and trigger information.
  • Added tests to ensure proper authentication and functionality of new endpoints.

Closes #1035

- Introduced new API endpoints for loan lifecycle management: `freeze-loans`, `recall-loans`, and `liquidate-settle`.
- Implemented middleware to support both JWT and signature-based authentication for these endpoints.
- Added a new `PlanStatusEvent` struct for WebSocket clients to receive updates on loan status.
- Updated the WebSocket handler to manage both KYC updates and loan lifecycle status updates.
- Enhanced the `StellarSubmitClient` with methods for freezing loans, recalling loans, and simulating contract invocations.
- Updated frontend API client to handle new loan lifecycle responses and trigger information.
- Added tests to ensure proper authentication and functionality of new endpoints.

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GReat job @GideonBature

@ONEONUORA
ONEONUORA merged commit 6b94b2a into Fracverse:master Aug 24, 2026
6 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.

backend: Implement Loan Lifecycle & Collateral Management Endpoints

2 participants