Skip to content

refactor: implement interface-based DI for TokenGiverIndexerService#52

Open
olisaagbafor wants to merge 1 commit into
Token-Giver:mainfrom
olisaagbafor:refactor/token-giver-indexer-di
Open

refactor: implement interface-based DI for TokenGiverIndexerService#52
olisaagbafor wants to merge 1 commit into
Token-Giver:mainfrom
olisaagbafor:refactor/token-giver-indexer-di

Conversation

@olisaagbafor

Copy link
Copy Markdown

This PR implements interface-based dependency injection for TokenGiverIndexerService to improve testability and maintainability.

Changes:

  • Created interfaces for TokenGiverIndexerService, SharedIndexerService, and PrismaService
  • Added injection tokens for all services
  • Updated service implementations to use interfaces
  • Fixed module configurations to avoid duplicate providers
  • Updated tests to use interface-based mocks

Testing:

- Add interfaces for all services
- Implement interface-based dependency injection
- Update module configurations
- Fix circular dependencies
- Update tests to use interface mocks
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.

Refactor TokenGiverIndexerService to Use Interface-Based Dependency Injection

1 participant