Implement Reputation Query API with leaderboards and analytics - #312
Merged
dDevAhmed merged 3 commits intoJul 29, 2026
Merged
Conversation
…d analytics - Add ReputationRecord and ReputationEvent entities with TypeORM - Implement ReputationService with retrieval, history, leaderboards, and search - Add ReputationController with full REST API endpoints - Integrate Redis caching via ReputationCache - Add DTOs with class-validator and Swagger decorators - Include unit tests for ReputationService - Register ReputationModule in AppModule Closes DigiNodes#275
Contributor
Author
|
@dDevAhmed please review. |
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.
Summary
Implemented a production-ready Reputation Query API following the existing project architecture and coding conventions.
Changes
ReputationRecordandReputationEvententities with TypeORM, including proper indexing for query performanceReputationServicewith wallet lookup, historical events, leaderboards, search, and analyticsReputationControllerwith full REST API endpoints (Swagger-documented)ReputationCachefor user reputation, leaderboards, and statisticsclass-validatorand@nestjs/swaggerdecoratorsReputationServiceReputationModulein the mainAppModuleEndpoints
GET /reputation— List all reputation records with filtering and paginationGET /reputation/user/:wallet— Get reputation for a wallet addressGET /reputation/users?wallets=...— Get reputation for multiple walletsGET /reputation/user/:wallet/events— Get reputation events historyGET /reputation/leaderboard— Get leaderboard (highest, fastest_growing, most_active, highest_rewards)GET /reputation/stats— Get reputation statisticsGET /reputation/search?q=...— Search reputation by wallet addressCloses #276
Closes #275
Closes #274
Closes #277