Merged
Conversation
added 15 commits
March 27, 2025 21:55
…management - Replaced UserPointsEntity with direct GCR integration for user points. - Updated methods to retrieve user identities and points from GCR. - Removed unused UserPointsEntity and related database fields. - Enhanced wallet and Twitter linking methods to award points through GCR. - Improved error handling and response messages for identity and points queries.
- Added @cosmjs/encoding dependency to package.json. - Refactored identity retrieval methods in PointSystem to use getIdentities and include GitHub as a source for web2 identities.
- Updated the typeof of the field variable in verifyWeb2Proof function to TwitterProofParser | GithubProofParser instead of Web2ProofParser, to get the correct instance
- Added logic to create a new account in GCR if one does not exist for the given user ID. - Initialized total points and breakdown for new accounts.
- Added TURNSTILE_SECRET_KEY to the environment configuration. - Updated handleIdentityRequest to use the correct type for Turnstile verification payload.
… and PointSystem - Simplified the onTwitterLinked method to only require userId. - Updated PointSystem to handle Twitter identities more efficiently and added platform-specific breakdown for social accounts. - Enhanced awardTwitterPoints method to check for existing points and award them accordingly. - Adjusted data structures to support multiple social platforms in points breakdown.
cwilvx
reviewed
May 12, 2025
added 3 commits
May 13, 2025 20:39
- Moved the incentive point awarding logic for wallet and social media linking to be more readable and maintainable. - Updated the simulate flag in endpointHandlers to true
- Deleted the IncentiveController class to streamline the incentive point awarding process. - Updated GCRIdentityRoutines to utilize IncentiveManager for wallet and social media linking. - Removed references to IncentiveController in endpointHandlers and handleIdentityRequest for cleaner code structure.
cwilvx
approved these changes
May 17, 2025
This file contains hidden or 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
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.
This PR introduces a new incentives system to the Demos platform, enabling users to earn points for linking wallets and social accounts. The main features and changes include: