Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/gm and node delegation #32

Merged
merged 2 commits into from
Dec 2, 2024
Merged

Conversation

Agilulfo1820
Copy link
Member

Upgrade VeBetterPassport to Version 3, GalaxyMember to Version 3, and VoterRewards version 4

Added new personhood check in VeBetter passport, if a user owns a GM with a level greater than 1 they are considered a person.


Updated GalaxyMember to checkpoint selected GM NFT and allow admin to select token for user for GM levels go live.


Updated VoterRewards to use version 3 of GalaxyMember interface.

Changes 🚀

  • Upgraded Contract(s):
    • VeBetterPassport.sol to version 3
    • GalaxyMember.sol to version 3
    • VoterRewards.sol to version 4

Storage Changes 📦

  • GalaxyMember:
    • Added _selectedTokenIDCheckpoints to store checkpoints for selected GM token ID of the user.

New Features 🚀

  • VeBetterPassport:
    • Updated PassportPersonhoodLogic.sol library's function _checkPassport() to include check for GM level.
  • GalaxyMember:
    • Added selectFor() function to allow the admin to select a token for the user.
    • Added clock() and CLOCK_MODE() functions to allow for custom time tracking.
    • Added getSelectedTokenIdAtBlock() to get the selected GM token ID for the user at a specific block number.
    • Updated Node Management interface to include new getters of Node Management V2 contract.

@Agilulfo1820 Agilulfo1820 requested a review from a team as a code owner December 2, 2024 12:02
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.90%. Comparing base (3a2fd28) to head (09fa6c3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #32   +/-   ##
=======================================
  Coverage   93.90%   93.90%           
=======================================
  Files          55       55           
  Lines        3463     3463           
  Branches      774      774           
=======================================
  Hits         3252     3252           
  Misses        211      211           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Agilulfo1820 Agilulfo1820 merged commit f463f13 into main Dec 2, 2024
9 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.

3 participants