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

feat: uni list mapping #766

Open
wants to merge 10 commits into
base: feat/coingecko-top-500
Choose a base branch
from

Conversation

alfetopito
Copy link
Collaborator

@alfetopito alfetopito commented Dec 13, 2024

Summary

Uni map listing

Additionally:

  • Migrate code to TS
  • Split into multiple files
  • Run for all chains both Coingecko and Uniswap mappings

@alfetopito alfetopito marked this pull request as ready for review December 13, 2024 17:09
@alfetopito alfetopito self-assigned this Dec 13, 2024
@alfetopito alfetopito requested a review from a team December 13, 2024 17:09
Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Nice you fixed the issues of typescript. I didn't see any TS related changes, how come this works now 🤯

Should you include some notes in the README on what this generates and how to run it?
It would be nice to describe there the general strategy to populate the lists.

Why some lists you print and some you don't?
image

console.log(`🥇 ${logMessage} on chain ${chainId}`)

tokens.forEach((token, index) => {
const volumeStr = token.volume ? `: $${token.volume}` : ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit (just suggestion): since you are improving this, u could add https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat, as the volume was a bit hard to read

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