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

14280 Commits

Author SHA1 Message Date
Dan J Miller
78f68b3dab Fix speed-up/cancel: don't update existing transaction data (#14355)
* Fix speed-up/cancel: don't update existing transaction data

* Move retryTxMeta state management to useGasFeeInputs.js

* Handle initial retryTxMeta set if no transaction is passed to useGasFeeInputs

* Ensure previousGas is use on retry transaction if it is available in useGasFeeInputs

* Remove update transaction mock and correctly test gas fee increase scenarios now that updateTransaction used in cancel-speedup is defined on the front end
2022-04-14 08:53:33 -07:00
kumavis
54ac00027b unblock ci: update vuln deps + fix npm registry for snaps firefox (#14437)
* dep-audit-fix for async@2.6.3

* deps - update async for vuln fix and remove patch

* deps/ci-yarn-audit - remove outdated ignored vulns

* deps/lock - deduplicate async@2

* deps/lock - deduplicate async@2 + remove indirectly used dep

* Use regular NPM registry for snaps on Firefox (#14439)

* Use regular NPM registry for snaps on FF

* Fix linting

* Update app/scripts/metamask-controller.js

Co-authored-by: Shane <jonas.shane@gmail.com>

Co-authored-by: kumavis <kumavis@users.noreply.github.com>
Co-authored-by: Shane <jonas.shane@gmail.com>

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
Co-authored-by: Shane <jonas.shane@gmail.com>
2022-04-14 08:03:13 -07:00
Dan J Miller
432c88e185 Remove duplicate gas simulation error messages (#14409)
* Remove duplicate gas simulation error messages

* Fixing locales

* Fixing unit tests

* Fixing e2e

Co-authored-by: ryanml <ryanlanese@gmail.com>
2022-04-13 08:01:21 -07:00
Erik Marks
1da6a9a139
Update Flask changelog entries (#14405)
Updates Flask changelog entries for v10.13.0. Some older commits were not included in the most recent Flask release due to merge conflicts. We should never run into this issue again since Flask should henceforth always release alongside the extension.

The commits in question were included in e.g. 10.12.0, but they were never actually released on Chrome.
2022-04-12 11:33:12 -07:00
Daniel
13c5a04752 stx-controller-v1.10.0 (#14352)
* stx-controller-v1.10.0

* yarn yarn-deduplicate
2022-04-07 03:04:31 -07:00
Daniel
2d24a4d643 Swaps timer improvements, optional refresh rates and fix for a notification UI (#14300)
* Set up correct timer value for fetching new quotes

* Show red timer in Swaps if quotes fetching will happen in less than 10s (previously it was 30s)

* Fix a UI issue with the notification close button

* Make stx refresh rates optional, since not every network supports them
2022-04-07 03:01:50 -07:00
Mark Stacey
1b4ddf709b Replace ReadOnlyInput (#14330)
Replace the last two uses of the `ReadOnlyInput` with a div. The idea
of using an input for read-only data is silly. We can just put it in
the DOM directly instead.
2022-04-07 02:45:42 -07:00
George Marshall
cdb9d341bc color fix for hover on swaps quote (#14334) 2022-04-07 02:44:55 -07:00
George Marshall
15a6006237 Updatin contract deployment text label to be darker (#14333) 2022-04-07 02:44:23 -07:00
George Marshall
13c087e2e9 Fixing account details label colors (#14315) 2022-04-07 02:44:09 -07:00
George Marshall
a499d0f045 Fix/14303 show private keys (#14314) 2022-04-07 02:43:54 -07:00
George Marshall
94378c773d Fix/14302 about fox logo (#14308) 2022-04-07 02:43:35 -07:00
George Marshall
36a736d3b5 Fix/14230 dark mode fixes (#14305)
* Dark mode fixes

* removing unused icon svg
2022-04-07 02:42:52 -07:00
Dan J Miller
ba909c3055 Fix the close button in the speed up and cancel popovers (#14356) 2022-04-07 02:42:32 -07:00
George Marshall
1ade2e84f0 Swaps select quote highlight fix (#14270) 2022-04-07 02:42:02 -07:00
ryanml
7d9796bb53 Fix Buy Ether via Moonpay and Wyre actions (#14322) 2022-04-07 02:41:45 -07:00
David Walsh
9760750231 Dark Mode: Remove unwanted background for price quote (#14278) 2022-04-07 02:41:21 -07:00
David Walsh
48eadc669f Ensure proper color for swaps edit link (#14273) 2022-04-07 02:41:02 -07:00
David Walsh
b042858663 Dark Mode: Ensure actionable message button colors are the same color as previously (#14271) 2022-04-07 02:40:45 -07:00
ryanml
485d711e0b Ensure Metafox follows cursor on Fetching quotes screen (#14261) 2022-04-07 02:37:33 -07:00
ryanml
72646b769e Fixing changelog 2022-04-07 02:33:13 -07:00
ryanml
b8c9f370ef Merge remote-tracking branch 'origin/master' into Version-v10.13.0 2022-04-07 02:32:07 -07:00
ryanml
0a38628cc0
[skip e2e] Updating changelog for v10.13.0 (#14257) 2022-04-06 08:00:29 -07:00
Mark Stacey
ed68c1846c
Merge pull request #14349 from MetaMask/Version-v10.12.4
Version v10.12.4 RC
2022-04-06 10:31:49 -02:30
Dan J Miller
fc1463cef3
Update CHANGELOG.md
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2022-04-05 11:38:02 -02:30
ryanml
70a3d3a620 changelog fix 2022-04-05 04:44:32 -07:00
Dan Miller
2185d2f7ef Update changelog 2022-04-04 21:07:48 -02:30
Mark Stacey
831d274a40 Restore version missing from certain build steps (#14344)
Certain build steps accidentally omitted the `version` variable. It has
now been restored to all steps, ensuring that all environment variables
are correctly injected into all bundles.

A check has been added to the Sentry setup module to ensure the release
is not omitted in the future.
2022-04-04 21:06:12 -02:30
MetaMask Bot
4eb303f4e4 Version v10.12.4 2022-04-04 20:56:53 +00:00
Mark Stacey
a977effc10
Merge pull request #14287 from MetaMask/Version-v10.12.2
Version v10.12.2 RC
2022-03-30 22:52:32 -02:30
Mark Stacey
d34e0df37a Update changelog
An additional changelog entry was added for the v10.12.1 rollback
release.
2022-03-30 21:33:35 -02:30
Mark Stacey
98f187c301 Update SRP representation
An array of integers is now used to represent the SRP in three cases:

* In the import wallet flow, the UI uses it to pass the user-provided
  SRP to the background (which converts the array to a buffer).
* In the create wallet flow, the UI uses it to retrieve the generated
  SRP from the background.
* When persisting the wallet to state, the background uses it to
  serialize the SRP.

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
2022-03-30 21:01:26 -02:30
MetaMask Bot
081f7b621b Version v10.12.2 2022-03-30 23:29:47 +00:00
MetaMask Bot
ac6844ee47 Version v10.13.0 2022-03-29 20:21:37 +00:00
Dan J Miller
09512c7148
Improvements for multi-layer fee UX (#13547)
* Show fiat on confirm screen on multilayer-fee network

* Disable gas editing on optimism

* Fix send max mode on optimism

* Represent layer 2 gas fee as a single value

* Hide gas fee edit UI on optimism

* Improvement multilayer-fee-message styling

* Lint fix

* Fix locales

* Remove unnecessary code change

Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2022-03-29 16:51:45 -02:30
Daniel
7cb22bd883
metaMetricsEvent -> trackEvent (#14249) 2022-03-29 19:19:40 +02:00
seaona
c7f8c629be
E2e dapp interactions (#14149)
* Connect to a second Dapp when MM is locked

* Refactored dapp server setup to allow multiple servers

* Triggering notification with MM locked

* Fix testcase description

* Fix lint

* Merge develop and remove extra line

* Updated baseport and included iselementPresent for a clearer assertion

* Fix lint issues

* Use Ganache pattern for defining number of Dapp servers

* Fix lint issues
2022-03-29 17:47:45 +02:00
Mark Stacey
c4e89ae84e
Merge pull request #14247 from MetaMask/master-sync
Master sync following v10.12.0
2022-03-29 13:03:47 -02:30
PeterYinusa
b22e93d689
failing contract interaction e2e (#14227)
* failing contract interaction e2e

* variable scope
2022-03-29 15:55:55 +01:00
Dan Miller
1f1462120b Merge remote-tracking branch 'origin/develop' into master-sync 2022-03-29 11:26:55 -02:30
filipsekulic
ee89eddb82
Removed metrics event (#14042) 2022-03-29 08:46:24 -05:00
Dan J Miller
86e95ebde2
Merge pull request #13935 from MetaMask/Version-v10.12.0
Version v10.12.0 RC
2022-03-29 11:11:44 -02:30
seaona
83f9d9b17d E2e Swap Api mockup response for suggestedGasFees (#13991)
* Mock Suggested Gas Fees response

* Included Option request mocked

* Update suggestedGasFee mock response
2022-03-29 07:35:06 -02:30
PeterYinusa
1130b58910 E2e metrics (#13904)
* remove metrics build

* remove segment server from tests

* enable cors

* mock segment globally

* metrics e2e test

* running test builds

* move file

* destructuring
2022-03-29 07:35:06 -02:30
Elliot Winkler
53006d4cf0
Add TypeScript to the build system (#13489)
This commit modifies the build system so that TypeScript files can be
transpiled into ES5 just like JavaScript files.

Note that this commit does NOT change the build system to run TypeScript
files through the TypeScript compiler. In other words, no files will be
type-checked at the build stage, as we expect type-checking to be
handled elsewhere (live, via your editor integration with `tsserver`,
and before a PR is merged, via `yarn lint`). Rather, we merely instruct
Babel to strip TypeScript-specific syntax from any files that have it,
as if those files had been written using JavaScript syntax alone.

Why take this approach? Because it prevents the build process from being
negatively impacted with respect to performance (as TypeScript takes a
significant amount of time to run).

It's worth noting the downside of this approach: because we aren't
running files through TypeScript, but relying on Babel's [TypeScript
transform][1] to identify TypeScript syntax, this transform has to keep
up with any syntax changes that TypeScript adds in the future. In fact
there are a few syntactical forms that Babel already does not recognize.
These forms are rare or are deprecated by TypeScript, so I don't
consider them to be a blocker, but it's worth noting just in case it
comes up later. Also, any settings we place in `tsconfig.json` will be
completely ignored by Babel. Again, this isn't a blocker because there
are some analogs for the most important settings reflected in the
options we can pass to the transform. These and other caveats are
detailed in the [documentation for the transform][2].

[1]: https://babeljs.io/docs/en/babel-plugin-transform-typescript
[2]: https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats
2022-03-28 16:33:40 -06:00
seaona
21c30f74af Make Edit Gas Fee testcase independent of arbitrary Wait time for Gas Editing (#13888)
* Added Wait for Element Containing certain value function and made more robust Edit-Gas-Fee test

* Fix: changed wait for containing value and  included extra waitforelements

* Fix: fix lint issue
2022-03-28 19:48:16 -02:30
Brad Decker
b525c620f4
Build user traits object when metamask state changes (#14192) 2022-03-28 16:56:56 -05:00
Dan J Miller
85385233e5 Fix missing scss variable 2022-03-28 17:17:19 -02:30
George Marshall
24ca3c5aa3 Dark Mode: Network display fix (#14159) 2022-03-28 10:29:43 -07:00
Guillaume Roux
a3ab204d11
Dark Mode: Fix some colors (#14228)
* fix some colors

* fix test and address requested changes

* address requested changes
2022-03-28 10:23:27 -07:00