Skip to content

Profiles & Tips: by-address lookup, reactivate, image upload, prepare tx#1075

Merged
Akanimoh12 merged 1 commit into
Akanimoh12:test-implement-dripsfrom
dimka90:feat/profiles-tips-issues
Jun 27, 2026
Merged

Profiles & Tips: by-address lookup, reactivate, image upload, prepare tx#1075
Akanimoh12 merged 1 commit into
Akanimoh12:test-implement-dripsfrom
dimka90:feat/profiles-tips-issues

Conversation

@dimka90

@dimka90 dimka90 commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Changes

Profiles module (src/modules/profiles/)

  • GET /profiles/by-address/:address — Look up a profile by Stellar address. Returns profile data or 404 if not found / soft-deleted.
  • PATCH /profiles/reactivate — Reactivate a soft-deleted profile (sets deletedAt → null). Requires auth.
  • POST /profiles/image — Upload a profile image as base64 data URL, pins to IPFS (or generates simulated CID), stores the CID on the User. Requires auth.

Tips module (src/modules/tips/)

  • POST /tips/prepare — Builds an unsigned Soroban contract tip transaction via RPC simulation + assembleTransaction. Returns the unsigned XDR for the frontend wallet to sign.

Supporting

  • requireAuth middleware (JWT verification, Express type augmentation)
  • profileImageCid field added to User model + migration
  • Both routers registered in app.ts
  • OpenAPI docs for all endpoints with bearer auth security scheme
  • Vitest tests for all endpoints (33 tests passing)
  • Fixed pre-existing test mock hoisting issues in auth tests

Closes #854
Closes #859
Closes #864
Closes #875

…+ requireAuth

- GET /profiles/by-address/:address — lookup by Stellar address
- PATCH /profiles/reactivate — undo soft-delete
- POST /profiles/image — base64 image upload, IPFS pin, store CID
- POST /tips/prepare — build unsigned Soroban tip tx via RPC
- requireAuth middleware (JWT verification)
- profileImageCid on User model + migration
- OpenAPI docs with security scheme
- Fix pre-existing test mock hoisting issues
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@dimka90 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

@Akanimoh12 Akanimoh12 merged commit e0bd00d into Akanimoh12:test-implement-drips Jun 27, 2026
4 of 5 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

2 participants