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

11505 Commits

Author SHA1 Message Date
Etienne Dusseault
9f6fa64d67
Add SES lockdown to extension webapp ()
* Freezeglobals: remove Promise freezing, add lockdown

* background & UI: temp disable sentry

* add loose-envify, dedupe symbol-observable

* use loose envify

* add symbol-observable patch

* run freezeGlobals after sentry init

* use require instead of import

* add lockdown to contentscript

* add error code in message

* try increasing node env heap size to 2048

* change back circe CI option

* make freezeGlobals an exported function

* make freezeGlobals an exported function

* use freezeIntrinsics

* pass down env to child process

* fix unknown module

* fix tests

* change back to 2048

* fix import error

* attempt to fix memory error

* fix lint

* fix lint

* fix mem gain

* use lockdown in phishing detect

* fix lint

* move sentry init into freezeIntrinsics to run lockdown before other imports

* lint fix

* custom lockdown modules per context

* lint fix

* fix global test

* remove run in child process

* remove lavamoat-core, use ses, require lockdown directly

* revert childprocess

* patch package postinstall

* revert back child process

* add postinstall to ci

* revert node max space size to 1024

* put back loose-envify

* Disable sentry to see if e2e tetss pass

* use runLockdown, add as script in manifest

* remove global and require from runlockdown

* add more memory to tests

* upgrade resource class for prep-build & prep-build-test

* fix lint

* lint fix

* upgrade remote-redux-devtools

* skillfully re-add sentry

* lintfix

* fix lint

* put back beep

* remove envify, add loose-envify and patch-package in dev deps

* Replace patch with Yarn resolution ()

Instead of patching `symbol-observable`, this ensures that all
versions of `symbol-observable` are resolved to the given range, even
if it contradicts the requested range.

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-11-24 11:26:43 +08:00
Brad Decker
b3fa1e534e
add version to page events () 2020-11-21 09:38:43 -06:00
Erik Marks
f8f3faf539
resolve-url-loader@3.1.2 () 2020-11-20 13:52:07 -08:00
David Walsh
0315c6c20d
Add alt text for images in list items () 2020-11-20 10:57:45 -06:00
Etienne Dusseault
63f759e14e
build - catch build pipeline errors properly () 2020-11-20 11:56:40 -03:30
Mark Stacey
2c966aa22d
Merge pull request from MetaMask/sync-master
Sync `master` with `develop`
2020-11-19 20:02:02 -03:30
Mark Stacey
8799671955
Merge pull request from MetaMask/Version-v8.1.5
Version v8.1.5 RC
2020-11-19 19:38:27 -03:30
Brad Decker
3ebba0d411
validate addresses in qr codes () 2020-11-19 15:44:42 -06:00
Dan J Miller
fbb46c4825 Update changelog for v8.1.5 ()
* Update changelog for v8.1.5

* Update CHANGELOG.md

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-11-19 17:51:16 -03:30
MetaMask Bot
b86e0b1105 Version v8.1.5 2020-11-19 17:10:55 -03:30
Thomas Huang
35af9ea301
Override font-weight from Paragraph and set to 900 ()
* Override font-weight from Paragraph and set to 900

* Fix checkmark font-weight on swaps gas button selector
2020-11-19 12:29:35 -08:00
Dan J Miller
2325514a67
Use correct method name for createTokenTrackerLink in token-asset () 2020-11-19 15:19:45 -03:30
Thomas Huang
44448465ed
Validate sendToken address when component updates ()
* Validate sendToken address when component updates

On a reproduction of trying to get the error message it seems that if an token address is provided in the address form with ETH selected then changing to a token address, the error message won't show.

This will validate the sendtoken address on prop change to properly update the warning message.

* Update test to include second doesAmountErrorRequireUpdate call when state is updated and component is updated
2020-11-19 07:35:42 -08:00
Thomas Huang
75de9086de
Include error string from ledger errors ()
* Include error string from ledger errors

* Type check error message

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-11-19 07:35:20 -08:00
Mark Stacey
bb3a0423d4
Ensure custom slippage is a number ()
This fixes a PropType error when using non-custom slippage, and it
fixes a type inconsistency when custom slippage is used.

Previously, `slippage` was being converted explicitly to a `Number` as
it was passed into `BuildQuote`, but not as it was passed into
`AwaitingSwap`. Also the PropType was set as `string`, despite the fact
that it's a number in most cases, and is used for math.

The PropType has been changed to `number`, and the selective casting to
`Number` has been removed. Instead, the `maxSlippage` value is cast to
a `Number` as it's being selected, so that the type is always
consistent.
2020-11-19 11:56:55 -03:30
Dan J Miller
a9fcf0ea86
Use getTokenTrackerLink for asset view etherscan link in token-asset.js () 2020-11-19 00:59:42 -03:30
Dan J Miller
1e895c3110
Revert view quote design updates ()
* Revert "Update fee card designs to show savings and MM fee ()"

This reverts commit d9924ca771.

* Revert "Update main-quote-summary designs/styles ()"

This reverts commit 5456d55c88.
2020-11-18 22:10:24 -03:30
Dan J Miller
179e795b1f
Update asset page etherscan link to the address-filtered token page on Etherscan () 2020-11-18 21:57:29 -03:30
Brad Decker
5be20d105e
show failed token balance updates () 2020-11-18 16:13:28 -06:00
David Walsh
e90bddf44f
Revert "Show a 'send eth' button on home screen in full screen mode" () 2020-11-18 16:02:57 -06:00
dependabot[bot]
198b503f94
Bump @metamask/eth-token-tracker from 3.0.1 to 3.1.0 ()
Bumps [@metamask/eth-token-tracker](https://github.com/MetaMask/eth-token-tracker) from 3.0.1 to 3.1.0.
- [Release notes](https://github.com/MetaMask/eth-token-tracker/releases)
- [Changelog](https://github.com/MetaMask/eth-token-tracker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/MetaMask/eth-token-tracker/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-18 01:55:57 -03:30
Brad Decker
520ad05790
fix METAMASK-GH2B () 2020-11-17 16:49:19 -06:00
Dan J Miller
e4de763116
Add token verification message to swaps build quote screen ()
* Add token verification message to swaps build quote screen

* Adds description for locale

* Use <a> tag for etherscan link

* Remove unnecessary span

* Update ui/app/pages/swaps/build-quote/build-quote.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-11-17 17:26:02 -03:30
Mark Stacey
31a3541105
Remove invalid matomo metric event option ()
The `matomo` option passed to the send metrics function is invalid. The
intent was to set the `matomoEvent` option, but instead of rectifying
that, we've decide to keep sending this event to the production Segment
project for now. The invalid option has been removed.
2020-11-17 15:59:05 -03:30
Erik Marks
2687163dbb
Fix minor issues with web3 metrics ()
* Fix minor issues with web3 metrics

* Log error, use try/catch
2020-11-17 11:07:59 -08:00
Brad Decker
daf783a0d8
Track a new schema event when adding a token ()
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-11-17 11:39:21 -06:00
Mark Stacey
c4d71a3211
Exit sentry:publish with non-zero code upon failure ()
The `sentry:publish` script now exits with an exit code of `1` upon
failure, indicating that something went wrong. Previously it would exit
with a code of `0`, indicating to CI that everything worked correctly.

The script will now also exit early if the authentication check fails.
2020-11-17 09:37:15 +08:00
Mark Stacey
7ca77fa481
Merge pull request from MetaMask/sync-master
Sync `master` with `develop`
2020-11-16 17:18:27 -03:30
Mark Stacey
f9613b2eb9 Merge remote-tracking branch 'origin/develop' into sync-master
* origin/develop:
  Move add contact button in fullscreen/expanded view lower. ()
  Remove CoinSwitch from Deposit screen()
  Consolidate notification UI openers ()
  Prevent jump when hovering over asset list items
  @metamask/controllers@4.2.0 ()
  Properly detect U2F errors in hardware wallet
  Fix malformed PropType declaraton ()
  Fix broken LoadingScreen PropType declaration ()
  Revert "Add custom hd path option ()" ()
  Update fee card designs to show savings and MM fee ()
  Make editable actoin item a button, autofocus input contents
  Provide alternative text for images where appropriate
2020-11-16 16:55:27 -03:30
Mark Stacey
080dc7ad74 Revert "Revert "Update main-quote-summary designs/styles ()" ()"
This reverts commit 2214e1561d.
2020-11-16 16:55:16 -03:30
Mark Stacey
2e73285f23
Merge pull request from MetaMask/Version-v8.1.4
Version v8.1.4 RC
2020-11-16 16:53:52 -03:30
Thomas Huang
302b7dd731
Move add contact button in fullscreen/expanded view lower. ()
* Move add contact button in fullscreen/expanded view.

Fixes 

Move the add contact button that is overlapping (x)/close setting icon lower, on the same line as Contacts in fullscreen/expanded view.
2020-11-16 12:07:48 -08:00
Nate Chastain
179dbcb41c
Remove CoinSwitch from Deposit screen()
Remove all CoinSwitch references and functionality, and bump Wyre to top spot on Deposit screen unless user on test network
2020-11-16 13:57:53 -03:30
Erik Marks
5a80f04dca
Consolidate notification UI openers ()
* Consolidate notification UI openers

* Update tests
2020-11-16 08:32:53 -08:00
Mark Stacey
20a3c8ab7c
Update v8.1.4 changelog ()
The hardware wallet error handling improvements have been added to the
release.
2020-11-16 11:15:58 -03:30
Mark Stacey
0b6de08418 Update v8.1.4 changelog ()
A few new user-facing features have been pulled into the release, and
the custom HD path support has been reverted.
2020-11-13 16:39:51 -03:30
Mark Stacey
3dca6e27ee Update changelog for v8.1.4 ()
Changes that aren't user-facing have been omitted.
2020-11-13 16:39:51 -03:30
Dan J Miller
2214e1561d Revert "Update main-quote-summary designs/styles ()" ()
This reverts commit 5456d55c88.
2020-11-13 16:39:51 -03:30
MetaMask Bot
628865eb45 Version v8.1.4 2020-11-13 16:39:51 -03:30
David Walsh
4519b92208 Prevent jump when hovering over asset list items 2020-11-13 16:38:50 -03:30
David Walsh
8a5474a1ba Properly detect U2F errors in hardware wallet 2020-11-13 16:37:47 -03:30
David Walsh
70a3a7b09c
Merge pull request from darkwing/prevent-send-button-jump
Prevent jump when hovering over asset list items
2020-11-13 13:55:36 -06:00
David Walsh
9b42ead095
Merge pull request from darkwing/hardware-error
Properly detect U2F errors in hardware wallet
2020-11-13 13:51:08 -06:00
David Walsh
ed19ce44bd
Merge pull request from darkwing/image-updates
Provide alternative text for images where appropriate
2020-11-13 13:44:55 -06:00
David Walsh
587d07c730 Prevent jump when hovering over asset list items 2020-11-13 13:30:48 -06:00
David Walsh
d78e6dc821
Merge pull request from darkwing/edit-account-focus
Make editable action item a button, autofocus input contents
2020-11-13 13:07:40 -06:00
Erik Marks
74839831c0
@metamask/controllers@4.2.0 () 2020-11-13 11:04:48 -08:00
David Walsh
19a03d20c0 Properly detect U2F errors in hardware wallet 2020-11-13 12:34:03 -06:00
Mark Stacey
45f0c436c1 Fix malformed PropType declaraton ()
`PropTypes.function` was used accidentally instead of `PropType.func`
2020-11-13 15:03:40 -03:30
Mark Stacey
a215afcd18 Fix broken LoadingScreen PropType declaration ()
`PropTypes.oneOf` was used accidentally instead of
`PropTypes.oneOfType`. `oneOf` expects literal values, not types.
2020-11-13 15:03:40 -03:30