Skip to content

Support token detection on custom networks #3157

@omnat

Description

@omnat

Description

This is MVP v2 of token detection where we add support for custom networks. Supported networks: Mainnet, Binance, Polygon, and Avalanche.

Technical Details

  • Enable Token Detection by default
  • Update What's new screen to show carousel with Token Detection information
  • Move Token Detection toggle to Advanced Settings screen
  • Show search functionality on supported networks + Update banners
  • Add tokens detected link below token list on Wallet screen
  • Add tokens detected action sheet to display detected tokens + ability to ignore or add tokens
  • Extend action sheet to have ability to drill into associated token lists
  • Add token ignore modal that shows up the first time you uncheck/ignore a token
  • Show token imported toast upon importing tokens from action sheet
  • Will need to update the AssetsContractController to support switching between different networks
  • Remove static token lists
  • Update token detection logic to only control auto detection. This means that we will always be attempting to pull the dynamic token list regardless of toggle state.
  • Add Token Added analytics event to importing tokens from action sheet
  • Update Tokens Added analytics event to include source field

Acceptance Criteria

  • Auto token detection should work on supported networks
  • Dynamic list should populate token list on search (supported networks listed above in description)
  • Should have ability to ignore and/or import detected tokens on supported networks
  • Upgrading app should display Whats new modal with token detection information
  • Analytics: Reusing existing analytics event Token Added but should also include source field

References

TODOs

  • Need to deploy Avalanche contract + retrieve contract address
  • Finalize token detection banner under add assets in Figma

Metadata

Metadata

Assignees

Labels

release-5.4.0Issue or pull request that will be included in release 5.4.0team-confirmations-secure-ux-deprecatedDEPRECATED: please use "team-confirmations" instead

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions