Vignesh Mohankumar
1b91e7ce30
fix: Revert "refactor: remove coinbase wallet resetState" ( #4081 )
...
Revert "refactor: remove coinbase wallet resetState (#4024 )"
This reverts commit e36722ccb4cd282aa932ff7c7e6082190f3ed131.
2022-07-12 00:37:45 -04:00
Vignesh Mohankumar
e36722ccb4
refactor: remove coinbase wallet resetState ( #4024 )
...
* refactor: remove coinbase wallet resetState
* unused import
* bump web3-react
* rm unused
* bump everything
2022-07-11 13:49:49 -04:00
lynn
66cae715f4
feat: implement initial setup of amplitude SDK ( #4044 )
...
* init commit
* add amplitude ts sdk to package.json
* add more comments and documentation
* respond to vm comments
* respond to cmcewen comments
* fix: remove unused constants
* fix: respond to cmcewen comments + initialize analytics in app.tsx + add missing return statement
2022-07-08 11:57:47 -04:00
lynn
77366bf81b
feat: configure blocks per fetch for l2s ( #4028 )
...
* init commit
* update redux multicall version to 1.1.5 in package.json
* fix respond to zzmp comments
* update optimism blocks per fetch to 15
* simplify
Co-authored-by: Lynn Yu <lynn.yu@uniswap.org>
2022-07-05 12:13:20 -04:00
Zach Pomerantz
c48d4c5425
build: simplify actions ( #4014 )
...
* build: simplify actions
* build: add checkout
* build: fix path
* build: fix all paths
* build: missing steps
* build: update build name
* build: rename action
* build: add shell
* build: formalize lint
* build: cleanup
* build: update release
* build: comment workflows
2022-07-01 15:05:37 -07:00
Vignesh Mohankumar
edcdbfd8f5
feat: disconnect for coinbase wallet ( #3993 )
...
* feat: disconnect for coinbase wallet
* change isActive logic
* remove logs
* reset state for coinbase wallet
* active -> isActive
* rm data-cy
2022-06-30 18:04:42 -04:00
Vignesh Mohankumar
9ddb37a982
chore: move cypress to devDependencies ( #4002 )
2022-06-29 13:41:20 -07:00
Zach Pomerantz
63227cd2c5
build: dedup lockfile ( #3985 )
...
* build: dedup ethers
* build: dedup token-lists
* build: dedup deps
* build: clean deps
2022-06-29 09:43:01 -07:00
matteenm
628417f696
chore(deps): bump token-lists ( #3929 )
2022-06-21 15:52:09 -04:00
Vignesh Mohankumar
db0d3cf3fa
feat: upgrade to web3-react v8 ( #3759 )
...
* initial
* comment more stuff out for now
* more changes
* more temp
* remove walletconnect bug logic
* switch to provider not connector
* remove fortmatic
* remove some usage of network connector
* fix initialize connector
* more changes
* remove switch to network
* connect eagerly
* active -> isActive
* add initial option cards
* upgrade web3-react
* delete tryActivation
* delete pending view, reset option code
* fix hooks
* library -> provider
* rm getLibrary
* eagerly connect
* comment all this code for now
* add back app
* dont connect eagerly here
* deactivate
* switchToNetwork
* switch to useWeb3React
* rm Web3ReactManager
* add back og wallet modal code
* switch back to old option logic
* add account logic back
* add back more network switch logic
* Revert "switch to useWeb3React"
This reverts commit 08ac6319d40207c31c72bf3b16b9f22223fc1ddc.
* add back skip disconnect logic
* check for network connector
* use promise.then again
* remove unnecessary pending error logic
* reset useAddTokenToMetamask
* upgrade packages
* use watchAsset
* add gnosis
* rm fortmatic
* close on disconnection
* add Wallet enum
* remove fortmatic imports
* add wallet state
* set/clear override wallet
* resolve empty
* remove some wallet modal view logic
* useWeb3ReactListener
* move to use effect
* add setwalletoverride in deactivate for now
* start to fix the wallet modal bug
* back button should open options
* connect eagerly to all
* Revert "add setwalletoverride in deactivate for now"
This reverts commit fbc990a9245c68460b1f29e368174b5327aa586c.
* useSelectedIsActive
* switch the enum to not be a bug
* actually dispatch the wallet override
* remove connection useEffect for now
* Revert "remove connection useEffect for now"
This reverts commit 0b92eee6894586e08079c1e4092e098b579cb768.
* add back the activation useeffect
* handle resetting eagerly connecting
* dont disconnect from coinbase wallet
* disconnect except for coinbase wallet, bc their reload breaks things
* handle eager activation edge case
* backfill wallet override
* rename wrapper components
* update test
* network if override undefined
* npx deduplicate
* comment for why coinbase wallet special cased
* connectorPrevious -> previousConnector
* Array.find instead of forEach
* useState instead of useReducer
* add comments and simplify
* Web3Wrapper component
* add type guard
* check for watchAsset
* revert Option.tsx changes
* set -> updateWalletOverride
* generalize connector type usage
* rm comment
* eagerlyConnect comment
* null -> undefined
* add comment for wallet override
* add back pendingError logic
* merge conflicts
* remove provider dep
* add back connect a wallet
* move active prop out of base props
* add back account details test
* add type of isActiveMap
* add back eslint
* add TODO
* Web3Provider
* return null from Updater
* update comment
* integration tests initial
* try updating test
* check for gnosis safe
* fix gnosis safe check
* pr comments
* pr comments
* don't eagerly connect to any wallets other than gnosis or walletOverride
* remove unused branch
* pendingError from hook
* eslint-disable-line
* try connecting to wallets if not backfilled
* move eager connection logic
* remove connect eagerly set logic
* disconnect on change
* simplify ConnectorState
* better solution for changing wallet priority
* merge fixes
* fix tests
* try fixing test again
* add comment
* add fortmatic back
* set walletOverride for fortmatic
* hide other chains
* handle eager connection
* connect everything eagerly if not backfilled
* fix chain switching
* async
* rm error console
* fortmatic update
* log errors
* don't eagerly connect to fortmatic
* onSelectChain + switchChain
* typo
* don't disconnect from coinbase wallet for now
* upgrade web3-react
* close on disconnection/connection again
* simplify account change check
* comment fix
* comment
* fortmatic icon
* comment for fortmatic in network selector
* consolidate useEffect hooks in walletmodal for connection/disconnection
* switchToChain
* comment
* isEagerlyConnecting instead of eagerlyConnectingWallets
* update web3-react
* close modal fortmatic
* remove error log
* chainIdNotAllowed
* handle useToken
* update SupportedChainId
* move if statements around
* move to wallet reducer
* close as error
* export fix
* add back history change
* add back popular
* fortmatic key
* persist wallet
* remove eagerly connect
* call connect eagerly
* handle modal errors
* handle fortmatic close properly
* connector error changes
* go back to options
* change redux wallets
* simplify reducer
* fix eagerly connect / disconnect
* remove account change hook
* simplify connect eagerly
* remove unused var
* revert chain
* walletOverride reducer
* update web3-react
* fix compile errors for now
* show disconnect button
* clear pending connector
* clear error state
* add back skip toggle check
* MAINNET provider for ENS
* add coinbase wallet sdk
* fix test
* add back style but fix syntax highlighting
* dont create separate json rpc provider
* don't use selected hooks
* dont export
* dispatch first
* useConnectors
* comment
* simplify activeMap
* useIsActiveMap
* prettier
* prop change
* move comment
* useCallback
* coinbase wallet link fix
* rm ModalWallet type
* reportError
* isChainAllowed
* NETWORK_SELECTOR_CHAINS
* mainnet provider
* remove unused wallet views
* add back default case
* selected wallet
* comment change
* !chainAllowed
* rm ensResolver
* rm forEach
* re-define reportError
* move effects arounds
* change error message for switching chain
* simplify Web3Provider
* delete use isActive map
* fix test?
* rm disconnect test for now
* error message updates
* const -> function
* move fn
* undo changes for showing connect wallet state
* clear error before activating
* remove special case for fortmatic error
* backfillable/selectable wallets
* log wallet
* Revert "rm disconnect test for now"
This reverts commit 225bc7dc5622ae918d8a8b70e4425c648d1a1fac.
* check if account exists
* unused dep
* remove reload piece of test
* update connect a wallet default state
* headerRow
2022-06-16 14:39:23 -04:00
Zach Pomerantz
50a2dc9560
build: update cypress projectId ( #3918 )
...
* build: update cypress projectId
* build: rm unused cypress key
* test: save cypress videos
* build: rm start-server-and-test
* build: update github action cache usage
* build: use cypress action
2022-06-16 09:17:48 -04:00
Zach Pomerantz
c16e49e774
feat: service worker with etag cache ( #3897 )
...
* fix: always-fresh service worker cache
* chore: clarify service-worker
* fix: cache in CacheStorage
* feat: set __isDocumentCached
* add back in manifest precaching
* add unit tests (incomplete)
* test: simplify test env
* test: add service-worker cypress test
* test: service-worker document handler
* fix: CachedDocument ctor
* fix: Readable for ReadableStream in jest
* build: clean up module loading
* fix: rename commands->ethereum
* build: simplify package.json deps
* build: clean up cypress usage
* build: clean up yarn.lock
* build: record cypress runs
* build: disable chromeWebSecurity in cypress tests
* build: rm babel
* build: disable sw in ci cypress
* build: nits
* build: update workbox version
* chore: fix merge
* test: cache
* test: cypress-ify the before hook
* test: clear sw before each test
* fix: cy then
* test: cypress shenanigans
* style: lint
* chore: rm todo
* test: fail fast for service worker with dev builds
* docs: update contributing to tests
* fix: clean up tests after merge
- Add fast fail in case of dev server, which lacks ServiceWorker
* fix: inject ethereum
* test: service worker
* test: increase sw timeout
* test: sw state
* test: run cypress in chrome
* feat: add on-demand caching to improve sw startup time
* test: test dynamically
* fix: simplify cached doc
* fix: optional sw
* fix: expose response on cached doc
* fix: stub out sw req
* fix: intercept
Co-authored-by: Christine Legge <christine.legge@uniswap.org>
2022-06-14 15:40:52 -04:00
Zach Pomerantz
48f8c6a141
test: update cypress ( #3908 )
...
* test: update cypress
* chore: comment on infura origin
* test: split build and serve
* chore: rm setupNodeEvents
2022-06-13 17:43:58 -04:00
Lynn
d0e4aa832a
fix: add jest coverage config to package.json ( #3896 )
...
* fix: add jest coverage config to package.json
* fix: add running test instructions to CONTRIBUTING.md
* fix: respond to zzmp comments
* fix: lower test thresholds
Co-authored-by: Lynn Yu <lynn.yu@uniswap.org>
2022-06-10 16:39:38 -04:00
Zach Pomerantz
22136b2708
build: clean up module loading ( #3898 )
...
* build: clean up module loading
* fix: rename commands->ethereum
* build: simplify package.json deps
* build: clean up cypress usage
* build: clean up yarn.lock
* build: record cypress runs
* build: disable chromeWebSecurity in cypress tests
* build: rm babel
* build: disable sw in ci cypress
* build: use dev env for e2e
* build: reenable web security
2022-06-09 14:39:38 -04:00
Michael Wei
9cee94a473
fix: ignore dbg.json files during typechain ( #3751 )
2022-05-16 16:55:37 -04:00
Zach Pomerantz
61d1036d28
chore: rm widget code ( #3810 )
...
* chore: rm widget tooling
* chore: rm widget components
* chore: rm widget theme
* chore: rm widget assets
* chore: rm widget business logic
* chore: rm widget meta
* chore: update yarn.lock
* chore: mv type to usage
2022-05-10 13:49:04 -07:00
Zach Pomerantz
f717bf4a49
chore: bump to 1.0.7 ( #3753 )
2022-04-19 13:14:58 -04:00
Mark Carbajal
acb0c2056e
chore: Remove Portis ( #3693 )
...
* Removed portis
* Removed portis
* Removed portis
* Update src/components/WalletModal/index.tsx
Co-authored-by: Bruno Crosier <bruno.crosier@gmail.com>
* regenerate yarn.lock
* revert translation changes
Co-authored-by: Bruno Crosier <bruno.crosier@gmail.com>
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2022-04-14 15:23:31 -04:00
Zach Pomerantz
00b151d7fa
fix: activation frames ( #3711 )
2022-04-12 09:23:19 -07:00
Zach Pomerantz
a0348b45be
chore: bump to v1.0.6 ( #3696 )
2022-04-08 13:13:11 -07:00
Zach Pomerantz
8b228de88f
chore: bump to v1.0.5 ( #3691 )
2022-04-08 10:52:30 -07:00
Zach Pomerantz
e0e2b40f9f
chore: bump to v1.0.4 ( #3686 )
2022-04-07 15:05:35 -07:00
Zach Pomerantz
ecfa179b3f
chore: bump to v1.0.3
2022-04-07 11:24:33 -07:00
Zach Pomerantz
3bfbc74e47
chore: bump to v1.0.2 ( #3675 )
2022-04-06 13:05:06 -07:00
Zach Pomerantz
a9039e8d0b
chore: bump to v1.0.1 ( #3670 )
2022-04-06 10:02:37 -07:00
Zach Pomerantz
84c70ac84d
chore: bump to v1.0.0 ( #3663 )
2022-04-05 10:45:36 -07:00
Jordan Frankfurt
e880955743
chore(widgets): bump version ( #3645 )
2022-04-01 18:06:12 -04:00
Zach Pomerantz
a00ac56389
chore: bump to v0.0.30-beta ( #3637 )
2022-03-31 14:49:44 -07:00
Zach Pomerantz
2d8f767d74
feat: upgrade web3-react ( #3628 )
...
* chore: upgrade web3-react
* feat: use a JsonRpcConnector
* chore: rm @ethersproject/experimental
* fix: assert Web3Provider in app
* fix: type providers more loosely
* chore: reinstall experimental for testing
2022-03-30 20:45:43 -07:00
Zach Pomerantz
91f5fc0881
chore: upgrade redux-multicall and smart-order-router ( #3623 )
...
* chore: upgrade redux-multicall and smart-order-router
* chore: provide @ethersproject through ethers
2022-03-29 12:00:56 -07:00
Connor McEwen
de1f5d1adc
feat: migrate to GA4 ( #3599 )
2022-03-24 21:44:48 -04:00
Zach Pomerantz
c4c811aeb3
chore: bump to v0.0.26-beta ( #3593 )
2022-03-24 16:02:38 -04:00
Zach Pomerantz
9ef2b3a116
chore: add ethers ( #3591 )
2022-03-24 12:51:03 -04:00
Zach Pomerantz
abb2696f40
fix: upgrade @web3-react/eip1193 to fallback to eth_accounts ( #3590 )
2022-03-23 20:45:49 -04:00
Zach Pomerantz
7a75626c31
chore: bump to v0.0.25-beta ( #3538 )
2022-03-17 14:17:58 -07:00
Zach Pomerantz
7c88a5a008
chore: bump to v0.0.24-beta ( #3524 )
2022-03-15 22:31:41 -07:00
Zach Pomerantz
04cee0a07d
chore: bump to v0.0.23-beta ( #3492 )
2022-03-10 09:02:17 -08:00
Sara Reynolds
8c269a6d39
feat: add optimism and arbitrum to gas estimate support ( #3434 )
...
* add optimism and arbitrum to gas estimate support
* update sor version
* move to dependencies
2022-03-09 14:52:19 -05:00
Zach Pomerantz
1450315b98
chore: bump to v0.0.21-beta ( #3466 )
2022-03-08 09:54:59 -08:00
Zach Pomerantz
2272f2a01a
chore: specify a module for CRAv4 ( #3462 )
2022-03-08 08:19:56 -08:00
Zach Pomerantz
2944dc4d0b
chore: bump to v0.0.21-beta ( #3439 )
2022-03-04 14:30:25 -08:00
Zach Pomerantz
59c6ab16dd
fix: exports ( #3379 )
...
* fix: cjs in cra
* chore: wrap cjs for mjs
* chore: export cjs and esm
* chore: export chunks
* fix: correctly export locales
* chore: note exports compat
* fix: use cjs for common deps
* chore: bump to v0.0.20-beta
* chore: rm outdated comment
2022-03-01 11:32:55 -08:00
jaclyn
c25d2b894c
fix: update walletlink-connector to 6.2.13 ( #3315 )
...
* fix: update walletlink-connector to 6.2.12
* fix: update walletlink-connector to 6.2.13
Co-authored-by: Jaclyn Chan <jaclyn.chan@coinbase.com>
2022-02-28 11:13:36 -05:00
Zach Pomerantz
ccdf1e7575
fix: convert to commonjs ( #3373 )
...
* chore: use fully specified path for non-main imports
* chore: convert to commonjs
- Pin @web3-react to exact cjs versions
* chore: bump to v0.0.18-beta
* chore: fix fonts.css comment
* fix: @ethersproject/providers version skew
* fix: @web3-react state typings
2022-02-28 07:52:22 -08:00
Zach Pomerantz
26a44fb51b
chore: bump to v0.0.15-beta ( #3358 )
2022-02-24 11:36:00 -08:00
Zach Pomerantz
dfad7b89ab
chore: nextjs compatibility ( #3351 )
...
* fix: esm/cjs exports
* fix: guard visibility state WebAPI
* fix: nextjs styled-components imports
* fix: add ethers' optional deps
* fix: document access in useHasFocus
* fix: suffix babel-plugin-macros config for commonjs
* chore: rollup sourcemaps
* chore: export fonts separately
* chore: mv redux to peer dep
* fix: run tests off cjs config
* fix: run cosmos off cjs config
2022-02-23 13:12:07 -08:00
Zach Pomerantz
4fe35ea42e
fix: max on WebKit ( #3349 )
...
* chore: add walletconnect to cosmos
* fix: onClickMax for TokenInput
* chore: add setImmediate
2022-02-23 12:50:22 -08:00
Zach Pomerantz
48b3efc612
chore: bump to v0.0.14-beta ( #3333 )
2022-02-17 12:03:44 -08:00
Zach Pomerantz
1297aa57d3
chore: bump to v0.0.13-beta ( #3328 )
2022-02-16 17:00:43 -08:00