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

fix(Tokens Dropdown): tokens by network and native tokens #157

Merged
merged 10 commits into from
Jul 8, 2024

Conversation

fernandomg
Copy link
Member

Closes #32

Description:

This is PR to conclude what has been done in #150.

This mainly:

  • defines an env variable with the standard "native token address", 0xeee...
  • adds native token support to each chain (if found)
  • displays the native token in the TopTokens list
  • fixes the annoying tsc code verification by using tsc-files to ensure only those staged files are checked in the pre-commit hook.
  • fixes the greedy re-fetch behavior for the token lists by setting an Infinity value to the gcTime param.

Balance fetch will be worked on a separate task: #156

Steps:

Check that TokenList behave as expected

Type of change:

  • New feature
  • Bug fix
  • Breaking change
  • Enhancement
  • Refactoring
  • Chore

How Has This Been Tested?

  • Manual testing
  • Automated tests
  • Other (explain)

Remember to check that:

  • Your code follows the style guidelines of this project
  • You have performed a self-review of your code
  • You have commented your code in hard-to-understand areas
  • You have made corresponding changes to the documentation
  • Your changes generate no new warnings

Screenshots

Screen.Recording.2024-07-08.at.11.37.22.AM.mov
Screen.Recording.2024-07-08.at.12.50.33.PM.mov

Copy link

vercel bot commented Jul 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dappbooster ✅ Ready (Inspect) Visit Preview Jul 8, 2024 5:29pm

# Conflicts:
#	pnpm-lock.yaml
#	src/pageComponents/home/Examples/demos/TokenDropdown/index.tsx
#	src/pageComponents/home/Examples/demos/assets/Optimism.tsx
Copy link
Collaborator

@luchobonatti luchobonatti left a comment

Choose a reason for hiding this comment

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

Awesome work fer!
Just, remove the changes in the TransactionButton Component to avoid conflicts with #161

Copy link
Collaborator

@luchobonatti luchobonatti Jul 8, 2024

Choose a reason for hiding this comment

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

Please, remove these changes. I fixed it in #161 .

@gabitoesmiapodo
Copy link
Collaborator

I updated the dropdown with some changes from db-ui-toolkit, but LGTM.

Copy link
Collaborator

@luchobonatti luchobonatti left a comment

Choose a reason for hiding this comment

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

💯

@gabitoesmiapodo gabitoesmiapodo merged commit 7b4b4bd into main Jul 8, 2024
2 checks passed
@gabitoesmiapodo gabitoesmiapodo deleted the feat/32-tokens-dropdown branch July 8, 2024 19:21
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.

Tokens Dropdown
3 participants