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
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
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
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
dependabot[bot]
db4e2a9bee
chore(deps-dev): bump @uniswap/default-token-list from 3.1.0 to 3.2.0 ( #3755 )
...
Bumps [@uniswap/default-token-list](https://github.com/Uniswap/default-token-list ) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/Uniswap/default-token-list/releases )
- [Commits](https://github.com/Uniswap/default-token-list/compare/v3.1.0...v3.2.0 )
---
updated-dependencies:
- dependency-name: "@uniswap/default-token-list"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-16 17:00:10 -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
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
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
dependabot[bot]
d28607a1c8
chore(deps-dev): bump @uniswap/default-token-list from 3.0.0 to 3.1.0 ( #3564 )
2022-03-24 12:09:44 -04:00
dependabot[bot]
7fb363ac46
chore(deps): bump @uniswap/token-lists ( #3596 )
2022-03-24 12:09:22 -04:00
Zach Pomerantz
abb2696f40
fix: upgrade @web3-react/eip1193 to fallback to eth_accounts ( #3590 )
2022-03-23 20:45:49 -04: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
Justin Domingue
36f111fa6f
chore: upgrade to redux-toolkit 1.8 ( #3464 )
2022-03-09 12:19:24 -05:00
dependabot[bot]
7bcda46934
chore(deps): bump url-parse from 1.5.3 to 1.5.10 ( #3371 )
...
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.5.3 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.10 )
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 14:35:54 -05:00
dependabot[bot]
f4ba24cfd5
chore(deps): bump nanoid from 3.1.28 to 3.2.0 ( #3173 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.28 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.28...3.2.0 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 14:35:01 -05: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
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
30e30189e1
fix: use a void signer for ethers providers ( #3327 )
2022-02-16 17:00:31 -08:00
Zach Pomerantz
3acd993ec0
chore: bundling nits ( #3258 )
...
* refactor: mv governance contracts to governance
* refactor: mv merkle contract to claim
* refactor: mv staking contract to staking
* chore: 0.0.6-beta
* chore: add @reduxjs/toolkit to peerDeps
* chore: v0.0.7-beta
* chore: add @reduxjs/toolkit to deps
* chore: v0.0.8-beta
* chore: swap web3-react aliasing
* chore: v0.0.9-beta
* chore: v0.0.10-beta
2022-02-08 16:43:14 -08:00
Zach Pomerantz
290f4bc1cb
feat: bundle widgets ( #3244 )
...
* fix: tsconfig emissions
* fix: avoid importing app state in lib
* fix: export theming
* fix: asset resolutions
* fix: bundle widget
* test: update failing snapshots
* fix: maintain i18n for cosmos
* fix: use npm-compatible aliasing
* fix: include fonts in bundle
2022-02-08 11:04:48 -08:00
Zach Pomerantz
96a122d7b8
chore: rename web3-react-alpha ( #3243 )
...
Renames widgets-web3-react/* to @widgets/web3-react/*.
npm treats nested packages as scoped, and requires scoped packages to begin with @.
2022-02-07 08:50:01 -08:00
Zach Pomerantz
610f7d3581
fix: named imports (webpack 5 compat) ( #3242 )
...
* fix: avoid json named imports
This is required by webpack 5, and is done to keep the widgets library compatible.
See https://webpack.js.org/migrate/5/#using-named-exports-from-json-modules
Note that this must be done upstream as well, in @uniswap/v3-sdk and @uniswap/router-sdk.
* chore: bump v3-sdk to avoid json named imports
2022-02-07 08:49:48 -08:00
Ian Lapham
05b2711a8a
feat: update widget with client side SOR ( #3210 )
...
* start SOR by creating custom widget hook
* update best trade hook to use SOR in widget
* update organization for client side SOR logic
* fix auto router chain id import
* remove dependency on react GA for widget
* update dependencies for SOr
* remove new useBestTrade.ts
* update loading logic for fetching hook
* update dependencies with import from ethersproject
* update import version
* add try catch on SOR usage
* code cleanup, nit fixes
2022-02-02 17:47:49 -05:00
Moody Salem
1b78ceec10
chore: lockfile update only from the walletlink connector update
2022-02-02 00:13:29 -05:00
Moody Salem
e5be3ebf8f
chore: put back the integrity hashes that were removed by the walletlink change
2022-02-02 00:12:59 -05:00
Brendan Weinstein
1c73719766
fix: update walletlink-connector to 6.2.11 ( #3213 )
2022-02-02 00:10:01 -05:00
Zach Pomerantz
850a20f6ad
feat: include native currency in widget select ( #3124 )
...
* fix: token image for chains / natives
* feat: include native currency in select
- Updates widgets swap state to use Currency (and deals with downstream updates)
- Refactors logoURI code to a new lib/hooks/useCurrencyLogoURIs
- Adds native currency to useQueryTokenList
NB: This does not build because tests must be updated to use Currency (they currently use mock tokens)
* test: update fixtures to use real currency
* fix: data uri color extraction
* fix: token img state
* fix: use new array
2022-01-18 12:11:22 -08:00
Zach Pomerantz
e5a1cb4276
chore: replace microbundle with rollup ( #3115 )
...
* refactor: mv gas estimate chains out of component
* chore: replace microbundle with rollup
* chore: use ts rollup config
* chore: rename lib to widgets
* chore: add rollup doc comment
* feat: rollup typings
* fix: retain tsconfig decl dir
2022-01-13 17:11:27 -08:00
Zach Pomerantz
711b2ca85c
chore: import @ethersprojects directly ( #3104 )
...
* Revert "chore: import from ethers"
This reverts commit 6d9c0855d261679c316307ea3f668869c90e63a2.
* Revert "fix: use provider JsonRpcProvider"
This reverts commit dcbbab5e4d6458a11c38582388a7cb5b12691188.
* chore: depend on @ethersprojects directly
2022-01-12 10:06:22 -08:00
willpote
aa97ec01d3
chore: bump sor to 2.5.10 ( #3091 )
2022-01-11 17:26:42 -05:00
Noah Zinsmeister
e37dd77680
Revert "bump to beta ( #3090 )"
...
This reverts commit aa37b231268d60ae9e625006f5d078e77ad4c0f5.
2022-01-11 16:00:52 -05:00
Noah Zinsmeister
aa37b23126
bump to beta ( #3090 )
2022-01-11 15:30:45 -05:00
Jordan Frankfurt
5a90f13a03
chore(deps): bump walletconnect ( #3097 )
2022-01-11 14:16:35 -06:00
Zach Pomerantz
27412e49d5
chore: import from ethers ( #3094 )
...
* chore: rm lodash
* chore: improve styled-components lint
* chore: import from ethers
* fix: use provider JsonRpcProvider
2022-01-11 11:32:20 -08:00
Noah Zinsmeister
cecbf770c6
w3r version bumps ( #3086 )
2022-01-10 14:43:17 -05:00
Jordan Frankfurt
a7041ea700
undo accidental package version reversion ( #3084 )
2022-01-10 12:17:56 -06:00
dependabot[bot]
103e18496f
chore(deps-dev): bump @uniswap/default-token-list from 2.2.0 to 3.0.0 ( #3076 )
...
Bumps [@uniswap/default-token-list](https://github.com/Uniswap/default-token-list ) from 2.2.0 to 3.0.0.
- [Release notes](https://github.com/Uniswap/default-token-list/releases )
- [Commits](https://github.com/Uniswap/default-token-list/compare/v2.2.0...v3.0.0 )
---
updated-dependencies:
- dependency-name: "@uniswap/default-token-list"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-07 11:13:41 -05:00
Jordan Frankfurt
f145a56f4a
fix: web3-react-fixes ( #3066 ) ( #3075 )
...
* add empty connector
add url connector
* naming
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2022-01-05 20:48:33 -06:00