1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/app/scripts/controllers
Alex Donesky d359429f04
Stop GasFeeController polling when pop closes (#11746)
* 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
..
ens use safer toChecksum utility (#11117) 2021-05-17 16:19:39 -05:00
network Remove the SHOW_EIP_1559_UI environment variable, replace with network detection where appropriate (#11694) 2021-07-30 22:59:21 -02:30
permissions Fix _getPermittedAccounts type safety (#10819) 2021-04-05 11:32:46 -07:00
transactions EIP-1559 - Fall back to gasLimit and gasPrice for hardware wallets (#11716) 2021-08-02 17:52:18 -05:00
alert.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
app-state.js Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
cached-balances.js cache balances by chain id (#10545) 2021-03-02 16:53:07 -06:00
cached-balances.test.js Use strict assertion mode everywhere (#11012) 2021-05-07 17:08:24 -02:30
detect-tokens.js Using values from shared/constants/time to represent timing values (#11241) 2021-06-10 12:27:03 -07:00
detect-tokens.test.js add method to detect EIP 1559 support (#11369) 2021-06-25 11:24:00 -05:00
incoming-transactions.js add maxPriorityFeePerGas and maxFeePerGas to incoming controller (#11367) 2021-06-24 14:52:14 -05:00
incoming-transactions.test.js add maxPriorityFeePerGas and maxFeePerGas to incoming controller (#11367) 2021-06-24 14:52:14 -05:00
metametrics.js Removing obsolete client-side transaction metrics events (#11329) 2021-06-24 15:37:44 -07:00
metametrics.test.js Removing obsolete client-side transaction metrics events (#11329) 2021-06-24 15:37:44 -07:00
onboarding.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
preferences.js Adding TokenListController to Metamask-Controller (#11515) 2021-07-15 19:08:16 -04:00
preferences.test.js Adding TokenListController to Metamask-Controller (#11515) 2021-07-15 19:08:16 -04:00
swaps.js EIP-1559 and Rinkeby Testnet support in Swaps (#11635) 2021-07-30 13:35:30 +02:00
swaps.test.js EIP-1559 and Rinkeby Testnet support in Swaps (#11635) 2021-07-30 13:35:30 +02:00
threebox.js Add some metrics events to the 3box controller (#11447) 2021-07-02 17:00:40 -02:30
token-rates-controller.test.js Use strict assertion mode everywhere (#11012) 2021-05-07 17:08:24 -02:30
token-rates.js Using values from shared/constants/time to represent timing values (#11241) 2021-06-10 12:27:03 -07:00