Vignesh Mohankumar
80b965f2ca
fix: sync chain query parameter ( #4019 )
...
* replaceURLChain
* reorder stuff
* don't use usePrevious for previousChainId
* remove the replace param call in promise
* variable names
* comment
* confirm isActive
* wrong place for isActive
* change ret type
* add comments
* check if not previous chain id
2022-07-19 21:42:52 +00:00
Vignesh Mohankumar
417e940c0a
test: fix swap test flake ( #4135 )
...
* remove all the funky logic
* clear stuff
* uncomment some tests
* remove expert mode tests
* skip these tests again, smh
v4.86.0
2022-07-19 16:42:45 -04:00
Sam Chen
c42a5ccf26
chore: access router data with hooks ( #4121 )
...
* chore: access router data with hooks
* chore: clean RouteComponentProps
* chore: use children instead of render
* add import
2022-07-19 16:14:16 -04:00
Vignesh Mohankumar
7ba9b1faf6
fix: don't toggle desktop NetworkSelector on click ( #4134 )
...
fix: don't NetworkSelector onClick on desktop
2022-07-19 14:35:24 -04:00
Vignesh Mohankumar
5d43d08ff3
build: lock jest-styled-components@7.0.7 ( #4132 )
2022-07-18 21:42:07 -04:00
lynn
85625d09f0
fix: increase celo blocksPerFetch to 5 to improve interface performance ( #4130 )
...
* init commit
* revert yarn.lock changes
* update test snapshots
2022-07-18 18:25:14 -04:00
Vignesh Mohankumar
d85f1f44b9
build: change project name to @uniswap/interface ( #4125 )
2022-07-18 17:41:32 -04:00
lynn
f41580e43c
feat: implement connect wallet category events ( #4111 )
...
* init commit
* wallet connected event init commit
* add received_swap_quote event property
* add page context, connect wallet event log
* add received_swap_quote property
* fix typo
* respond to cmcewen comments
* respond to vm comments
* move trace to app.tsx from header
* respond to vm comments
2022-07-18 17:26:29 -04:00
Vignesh Mohankumar
47fe9911fa
chore: move prettier, jest-styled-components to devDependencies ( #4128 )
...
* change package
* yarn.lock
2022-07-18 16:32:03 -04:00
Noah Zinsmeister
e0f6d82d6c
feat: enable 1bp optimism fee tier ( #4124 )
...
enable new optimism fee tier
2022-07-18 10:48:28 -04:00
Sam Chen
fb691cf17b
fix: catch vibrant failure ( #4123 )
...
fix: catch CORS error
2022-07-18 10:05:56 -04:00
Vignesh Mohankumar
f596293b6c
build: don't fail cypress on unhandled exception ( #4122 )
2022-07-18 09:46:31 -04:00
Sam Chen
8012789f69
fix: fixes Popover arrow positioning ( #4119 )
...
fix: fix arrow position
2022-07-17 11:22:50 -04:00
Sam Chen
4013743473
chore: upgrades react-router-dom, fixes dev-mode linking ( #4115 )
...
* fix: stale route
* fix: add e2e test
* fix: update e2e test
2022-07-17 11:15:04 -04:00
Jesse
e9ef3193ab
refactor: remaining changes from the large celo merge ( #4088 )
...
* refactor: useUSDCValue -> useStablecoinValue
* refactor: use the isCelo() helper
* refactor: remove unneeded white space
2022-07-15 10:36:19 -04:00
Vignesh Mohankumar
6a1506ade6
build: Revert "build: pause deploy" ( #4107 )
...
* Revert "build: pause deploy (#4102 )"
This reverts commit 3a1ea3df85a60fd32f47b67ce933a6edd239384f.
* prettier
2022-07-14 12:19:23 -04:00
cartcrom
839d4ac8e2
refactor: adding safe getter for ChainInfo ( #4110 )
...
* replaced CHAIN_INFO access with a function call
* updated CTACard tests to work with getChainInfo
* updated typechecking, removed console.log
2022-07-14 11:52:37 -04:00
Vignesh Mohankumar
29fdcb80f6
build: upgrade prettier to v2.7.1 ( #4109 )
...
* style: prettier based on v2.2
* 2.7.1 instead?
* npx
* ^
2022-07-14 11:28:51 -04:00
lynn
817ea44e8d
fix: update styled-components in package.json to latest to remove react invalid hook call warnings ( #4103 )
...
* fix warning vig found by updating styled-components
* revert unnecessary yarn.lock changes
* reduce unnecessary changes
* dedup
* manual fix and dedup of yarn.lock
* manually dedup @emotion/is-prop-valid
* update snapshot tests
2022-07-14 10:15:46 -04:00
Vignesh Mohankumar
3a1ea3df85
build: pause deploy ( #4102 )
2022-07-13 21:24:58 -04:00
Vignesh Mohankumar
2667a897a1
chore(web3-react): fix connectEagerly for MetaMask mobile ( #4101 )
...
* chore(web3-react): fix connectEagerly for MetaMask mobile
* fix
2022-07-13 18:20:50 -04:00
lynn
65129604bd
chore: upgrade to react 18 ( #3992 )
...
* chore: upgrade to react 18
* fix: update tests
* fix: fix lint issues and remove unnecessary react hooks testing library
* fix: add types for stricter typescript checks
* fix: fix additional typescript check issues
* fix: revert to prev commmit
* rebase
* rebase
* fix: fix lint issues and remove unnecessary react hooks testing library
* fix: add types for stricter typescript checks
* fix: fix additional typescript check issues
* rebase
* fix: rebase
* fix
* eslint fix
* fix: package.json changes
* fix: package.json changes
* fix yarn lock
* fix version package.json
* fix: downgrade react-router-dom to original
* fix: undo modification of .github/workflows/release.yaml
* fix: revert cypress testing version update
* rebase
* rebase
* fix: fix lint issues and remove unnecessary react hooks testing library
* fix: add types for stricter typescript checks
* fix: fix additional typescript check issues
* rebase
* chore: upgrade to react 18
* fix: update tests
* fix: fix lint issues and remove unnecessary react hooks testing library
* fix: add types for stricter typescript checks
* fix: fix additional typescript check issues
* fix
* eslint fix
* fix: package.json changes
* fix: package.json changes
* fix yarn lock
* fix version package.json
* fix: downgrade react-router-dom to original
* fix: undo modification of .github/workflows/release.yaml
* fix: revert cypress testing version update
* fix
* fix: error boundary change
* yarn.lock change
* fix: cypress tests finally passing due to zzmp redux multicall fix HOORAY
* undo service worker changes
* build: dedup lockfile
* yarn.lock + lint
* update snapshot tests
* checkpoint
* yarn.lock
* fix: fix type errors during build
* fixes
* fix yarn.lock
* dedup yarn
* fix: import react components explicitly instead of all of react
* dedup
* yarn.lock
* yarn.lock
* dedup
* yarn
* dedup
* dedupe use-sync-external-store
* fix build issues
* dedup use-sync-external-store
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2022-07-13 16:56:09 -04:00
lynn
4e0c9b36a0
feat: implement-page-viewed-event-for-all-main-pages-of-app ( #4089 )
...
* init commit: initial constants for pages, implement vote page viewed
* implement swap
* implement pool
* remove charts
* simplify shouldLogImpression
2022-07-13 16:16:42 -04:00
Vignesh Mohankumar
64cb9f3ff2
chore: updates web3-react, adds key for changing connector order ( #4085 )
...
* fix connectors changing
* update package
* add connection name
* rename file
* de-dupe
* cb wallet fix
* fix
* yarn change
* log the key
* re-order connections
* memoize the key
* some updates
* rm console
* prevent memory leak
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2022-07-13 15:44:42 -04:00
lynn
cb094a1f4b
feat: implement token selector events ( #4067 )
...
* 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
* init commit
* adapt to web
* add optional event properties to trace
* correct telemetry to analytics
* change telemetry to analytics in doc
* fix: respond to cmcewen comments + initialize analytics in app.tsx + add missing return statement
* init commit
* respond to zzmp comments
* add token selected event
* fixes
* eliminate unnecessary state
* respond to part of zzmp comments
* respond to zzmp comments round 2
* fixes
* respond to zzmp comments
* add imported token event and other fixes
* also log onKeyPress for suggested tokens
* respond to cmcewen comments
2022-07-13 15:43:51 -04:00
Zach Pomerantz
d05fefc231
test: enforce deps deduplication ( #4097 )
...
* build: use fewer babel versions
* build: dedup
* test: test deps dedups
* fix: test.yml
* fix: typo
* test: failing
* fix: dedup
* fix: dedup
* test: comment dedup tests
* chore: whitespace
2022-07-13 11:31:19 -04:00
Zach Pomerantz
3e1805a20f
build: update caniuse-lite ( #4093 )
2022-07-13 10:16:21 -04:00
Zach Pomerantz
f58dfe1284
build: upgrade @typescript-eslint ( #4095 )
...
build: update @typescript-eslint
2022-07-13 10:14:53 -04:00
github-actions[bot]
f67b7f8b66
chore(i18n): new Crowdin translations ( #4090 )
v4.85.0
2022-07-12 13:09:59 -10:00
Vignesh Mohankumar
869691d43f
refactor: wallet specific Option components ( #4065 )
...
* refactor: wallet specific Option components
* fix
* fix
* fix coinbase wallet logic
* injected logic
* remove wallet.ts
* install metamask
* move all into InjectedOption
* fix mobile metamask
* wip
* more mocking
* more test fixes
* refactor
* more special casing
* isMetaMask
* simplify components
* fix imports
* fix coinbase wallet
* test fix
* fix connectors changing
* Revert "fix connectors changing"
This reverts commit 2acfe645ca506048e599d515674a54b27d12144f.
* more to typescript logic instead of jsx
2022-07-12 18:33:24 -04:00
lynn
817d808ec5
feat: implement trace framework for analytics ( #4060 )
...
* 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
* init commit
* adapt to web
* add optional event properties to trace
* correct telemetry to analytics
* change telemetry to analytics in doc
* fix: respond to cmcewen comments + initialize analytics in app.tsx + add missing return statement
* respond to zzmp comments
* fixes
* eliminate unnecessary state
* respond to part of zzmp comments
* respond to zzmp comments round 2
* fixes
* respond to zzmp comments
2022-07-12 16:43:37 -04:00
github-actions[bot]
aee1bce612
chore(i18n): new Crowdin translations ( #4084 )
...
chore(i18n): synchronize translations from crowdin [skip ci]
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-07-12 13:52:06 -04:00
Bruno Crosier
8b38a9c4e0
fix: add crossplatform prei18n-extract
script ( #3728 )
...
* fix: 🐛 add crossplatform `prei18n-extract` script
* fix: 🚨 add newline
* Revert "fix: 🐛 add crossplatform `prei18n-extract` script"
This reverts commit 201bd2308a3caf648368b3945d5b73d8cb46c816.
* build: 📦 add `shx` as dev dep, use it in `prei18n:extract` script
* fix: 🐛 use platform-specific commands for prei18n-extract
2022-07-12 18:51:24 +02:00
cartcrom
0a115fab17
fix: unsupported chain displays message instead of crash ( #4054 )
...
* made initial changes for pools page displaying w/ unsupported chains
* condensed styling
* added chain validation to CTACards and wrote tests for both CTAcards and Pools page
* linted changes
* switched from snapshot to text matching tests
* switched test to use check for text instead of testid
2022-07-12 12:02:02 -04:00
Kaylee George
882147b533
fix: revert "fix button jump on currency panel" ( #4083 )
...
fix padding
2022-07-12 11:43:04 -04:00
Jesse
eb06aef199
feat: add support for Celo ( #3915 )
...
* feat: Support for Celo
* fix: wrong condition
* combine celo and alfajores lists
* use celo erc20 representation
* fix: refactor infura.ts to networks.ts & add celo to rpc urls
* feature: add celo contract addresses
fix: remove celo from supported gas estimate chains until feature is available
* refactor: useUSDCPrice to useStablecoinPrice
fix: add celo to supported gas estimate chains
* fix: use unique factory address for getting pool address
* fix: darkmode background graident
* fix: removing a comment left behind
* fix: remove bad import
* fix: remove dead link until the Celo is live on info.uniswap.org
* fix: add asset to common bases & minor refactoring
* fix: celo info links point to root info.uniswap.org
* fix: change celo token bridge to portal
* fix: update redux-multicall to latest version
* refactor: for code readability
* fix: celo banner colors & remove unused alternative logo
* fix: change celo token list to hosted version
* fix: update celo banner colors
* fix: move celo to the bottom of the network selector list
* fix: dedup dependencies @uniswap/router-sdk @uniswap/v3-sdk
* fix: refactoring + move Celo above L2s
* fix: update celo contract addresses
* fix: update celo subgraph
* fix: update v3-sdk and smart-order-router versions
* fix: move Celo to the bottom of the network selector list
* fix: downgrade smart-order-router and add casting fix
* fix: downgrade smart-order-router and add casting fix
* fix: resolve Pool dependency
* fix: bridge chain id types
* fix: explorer link test
* fix: use quoter v2 ABI in useClientSideV3Trade fro Celo
* fix: update connection "infura_rpc" to networks
* fix: revert yarn.lock and force install
* fix: dedup router and v3 sdk
* refactor: mv quoter v2 to client side v3 trade
* build: dedup lockfile
* feature: add portal ether to common bases
* fix: add comment for chains that use QuoterV2
* fix: use token as native asset
* fix: supply correct factory address to getPoolAddress call & refactor nativeOnChain method
* feature: adjust celo tokens presetned
* fix: update celo explorer to celoscan
* fix: celo token casting
* fix: celo celo explorer it
* fix: celo chain info should be consistent with block explorer used.
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
v4.84.0
2022-07-12 16:48:03 +02:00
Vignesh Mohankumar
1b91e7ce30
fix: Revert "refactor: remove coinbase wallet resetState" ( #4081 )
...
Revert "refactor: remove coinbase wallet resetState (#4024 )"
This reverts commit e36722ccb4cd282aa932ff7c7e6082190f3ed131.
v4.83.3
v4.83.2
2022-07-12 00:37:45 -04:00
Anas Yousef
535e670c63
refactor: remove hideRouteDiagram prop ( #3763 )
2022-07-11 20:30:16 -04:00
Bruno Crosier
0b4c77155e
fix: NetworkSelect mobile toggle bug ( #3698 )
...
* fix windows dev environment bugs
* fix NetworkSelector toggle bug
* revert: ⏪ add `prei18n:extract` script back
this change to make the script Windows-compatible will be dealt with in a separate PR
* revert: ⏪ revert prettier endOfLine fix
Will be dealt with in a separate PR
* updates
Co-authored-by: Vignesh Mohankumar <vignesh@vigneshmohankumar.com>
Co-authored-by: Vignesh Mohankumar <me@vig.xyz>
2022-07-11 15:55:59 -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
Ian Lapham
ec0b94a920
fix: Fix spacing type ( #4073 )
...
* fix: Fix spacing type
* prettier
Co-authored-by: Vignesh Mohankumar <me@vig.xyz>
2022-07-11 13:37:40 -04:00
Zach Pomerantz
d5eed8b15f
build: wait 1m between release tests ( #4077 )
2022-07-11 13:24:01 -04:00
Zach Pomerantz
2447afc43e
build: wait on passing cypress ( #4076 )
...
* build: wait on passing cypress
* build: video upload
v4.83.1
2022-07-11 18:55:03 +02:00
Zach Pomerantz
8eef757f7f
refactor: analytics initialization ( #4070 )
...
* refactor: analytics initialization
* fix: typings
2022-07-11 12:46:58 -04:00
Zach Pomerantz
b1c29b3bf1
build: resolve cypress matrix to single job ( #4075 )
...
* build: resolve cypress matrix to single job
* build: output on cypress-tests
* build: explicitly name matrix steps
* build: quote cypress string
* build: omit protocol
* build: test
* build: fix indentation
* build: test
* build: test
* build: test
* build: cleanup
* build: cleanup
v4.83.0
2022-07-11 17:36:48 +02:00
Zach Pomerantz
b211c9f150
build: wait on tests ( #4074 )
2022-07-11 16:42:52 +02: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
github-actions[bot]
5a4a2782e8
chore(i18n): new Crowdin translations ( #4045 )
...
chore(i18n): synchronize translations from crowdin [skip ci]
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-07-07 13:03:44 -07:00
Vignesh Mohankumar
4e462ddbef
refactor: extract Web3Provider hooks, create internal Connection representation ( #4040 )
...
* refactor: separate hooks file for Web3Provider
* move utils
* rename + comments
* rename Wallet enum to ConnectionType
* more wallet -> connectiontype
* more wallet -> connectiontype
* move hooks
* use Connection everywhere
* connector -> connection
* generic getConnection
* rename injected -> injectedConnection
* check connectionType
* rm unused
2022-07-07 15:17:49 -04:00
Zach Pomerantz
48a962a750
build: enable auto-release ( #4058 )
2022-07-07 11:56:03 -07:00