Dan J Miller
f12f60a296
Set the BSC_CONTRACT_ADDRESS to lowercase ( #10800 )
4 years ago
Brad Decker
4080ed63a4
Refactor Tx State Manager ( #10672 )
...
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
4 years ago
Dan J Miller
d8fd4b8271
Use correct block explorer name and link in swaps when on custom network ( #10743 )
...
* Use correct block explorer name and link in swaps when on custom network.
* Fix up custom etherscan link code in build-quote.js
* Use blockExplorerUrl hostname instead of 'blockExplorerBaseUrl'
* Use correct etherscan-link method for token links in build-quote
* Create correct token link in build-quote for mainnet AND custom networks
* Block explorer url improvements in awaiting-swap.js and build-quote.js
* Use swapVerifyTokenExplanation message with substitutable block explorer for all applicable locales
* Ensure that block explorer links are not shown in awaiting-swap if no url is available
4 years ago
Dan J Miller
cc55a981d4
Additional swaps network support ( #10721 )
...
* Add swaps support for bnc chain
* Use single default token address in shared/constants/swaps
4 years ago
Brad Decker
a81629e104
refactor incoming tx controller ( #10639 )
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
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
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
David Walsh
ffeaeea4b1
Disable BUY button from home screen when not on main network ( #10453 )
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
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
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
54e9c53b27
Add web3 shim usage notification ( #10039 )
...
* Add web3 shim usage alert background state and logic
* Cleanup alert background state, constants
* Implement web3 shim usage notification and settings
* nodeify alert controller background hooks
* Remove svg icon, again
* Tweak alert controller initialization
* Add support article URL
* Un-thunk alert UI "actions"
* Delete connect.svg file (unused)
4 years ago
Brad Decker
0653a489b0
add new MetaMetricsController ( #9857 )
4 years ago
Erik Marks
9d4b8a4903
@metamask/contract-metadata ( #9968 )
4 years ago
Brad Decker
daf783a0d8
Track a new schema event when adding a token ( #9810 )
...
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
4 years ago
Brad Decker
a49a4a066c
expand transaction constants coverage ( #9790 )
...
* expand transaction constants coverage
* touchups
* dont import inside of e2e
* Update app/scripts/controllers/transactions/tx-state-manager.js
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Update test/unit/app/controllers/transactions/tx-controller-test.js
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
4 years ago
Brad Decker
026a06b39d
add shared transaction constants ( #9459 )
...
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
4 years ago