-
Notifications
You must be signed in to change notification settings - Fork 2
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: node management, endorsing and gm #30
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #30 +/- ##
==========================================
- Coverage 96.79% 93.90% -2.90%
==========================================
Files 48 55 +7
Lines 3437 3463 +26
Branches 474 774 +300
==========================================
- Hits 3327 3252 -75
- Misses 109 211 +102
+ Partials 1 0 -1 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
roisindowling
force-pushed
the
endors
branch
from
November 19, 2024 22:06
9cc5aa1
to
650d853
Compare
Agilulfo1820
approved these changes
Nov 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade
X2EarnApps
to Version 2Added Vechain Node XApp Endorsement feature.
Changes 🚀
X2EarnApps.sol
to version2
Storage Changes 📦
EndorsementUpgradeable.sol
:_unendorsedApps
to store the list of apps pending endorsement._unendorsedAppsIndex
to store mapping from app ID to index in the _unendorsedApps array._appEndorsers
to store the mapping of each app ID to an array of node IDs that have endorsed it._nodeEnodorsmentScore
to score the endorsement score for each node level._appGracePeriodStart
to store the grace period elapsed by the app since endorsed._nodeToEndorsedApp
to store the mapping of a node ID to the app it currently endorses._gracePeriodDuration
to store the grace period threshold for no endorsement in blocks._endorsementScoreThreshold
to store the endorsement score threshold for an app to be eligible for voting._appScores
to store the score of each app._appSecurity
to store the security score of each app._nodeManagementContract
to store the node management contract address._veBetterPassport
to store the VeBetterPassport contract address.EndorsementUpgradeable.sol
:_creators
to store a mapping of addresses that have a creators NFT and can manage interactions with Node holders for a specifc XApp._creatorApps
to store the number of apps created by a creator._x2EarnCreatorContract
to store the address of the X2Earn Creators contract.VoteEligibilityUpgradeable.sol
:_blackList
to store a record blacklisted X2Earn appIds.New Features 🚀
EndorsementUpgradeable.sol
module which makes up all X2EarnApps endorsement logic and functions (see docs for more info).appApp()
withsubmitApp()
.isBlacklisted()
to check if XApp is blacklisted.removeAppCreator()
,appCreators()
,isAppCreator()
andcreatorApps()
to manage and get info on X2Earn app creators.Bug Fixes 🐛
AdministrationUtils.sol
,EndorsementUtils.sol
,AppStorageUtils.sol
andVoteEligibilityUtils.sol
to store some of the logic for the X2EarnApps contracts modules to reduce contract size.