* initial draft
* remove logs
* assertions improvement
* add more comments
* add explicit call to disable automine
* test out a very long timeout
* Revert "test out a very long timeout"
This reverts commit 0fc2666d6f4cb02739d14cf2aa07f041e6046669.
* improve test reliability
* remove mock list response
* remove hardhat reset and clean up tests
* simplify assertion
* add zzmp's nits
* 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>
* chore: e2e test (un/)wrap transactions
* wrap button should not be disabled (wait for enabled state)
* use automine
* pr feedback
* configure automine
* make tests stop relying on reset
* hide trait container when asset has no traits
* add traits header row
* trait value rows and scroll behaviour
* row with placeholder values
* add random filler values and proper scrollbar styles
* working rarity graph
* bar border radius
* move rarity graph to its own file
* always show scrim
* working scrim and move traitrow to its own file
* cleanup
* remove padding
* move scrollbar right
* add snapshot tests
* add comment about randomly generated rarities
* cleanup
* only pass traits
* justify
* not important
* cleanup scrim styles
* remove comment
* add scroll state hook
* lint
* update test
* object over map
* remove spaces
* justify content
* add ticket
* add comments
* update snapshot
* add link and hover state to trait component
* correct padding
* respond to comments
* add component and use css for vis
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
* hide trait container when asset has no traits
* add traits header row
* trait value rows and scroll behaviour
* row with placeholder values
* add random filler values and proper scrollbar styles
* working rarity graph
* bar border radius
* move rarity graph to its own file
* always show scrim
* working scrim and move traitrow to its own file
* cleanup
* remove padding
* move scrollbar right
* add snapshot tests
* add comment about randomly generated rarities
* cleanup
* only pass traits
* justify
* not important
* cleanup scrim styles
* remove comment
* add scroll state hook
* lint
* update test
* object over map
* remove spaces
* justify content
* add ticket
* add comments
* update snapshot
* correct padding
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
* updating purchasable markets from activity
* renaming
* adding trans + refactor
* snapshot test
* removing snapshot test and only matchin test
* deleting snap
* chore: updating marketplace icons
* removing console
* eslint
* uni logo
* nft20
* weird svg id bug
* adding gradient id to other marketplaces
* purchasable markets
* test size inc
* removing the nxyz endpoint
* adding back nxyz endpoint for testing
* graphql enum is purchasable markets
* removing nxyz
* self nit
* changing width and height to size - removing gradientId from props - updating gradient id
* removing purchasable markets
* linting
* adding tests to ensure marketplace
* better description
* needs to check for null and not undefined
* remove graphql feature flag and old query methods
* remove unused fn
* remove redundant names, simplify import
* explicit var naming
* column
* add comment
* update flag check
* undo
* visit /swap in uni search test
* empty array base
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
* update font weight and line height to match figma
* remove unnecessary fontWeight and lineHeight props
* revert textSecondary change
* revert SubheadSmall change
* remove lineHeight from Subheader for Success screen
* add Trans wrapper to Sweep text
* reduce gap between name and address to 2px
* update snapshot tests for classnames change
* fix failing snapshot
---------
Co-authored-by: Lynn Yu <lynn.yu@uniswap.org>
* feat: reduce severity of phishing filter to allow url token names
* fix # positions, prototype progressive risk check w/ list presence
* functional progressive risk check functionality
* better name for tokenList
* remove logs/todos
* make it work for mini-portfolio
* getUniqueAddressesFromPositions
* useTokenContractsConstant
* adds comment documenting the positionInfo->positionDetails type mapping
* safe->filtered positions in the Pool page
* use for loop instead of reduce
* WIP: token constants lookup table consolidating chain data and list data
* remove lookup table to pr#6268
* use NEVER_RELOAD
* use a counter on tokenList inclusion
* pr feedback - code simplification
* add tests
* tinaszheng pr feedback
* fix incorrect undefined fn signature
* forEach -> for loop
* add comment explainer to useFilterPossiblyMaliciousPositions
* simplify and comments re: filtration logic
* fix tests
* test: swap flow cypress tests
* fix: use default parameter
* use local reducer in swap flow
* remove swap from global reducer
* fix: remove comments
* feat: add new test
* move token constant to fixtures file
---------
Co-authored-by: Eddie Dugan <eddie.dugan@uniswap.org>
* padding fixes, special casing for txn
* add drop shadow, change width to 348px, remove debug code
* opacity animation
* address comments
* one more change
* respond to tina comments
* name change
* add $ to padding
* test: add jest.asMock
* test: use mocked instead
* test: split test-utils to prevent interaction
* test: whoops missed one
* Merge but actually this time
* 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>