Skip to content

feat(reputation): add badge metadata mapping to decentralised storage#587

Merged
soomtochukwu merged 3 commits into
DXmakers:mainfrom
Chucks1093:feat/rep-052-badge-metadata-406
May 27, 2026
Merged

feat(reputation): add badge metadata mapping to decentralised storage#587
soomtochukwu merged 3 commits into
DXmakers:mainfrom
Chucks1093:feat/rep-052-badge-metadata-406

Conversation

@Chucks1093
Copy link
Copy Markdown
Contributor

@Chucks1093 Chucks1093 commented May 27, 2026

Closes #406

Summary

  • Adds BadgeTier enum and BadgeMetadataEntry struct for associating on-chain URIs with badge tiers
  • Profile gains a badge_metadata vector; admin can set/overwrite per-tier metadata via set_badge_metadata
  • Adds get_badge_metadata public function returning Option<Bytes> for a given address and tier

Test plan

  • Set/get round-trip, None when unset, overwrite semantics, multiple tiers independent

Adds BadgeTier enum and BadgeMetadataEntry struct to Profile for
per-tier IPFS/URI storage. set_badge_metadata (admin-only) stores a URI
for a given tier and address; get_badge_metadata retrieves it.
Updating an existing tier overwrites the entry in-place.

Four tests cover: set/get round-trip, absent tier returns None,
overwrite semantics, and multiple tiers stored independently.

Closes DXmakers#406

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Chucks1093 Chucks1093 requested a review from soomtochukwu as a code owner May 27, 2026 14:40
@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

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

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@Chucks1093 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 49c4d3f into DXmakers:main May 27, 2026
2 of 7 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.

[SC-REP-052] Reputation System Robustness Auditing - Step 52

2 participants