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

#82 | Token detail page v1 - WIP #87

Closed
wants to merge 28 commits into from
Closed

#82 | Token detail page v1 - WIP #87

wants to merge 28 commits into from

Conversation

ezra-sg
Copy link
Contributor

@ezra-sg ezra-sg commented Jul 5, 2022

DNM while indexer work is WIP

TODO

  • update pr testing notes
    • include disclaimer about holders chart

Addresses #82

This PR contains an initial implementation of the /token route, which allows users to view transactions and holders for a given token contract address.

At this time, result set is fixed at 1000 rows for both tx and holders, with client-side pagination to navigate that result set (using quasar's built-in table component + pagination).

Notes:

  • added new directory src/pages/token for related files
  • Vue instances now have access to this.$teloscanApi for uniform usage to this.$telosApi (which is an Axios instance) for endpoints hosted at TELOSCAN_API_ENDPOINT (https://api.teloscan.io/v1)

Testing notes:

Happy path:

  • go to the WTLOS token page: http://localhost:8080/token/0xD102cE6A4dB07D247fcc28F366A623Df0938CA9E
    • you should be redirected to http://localhost:8080/token/0xD102cE6A4dB07D247fcc28F366A623Df0938CA9E#transfers
    • you should see a loading state, then,
    • you should see the WTLOS token icon (purple circle with white acorn shape) and the text Wrapped TLOS (WTLOS)
    • you should see working links to the creation tx, creator address, and link to Contract/Address page
    • you should see the Transfers table with 50 rows
  • click the Contract info link in the header section
    • you should be taken to the WTLOS contract info (/address) page
    • you should see a link back to the token info page
  • click transaction, to, and from addresses from any row(s)
    • you should be taken to the correct route, /tx/{id} for the transaction hash and /address/{id} for to/from
  • click on the holders tab
  • click on any link in the Address column
    • you should be taken to /address/{id}
    • the address page should not have a link back to the token page (assuming the clicked address is not a token contract)

Invalid token address / no data:

  • go to http://localhost:8080/token/0x123
    • you should see a loading state, then,
    • you should see a placeholder icon (translucent purple circle with gray Telos EVM logo) and the text "Unknown token"
    • Transfers table should be empty
  • click on Holders tab
    • table should be empty

Address formatting:

@ezra-sg ezra-sg added the WIP label Jul 5, 2022
@ezra-sg ezra-sg marked this pull request as ready for review July 5, 2022 22:40
@ezra-sg ezra-sg removed the WIP label Jul 5, 2022
@poplexity poplexity linked an issue Jul 6, 2022 that may be closed by this pull request
1 task
@ezra-sg ezra-sg added the WIP label Jul 6, 2022
@ezra-sg ezra-sg removed the WIP label Jul 8, 2022
@ezra-sg ezra-sg added the WIP label Jul 11, 2022
@ezra-sg ezra-sg added DNM and removed WIP labels Jul 11, 2022
@ezra-sg ezra-sg changed the base branch from master to dev August 3, 2022 16:27
donnyquixotic
donnyquixotic previously approved these changes Aug 11, 2022
@donnyquixotic donnyquixotic marked this pull request as draft October 2, 2022 00:33
@donnyquixotic donnyquixotic removed the DNM label Oct 10, 2022
@netlify
Copy link

netlify bot commented Dec 14, 2022

Deploy Preview for dev-mainnet-teloscan ready!

Name Link
🔨 Latest commit 483dbbc
🔍 Latest deploy log https://app.netlify.com/sites/dev-mainnet-teloscan/deploys/63ab5415c297e50008f3e0c4
😎 Deploy Preview https://deploy-preview-87--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 settings.

@netlify
Copy link

netlify bot commented Dec 14, 2022

Deploy Preview for teloscan-stage ready!

Name Link
🔨 Latest commit 483dbbc
🔍 Latest deploy log https://app.netlify.com/sites/teloscan-stage/deploys/63ab5415d0e37e0008df1a76
😎 Deploy Preview https://deploy-preview-87--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 settings.

@ezra-sg ezra-sg changed the title Indexer Integration - /token route v1 WIP - Indexer Integration - /token route v1 Dec 14, 2022
@ezra-sg ezra-sg changed the title WIP - Indexer Integration - /token route v1 #82 WIP - Indexer Integration - /token route v1 Dec 22, 2022
@telosnetwork telosnetwork deleted a comment from netlify bot Dec 22, 2022
@telosnetwork telosnetwork deleted a comment from netlify bot Dec 22, 2022
@telosnetwork telosnetwork deleted a comment from netlify bot Dec 22, 2022
@telosnetwork telosnetwork deleted a comment from cloudflare-pages bot Dec 22, 2022
@ezra-sg ezra-sg changed the title #82 WIP - Indexer Integration - /token route v1 #82 | WIP - Token detail page v1 Dec 23, 2022
@cloudflare-pages
Copy link

cloudflare-pages bot commented Dec 23, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 483dbbc
Status: ✅  Deploy successful!
Preview URL: https://bf67b2b6.teloscan.pages.dev
Branch Preview URL: https://token-route.teloscan.pages.dev

View logs

@ezra-sg ezra-sg changed the title #82 | WIP - Token detail page v1 #82 | Token detail page v1 - WIP Dec 23, 2022
@ezra-sg ezra-sg closed this Jun 16, 2023
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.

Token page with holders and transfers
4 participants