Brad Decker
aededb1c71
Convert confirm-tx.utils.js to typescript ( #17349 )
2023-02-02 12:35:05 -06:00
Brad Decker
d9275bb1c1
Fixing/extending type definitions for later usage ( #17514 )
2023-02-01 11:53:21 -06:00
Brad Decker
6e7f5c3e21
Move THEME_TYPE to new preferences.ts file ( #17515 )
2023-01-31 17:49:00 -06:00
Danica Shen
2958d68af8
feat(mme-17214): migrate L33 files to typescript ( #17372 )
2023-01-31 12:01:10 +00:00
Danica Shen
c23bd4925b
feature: convert level 32 files to typescript ( #17390 )
2023-01-27 18:28:03 +00:00
Danica Shen
f5426a84d9
feat(mme-17212): convert shared/constants/swaps.js -> Typescript ( #17322 )
2023-01-24 16:38:01 +00:00
Maarten Zuidhoorn
2900fe2c1a
Move subject type enum to @metamask/subject-metadata-controller
( #16431 )
...
* Move subject type enum to @metamask/controllers
* Fix imports
2023-01-24 16:03:01 +01:00
Brad Decker
af83e120dc
Convert app//scripts/lib/util.js to typescript ( #17330 )
2023-01-23 10:18:22 -06:00
Brad Decker
a9ef2a049a
add numeric module ( #17324 )
2023-01-20 15:16:56 -06:00
ryanml
a19a5d60d3
Convert shared/constants/hardware-wallets.js -> Typescript ( #17310 )
2023-01-20 09:14:40 -06:00
ryanml
5c087d6313
Convert shared/constants/labels.js -> Typescript ( #17309 )
2023-01-20 08:02:09 -06:00
Brad Decker
5f6d2ba6b0
Convert Transaction constants to typescript ( #17149 )
2023-01-18 08:47:29 -06:00
Vladimir Saric
c82c967c46
Fixing error when user input some letter in token allowance flow ( #17117 )
...
* Fixing error when user input some letter in token allowance flow
* Rename the regex variable name and added a brief comment above its definition
Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
2023-01-18 10:53:10 +01:00
Vladimir Saric
3c38ff3899
Validating or restricting the number of digits on token allowance flow ( #17234 )
...
* Validating or restricting the number of digits after the decimal point that the user can enter and styles for Max button and description with error message
* Use better solution for validation the number of digits on token allowance flow
2023-01-16 14:11:46 -03:30
David Walsh
72a1df247c
Onboarding v2: Implement requested metrics ( #17090 )
2023-01-13 10:11:27 -06:00
Adnan Sahovic
fbbc1df853
Display large and small numbers as decimals instead of scientific notation on token allowance confirmation screens ( #16676 )
...
Co-authored-by: VSaric <vladimir.saric@consensys.net>
Co-authored-by: Vladimir Saric <92527393+VSaric@users.noreply.github.com>
2023-01-05 08:58:16 -06:00
Olusegun Akintayo
13de51e748
Security and Privacy Settings Re-org ( #16756 )
2022-12-19 18:46:36 +01:00
Adnan Sahovic
34b1595f29
Add Celo to the popular custom network list ( #16745 )
2022-12-07 14:13:37 -06:00
Daniel
7f50febfcd
Ensure 0% slippage on Arbitrum for wrapping / unwrapping ( #16778 )
...
* Contract addresses to lowercase
* Use case insensitive checks in the shouldEnableDirectWrapping fn
* Remove duplicated functions, move unit tests into the right location
2022-12-06 10:44:09 -06:00
Erik Marks
a861cc6dae
[FLASK] Add snap alerts and prompts via snap_dialog
RPC method ( #16048 )
...
Co-authored-by: Guillaume Roux <guillaumeroux123@gmail.com>
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2022-12-01 16:46:06 +01:00
Frederik Bolding
dfb6210910
[FLASK] snaps-monorepo@0.25.0
( #16673 )
...
* snaps-monorepo@0.25.0
* Regen LavaMoat policies
* Bump test-snaps
* [FLASK] Add Snaps JSON-RPC handler permission (#16670 )
* Add Snaps JSON-RPC handler permission
* Add copy and icon
* Fix test
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
2022-11-30 13:19:33 +01:00
Elliot Winkler
51cffa15dd
Migrate to new controller packages ( #16547 )
...
* Migrate to new controller packages
`@metamask/controllers` is deprecated, and most of the controllers that
lived here are now located in their own package ([1]). This commit
replaces `@metamask/controllers` in `package.json` with references to
these packages and updates `import` lines to match.
[1]: https://github.com/MetaMask/controllers/pull/831
* Support GitHub registry for draft PRs (#16549 )
* Add additional allowed host to lockfile linter
* Update LavaMoat policies
* Add policy exception for nanoid
* Add additional nanoid overrides
* Update LavaMoat policies again
* Bump controller packages
* Update lavamoat
* Bump controller packages
* Update packages to v1.0.0
* Expand gitignore comment
* Unpin controller dependencies, using ^ range instead
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2022-11-24 16:29:07 -03:30
Frederik Bolding
de955f3faa
[FLASK] snaps-monorepo@0.24.1
( #16525 )
...
* snaps-monorepo@0.24.0
* Fix imports and regen LavaMoat policies
* Bump iframe-execution-environment
* Fix tests
* Add permissions
* Bump patch
* Bump test-snaps
* [FLASK] Fix update e2e test to catch snaps with caveats (#16546 )
* changed snap to update to bip32
* small changes to test
* Fix lint
* Fix E2E
* Update copy
* Update icon
Co-authored-by: Bowen Sanders <bowensanders@gmail.com>
2022-11-22 13:07:08 +01:00
David Walsh
9530797a7a
Create constants for all keyring types ( #16575 )
2022-11-21 08:23:35 -06:00
Ariella Vu
e01b067d0c
Minor scripts/ui.js file cleanup ( #16566 )
...
* clean:ui: mv comments
* clean:ui: fix typo recieved -> received
* clean:ui: rn handle -> keepAliveInterval
* clean:ui: rn timeoutHandle -> ackTimeoutToDisplayError
* clean: replace "Xs" w/ variable name
* clean:ui: rm duplicate comment
* add EXTENSION_MESSAGES.CONNECTION_READY const
* clean:ui: bit more clean up
2022-11-18 20:57:01 +07:00
Mark Stacey
4f66dc948f
Update @metamask/controllers
to v33 ( #16493 )
...
The controllers package has been updated to v33. The only breaking
change in this release was to rename the term "collectible" to "NFT"
wherever it appeared in the API.
Changes in this PR have been kept minimal; additional renaming can be
done in separate PRs. This PR only updates the controller names,
controller state, controller methods, and any direct references to
these things. NFTs are still called "collectibles" in most places.
2022-11-15 15:19:42 -03:30
Ariella Vu
a87c1750b0
MV3: Update service worker restart logic and keep-alive logic for dapp support ( #16075 )
...
* dapp: add debug statements
* dapp: add retry logic [debug]
* dapp: keep SW alive on rpc request
* Revert "dapp: add debug statements"
This reverts commit ea21786f7f66c712eea02405cd68fe925d227ffa.
* dapp: try to set up ext streams asap on reset
* dapp: apply keep alive logic to phishingPageStream
* dapp:put keep-alive logic behind isManifestV3 flag
* Re-activate streams after a period of service worker in-activity
* dapp: rm extra function
* dapp: update phishing onDisconnect
* dapp: fix eslint missing global chrome
* add EXTENSION_MESSAGES const
* use EXTENSION_MESSAGES more generic comment
* update comment
* dapp: clean timeout and interval
* Fix DAPP action replay
* execute DAPP action replay for only MV3
* fix
* fix
* fix
* comment out DAPP action replay code
* fix
* fix
* fix
* scripts/background: use browser polyfill
* Revert "scripts/background: use browser polyfill"
This reverts commit 2ab6234d11b3b11e10dd993d454eeaad63bfc886.
* scripts/background: use browser polyfill
* script/background: check lastError
* dapp: use EXTENSION_MESSAGES
* scripts/background: send ready msg to all tabs
* dapp: update onMessage handler comment and name
* dapp: return values onMessage listener
see: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage#addlistener_syntax
* dapp: mv onMessage listener
* dapp: add onMessage setupPhishingExtStreams
* dapp: rn reset -> destroy streams
* dapp: rn reset -> destroy for phishing streams
* dapp: clean comment
* dapp: rm unused comments
planning to be readded in follow-up PR: #16250
* dapp: onMessage return Promise|undefined
* dapp:clean: add missing undefined return type
* dapp: use new checkForErrorAndLog for Chrome API
handy stackoverflow: https://stackoverflow.com/a/28432087/4053142
* dapp:fix: return tabs.query result
* dapp:eslint: return undefined
fix Expected to return a value at the end of arrow
function.eslintconsistent-return
* background: do not query tabs w/out url
* background: rm Could not establish... catch
- no longer needed after improved tabs query
* dapp:clean: rm unused checkForError... for now...
* dapp: prevent setupExtensionStreams called twice
- calling connect will trigger disconnect and may cause issues
- only setup streams if they are not connected
* dapp: handle onDisconnect lastError
- throwing errors from contentscript will break the dapp, so only warn
- not handling lastError when it's found will also break the dapp
* background: update tabs.query url comment
* background: update tabs.query url comment 2
* dapp: fix SW restart for multi dapp support
- ref: https://stackoverflow.com/a/54686484/4053142
* dapp:clean: rm extra "." from console.warn
* clean: comments for dapp and background
* Adding catch block (#16454 )
* fix: FireFox provider injection
* lib/util: fix invalid checkForErrorAndWarn export
* bg: add explanation for tabs.sendMessage catch
* dapp: add browser-runtime.utils
* runtime.utils: add checkForLastErrorAndLog
Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2022-11-15 00:18:08 +07:00
David Drazic
5e746dcc2f
[FLASK] Add snap cronjobs ( #16239 )
...
* Add Cronjob controller configuration
* Add Cronjob permission icon and description
* Add lint fix changes
* Add missing action to the allow-list
* Fix permission
* Fix icon and message
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2022-11-09 13:18:47 +01:00
Daniel
1a9ebab828
Enable new networks for Swaps ( #16396 )
2022-11-08 19:14:17 +01:00
Frederik Bolding
de3068d932
[FLASK] snaps-monorepo@0.23.0
( #16394 )
...
* snaps-monorepo@0.23.0
* Regen LavaMoat policies
* Update iframe-execution-environment
* Fix tests
* Bump luxon
* Fix lint
* Update test-snaps
* Bump post-message-stream
* Fix E2E
2022-11-08 10:31:22 +01:00
Erik Marks
a8c1756816
Remove 3box feature and delete ThreeBoxController ( #14571 )
...
* Remove 3box feature and delete ThreeBoxController
Lint locale messages
lavamoat policy updates
* Restore 3Box user trait with value `false`
The 3Box user trait has been restored and hard-coded as `false`. This
ensures that users don't get stuck in our metrics as having this trait.
A deprecation comment has been left in various places for this trait.
* Remove unused state
* Remove additional 3box-related things
* Run `yarn-deduplicate`
* Restore migration that was lost while rebasing
* Remove obsolete override
* Remove additional unused resolutions/dependencies
* Update LavaMoat policies
* Remove obsolete security advisory ignore entries
* Remove 3Box fixture builder method
* Update unit tests
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2022-10-31 13:50:50 -02:30
Frederik Bolding
7ba0f78a84
[FLASK] snaps-skunkworks@0.22.0
( #16069 )
...
* snaps-skunkworks@0.22.0
* Update LavaMoat policies
* Bump execution environment and fix a breaking change
* Fix caveat and permissions
* Fix test
* Exclude keyring endowment for now
* Fix test
* Fix snap_confirm missing title
2022-10-07 10:02:35 +02:00
Niranjana Binoy
29c2b136b8
Replace setInterval with chrome alarms for MetaMetrics FinalizeEventFragment ( #16003 )
2022-10-04 13:03:50 -04:00
Alex Jupiter
0a0eb207e8
Hardware wallet copy updates, referral and tutorial buttons ( #14738 )
...
Co-authored-by: ryanml <ryanlanese@gmail.com>
Co-authored-by: Alex Donesky <adonesky@gmail.com>
2022-10-04 10:16:57 -05:00
Filip Sekulic
02d7eb34c9
Add Aurora to the popular custom network list ( #16039 )
...
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2022-10-03 14:55:54 -05:00
Nicolas Ferro
47f136380f
Ability to buy native currency and tokens on Optimism and Arbitrum, using Transak ( #16031 )
2022-09-29 09:47:41 -05:00
ryanml
0bc1eeaf37
Deprecating the Rinkeby, Ropsten, and Kovan test networks ( #15989 )
...
* Deprecating Rinkeby, setting default debug network to Goerli
* Deprecating Ropsten and Kovan
* Conflict fix
* Remove unused localization, test fixes
* Add migration for moving used deprecated testnets to custom networks
* Fix migrator test
* Add more unit tests
* Migration updates provider type to rpc if deprecated network is selected
* Migration fully and correctly updates the provider if selected network is a deprecated testnet
* Continue to show deprecation warning on each of rinkeby, ropsten and kovan
* Add rpcUrl deprecation message to loading screen
* Removing mayBeFauceting prop
Co-authored-by: Dan Miller <danjm.com@gmail.com>
2022-09-28 20:26:01 -07:00
Nicolas Ferro
18ca016cf0
Ability to buy tokens with Wyre ( #15992 )
2022-09-28 09:41:56 -05:00
Niranjana Binoy
c836f2f2ac
Replacing setTimeout in auto-lock time limit with chrome alarm ( #15931 )
2022-09-23 20:39:25 -04:00
Nicolas Ferro
3f801e377d
Ability to buy tokens with Moonpay ( #15924 )
...
* Ability to buy tokens with Moonpay
* fix for test cases failing
* updated description for MoonPayChainSettings type
* removed test results
2022-09-23 09:38:40 -07:00
Frederik Bolding
4eb8e50800
[FLASK] snaps-skunkworks@0.21.0
( #15889 )
...
* snaps-skunkworks@0.21.0
* Update policy files
* Regen policies again
* Fix tests
* Simplify selector
* Fix flaky test
* Update iframe execution env
* Move snap install warnings to util
* Add basic copy for snap_getBip32PublicKey
* Update permission icon
* Update E2Es
* Fix lint
* Fix locale strings
2022-09-23 12:39:54 +02:00
Nicolas Ferro
1b563188bf
Ability to buy tokens with Coinbase Pay and Transak ( #15551 )
...
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
Co-authored-by: Brad Decker <git@braddecker.dev>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2022-09-19 10:00:57 -05:00
Dan J Miller
b802e25a85
Fix sepolia network id ( #15847 )
2022-09-15 14:24:55 -02:30
ryanml
7b04bf8b47
Adding Sepolia as a default test network ( #15787 )
2022-09-14 13:26:45 -05:00
Brad Decker
c87980bbfe
migrate network constants to typescript ( #15610 )
2022-09-14 09:55:31 -05:00
Matthew Epps
dcfe80c255
Add entry point for metalabs dapp into metamask home page ( #15407 )
...
Co-authored-by: Dan Miller <danjm.com@gmail.com>
2022-09-13 08:41:58 -05:00
Daniel
34e2faaf49
Replace Rinkeby with Goerli for dev testing ( #15781 )
2022-09-12 13:11:29 +02:00
gzeon
527fbe0c70
Update Arbitrum symbol ( #15747 )
2022-09-07 10:20:11 -05:00
VSaric
8fa96ac1a2
Updated Avalanche rpcUrl endpoint ( #15720 )
2022-09-06 09:12:05 -05:00
Frederik Bolding
7fc418a96d
[FLASK] snaps-skunkworks@0.20.0
( #15706 )
...
* snaps-skunkworks@0.20.0
* Generate LavaMoat policy
* Fix some breaking changes
* Update iframe execution env
* Fix unit tests
* Implement snap_getBip44Entropy
* Regenerate LavaMoat policy
* Prefer ControllerMessenger over direct calls
* Fix not showing warning for BIP44 legacy permission and E2E test
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
2022-08-26 13:48:53 +02:00