Support token detection on Arbitrum, Optimism, Base, and zkSync#21841
Merged
Conversation
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
3 tasks
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #21841 +/- ##
===========================================
- Coverage 67.92% 67.91% -0.01%
===========================================
Files 1077 1077
Lines 41634 41646 +12
Branches 11215 11223 +8
===========================================
+ Hits 28279 28283 +4
- Misses 13355 13363 +8 ☔ View full report in Codecov by Sentry. |
Collaborator
Builds ready [af23fa3]
Page Load Metrics (376 ± 241 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
bergeron
added a commit
to MetaMask/core
that referenced
this pull request
Nov 27, 2023
## Explanation Adds support for token detection on arbitrum and optimism. The goal is to eventually support token detection on MetaMask's top 10 most popular networks. Token lists are available for both chains: - https://token-api.metaswap.codefi.network/tokens/42161 - https://token-api.metaswap.codefi.network/tokens/10 As well as the ERC20 balance checker: - https://github.com/wbobeirne/eth-balance-checker#deployed-addresses Related PR to extension (depends on this PR): MetaMask/metamask-extension#21841 ## References Related issues: - MetaMask/metamask-extension#17697 - MetaMask/metamask-extension#16496 ## Changelog <!-- If you're making any consumer-facing changes, list those changes here as if you were updating a changelog, using the template below as a guide. (CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or FIXED. For security-related issues, follow the Security Advisory process.) Please take care to name the exact pieces of the API you've added or changed (e.g. types, interfaces, functions, or methods). If there are any breaking changes, make sure to offer a solution for consumers to follow once they upgrade to the changes. Finally, if you're only making changes to development scripts or tests, you may replace the template below with "None". --> ### `@metamask/assets-controllers` - **ADDED**: Token detection support for Arbitrum and Optimism ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
… brian/token-detection-arbitrum-optimism
3 tasks
dbrans
pushed a commit
to MetaMask/core
that referenced
this pull request
Nov 30, 2023
## Explanation Adds support for token detection on arbitrum and optimism. The goal is to eventually support token detection on MetaMask's top 10 most popular networks. Token lists are available for both chains: - https://token-api.metaswap.codefi.network/tokens/42161 - https://token-api.metaswap.codefi.network/tokens/10 As well as the ERC20 balance checker: - https://github.com/wbobeirne/eth-balance-checker#deployed-addresses Related PR to extension (depends on this PR): MetaMask/metamask-extension#21841 ## References Related issues: - MetaMask/metamask-extension#17697 - MetaMask/metamask-extension#16496 ## Changelog <!-- If you're making any consumer-facing changes, list those changes here as if you were updating a changelog, using the template below as a guide. (CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or FIXED. For security-related issues, follow the Security Advisory process.) Please take care to name the exact pieces of the API you've added or changed (e.g. types, interfaces, functions, or methods). If there are any breaking changes, make sure to offer a solution for consumers to follow once they upgrade to the changes. Finally, if you're only making changes to development scripts or tests, you may replace the template below with "None". --> ### `@metamask/assets-controllers` - **ADDED**: Token detection support for Arbitrum and Optimism ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
bergeron
added a commit
to MetaMask/core
that referenced
this pull request
Dec 6, 2023
## Explanation Adds support for token detection on Base and zkSync. After these chains, we'll support token detection on MetaMask's top 10 most popular networks. Token lists are available for both chains: - https://token-api.metaswap.codefi.network/tokens/8453 - https://token-api.metaswap.codefi.network/tokens/324 I deployed and verified the [ERC20 balance checker](https://github.com/wbobeirne/eth-balance-checker) on both chains, since I didn't find existing ones documented: - https://basescan.org/address/0x6aa75276052d96696134252587894ef5ffa520af#code - https://explorer.zksync.io/address/0x458fEd3144680a5b8bcfaa0F9594aa19B4Ea2D34#contract Related PR to extension (depends on this PR): MetaMask/metamask-extension#21841 Tested successfully through the extension. It autodetected my ERC20 tokens on both chains. ## References Related issues: - MetaMask/metamask-extension#17697 - MetaMask/metamask-extension#16496 ## Changelog ### `@metamask/assets-controllers` - **ADDED**: Token detection support for Base and zkSync ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
salimtb
approved these changes
Dec 20, 2023
Collaborator
Builds ready [7fceccc]
Page Load Metrics (1382 ± 99 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
sahar-fehri
approved these changes
Dec 21, 2023
Collaborator
Builds ready [ba04e72]
Page Load Metrics (1500 ± 148 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
NidhiKJha
approved these changes
Jan 3, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Supports token detection on Arbitrum, Optimism, Base, and zkSync
Accompanying PRs to core:
Related issues
Manual testing steps
Screenshots/Recordings
Before
Screen.Recording.2023-11-14.at.9.32.27.AM.mov
After
Screen.Recording.2023-11-14.at.9.30.53.AM.mov
Pre-merge author checklist
Pre-merge reviewer checklist