Skip to content
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

Write unit tests for order refunded indexer #290

Open
chibie opened this issue Feb 7, 2024 · 2 comments
Open

Write unit tests for order refunded indexer #290

chibie opened this issue Feb 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@chibie
Copy link
Contributor

chibie commented Feb 7, 2024

User Story

As a developer, I want to write tests for the IndexOrderRefunded function so that the refund indexing logic is thoroughly tested.

Acceptance Criteria

  1. GIVEN the IndexOrderRefunded and IndexOrderRefundedTron methods
    WHEN testing
    THEN validate it handles RPC client connection, filterer initialization, and new refund event fetching & handling

  2. GIVEN the UpdateOrderStatusRefunded method
    WHEN testing
    THEN validate it updates the order status based on the refund details

Product & Design Links

Tech Details

  • Deploy contracts to Ganache and use it's provided RPC client

Open Questions

Notes/Assumptions

@chibie chibie added the enhancement New feature or request label Feb 7, 2024
@Supa-mega
Copy link

Can I jump on this task?

@viktrified
Copy link

Could I take on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants