-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
[token-detection-controller] Refactor detectTokens
method
#3938
Merged
MajorLift
merged 17 commits into
main
from
240216-TokenDetectionController-detectTokens-refactor
Mar 4, 2024
Merged
Changes from 10 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6916333
Add missing method return types
MajorLift 18134a5
Type `networkClientId` as `NetworkClientId`
MajorLift 52f72f4
Consolidate `tokenList`, `tokenListUsed` variables
MajorLift 7562360
[detectTokens] Refactor by extracting three methods:`#getCorrectChain…
MajorLift 0ad0629
Fix typing, excess properties from legacy token list
MajorLift 5974b85
[detectTokens] Extract `tokenList` into class field
MajorLift 99f1cff
test: adjust coverage thresholds
MajorLift d6caee2
Replace network-controller `getProviderConfig`, `findNetworkClientIdB…
MajorLift cad9b3b
Update changelog
MajorLift a09fcda
Linter fixes
MajorLift f060ced
Enable detection of arbitrary number of tokens in batches of 1000
MajorLift 87b8f6a
Remove unnecessary early exit condition
MajorLift 5bbc5a2
Update packages/assets-controllers/CHANGELOG.md
MajorLift d0f6f69
Remove `networkClientId` from constructor options. `#networkClientId`…
MajorLift ab0e3eb
Replace unnecessary class fields `#{chainId,address,networkClientId}A…
MajorLift 12ba664
Remove unnecessary class field `#chainId`
MajorLift 59da8a6
Merge branch 'main' into 240216-TokenDetectionController-detectTokens…
MajorLift File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heads up: #3998 will make it impossible to import subpaths, so this will need to be changed when that happens, but is okay for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I was surprised to learn that
AutoManagedNetworkClient
isn't a package-level export. Is this an intentional choice? Otherwise I could create a ticket for exporting this.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wasn't. I don't think I expected anyone to have to use this type, as it's low-level. But there's no harm in exporting it or anything.