Skip to content

Implement badge voting/ranking system to allow community members to v…#124

Merged
joelamouche merged 6 commits intoTheSoftwareDevGuild:mainfrom
tusharshah21:fix-122-vote
Oct 30, 2025
Merged

Implement badge voting/ranking system to allow community members to v…#124
joelamouche merged 6 commits intoTheSoftwareDevGuild:mainfrom
tusharshah21:fix-122-vote

Conversation

@tusharshah21
Copy link
Collaborator

Description

Implement badge voting/ranking system to allow community members to vote on badge relevancy, helping to filter spam badges and promote the most relevant ones.

Changes

  • New Contract: TheGuildBadgeRanking
    • Integrates with TheGuildBadgeRegistry to enable voting on badges
    • Tracks upvotes per badge
    • Prevents duplicate voting from the same address on the same badge
    • Emits BadgeUpvoted event for off-chain indexing

Technical Details

  • Takes TheGuildBadgeRegistry as constructor argument for badge validation
  • Uses bytes32 badge names for consistent data structure
  • Gas efficient with minimal storage operations
  • Follows existing codebase patterns and conventions

Related Issue

Closes #122

Copy link
Contributor

@joelamouche joelamouche left a comment

Choose a reason for hiding this comment

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

Looks pretty good overall!

Please add a simple deployment script (uses hardcoded badge registry address) and add deployment of this contract to the full deployment script.

Also pls update readme

@tusharshah21
Copy link
Collaborator Author

Hey @joelamouche thanks for the pointing details, hoping I have covered it now! Let me know if anything is wrong still!

Copy link
Contributor

@joelamouche joelamouche left a comment

Choose a reason for hiding this comment

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

Okay looks great 👌

@joelamouche joelamouche merged commit 471de24 into TheSoftwareDevGuild:main Oct 30, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Badge TCR/Vote ranking: Smart Contract

2 participants

Comments