kumavis
bfdc1e68f5
Delete setupFetchDebugging.js ( #10636 )
...
* Delete setupFetchDebugging.js
* remove fetch-debugging (now handled corrently by sentry)
4 years ago
Brad Decker
1b4504e233
make migration more safe ( #10689 )
4 years ago
Brad Decker
a81629e104
refactor incoming tx controller ( #10639 )
4 years ago
ryanml
530e8c132f
Fixing incorrectly typed token decimal attribute ( #10666 )
4 years ago
Shane
b50fe3184a
fix: replace dnode background with JSON-RPC ( #10627 )
...
fixes #10090
4 years ago
Dan J Miller
480512d14f
Swaps support for local testnet ( #10658 )
...
* Swaps support for local testnet
* Create util method for comparison of token addresses/symbols to default swaps token
* Get chainId from txMeta in _trackSwapsMetrics of transaction controller
* Add comment to document purpose of getTransactionGroupRecipientAddressFilter
* Use isSwapsDefaultTokenSymbol in place of repeated defaultTokenSymbol comparisons in build-quote.js
4 years ago
Brad Decker
5a233e4634
colocate tests in flat structure ( #10655 )
4 years ago
Dan J Miller
153bbc6053
Move swaps constants to the shared constants directory ( #10614 )
4 years ago
Brad Decker
3d4dfc74a8
prefer chainId over networkId in most cases ( #10594 )
4 years ago
Shane
b21cc5660f
fix: speedup cancellation ( #10579 )
...
fixes #7305
4 years ago
Niranjana Binoy
84b1379b40
Setting balance to 0x0 when the original value is undefined ( #10634 )
4 years ago
Brad Decker
2ed5bafa11
remove transactionCategory in favor of more types ( #10615 )
...
* remove transactionCategory in favor of more types
* remove reference to STANDARD in stubs
4 years ago
Erik Marks
a29fc51838
Ensure permission log will only store JSON-able data ( #10524 )
4 years ago
Brad Decker
38fe75b7d9
prefer chainId when building block explorer urls ( #10587 )
4 years ago
David Walsh
92680cf56f
Add support for multiple Ledger & Trezor hardware accounts ( #10505 )
4 years ago
David Walsh
aeffe176b3
Hide zero balance tokens with preference ( #10486 )
4 years ago
Dan J Miller
c86ceacfd9
Standard reference to ETH_SWAPS_TOKEN_ADDRESS via ETH_SWAPS_TOKEN_OBJECT.address ( #10613 )
4 years ago
Mark Stacey
79a7199a2f
Fix mobile sync of ERC20 tokens ( #10591 )
...
In #10510 we changed how tokens are stored, keying them by `chainId`
rather than network type. However we didn't update our mobile sync
function to account for this, which ended up breaking the filtering
logic used to prepare the data that is synced.
Specifically, custom tokens added by users are filtered out to just
those that are confirmed to be ERC20 tokens in our built-in list of
tokens. This filters out unrecognized tokens and NFTs.
The filtering logic has been restored to the pre-#10510 behaviour.
4 years ago
Brad Decker
e42658b590
cache balances by chain id ( #10545 )
4 years ago
Brad Decker
616b71271a
add chainId to all new transaction metadata ( #10528 )
4 years ago
Brad Decker
caa32d87fb
key tokens by chainId ( #10510 )
4 years ago
Brad Decker
1a2dc850a3
addEthereumChain bug fixes ( #10520 )
4 years ago
Brad Decker
15d78b8158
use chain id for enabling ENS IPFS resolution ( #10507 )
4 years ago
Niranjana Binoy
465dcb5e91
Wrong Currency Symbol when using Custom Network ( #10490 )
4 years ago
Mark Stacey
684c5855cd
Remove unused TransactionController option ( #10508 )
...
The function `getNetwork` was being passed into the
TransactionController constructor, but no such option was used in the
controller itself.
4 years ago
Brad Decker
aaec480e32
fix misuse of getCurrentNetwork ( #10504 )
4 years ago
Brad Decker
823466b62a
Re-add handler for addEthereumChain ( #10489 )
4 years ago
Brad Decker
1d23b59af3
add Custom Network Added event ( #10484 )
4 years ago
Shane
e3084b87cc
fix: manually connect accountsChanged ( #10477 )
...
fixes #9933
4 years ago
Austin Akers
2122b8cf16
Hide links to etherscan when no block explorer is specified for a custom network ( #10455 )
...
Conditionally render view on Etherscan text if it's a custom network
Fixes : #5631
4 years ago
Brad Decker
4c5edea294
fix contract exchange rate race condition ( #10414 )
4 years ago
Erik Marks
e48053a6d5
Add custom network RPC method ( #9724 )
...
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
Co-authored-by: Brad Decker <git@braddecker.dev>
4 years ago
jpatel888
38078d7a8d
Fix BatchRequest.execute() multiple window issue ( #10423 )
4 years ago
Brad Decker
bd1683402a
use native currency in asset row ( #10413 )
...
* use native currency in asset row
* set native currency on startup
4 years ago
Brad Decker
19fa2f5962
cancel unapproved confirmations on network change ( #10357 )
4 years ago
Erik Marks
76a2a9bb8b
@metamask/eslint config@5.0.0 ( #10358 )
...
* @metamask/eslint-config@5.0.0
* Update eslintrc and prettierrc
* yarn lint:fix
4 years ago
Thomas Huang
6a89261f28
Reject Trezor eth_getEncryptionPublicKey requests ( #10330 )
...
Further implements request rejection on eth_getEncryptionPublicKey for Trezor as they do not implement this method either.
4 years ago
Etienne Dusseault
6b34fb4184
Use @lavamoat/allow-scripts ( #10009 )
...
* use @lavamoat/allow-scripts for package postinstall allow list
* dnode: set "weak" to false
Co-authored-by: kumavis <kumavis@users.noreply.github.com>
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
4 years ago
Thomas Huang
23bab62008
Reject eth_getEncryptionPublicKey for ledger hw wallets ( #10326 )
...
Fixes #10111
Determine if the msgParams/address for the newRequestEncryptionPublicKey is a ledger keyring via getKeyringForAccount and return a promise rejection.
4 years ago
Erik Marks
7ebab83e40
Fix logWeb3ShimUsage metrics ( #10286 )
4 years ago
Thomas Huang
a88a087b60
Fix site metadata JSON-RPC handler ( #10243 )
...
* Fix getting the site metadata from the request origin params.
Regressed from inpage-provider ts migration the request. The property domainMetadata is now set as a params key for the request.
https://github.com/MetaMask/inpage-provider/blob/v7.0.0/src/siteMetadata.js#L19-L25
vs
https://github.com/MetaMask/inpage-provider/blob/main/src/siteMetadata.ts#L19-L27
* Change hardcoded mocked response of the request to the prod response.
4 years ago
Thomas Huang
1dad4abfdc
Fix site metadata JSON-RPC handler ( #10243 )
...
* Fix getting the site metadata from the request origin params.
Regressed from inpage-provider ts migration the request. The property domainMetadata is now set as a params key for the request.
https://github.com/MetaMask/inpage-provider/blob/v7.0.0/src/siteMetadata.js#L19-L25
vs
https://github.com/MetaMask/inpage-provider/blob/main/src/siteMetadata.ts#L19-L27
* Change hardcoded mocked response of the request to the prod response.
4 years ago
Erik Marks
30ff153103
eth-rpc-errors@4.0.2 ( #10226 )
4 years ago
Erik Marks
4fef2b7443
Add MAX_SAFE_CHAIN_ID and refactor chain ID validation ( #10224 )
...
* Add MAX_SAFE_CHAIN_ID constant
* Add isSafeChainId to shared utils module
* Move isPrefixedFormattedHexString to shared utils module
* Validate custom RPC chain IDs in network controller
* Update some network controller error messages.
* Add isSafeChainId validation to UI
4 years ago
Erik Marks
7077ee68dc
Add NETWORK_TYPE_RPC constant ( #10203 )
...
* Refactor network display props
* Add NETWORK_TYPE_RPC constant
* Consolidate network constants
4 years ago
Erik Marks
90289ec22a
Further improve organization of constants ( #10200 )
4 years ago
Erik Marks
7159dd6867
Fetch with a timeout everywhere ( #10101 )
...
* Use fetchWithTimeout everywhere
* Memoize getFetchWithTimeout
* Require specified timeout
4 years ago
Erik Marks
0dfdd44ae7
Restore support for @metamask/inpage provider@"< 8.0.0" ( #10179 )
...
This restores support for versions of the inpage provider prior to v8.
This is intended to support dapps and extensions that directly
instantiated their own provider rather than using the injected
provider.
* Forward traffic between old and new provider streams
* Ignore publicConfig stream for non-legacy muxes
* Transform accountsChanged notification for legacy streams
* Convert publicConfigStore to singleton
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
4 years ago
Dan J Miller
2431a5821c
Migration 51: ensure chainId is set in state for default/infura providers ( #10170 )
...
* Migration 51: ensure chainId is set in network controller provider state for all infura/default networks
* Clean up
* Migrate incorrect as well as falsy chainIds
Co-authored-by: Erik Marks <rekmarks@protonmail.com>
4 years ago
Mark Stacey
69e883c728
Detect tokens on custom Mainnet RPC endpoints ( #10157 )
...
Our automatic token detection was hard-coded to only work on our built-
in Infura Mainnet endpoint. It now works with custom Mainnet RPC
endpoints as well.
Relates to #6992
4 years ago