-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate token list controller data (#527)
* Add utils function to convert contract metadata logo to iconUrl. Return same token type regardless of static or dynamic from token list controller. * Provide ContractMap type for legacy tokens. Update TokenListController tests. Add util test for converting logo to URL. * Provide root path for TokenListController. NOTE: Static tokens will return with ABSOLUTE file paths. Client side will need to be aware of that. * Export Token as TokenListToken from TokenListController to prevent conflict with TokenRateController. * Clean up TokenListController. Update static logo path. * Clean up TokenListController. Fix TokenListController tests. * Fix github actions linting * Fix more github actions linting * Fix even more github actions linting * Fix last github actions linting * Allow for more time for token list controller API calls before timeout * Fix linting error * Add back newline to EOF package.json * Update contract metadata version * Up token list timeout to 10s * Update split logic * Add getFileExt utility and test * Add back caret to contract-metadata * Update description for fetchFromCache function * Remove iconPath * Remove unused enum & comment Co-authored-by: Ricky Miller <ricky.miller@gmail.com> Co-authored-by: Mark Stacey <markjstacey@gmail.com>
- Loading branch information
Showing
3 changed files
with
137 additions
and
126 deletions.
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
Oops, something went wrong.