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 ERC20 and TRC20 indexers #288

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

Write unit tests for ERC20 and TRC20 indexers #288

chibie opened this issue Feb 7, 2024 · 3 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 test the ERC20 & TRC20 indexer functions so that the core transfer indexing logic is thoroughly tested.

Acceptance Criteria

  1. GIVEN the IndexERC20Transfer and IndexTRC20Transfer methods
    WHEN testing
    THEN validate it handles RPC client connection, filterer initialization, transfer event fetching & handling

  2. GIVEN the UpdateReceiveAddressStatus method
    WHEN testing
    THEN validate it handles status updates based on transfer details

  3. GIVEN the HandleReceiveAddressValidity method
    WHEN testing
    THEN validate it checks for address expiry based on the validity period

Product & Design Links

Tech Details

  • Mock CreateOrder, RevertOrder, and SendPaymentOrderWebhook methods

Open Questions

Notes/Assumptions

@chibie chibie added the enhancement New feature or request label Feb 7, 2024
@chibie chibie changed the title Write unit tests for ERC20 indexer Write unit tests for ERC20 and TRC20 indexers Jun 24, 2024
@chibie chibie assigned xlassix and unassigned OnahProsperity Jul 9, 2024
@Supa-mega
Copy link

May I take this issue on?

@viktrified
Copy link

May I be assigned to this?

@Belloabraham121
Copy link

Hi, I'm Iteooluwakisi!
I am a member of Web3Bridge and an experienced frontend developer proficient in ReactJS/NextJS, TypeScript, Solidity, and Rust. I would like to work on this.

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

7 participants