Daniel
9705531671
Reduce the default slippage from 3% to 2% ( #14863 )
3 years ago
benlwyre
f6643e853c
Add fiat onboarding for AVAX and MATIC through Wyre ( #14683 )
3 years ago
Ariella Vu
b6ade44bc9
Slight cleanup of constants/transactions, useTransactionDisplayData, and TransactionIcon ( #14784 )
...
* TransactionIcon: alphabetize categories
* useTransactionDisplayData: rm repetitive comment
* useTransactionDisplayData: mv signatureTypes
* useTxDisplayData: import transactionGroup @typedef
* userTxDisplayData: just vertical line spacing
3 years ago
Brad Decker
51986a4724
Add types to send state ( #14740 )
3 years ago
Frederik Bolding
66c049bb35
snaps-skunkworks@0.14.0 ( #14700 )
...
* snaps-skunkworks@0.13.0
* snaps-skunkworks@0.14.0
* Fix test
* Add long-running permission copy and icon
* Run linting
* Fix typo
* Bump E2E version
3 years ago
Brad Decker
ae4efef43e
add networks without ticker trait ( #14607 )
...
* add networks without ticker trait
3 years ago
Lachlan Tweedie
eee4cc3100
Add Coinbase Pay as fiat onramp option ( #14648 )
3 years ago
Alex Donesky
5e55cf2cf2
add case in useTransactionDisplayData to handle transaction type safeTransferFrom ( #14678 )
...
* add case in useTransactionDisplayData to handle transaction type safeTransferFrom
* add test
3 years ago
Niranjana Binoy
6c757ab5e0
Event tracking for Token Detection V2 ( #14441 )
3 years ago
VSaric
833eaa61c1
Fix Ropsten Test Network icon ( #14626 )
3 years ago
Daniel
2bd7127433
Swaps / STX improvements ( #14622 )
3 years ago
Daniel
9daab6aa59
Disable STX if a regular tx is in progress ( #14554 )
...
* Disable STX if a regular tx is in progress
* disableStxIfRegularTxInProgress : early return
* Fix UTs
* Trigger Build
3 years ago
ryanml
022c141ee8
Adding 'Swaps' to metametrics event categories ( #14538 )
3 years ago
Hennadii Ivtushok
72d2977e72
Warn about multiple MetaMask instances running ( #13836 )
...
* Add text warning on startup page
* Try to detect extensions with browser API
* Setup messaging between different versions of extension
* Cleanup
* Cleanup
* Simplify check for multiple instances running
* Fix a doc string + use webextension-polyfill
* Fix test
* Mock webextension-polyfill
* Mock correctly
* Catch error and show warning in both extensions
* Mock as promise
* Address comments
* Rename build ids
* Run detection code only if Chrome
* Add Firefox warnings
* Cleanup imports
* Update connection ids
* Run detection code for Firefox
* Add test
* Add missing await
* Update tests
* Cleanup
* Cleanup
* Improve testing
* Improve tests
* Log errors from sendMessage
* Cleanup
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
3 years ago
Brad Decker
193c22588e
call controller methods directly in send duck ( #14465 )
3 years ago
amerkadicE
8fef9fd8df
Update display of switching current network ( #13450 )
...
Co-authored-by: Amer Kadic <amerkadic@Amers-MacBook-Pro.local>
Co-authored-by: George Marshall <george.marshall@consensys.net>
3 years ago
Ariella Vu
78f4684b2a
MetaMetrics: Add EVENT.CATEGORIES const ( #14474 )
...
* MetaMetrics: add EVENT.CATEGORIES const
* MetaMetrics: add EVENT.CATEGORIES.INPAGE_PROVIDER
* MetaMetrics: add EVENT.CATEGORIES.AUTH
* MetaMetrics: add EVENT.CATEGORIES.ACCOUNTS pt. 1
* MetaMetrics: add EVENT.CATEGORIES.ACCOUNTS pt. 2
confirm we want to use 'Accounts' instead of 'Account'
* MetaMetrics: add EVENT.CATEGORIES.MESSAGES
* MetaMetrics: add EVENT.CATEGORIES.RETENTION const
* MetaMetrics: add EVENT.CATEGORIES.SETTINGS
* MetaMask: add missing EVENT.CATEGORIES.SNAPS
* MetaMetrics: add EVENT.CATEGORIES.WALLET const
* MetaMetrics: add EVENT.CATEGORIES.ONBOARDING const
* MetaMetrics: add EVENT.CATEGORIES.ONBOARDING
& EVENT.CATEGORIES.TRANSACTIONS consts
* MetaMetrics: use EVENT.CATEGORIES
* ducks/swaps: revert slice name
* MetaMetrics: add missing EVENT.CATEGORIES.NETWORK
3 years ago
Ariella Vu
d0ed2c1afc
MetaMetrics: add 'number_of_nfts' user trait ( #14495 )
...
* MetaMetrics: add number_of_nfts trait
* MetaMetrics: memoize _getAllNFTAddresses
* MetaMetrics: fix lint / update JSDoc comments
* MetaMetrics: update nft trait logic
- https://github.com/MetaMask/metamask-extension/pull/14495#discussion_r855450898
* MetaMetrics: rn _getAllNFTs > _getAllNFTsFlattened
3 years ago
Alex Donesky
fbeae57247
Add testnet name as prefix for native currency of preloaded testnets ( #14454 )
...
* add testnet name as prefix for native currency of preloaded testnets
3 years ago
ryanml
6420db3e7f
Lint fix
3 years ago
David Walsh
6a06374784
Dark Mode: Implement Metrics ( #14455 )
3 years ago
David Walsh
bcdd52f55a
Dark Mode: Implement Metrics ( #14455 )
3 years ago
Ariella Vu
21e54f4717
MetaMetrics: Identify 'number_of_tokens' user trait ( #14427 )
...
* MetaMetrics: identify number_of_tokens
* MetaMetrics: update number_of_tokens
do not filter by unique addresses.
Each token contract x chain id combo is a unique contract
* MetaMetrics: update MetaMetricsTraits @typedef
- add number_of_tokens
* MetaMetrics: clean up number_of_tokens
* MetaMetrics: alphabetize in test
3 years ago
Ariella Vu
e7bb8e2663
MetaMetrics: Identify 'nft_autodetection_enabled' & 'opensea_api_enabled' ( #14367 )
...
* MetaMetrics: alphabetize traits
* MetaMetrics: identify nft_autodetection_enabled
* MetaMetrics: identify opensea_api_enabled
* metametrics.test: alphabetize traits
* metametrics.test: add new traits
- nft_autodetection_enabled
- opensea_api_enabled
* MetaMetrics: @property use string literals
* MetaMetrics.test: update with openSeaEnabled & useCollectibleDetection
* MetaMetrics: alphabetize
* MetaMetrics: update MetaMetricsTraits @typedef
- add nft_autodetection_enabled
- add opensea_api_enabled
3 years ago
Daniel
eed6ae2b8c
Swaps: Sort "token_from" dropdown tokens by their fiat value first and "token_to" by top tokens ( #14436 )
3 years ago
Daniel
9403ee9c7a
Disable Swaps on Rinkeby for production ( #14372 )
...
* Disable Swaps in Rinkeby for production
* Use arrays instead of objects for allowed chain ids
* Trigger Build
3 years ago
Brad Decker
922ebd57cb
track address book usage ( #14382 )
...
* track address book usage
* Update app/scripts/controllers/metametrics.js
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
* Update shared/constants/metametrics.js
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
3 years ago
Olusegun Akintayo
9bd391a35f
User trait - number of nft collections ( #14377 )
...
* Add new user trait for 'Number of NFT collections'.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
FIx JS DOC
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
Arrange TRAITS in alphabetical order
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
Unit Tests for allCollectibles traits tracking.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
change cid to chainId
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* invert condition
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* jsdoc - alphabetical order
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* change {string} to the literal {number_of_nft_collections}
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Optimize _getNumberOfNFTs
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
3 years ago
Brad Decker
d6df3700f7
track rpc method usage ( #14269 )
3 years ago
VSaric
8184b150cb
Redesign screen/page "List of networks" ( #13560 )
...
Co-authored-by: George Marshall <george.marshall@consensys.net>
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
3 years ago
Niranjana Binoy
9f7c4eb658
Enable Token search functionality on supported networks ( #14034 )
3 years ago
Olusegun Akintayo
edb5ecc38c
Create shared `TRAITS` constant ( #14069 )
...
* Create shared `TRAITS` constant
Create a new constant in shared/constants/metametrics.js called TRAITS.
Using the other issues in this epic as guidance, populate the constant with traits.
Add Documentation to this constant about what each trait is.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* use field names as the constants
only interested in 4 traits now for the MVP
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* cut down comments length for readability.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Lint fixes.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* 80 chars comments length
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
3 years ago
Erik Marks
680d30f095
snaps-skunkworks@0.10.2 ( #13901 )
3 years ago
Daniel
95f830438a
Add a new fiat onboarding option via MoonPay ( #13934 )
3 years ago
Alex Donesky
e3ea4f2cd0
Fix issue where we show contract address as recipient when calling safe transfer method on erc721 or erc1155 contracts ( #13535 )
...
* fix issue where we show contract address as recipient when calling safe transfer method on erc721 or erc1155 contracts
* updates function name getTransactionData -> parseStandardTokenTransactionData, and adds documentation
3 years ago
Frederik Bolding
8b9b9af13f
Add native browser notification support for Snaps ( #13613 )
...
* Initial native notification implementation
* Simplify implementation
* Implementation based on RateLimitController
* Update controllers package
* Add notification to permission list
* Wire up correctly
* Remove snap_notify from the exclusion list
3 years ago
Brad Decker
116d6b0eb8
add asset_type to transactions ( #13858 )
3 years ago
Erik Marks
118480280c
snaps-skunkworks@0.10.2 ( #13901 )
3 years ago
ryanml
532cf54307
Revert "Allow sending up to 15 decimals on the send screen ( #12707 )" ( #13823 )
...
This reverts commit 8597cd1401
.
3 years ago
ryanml
ce495d7a66
Revert "Allow sending up to 15 decimals on the send screen ( #12707 )" ( #13823 )
...
This reverts commit 8597cd1401
.
3 years ago
Brad Decker
6e34b70db3
add account_type and device_model to tx metrics ( #13682 )
3 years ago
Daniel
f39bb48227
Enable Avalanche for Swaps ( #13653 )
3 years ago
Daniel
2585f45bde
Add support for Smart Transactions ( #12676 )
3 years ago
Daniel
120603e6df
Enable Avalanche for Swaps ( #13653 )
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
Dan J Miller
8597cd1401
Allow sending up to 15 decimals on the send screen ( #12707 )
3 years ago
Alex Donesky
7148607906
remove infura project_id from networks form field ( #13539 )
...
* remove infura project_id from networks form field
3 years ago
David Walsh
851fce9a3b
Enable buying MATIC on Polygon, BNB on BSC, AVAX on Avalanche, FTM on Fantom, CELO on Celo, and respective stablecoins on Transak ( #13398 )
3 years ago
MG
8756ad2e78
Feat: Label hardware wallets ( #13339 )
...
* Added keyring label
* Fixed labels name
* Clean up
* Remove blank spaces
* Linted
* Fixed lint
* Removed unused hooks
* Fixed test
* Addressed PR comments
* Added KEYRING_NAMES obj
* Lint
* Removed empty space
3 years ago
VSaric
5579061cfa
Proper calculation of the gas limit ( #12784 )
3 years ago