Skip to content

feat(reputation): transfer blockers, profile checkpoint, delete rebate, bulk lookups#604

Open
oomokaro1 wants to merge 1 commit into
DXmakers:mainfrom
oomokaro1:feat/reputation-enhancements
Open

feat(reputation): transfer blockers, profile checkpoint, delete rebate, bulk lookups#604
oomokaro1 wants to merge 1 commit into
DXmakers:mainfrom
oomokaro1:feat/reputation-enhancements

Conversation

@oomokaro1
Copy link
Copy Markdown

@oomokaro1 oomokaro1 commented May 27, 2026

What changed

  • Added transfer blocker flag to Profile — reputation is non-transferable by default, admin can toggle per-profile
  • Added profile_exists function for job registry to verify profile existence before operations
  • Added delete_profile with storage cleanup (rent rebate on deletion)
  • Added get_scores_bulk and query_reputations_bulk for gas-efficient frontend lookups
  • Added 10 new tests covering all new functionality (22 total, all passing)

Why

Implements the four reputation contract enhancements requested in issues #408, #411, #412, #413.

How to test

cd contracts/reputation && cargo test

Closes #408
Closes #411
Closes #412
Closes #413

@oomokaro1 oomokaro1 requested a review from soomtochukwu as a code owner May 27, 2026 18:16
@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

@oomokaro1 is attempting to deploy a commit to the mAzI's projects Team on Vercel.

A member of the Team first needs to authorize it.

…lete with rebate, and bulk lookups

Implements four reputation contract enhancements:

- Transfer blockers (DXmakers#408): reputation is non-transferable by default; admin can toggle per-profile
- Profile existence checkpoint (DXmakers#411): `profile_exists` function for job registry integration
- Storage rent rebate on delete (DXmakers#412): `delete_profile` removes storage and frees rent
- Gas-efficient bulk lookups (DXmakers#413): `get_scores_bulk` and `query_reputations_bulk` for frontend

All 30 tests pass including 10 new tests covering the added functionality.

Fixes DXmakers#408
Fixes DXmakers#411
Fixes DXmakers#412
Fixes DXmakers#413
@oomokaro1 oomokaro1 force-pushed the feat/reputation-enhancements branch from 5defee2 to d6507ca Compare May 27, 2026 18:57
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

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

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

Labels

None yet

Projects

None yet

1 participant