* feat: changes disconnect button to a two-step animated button with confirmation
* fix: use ConfirmSwapModal in expert mode (#6673)
Fixes the swap flow for users who are still in expert mode and need permit2 approvals for a token
---------
Co-authored-by: eddie <66155195+just-toby@users.noreply.github.com>
<!-- Your PR title must follow conventional commits: https://github.com/Uniswap/interface#pr-title -->
## Description
<!-- Summary of change, including motivation and context. -->
<!-- Use verb-driven language: "Fixes XYZ" instead of "This change fixes XYZ" -->
upgrades the coned package to get this change: https://github.com/Uniswap/conedison/pull/19
## Test plan
<!-- Delete this section if your change is not a bug fix. -->
### Reproducing the error
<!-- Include steps to reproduce the bug. -->
1. Try to sign a permit2 signature with trustwallet ios on optimism or arbitrum - it will fail without this change.
### QA (ie manual testing)
<!-- Include steps to test the change, ensuring no regression. -->
- [x] manually moved this change into `interface` and tested it , it works as a fallback
* chore: ignore hardhat cache files
* test: add forking hardhat config
* test: install cypress-hardhat
* build: add cypress-hardhat
* fix: lint
* build: add hardhat
* build: add @sentry/types
* fix: better origin
* test: update cypress VisitOptions to include hardhat
* fix: default to connected wallet user state
* test: add a hardhat provider
* build: update imports
* chore: comments
* fix: massage eth_sendTransaction
* feat: example swap test (#6415)
* initial commit
* add intercept for amplitude
* fix: destructure result
* click swap submission
* fix: eth_sendTransaction via bridge
* test works
* finish chain interaction test
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* swap should render an error when a transaction fails due to a passed deadline
* use mining utils to manage transaction confirmation
* update to use new hardhat syntax and make comments more clear
* test a very long timeout in CI
* Revert "test a very long timeout in CI"
This reverts commit 141c28e15c511f2338c2b5b2b60521a7cb4c1bda.
* fiddle with automine settings
* pr feedback
* cleanup
* bump cypress-hardhat
* use setAutomine
* use setAutomine
* remove .reset
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* build: extend cypress tsconfig from build tsconfig
* build: exclude node_modules from watch to improve typechecking perf
* fix: even tighter tsconfigs
* fix: even tighter
* fix: tailor cypress tsconfig to testing
* fix: split them up again
* fix: pr comments
* init
* testing if it works
* wip
* tooltip still not working correctly
* modal still not triggered after initial buy click
* remove invalid import
* region check fixed
* add disabled buy button treatment
* simplify and fix toggle twice bug
* no more state mgmt bugs finally
* rename vars for clarity and add todos
* add feature flag, remove toast
* keep wallet drawer open upon repeated buy clicks
* remove from feature flag modal for now
* unused vars
* first round respond to tina comments
* respond to tina padding comments, fix padding in response to cal feedback
* last round tina comments
* init pending element names being added to analytics events repo
* update event names
* add tooltip delay requested by fred and cal
* middle of revisions, fiat buy flow readability wip
* hook logic refactor done + added basic unit test
* rename enum and add todo for unit tests
* mouseover tooltip disable properly
* fix mouseover tooltip not working, ensure dot working as expected, rename buyFiatClicked to buyFiatFlowCompleted
* change developer doc comment
* respond comments
* update snapshot test
* lint fix
* remove unnecessary changes
* init
* testing if it works
* wip
* tooltip still not working correctly
* modal still not triggered after initial buy click
* remove invalid import
* region check fixed
* add disabled buy button treatment
* simplify and fix toggle twice bug
* no more state mgmt bugs finally
* rename vars for clarity and add todos
* add feature flag, remove toast
* keep wallet drawer open upon repeated buy clicks
* remove from feature flag modal for now
* unused vars
* first round respond to tina comments
* respond to tina padding comments, fix padding in response to cal feedback
* last round tina comments
* add tooltip delay requested by fred and cal
* middle of revisions, fiat buy flow readability wip
* hook logic refactor done + added basic unit test
* rename enum and add todo for unit tests
* mouseover tooltip disable properly
* fix mouseover tooltip not working, ensure dot working as expected, rename buyFiatClicked to buyFiatFlowCompleted
* change developer doc comment
* respond comments
* update snapshot test
* comments
* small changes + unit tests
* dedup
* remove enzyme
* Remove unecessary line
* simplify
* more cleanup
* add missing await
* more comments
* more comment responses
* more comment responses
* delay show fixes and respond to comments
* fix logic for show
* remove tooltip delay, unit test changes
* Update src/components/Popover/index.tsx
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* remove delay on tooltip
* missed one
* Update src/components/swap/SwapBuyFiatButton.test.tsx
Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>
* comments
* .
* lint error
---------
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>