XLabs / wormscan-ui

5 stars 3 forks source link

Validate VAA Duplication Status on Transaction Detail Page #638

Open SamantaCasal opened 2 months ago

SamantaCasal commented 2 months ago

Description:

As part of enhancing user experience on the transaction detail page, we need to implement a feature that validates whether a VAA is duplicated. The result should be displayed on the transaction detail page within a tooltip over the VAA ID.

Acceptance Criteria:

  1. The tooltip will only appear if the VAA is duplicated.
  2. Endpoint Decision:
    • Determine the most efficient and correct method to check for VAA duplication between using the isDuplicated field in the operations endpoint or the specific /api/v1/vaas/:chain_id/:emitter/:seq/duplicated API endpoint.
  3. UI Implementation:
    • Implement a tooltip on the VAA ID field in the transaction detail page.
    • The tooltip should only appear and indicate "Duplicated" if the VAA is indeed a duplicate.
    • If the VAA is not duplicated, the tooltip should not be displayed.