Daniel
868d932165
Check for the "fromToken" existance before checking decimals ( #11606 )
2021-07-26 10:15:13 +02:00
David Walsh
5d92836c8c
EIP-1559 - Provide the nonce field in the new transaction display ( #11598 )
2021-07-25 09:56:24 -05:00
David Walsh
cd4521fb12
EIP-1559 - Allow wrapping for dapp suggested origin ( #11602 )
2021-07-24 15:40:51 -05:00
Dan J Miller
2ac7b27876
Fix sending maximum of an ERC20 token ( #11594 )
...
* Fix sending maximum of an ERC20 token
* Always update gas limit when send amount updates
2021-07-23 17:40:40 -07:00
David Walsh
4e87069af3
EIP-1559 - Prevent Max Fee and Max Amount from wrapping on confirmation screen ( #11591 )
2021-07-23 08:39:10 -05:00
ryanml
8cb1557f1c
Adding method to capture one-time Sentry exceptions ( #11553 )
2021-07-22 16:13:40 -07:00
ryanml
a96af9e5fc
No longer deconstructing account menu ref if it isn't rendered ( #11585 )
2021-07-22 11:42:44 -07:00
ryanml
68c852f7c9
Validating seed phrase in restoration flow ( #11586 )
2021-07-22 10:34:53 -07:00
Daniel
a17c4462b4
Add token decimals validation in Swaps ( #11587 )
...
* Add token decimals validation in Swaps
* Use camelCase
2021-07-22 19:29:31 +02:00
David Walsh
c1d96676b5
EIP-1559 - Implement new verbiage for transaction detail subtext ( #11569 )
2021-07-22 11:33:34 -05:00
David Walsh
286fd397f8
EIP-1559 - Maintain changed form values and unselect radio buttons when user customizes form value ( #11577 )
2021-07-22 11:32:59 -05:00
Dan J Miller
ac15b3b465
Ensure send slice gas loading state is set to false upon gas estimation error ( #11581 )
2021-07-21 16:00:00 -02:30
David Walsh
859a82d428
EIP-1559 - Ony show orange confirmation heading when fee is Dapp suggested ( #11570 )
2021-07-21 07:54:32 -05:00
David Walsh
6d92759853
EIP-1559 - Implement form validation for EIP-1559 ( #11540 )
...
* Restructure advanced gas form errors
* Use shared constant for gas errors
* Add validation for fields too low
* Add warnings for high max fee and max priority fee
* Fix lint
* Fix priority fee high warning string
2021-07-20 14:34:32 -05:00
Daniel
594025a198
Add support for Polygon ( #11545 )
...
* Fix a check for EIP presense
* Add support for Polygon
* Update default Polygon URL
* Trigger Build
* Use a more user-friendly error message for disabled Swaps API calls
2021-07-20 19:17:15 +02:00
Etienne Dusseault
96b0730a89
add confirm-encryption-public-key component to Storybook ( #11364 )
...
* confirm-encryption-public-key
* lintfix
* lintfix
2021-07-20 09:29:38 -07:00
David Walsh
e0ba3eb6fc
Fix actionable message icon size ( #11547 )
2021-07-16 21:36:35 -05:00
ryanml
e60e371105
Improve handling for block explorer url host extraction ( #11543 )
2021-07-16 11:52:41 -07:00
Dan J Miller
6f0e54aa26
Implement modern design for error messages ( #11521 )
2021-07-16 13:06:48 -05:00
David Walsh
493448c96e
EIP-1559 - Don't show submit button when in education mode, don't duplicate title ( #11541 )
2021-07-16 11:19:09 -05:00
Brad Decker
dc25a24de3
rely upon gas fee controller for gas price estimates ( #11511 )
2021-07-16 11:06:32 -05:00
David Walsh
d8984d3cf3
EIP-1559 - Provide Updated UI for Dapp-Suggested Gas fees ( #11523 )
2021-07-16 10:00:03 -05:00
Niranjana Binoy
d33b841fb8
Adding TokenListController to Metamask-Controller ( #11515 )
2021-07-15 19:08:16 -04:00
ryanml
b21b139653
Handling non-numeric input for chain id in network form ( #11537 )
2021-07-15 14:11:43 -07:00
Brad Decker
4aab4887d5
add MODIFY_IN_PLACE as mode prop on edit-gas-popover ( #11527 )
...
This is necessary for the submit method to call the right background process
2021-07-15 12:31:51 -05:00
David Walsh
8e5ebfb05a
EIP-1559 - Disable gas form submission if estimates are loading state ( #11525 )
2021-07-15 12:24:03 -05:00
David Walsh
1665617378
Create different label for Gas Price with GWEI included ( #11526 )
2021-07-15 12:23:54 -05:00
David Walsh
c241d3150c
EIP-1559 - Provide tooltip text for all advanced gas controls ( #11529 )
2021-07-15 12:23:37 -05:00
David Walsh
c1064e0c50
EIP-1559 - Only show education link if on 1559-compatible network ( #11535 )
2021-07-15 12:22:55 -05:00
David Walsh
a294f02b1d
EIP-1559 - Elevate gas properties to the Popover, disable submission if errors ( #11510 )
2021-07-14 11:45:37 -05:00
David Walsh
91e744a705
EIP-1559 - Provide edit button for transaction screens to update gas ( #11516 )
2021-07-14 08:42:10 -05:00
ryanml
bbef49158d
Various UI fixes ( #11512 )
2021-07-13 19:06:12 -07:00
David Walsh
90180627cb
Using translation for edit text ( #11514 )
2021-07-13 14:22:33 -05:00
David Walsh
97d9cdff80
Provide EIP 1559 fields in transaction history ( #11464 )
2021-07-13 08:42:36 -05:00
Brad Decker
9416d1ca71
provide skeleton for submitting gas form ( #11496 )
2021-07-12 14:35:54 -05:00
ryanml
f15a68b923
Fixing invalid prop type in ConfirmPageContainerHeader ( #11500 )
2021-07-12 10:13:09 -07:00
David Walsh
1da7beed13
Provide Estimate Data to EditGasDisplay ( #11433 )
2021-07-12 11:16:03 -05:00
Brad Decker
c3e6514c35
add useGasInputs hook ( #11480 )
2021-07-09 13:26:54 -05:00
Dan J Miller
809b93dd77
Ensure simple send gas estimation happens after the recipient is iden… ( #11485 )
...
* Ensure simple send gas estimation happens after the recipient is identified
* Update ui/ducks/send/send.test.js
Co-authored-by: Alex Donesky <adonesky@gmail.com>
* Improve test name
* Lint fix
Co-authored-by: Alex Donesky <adonesky@gmail.com>
2021-07-09 15:39:43 -02:30
Brad Decker
36ab817858
add edit button support to transaction-detail-item ( #11481 )
2021-07-09 13:08:15 -05:00
Daniel
d438439661
Swaps: Add conditional routing to new APIs based on a feature flag ( #11470 )
2021-07-09 10:24:00 -05:00
Brad Decker
f51a8451b8
add useGasEstimates hook ( #11479 )
2021-07-09 10:23:45 -05:00
Alex Donesky
2cb807dc20
fix up ens/hex address validation error handling ( #11477 )
...
* 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 ( #11421 )
2021-07-08 15:23:00 -05:00
Brad Decker
64adfe7b11
update speedup and cancel to make room for EIP-1559 ( #11407 )
...
* prepare for EIP1559 gas fields in speedup/cancel
* Update ui/components/app/gas-customization/gas-modal-page-container/gas-modal-page-container.container.js
2021-07-08 13:48:23 -05:00
Alex Donesky
0ca0f1784e
Add recovery-phrase views for new onboarding flow ( #11434 )
...
* add recovery-phrase views for new onboarding flow
* black => ui-black
* minor syntax improvement
2021-07-07 19:10:12 -05:00
Alex Donesky
b1e2005a73
Add form-field component and new account view ( #11450 )
...
* add generic form-field component
* swap in new form-field component for advanced-gas-controls-row
* add new create password view for redesigned onboarding flow
* make text additions translatable
2021-07-06 17:19:11 -05:00
ryanml
68ad9c619f
Adding copy icon to home screen account address ( #11460 )
...
* Adding copy icon to home screen account address
Fixes MetaMask/metamask-extension#10145
* Using margin-inline-start
2021-07-06 11:17:13 -07:00
Brad Decker
da9fb4636b
move conversion utils to shared folder ( #11451 )
2021-07-06 12:48:49 -05:00
ryanml
a835f00ba6
Fixing leading zero when amount input is focused ( #11459 )
...
Fixes MetaMask/metamask-extension#11146
2021-07-06 10:44:46 -07:00
David Walsh
6fa3cce7ab
Create Gas Timing component for EIP-1559 ( #11405 )
2021-07-02 14:12:13 -05:00
David Walsh
afe06adb7a
Add icon to actionable message component ( #11409 )
2021-07-02 14:07:56 -05:00
David Walsh
e097a02607
Provide tooltip for 1559 Gas Price field ( #11436 )
2021-07-02 14:07:34 -05:00
Daniel
8ca0d24f82
Increase Jest unit test coverage for the Swaps feature to ~60% ( #11343 )
2021-07-02 08:48:34 -05:00
Dan J Miller
bda4d0cbca
Add list of custom networks with special gas limit buffers ( #11435 )
2021-07-01 19:18:30 -02:30
David Walsh
310531eeb6
EIP 1559 - Provide a GWEI label for advanced gas control fields ( #11419 )
2021-07-01 09:37:00 -05:00
David Walsh
64644ad380
Implement Dapp Acknowledgement screen for editing gas ( #11424 )
2021-07-01 09:36:48 -05:00
ryanml
43b7eab46a
Fixing invalid minimumGasLimit prop (AdvancedGasInputs) ( #11412 )
2021-06-30 23:41:39 -07:00
Dan J Miller
a60301686c
Ensure that eth_estimateGas is called to estimate gas limit for simple sends on custom networks ( #11418 )
...
* Ensure that eth_estimateGas is called to estimate gas limit for simple sends on custom networks
* getIsNonStandardEthChain returns false when in test
* Add comment explaining gas limit buffer multipliers in estimateGasLimitForSend
2021-06-30 23:24:47 -02:30
Dan J Miller
18464793f5
Fix gas-modal-page-container.container check for custom gas price safety ( #11426 )
...
* Fix gas-modal-page-container.container check for custom gas price safety
* Ensure gas price has been fetch before checking for price safety on testnets
2021-06-30 15:56:34 -02:30
Alex Donesky
ad6715511e
make network-display component only clickable when passed a function for onClick ( #11379 )
2021-06-30 13:21:48 -05:00
Alex Donesky
433cf6339d
refix the instance of unsafe destructuring I had introduced and fixed and then reintroduced ( #11428 )
2021-06-30 13:20:13 -05:00
David Walsh
36d3770b42
EIP-1559 - Implement TransactionDetail for confirmations ( #11404 )
2021-06-30 11:58:18 -05:00
sooyoung
9e86a03afa
add scroll function to jump to the top of screen ( #11386 )
...
* add scroll function to jump to the top of screen
* moved the scroll function from transaction-list.js to asset.js
2021-06-29 15:08:31 -05:00
Brad Decker
844a021fcd
remove ui lookup of lastGasPrice field ( #11411 )
2021-06-29 11:02:00 -05:00
Alex Donesky
352102438f
add ChipWithInput component ( #11392 )
2021-06-28 16:09:48 -05:00
David Walsh
d68f8f27c6
Implements the new EIP1559 UI components ( #11384 )
2021-06-28 09:45:08 -05:00
Brad Decker
23a859826f
add method to detect EIP 1559 support ( #11369 )
2021-06-25 11:24:00 -05:00
Daniel
a1d7271ed7
Call Wyre’s API via our backend to generate Wyre’s Checkout URL ( #11387 )
...
* Call Wyre’s API via our backend to generate Wyre’s Checkout URL
* Add back paymentMethod=debit-card, use a fallback URL if no url is returned from BE
* Fix a lint issue
* Refactor how to return Wyre’s Checkout URL
* Add 2 constants into a test file, refactoring
2021-06-25 09:52:29 -05:00
Daniel
ba3f51d6ed
Add support for fiat on-ramp via Transak ( #11376 )
2021-06-25 08:10:24 -05:00
ryanml
a69ed05141
Removing obsolete client-side transaction metrics events ( #11329 )
...
* Removing metametrics send count tracking
* Removing client side Transaction Completed and Canceled events
2021-06-24 15:37:44 -07:00
Dan J Miller
87166afb6b
Use eth_gasPrice result for setting too low warning on custom networks ( #11370 )
...
* Use eth_gasPrice result for setting too low warning on custom networks
* Assume CustomPriceSafeForCustomNetwork when there is no custom price set (it will default to recommended)
2021-06-24 14:29:47 -02:30
Alex Donesky
a6e16f458e
Adding edit navigation button flow back to send token flow ( #11335 )
2021-06-23 18:50:24 -05:00
David Walsh
6fa36cdf51
Provide New UI Components for EIP-1559 Designs ( #11357 )
2021-06-23 18:39:44 -05:00
David Walsh
85de65f470
Prevent propType errors in for TransactionIcon statuses ( #11316 )
2021-06-23 18:39:06 -05:00
Alex Donesky
a4a5580785
Update controllers with conversionRate change with minimal required changes in extension ( #11361 )
...
* updating controllers with conversionRate change with minimal required changes in extension
* swapping showFiat selector in places where possible
* adding invalid conversion protection
* lint fixes
* adjusting list-item styling logic
2021-06-23 18:28:49 -05:00
Brad Decker
c30cb7d33a
Refactor send page state management ( #10965 )
2021-06-23 16:35:25 -05:00
ryanml
a171ac7b34
Allowing custom rpc form submission when chainId is a duplicate ( #11363 )
2021-06-23 09:14:38 -07:00
Alex Donesky
e10ddbe3a3
add erc-721 token detection and flag to disable sending ( #11210 )
...
* 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
f1f2a01c76
Using fixed positioning for home notifications ( #11356 )
2021-06-21 15:51:09 -07:00
ryanml
e144bbd356
Adding gasEstimateType to 'Changed Gas Button' metrics event ( #11352 )
...
Adding 'Changed Gas Button' metrics event
2021-06-21 12:02:51 -07:00
Alex Donesky
27389fc71e
fix unsafe destructuring instance ( #11351 )
2021-06-21 09:28:35 -05:00
ryanml
64835b1457
Fixing untranslated text in ConfirmApproveContent ( #11339 )
2021-06-17 11:40:36 -07:00
sooyoung
3c2e83dff3
fix 'confirm popup' ui ( #11331 )
2021-06-17 09:26:58 -05:00
David Walsh
a08d927681
Make MAX button accessible ( #11322 )
2021-06-16 10:00:19 -05:00
Etienne Dusseault
d260b81cd5
Add confirm-deploy-contract component to Storybook ( #11211 )
...
* confirm deploy contract
* use downloaded image
2021-06-15 14:20:15 -07:00
ryanml
24adadbce0
Fixing untranslated alt tag in ContactListTab component ( #11293 )
2021-06-15 09:31:25 -07:00
sooyoung
c152a17a85
Changed scss style to see token symbol ( #11294 )
...
* Changed scss style to see token symbol
* fix indentations
2021-06-15 11:00:47 -05:00
Alex Donesky
a8643af481
patch gas price issue - add fallback gas price ( #11239 )
2021-06-15 09:17:42 -05:00
Niranjana Binoy
df6c6a46d7
Minor spelling correction to buildContactList( #11286 )
2021-06-14 22:59:30 -04:00
ryanml
f1ed0e74a5
Updating "designed and built" message 🌎 ( #11285 )
2021-06-14 09:37:21 -07:00
ryanml
22c2d261b9
Fixing unlocalized strings ( #11281 )
2021-06-12 15:25:24 -07:00
ryanml
2bfc3a093f
Using values from shared/constants/time to represent timing values ( #11241 )
2021-06-10 12:27:03 -07:00
Brad Decker
9e509d0c9d
Relocate send state into send duck from metamask duck ( #11252 )
2021-06-10 12:53:15 -05:00
ryanml
5afd1c9fa6
Using native network currency for encryption public key requests ( #11257 )
...
Fixes MetaMask/metamask-extension#11247
2021-06-10 10:49:14 -07:00
Dan J Miller
432d6508ba
Stringify gas estimate in backend, before it is serialized and sent to ui ( #11266 )
...
* 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
ryanml
a75092762f
Fix built-in networks switch-ethereum-chain, Including RPC url in switchEthereumChain requestData ( #11268 )
...
* Moving RPC Urls to network constants
* Including RPC url in switchEthereumChain requestData
* Setting project id to var
* Fix built-in networks switch-ethereum-chain
`switch-ethereum-chain` did not work correctly with built-in networks.
It was treating them as custom networks, rather than as built-in
networks. This affected how they were displayed in the network
dropdown, and resulted in slight differences to the network stack used
as well.
The problem was that `updateRpcTarget` was used, which was meant for
custom networks only. Now that `setProviderType` is used in the case of
a built-in network, the behaviour should match the network switcher
exactly.
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-06-09 15:18:38 -07:00
Dan J Miller
003b6365c0
Use verifyPassword instead of submitPassword in exportAccounts in actions.js ( #11265 )
2021-06-09 13:42:25 -07:00
ryanml
1080319b33
Adding back button to reveal seed phrase view ( #11246 )
...
Reveal seed phrase button placement fixes
Localizing uses of the word "Back"
2021-06-08 10:02:34 -07:00
Brad Decker
b073b04789
move metamask state selectors out of send ( #11249 )
2021-06-08 11:03:59 -05:00