Mark Stacey
68f42a2fb9
Improve unit tests for `SrpInput` component ( #13803 )
...
The library `@testing-library/user-event` has been updated to the
latest beta version, so that our unit tests better model real user
interactions. In particular, I found that previously the `paste` event
was missing the `clipboardData` API, so it was impossible to implement
any custom handling of paste events (which we will need in later PRs).
See the `v14.0.0-beta.1` release notes for a list of all breaking
changes [1]. The main change is that all methods now return Promises.
The `paste` method has also been dramatically simplified.
The unit tests have also been updated to reset all mocks before each
test. These tests don't have any shared mocks, but this is generally a
good practice, to ensure that tests don't develop accidental inter-
dependencies.
[1]: https://github.com/testing-library/user-event/releases/tag/v14.0.0-beta.1
3 years ago
Dan J Miller
a5fe919f68
Add EIP-712 support for Trezor ( #13693 )
...
* Add EIP-712 support for Trezor
Co-authored-by: alisinabh <alisina.bm@gmail.com>
Co-authored-by: matejcik <ja@matejcik.cz>
Co-authored-by: Brandon Noad <Brandon.Noad@gmail.com>
* Update eth-trezor-keyring version
Co-authored-by: Alois Klink <alois.klink@gmail.com>
Co-authored-by: alisinabh <alisina.bm@gmail.com>
Co-authored-by: matejcik <ja@matejcik.cz>
Co-authored-by: Brandon Noad <Brandon.Noad@gmail.com>
3 years ago
Guillaume Roux
23e6c073c4
Dark Theme setup and button theming ( #13651 )
...
* Add design-tokens and apply colors to button
* swap more colors
* tweak button and add dark theme switch to storybook
* tweak buttons
* fix typo
* remove comments
* add dep to ignored list
* fix linting issue
* fix linting issues
* Updating some styles and removing some deprecated buttons (#13742 )
* Updating some styles and removing some deprecated buttons
* Warning button fixes
* Fixing warning text for darkmode
* bump design tokens and update storybook theme strategy
Co-authored-by: George Marshall <george.marshall@consensys.net>
3 years ago
dependabot[bot]
d239d0fddb
Bump @metamask/design-tokens from 1.2.0 to 1.3.0 ( #13749 )
...
Bumps [@metamask/design-tokens ](https://github.com/MetaMask/design-tokens ) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/MetaMask/design-tokens/releases )
- [Changelog](https://github.com/MetaMask/design-tokens/blob/main/CHANGELOG.md )
- [Commits](https://github.com/MetaMask/design-tokens/compare/v1.2.0...v1.3.0 )
---
updated-dependencies:
- dependency-name: "@metamask/design-tokens"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Alex Miller
9d92b20222
[GridPlus] Updates SDK to v0.9.10 (hotfix) ( #13691 )
...
See: https://github.com/GridPlus/gridplus-sdk/releases/tag/v0.9.10-hotfix
3 years ago
Alex Miller
6dcaa0dd97
[GridPlus] Updates corresponding to Lattice firmware v0.13.2 ( #13455 )
...
This updates `eth-lattice-keyring`, which itself updates `gridplus-sdk`.
These changes are backwards compatible but do unlock functionality in
Lattice firmware v0.13.2
Underlying Changes:
* `gridplus-sdk`: https://github.com/GridPlus/gridplus-sdk/compare/v0.9.2...v0.9.7
* `eth-lattice-keyring`: https://github.com/GridPlus/eth-lattice-keyring/compare/v0.4.0...v0.4.9
3 years ago
Mark Stacey
f49e5076f3
Refactor: Extract SRP input from create vault component ( #13720 )
...
This is a pure refactor that extracts the SRP input from the
`CreateNewVault` component. This is intended to make future changes to
the SRP input easier, and to reduce duplication between the old and new
onboarding flows.
Extensive unit tests have been added for the new SRP input component.
A new test library was added (`@testing-library/user-event`) for
simulating user events with components rendered using the
`@testing-library` library.
A new helper method has been added (`renderWithLocalization`) for
rendering components using `@testing-library` with just our
localization contexts added as a wrapper. The localization contexts
were already added by the `renderWithProviders` helper function, but
there is no need for a Redux provider in these unit tests.
3 years ago
George Marshall
a1eaa33b45
Installing design tokens and writing docs in storybook ( #13657 )
...
* Installing design tokens and writing docs in storybook
* Adding design-tokens to dep check ignore
* Link updates, Sentence casing, better css code formatting, other grammer fixes
3 years ago
Dan J Miller
96b82349a0
Add EIP-712 support for Trezor ( #13693 )
...
* Add EIP-712 support for Trezor
Co-authored-by: alisinabh <alisina.bm@gmail.com>
Co-authored-by: matejcik <ja@matejcik.cz>
Co-authored-by: Brandon Noad <Brandon.Noad@gmail.com>
* Update eth-trezor-keyring version
Co-authored-by: Alois Klink <alois.klink@gmail.com>
Co-authored-by: alisinabh <alisina.bm@gmail.com>
Co-authored-by: matejcik <ja@matejcik.cz>
Co-authored-by: Brandon Noad <Brandon.Noad@gmail.com>
3 years ago
Alex Miller
0145041d0b
[GridPlus] Updates SDK to v0.9.10 (hotfix) ( #13691 )
...
See: https://github.com/GridPlus/gridplus-sdk/releases/tag/v0.9.10-hotfix
3 years ago
Daniel
2585f45bde
Add support for Smart Transactions ( #12676 )
3 years ago
dragana8
5095071083
Make default icons the same on mobile and extension #13264 ( #13408 )
3 years ago
PeterYinusa
ebeb2668ea
E2e mocking ( #13640 )
...
* mock gas price api
* fix error
* full url
* remove duplicated packages
* full url
* customise mock per test
* customise mock per test
* enable mocking
* enable mocking
* enable mocking by default
* duplicated packages
* update mockttp
* pass through
* pass through
3 years ago
ryanml
e4e321cc7c
Fix lockfile
3 years ago
dependabot[bot]
bcf826772e
Bump vm2 from 3.9.5 to 3.9.7 ( #13625 )
...
Bumps [vm2](https://github.com/patriksimek/vm2 ) from 3.9.5 to 3.9.7.
- [Release notes](https://github.com/patriksimek/vm2/releases )
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.5...3.9.7 )
---
updated-dependencies:
- dependency-name: vm2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
3 years ago
dependabot[bot]
1d1752135e
Bump follow-redirects from 1.14.7 to 1.14.8 ( #13612 )
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Dan J Miller
2dc9ce71dd
Add resolution for engine.io, a nested dependency of 3box ( #13589 )
3 years ago
dependabot[bot]
3dc60e8e30
Bump vm2 from 3.9.5 to 3.9.7 ( #13625 )
...
Bumps [vm2](https://github.com/patriksimek/vm2 ) from 3.9.5 to 3.9.7.
- [Release notes](https://github.com/patriksimek/vm2/releases )
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.5...3.9.7 )
---
updated-dependencies:
- dependency-name: vm2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
3 years ago
dependabot[bot]
3fb21fee27
Bump follow-redirects from 1.14.7 to 1.14.8 ( #13612 )
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Erik Marks
35ac762e10
Add Snaps via Flask ( #13462 )
...
This PR adds `snaps` under Flask build flags to the extension. This branch is mostly equivalent to the current production version of Flask, excepting some bug fixes and tweaks.
Closes #11626
3 years ago
PeterYinusa
2b1256faf4
Update to latest ChromeDriver ( #13616 )
3 years ago
Dan J Miller
44cb377ec0
Add resolution for engine.io, a nested dependency of 3box ( #13589 )
3 years ago
Dan J Miller
e84138e2bc
Add resolution for engine.io, a nested dependency of 3box ( #13589 )
3 years ago
Alex Miller
79e96f93db
[GridPlus] Updates corresponding to Lattice firmware v0.13.2 ( #13455 )
...
This updates `eth-lattice-keyring`, which itself updates `gridplus-sdk`.
These changes are backwards compatible but do unlock functionality in
Lattice firmware v0.13.2
Underlying Changes:
* `gridplus-sdk`: https://github.com/GridPlus/gridplus-sdk/compare/v0.9.2...v0.9.7
* `eth-lattice-keyring`: https://github.com/GridPlus/eth-lattice-keyring/compare/v0.4.0...v0.4.9
3 years ago
Brad Decker
d45cb6c12e
update test-dapp to 5.0.0 ( #13503 )
...
* update test-dapp to 5.0.0
* Update edit-gas-fee.spec.js
* Lint
* Update send-eth.spec.js
* Update signature-request.spec.js
* typo
Co-authored-by: PeterYinusa <peter.yinusa@consensys.net>
Co-authored-by: Alex Donesky <adonesky@gmail.com>
3 years ago
PeterYinusa
2b010710ae
update chromedriver to v97 ( #13502 )
3 years ago
Brad Decker
3dde05dbce
add resolution for simple-get ( #13471 )
3 years ago
dependabot[bot]
37f930ddf6
Bump cached-path-relative from 1.0.2 to 1.1.0 ( #13424 )
...
Bumps [cached-path-relative](https://github.com/ashaffer/cached-path-relative ) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/ashaffer/cached-path-relative/releases )
- [Commits](https://github.com/ashaffer/cached-path-relative/commits )
---
updated-dependencies:
- dependency-name: cached-path-relative
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
dependabot[bot]
c3265727f2
Bump node-fetch from 2.6.1 to 2.6.7 ( #13397 )
...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch ) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases )
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7 )
---
updated-dependencies:
- dependency-name: node-fetch
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Brad Decker
5889d0ac45
add resolution for simple-get ( #13471 )
3 years ago
kumavis
3729e15c0c
lavamoat - @lavamoat/allow-scripts v2 ( #13428 )
3 years ago
Erik Marks
30852f76f3
Add resolution for follow-redirects ( #13301 )
...
Adds a resolution for `follow-redirects` to resolve https://github.com/advisories/GHSA-74fj-2j2h-c42q . The dependency graph is `analytics-node#axios#follow-redirects`, and neither parent package has published a fix for this vulnerability.
3 years ago
ryanml
60981f30b3
Lockfile fix
3 years ago
Brad Decker
ca5c4b7839
fix node-forge vulnerability ( #13389 )
3 years ago
dependabot[bot]
3ca6dd6583
Bump @metamask/controllers from 25.0.0 to 25.1.0 ( #13399 )
...
Bumps [@metamask/controllers ](https://github.com/MetaMask/controllers ) from 25.0.0 to 25.1.0.
- [Release notes](https://github.com/MetaMask/controllers/releases )
- [Changelog](https://github.com/MetaMask/controllers/blob/main/CHANGELOG.md )
- [Commits](https://github.com/MetaMask/controllers/compare/v25.0.0...v25.1.0 )
---
updated-dependencies:
- dependency-name: "@metamask/controllers"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
dependabot[bot]
7fb5f417c4
Bump @metamask/controllers from 25.0.0 to 25.1.0 ( #13399 )
...
Bumps [@metamask/controllers ](https://github.com/MetaMask/controllers ) from 25.0.0 to 25.1.0.
- [Release notes](https://github.com/MetaMask/controllers/releases )
- [Changelog](https://github.com/MetaMask/controllers/blob/main/CHANGELOG.md )
- [Commits](https://github.com/MetaMask/controllers/compare/v25.0.0...v25.1.0 )
---
updated-dependencies:
- dependency-name: "@metamask/controllers"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Brad Decker
ec8a9384c9
fix node-forge vulnerability ( #13389 )
3 years ago
PeterYinusa
e2a8886a05
Upgrade ganache - continued ( #13354 )
...
* remove ganache-core
* use ganache v7
* convert to hex
* lint
3 years ago
dragana8
a67a5efca3
Incorrect Rounding Down of Balance #10167 ( #13337 )
3 years ago
Alex Donesky
f7849a0b7c
Add error that redirects users to Import NFT page when they attempt to add an NFT on the Import Token page ( #13271 )
...
* Add error that redirects users to Import NFT page when they attempt to add an NFT on the Import Token page
3 years ago
Jyoti Puri
9a3c917a48
Adding support for EIP-1559 in E2E tests ( #13282 )
3 years ago
Mark Stacey
48d9ca19cc
Remove unnecessary Yarn resolution ( #13305 )
...
This resolution was used to force a transitive dependency to be updated
to a specific version. But this target version was within the range
that was already requested, so a resolution is not needed. Yarn
resolutions are used for forcing a package to update to something
_outside_ of the requested range. For in-range updates, a Yarn lockfile
update is all we need, and it leaves us with less of a maintenance
burden (the resolution can clobber future updates).
3 years ago
Erik Marks
d4b6e95f89
Add resolution for follow-redirects ( #13301 )
...
Adds a resolution for `follow-redirects` to resolve https://github.com/advisories/GHSA-74fj-2j2h-c42q . The dependency graph is `analytics-node#axios#follow-redirects`, and neither parent package has published a fix for this vulnerability.
3 years ago
dependabot[bot]
ac5d06e4e3
Bump copy-props from 2.0.4 to 2.0.5 ( #13245 )
...
Bumps [copy-props](https://github.com/gulpjs/copy-props ) from 2.0.4 to 2.0.5.
- [Release notes](https://github.com/gulpjs/copy-props/releases )
- [Changelog](https://github.com/gulpjs/copy-props/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gulpjs/copy-props/compare/2.0.4...2.0.5 )
---
updated-dependencies:
- dependency-name: copy-props
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Alex Donesky
4826c8c95e
Feat/collectibles send flow ( #13048 )
...
* Add collectibles send flow
3 years ago
Mark Stacey
3732c5f71e
Add JSDoc ESLint rules ( #12112 )
...
ESLint rules have been added to enforce our JSDoc conventions. These
rules were introduced by updating `@metamask/eslint-config` to v9.
Some of the rules have been disabled because the effort to fix all lint
errors was too high. It might be easiest to enable these rules one
directory at a time, or one rule at a time.
Most of the changes in this PR were a result of running
`yarn lint:fix`. There were a handful of manual changes that seemed
obvious and simple to make. Anything beyond that and the rule was left
disabled.
3 years ago
Alex Donesky
c266d4e6af
Feat/check update collectible ownership ( #13110 )
...
* Use method to check and update collectible ownership
3 years ago
dependabot[bot]
bb390f06ae
Bump just-safe-set from 2.1.0 to 2.2.3 ( #13049 )
...
Bumps [just-safe-set](https://github.com/angus-c/just ) from 2.1.0 to 2.2.3.
- [Release notes](https://github.com/angus-c/just/releases )
- [Commits](https://github.com/angus-c/just/commits )
---
updated-dependencies:
- dependency-name: just-safe-set
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Alex Donesky
1b6e58c417
Feat/collectibles the return ( #12970 )
...
* Wire collectibles frontend UI with controller data
3 years ago
dependabot[bot]
69e27c8a82
Bump just-safe-set from 2.1.0 to 2.2.3 ( #13049 )
...
Bumps [just-safe-set](https://github.com/angus-c/just ) from 2.1.0 to 2.2.3.
- [Release notes](https://github.com/angus-c/just/releases )
- [Commits](https://github.com/angus-c/just/commits )
---
updated-dependencies:
- dependency-name: just-safe-set
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago