Skip to content

Implement Reputation Query API with leaderboards and analytics - #312

Merged
dDevAhmed merged 3 commits into
DigiNodes:mainfrom
DeEvelyn:fix/issue-275-implement-reputation-query-api
Jul 29, 2026
Merged

Implement Reputation Query API with leaderboards and analytics#312
dDevAhmed merged 3 commits into
DigiNodes:mainfrom
DeEvelyn:fix/issue-275-implement-reputation-query-api

Conversation

@DeEvelyn

@DeEvelyn DeEvelyn commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Implemented a production-ready Reputation Query API following the existing project architecture and coding conventions.

Changes

  • Added ReputationRecord and ReputationEvent entities with TypeORM, including proper indexing for query performance
  • Implemented ReputationService with wallet lookup, historical events, leaderboards, search, and analytics
  • Added ReputationController with full REST API endpoints (Swagger-documented)
  • Integrated Redis caching via ReputationCache for user reputation, leaderboards, and statistics
  • Added DTOs with class-validator and @nestjs/swagger decorators
  • Included unit tests for ReputationService
  • Registered ReputationModule in the main AppModule

Endpoints

  • GET /reputation — List all reputation records with filtering and pagination
  • GET /reputation/user/:wallet — Get reputation for a wallet address
  • GET /reputation/users?wallets=... — Get reputation for multiple wallets
  • GET /reputation/user/:wallet/events — Get reputation events history
  • GET /reputation/leaderboard — Get leaderboard (highest, fastest_growing, most_active, highest_rewards)
  • GET /reputation/stats — Get reputation statistics
  • GET /reputation/search?q=... — Search reputation by wallet address

Closes #276
Closes #275
Closes #274
Closes #277

DeEvelyn and others added 2 commits July 28, 2026 12:54
…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
@DeEvelyn

Copy link
Copy Markdown
Contributor Author

@dDevAhmed please review.

@dDevAhmed
dDevAhmed merged commit fc06de4 into DigiNodes:main Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants