1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/pages
Dan J Miller efaaf4fab2
Use tokenList to get token details, when available, in getTokenStanda… (#17891)
* Use tokenList to get token details, when available, in getTokenStandardAndDetails

Previously, every call to getTokenStandardAndDetails would fetch data via the provider.
This would result in at least 3 network requests whenever that method is called for an
ERC20 token, contributing to unneccesary loading and lagging in multiple places.
This commit takes advantage of stored data we already have available to avoid the unnecessary
loading.

* Lint fix

* Fix build-quote test

* bump coverage targets

* Pass provider to token-util, for use in ethers Contract module

* Check all possible sources of ERC20 token data before async call to assetsContractController

* Add and update tests

* Update app/scripts/metamask-controller.js

Co-authored-by: Alex Donesky <adonesky@gmail.com>

* Update app/scripts/metamask-controller.js

Co-authored-by: Alex Donesky <adonesky@gmail.com>

* Remove unnecessary this.ethQuery changes

* Use metamask-eth-abis instead of human-standard-token-abi in token-util.ts

* Add explanatory comments to getTokenStandardAndDetails

* lint fix

* Cleanup

* fix test

* Update app/scripts/metamask-controller.js

Co-authored-by: Alex Donesky <adonesky@gmail.com>

* update error message

---------

Co-authored-by: Alex Donesky <adonesky@gmail.com>
2023-03-08 14:05:45 -03:30
..
add-nft UX: Icon: Stop using fa-times (#17811) 2023-02-27 10:42:02 -06:00
asset NFT: Replaced all the instances of collectibles with NFTs (#17741) 2023-02-17 00:53:29 +05:30
confirm-add-suggested-token Use PageContainerFooter to render footer on all confirmation pages (#17316) 2023-01-23 20:52:12 +05:30
confirm-approve Disable fiat conversion in Approve Screen when Show balance and token price checker is OFF (#17443) 2023-02-03 12:13:19 -05:00
confirm-contract-interaction Convert Transaction constants to typescript (#17149) 2023-01-18 08:47:29 -06:00
confirm-decrypt-message fix(17542): fix fiat currency display in few txn actions (#18011) 2023-03-08 16:05:55 +00:00
confirm-deploy-contract Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
confirm-encryption-public-key fix(17542): fix fiat currency display in few txn actions (#18011) 2023-03-08 16:05:55 +00:00
confirm-import-token Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
confirm-send-ether Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
confirm-send-token Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
confirm-signature-request fix(17542): fix fiat currency display in few txn actions (#18011) 2023-03-08 16:05:55 +00:00
confirm-token-transaction-base Convert ui/helpers/constants/common to typescript (#17348) 2023-01-25 09:47:02 -06:00
confirm-transaction Fix state in confirm transaction (#17838) 2023-02-24 22:37:26 +05:30
confirm-transaction-base UX Icon: updated fa-exclamation-circle (#17879) 2023-02-24 12:52:11 -06:00
confirm-transaction-switch Convert Transaction constants to typescript (#17149) 2023-01-18 08:47:29 -06:00
confirmation delay chain validation (#17413) 2023-03-08 16:33:27 +00:00
connected-accounts Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
connected-sites Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
create-account Upgrading the Import Account modal (#17763) 2023-03-06 09:48:28 -08:00
desktop-error Move desktop code to flask build type (#17960) 2023-03-06 19:35:00 +00:00
desktop-pairing Move desktop code to flask build type (#17960) 2023-03-06 19:35:00 +00:00
error Add more tracking for MetaMask (#15462) 2022-08-11 19:33:33 +02:00
home UX: Icon: Stop using fa-times (#17811) 2023-02-27 10:42:02 -06:00
import-token NFT: Replaced all the instances of collectibles with NFTs (#17741) 2023-02-17 00:53:29 +05:30
keychains Updating Icon html element to span (#17790) 2023-02-22 14:42:50 -08:00
lock Various test files converting to @testing-library/react. (#15470) 2022-08-08 13:28:49 -07:00
mobile-sync SRP hold to reveal (#17232) 2023-02-15 10:07:33 -08:00
notifications UX: Icons: Remove usage of chevron fa- icons (#17668) 2023-02-16 07:26:14 -06:00
onboarding-flow UX: Icon: Stop using fa-times (#17811) 2023-02-27 10:42:02 -06:00
permissions-connect UX: Icons: Remove IconCheck and fa-check (#17787) 2023-02-23 07:19:28 -06:00
routes Move desktop code to flask build type (#17960) 2023-03-06 19:35:00 +00:00
send Edit Token Transfer displays mixed info with regular Send Tx (ETH) (#17507) 2023-03-03 10:52:32 -06:00
settings fix(17716): increase threshold to include all options for nonce search (#17999) 2023-03-08 11:04:45 +00:00
swaps Use tokenList to get token details, when available, in getTokenStanda… (#17891) 2023-03-08 14:05:45 -03:30
token-allowance Token allowance unit tests (#17019) 2023-02-23 16:57:12 +01:00
token-details feature: migrate design-system.ts (#17518) 2023-02-02 20:15:26 +00:00
unlock-page UX: Remove legacy metametrics modal (#17817) 2023-02-23 13:58:09 -06:00
index.js Renamed metametrics.new.js to metametrics.js (#14327) 2022-04-01 14:11:12 -05:00
pages.scss Add extension desktop UI (#17748) 2023-02-23 16:39:48 +00:00