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

#789 | Fetch internal transactions from new API #813

Conversation

Viterbo
Copy link
Collaborator

@Viterbo Viterbo commented Aug 1, 2024

Fixes #789

Only if this link(solved in this PR) shows version >= 1.2.3
Blocked by https://github.com/telosnetwork/teloscan-indexer/pull/281

Description

This PR adapts the component showing the last internal transaction for a given address or in general. The count column was removed along with the expand/collapse column because now we can paginate directly from the internal transaction API instead of having to fetch transactions first in order to then fetch the corresponding internal transactions for each previous result.

However, given the fact that the API is not completely ready, a result sample was hardcoded and the fetching of the data is currently simulated (with 2 seconds of simulated loading) to show the new component in action while we wait for the indexer API to be completed.

Test scenarios

@Viterbo Viterbo self-assigned this Aug 1, 2024
Copy link

netlify bot commented Aug 1, 2024

Deploy Preview for dev-mainnet-teloscan ready!

Name Link
🔨 Latest commit a51752a
🔍 Latest deploy log https://app.netlify.com/sites/dev-mainnet-teloscan/deploys/673df70ed11cc700081766a4
😎 Deploy Preview https://deploy-preview-813--dev-mainnet-teloscan.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Aug 1, 2024

Deploy Preview for teloscan-stage ready!

Name Link
🔨 Latest commit a51752a
🔍 Latest deploy log https://app.netlify.com/sites/teloscan-stage/deploys/673df70ef6a37800086cd415
😎 Deploy Preview https://deploy-preview-813--teloscan-stage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Aug 1, 2024

Deploy Preview for testnet-teloscan ready!

Name Link
🔨 Latest commit a51752a
🔍 Latest deploy log https://app.netlify.com/sites/testnet-teloscan/deploys/673df70e72a3050008714a93
😎 Deploy Preview https://deploy-preview-813--testnet-teloscan.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Viterbo Viterbo changed the title #789 | Fetch internal transactions from new API (simulation by now) #789 | Fetch internal transactions from new API Sep 22, 2024
@Viterbo Viterbo added the 🚫 Blocked Work cannot be done until blocker is resolved label Sep 22, 2024
@Viterbo Viterbo marked this pull request as ready for review September 22, 2024 20:53
@Viterbo Viterbo removed the 🚫 Blocked Work cannot be done until blocker is resolved label Nov 18, 2024
@Viterbo Viterbo requested a review from pmjanus November 18, 2024 13:35
@pmjanus
Copy link
Contributor

pmjanus commented Nov 20, 2024

There is an issue with this one:

  1. If you go here https://deploy-preview-813--dev-mainnet-teloscan.netlify.app/txsinternal?a=0xa30b5e3c8Fee56C135Aecb733cd708cC31A5657a&page=7,10
    then go to navbar Blockchain -> Internal Transactions, the filter for the address is removed from URL and from the page title but the table is not refreshed to not be filtered by the address. If you refresh the page then you get the proper unfiltered page.

@pmjanus pmjanus merged commit d64a487 into dev Nov 20, 2024
13 checks passed
@pmjanus pmjanus deleted the 789-adapt-the-way-we-query-the-last-internal-transactions-for-an-address branch November 20, 2024 22:44
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.

2 participants