Skip to content

Feat/implement reputation storage#222

Merged
soomtochukwu merged 11 commits into
DXmakers:mainfrom
devfoma:Feat/Implement-reputation-storage
Apr 22, 2026
Merged

Feat/implement reputation storage#222
soomtochukwu merged 11 commits into
DXmakers:mainfrom
devfoma:Feat/Implement-reputation-storage

Conversation

@devfoma
Copy link
Copy Markdown
Contributor

@devfoma devfoma commented Apr 22, 2026

Summary

This pr closes #84

  • Formalized on-chain reputation by introducing a unified Profile storage structure per address.
  • Optimized storage footprint by consolidating client and freelancer metrics into a single persistent ledger entry.
  • Added support for decentralized metadata linking via metadata_hash (IPFS CID) for user bios and headlines.
  • Refactored submit_rating, update_score, and slash methods to utilize the modularized profile and storage components.
  • Maintained backward compatibility for the get_score public API while enabling future expansion of decentralized identity features.

Testing

  • All existing reputation unit tests verified against the new unified storage model.
  • New test case test_profile_metadata verified IPFS hash persistence and authorization.
  • New test case test_unified_storage verified cross-role metric coexistence in a single address entry.

Checklist

  • Linked issue or backlog item (Implement Reputation storage (per address))
  • Contract behavior and invariants are described clearly
  • Docs updated if contract interfaces or workflows changed
  • Scope stays limited to one contract concern (Reputation storage)

@devfoma devfoma requested a review from soomtochukwu as a code owner April 22, 2026 22:47
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 22, 2026

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

@soomtochukwu soomtochukwu merged commit 7318002 into DXmakers:main Apr 22, 2026
3 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.

Implement Reputation storage (per address)

2 participants