1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
Commit Graph

75 Commits

Author SHA1 Message Date
ryanml
428b86fcf3
Hardening clipboardData handling in EnsInput () 2021-08-12 15:30:07 -07:00
Alex Donesky
d359429f04
Stop GasFeeController polling when pop closes ()
* Stop GasFeeController polling when pop closes

* Stop estimate gas polling on window unload

* lint + comments

* Improve client closed logic

* lint

* Add back _beforeUnload on unmount in gas-modal-page-container

* Add full check and call onClientClosed method for notifcation environment

* Add gas pollingToken tracking to appStateController and use to disconnect polling for each environment type

* remove unused method

* move controller manipulation logic from background.js to metamask-controller, disaggregate methods

* add beforeunload handling to reset gas polling tokens from root of send page

* cleanup, lint and address feedback

* clear appState gasPollingTokens when all instances of all env types are closed, fix pollingTokenType arg from onEnvironmentTypeClosed call in metamask-controller

* mock new methods to fix tests

* final bit of cleanup + comments

Co-authored-by: Dan Miller <danjm.com@gmail.com>
2021-08-04 16:53:13 -05:00
David Walsh
e2fbc7ce8e
Remove button group for non-EIP-1559 networks ()
* Remove button group for non-EIP-1559 networks

* Fix tests...maybe

* Remove unnecessary props, as well as gas display

* Remove unused string

* test progress

* fix test

* fix test

* add customizes gas block to improve e2e pass rate

Co-authored-by: Alex <adonesky@gmail.com>
2021-08-02 18:53:13 -05:00
David Walsh
c8b3dfe4e9
EIP-1559 - Fall back to gasLimit and gasPrice for hardware wallets () 2021-08-02 17:52:18 -05:00
Alex Donesky
8a42258e10
Remove the SHOW_EIP_1559_UI environment variable, replace with network detection where appropriate ()
Fixing up tests and add back old custom gas modal for non-eip1559 compliant networks

Remove unnecessary props from send-gas-row.component

fix breaking test

Fix primary and secondary title overrides

fix rebase issue

Fix rebase conflict

Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2021-07-30 22:59:21 -02:30
Brad Decker
e0953d9f68
Update send and confirm state management, and tx controller gas defaults, for EIP1559 ()
wip

Documentation improvements for send slice support of EIP1559

Remove console.log in send duck

Property lookup safety improvement in selectors/confirm-transaction

Add code accidentally removed in rebase

Update addTxGasDefaults and _getDefaultGasFees to work with new estimate types, and ensure we correctly handle gas price estimates when on EIP1559 networks ()

* Fix typo

Remove console.log in send duck

* Update addTxGasDefaults and _getDefaultGasFees to work correctly with all new gas fee estimate types

* Don't show gas timing support when not on eip1559 compatible network

* Hide gas timing component on transaction screen when on a non-1559 network

* Improve comments, tests and edge case handling

* Ensure eip1559 fees are applied and updated correctly when eip1559 estimate api fails

* Lint fix

Co-authored-by: Brad Decker <git@braddecker.dev>

Remove console.log

Handle possible gasEstimateType undefined

Remove unnecessary nonce field position change in confirm-page-container-content__details
2021-07-30 22:15:18 -02:30
ryanml
813eef6080
Trimming whitespace in ENSInput () 2021-07-27 07:53:13 -07:00
Brad Decker
dc25a24de3
rely upon gas fee controller for gas price estimates () 2021-07-16 11:06:32 -05:00
Alex Donesky
2cb807dc20
fix up ens/hex address validation error handling ()
* fix up ens/hex address validation error handling

* fix lint/tests
2021-07-09 09:17:02 -05:00
Brad Decker
68dfc98f40
wire up gasFeeController () 2021-07-08 15:23:00 -05:00
Brad Decker
da9fb4636b
move conversion utils to shared folder () 2021-07-06 12:48:49 -05:00
Brad Decker
c30cb7d33a
Refactor send page state management () 2021-06-23 16:35:25 -05:00
Alex Donesky
e10ddbe3a3
add erc-721 token detection and flag to disable sending ()
* add erc-721 token detection and flag to disable sending

* addressing feedback

* remove redundant provider instantiation

* fix issue caused by unprotected destructuring

* add tests and documentation

* move add isERC721 flag to useTokenTracker hook

* Update  and  unit tests

* use memoizedTokens in useTokenTracker

Co-authored-by: Dan Miller <danjm.com@gmail.com>
2021-06-22 12:39:44 -05:00
ryanml
e144bbd356
Adding gasEstimateType to 'Changed Gas Button' metrics event ()
Adding 'Changed Gas Button' metrics event
2021-06-21 12:02:51 -07:00
David Walsh
a08d927681
Make MAX button accessible () 2021-06-16 10:00:19 -05:00
ryanml
22c2d261b9
Fixing unlocalized strings () 2021-06-12 15:25:24 -07:00
Brad Decker
9e509d0c9d
Relocate send state into send duck from metamask duck () 2021-06-10 12:53:15 -05:00
Dan J Miller
432d6508ba
Stringify gas estimate in backend, before it is serialized and sent to ui ()
* Stringify gas estimate in backend, before it is serialized and sent to ui

* Fix send.utils.test.js
2021-06-09 22:18:05 -02:30
Brad Decker
b073b04789
move metamask state selectors out of send () 2021-06-08 11:03:59 -05:00
Brad Decker
df9bc52e9f
Add gas constants () 2021-06-08 10:25:48 -05:00
ryanml
6640973858
Fixing jest component test output errors ()
* Adding missing required props to component tests

* Removing unused IntroPopup component

* Mocking useLayoutEffect as useEffect in confirm-page-container-header.component.test.js
2021-05-20 11:28:25 -07:00
Brad Decker
d9a2165f69
use safer toChecksum utility () 2021-05-17 16:19:39 -05:00
Brad Decker
9386e3cb03
create safer isValidAddress method () 2021-05-17 14:00:59 -05:00
Dan J Miller
d62329fd0a
Use isValidAddress helper instead of ethereumJsUtil.isValidAddress, when appropriate () 2021-05-11 16:53:50 -02:30
Brad Decker
09d81ac5f2
remove the ui/app and ui/lib folders () 2021-04-28 14:53:59 -05:00