* chore: refactoring bag component to sub components (#6027)
* moving totalEthPrice to hook
* moving everything from bag to bag footer
* moving transaction state to sep hook
* explicit type
* itemsInBag
* fixing transaction tracking
* chore: refactor useFetchAssets to make it more readable (#6043)
* chore: refactoring useFetchAssets to make it more readable
* remvoing eslint stuff
* extracting what can be
* comments
* removing feature flag
* changing return type of useUsd hook
* zustand shallow
* Support BNB Chain
* Update Interface with BNB Chain
* use SupportedChainId from sdk
* yarn-deduplicate
* add rpc urls
* add support for arbitrum goerli
* add arbitrum_goerli to jsonrpc list
* remove eslint disables
* remove non-existent gql gen Chain type
* fix import issues
* fix test
* Update src/utils/getExplorerLink.ts
Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>
* add quicknode rpc as primary
* bump universal router sdk to support bnb chain
* add correct network name for asset repo indexing
* add v3 smart order router
* yarn-deduplicate --strategy=highest
* let ethersproject stuff update
* remove safety test that is no longer relevant
* update network info link
* fix block explorer stuff, fix light theme
* add subgraph support
* update quicknode rpc
* update the wrapped BNB token symbol to WBNB
* update useStablecoinPrice api to support loading states
* update useStablecoinPrice api to support loading states
* Revert "update useStablecoinPrice api to support loading states"
This reverts commit c1fa6297d06fdf5100c1d5dfea6a820f7a0eeb7b.
* Revert "update useStablecoinPrice api to support loading states"
This reverts commit 2e703552b591fd56d032fe35afab9ead911f2ab2.
* fix copy and quote token for non-eth networks
* add coingecko bnb list
* fix: design treatment from @infredible for bnb support (#6052)
merging in current state--can merge again when the rest is ready
* fix info site links
* fix: don't show a price impact warning if the user is (un)wrapping
* finish switching to chains/constants
* fix chainId test
* fred's bnb background colors
* pr feedback from zzmp
* update sdk-core
* remove unused image
* update bnb chain asset url extension
* new addresses
* fix test and patch sdk-core version to use BNB instead of BSC
* checking in this weird schema file--maybe a mistake?
* remove temp file
* fix bases
* fix network bridge alert text color
* fix: widget defaultToken resetting on TDP
---------
Co-authored-by: ILIA.eth <4621066+ilyamk@users.noreply.github.com>
Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>
Co-authored-by: lynn <41491154+lynnshaoyu@users.noreply.github.com>
Co-authored-by: Tina Zheng <tina.s.zheng+github@gmail.com>
Co-authored-by: Eddie Dugan <eddie.dugan@uniswap.org>
* add new activity query
* add nftactivity hook and fix query
* converted activity type to accept optionals, hook should return activity type
* single asset activity
* relaystylepagination
* working on local endpoint
* working timestamps
* updated endpoint
* use correct env var
* undo asset testing
* forgot last
* undo more testing
* don't break on null address
* working loading state
* better loading states
* handle marketplace type update
* remove types
* properly format price and reduce redundancy
* handle null price
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
* upgrade seaport
* working 1.4 listing
* update OS fee to 0%
* update zone to null addr
* update var name
* rounding bug
* unused exports
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
* defined useTrendingCollections hook and made fields optional
* working trending collections table
* add gql file
* add gql to search suggestions and handle floor wei vs eth
* gql carousel
* fontWeight typo and skip if flag disabled
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
* moving cards to styled components
* converting rows to styled components
* image
* finished images
* handling all media
* removed VE from cards
* no content colors
* removing aspect ratio calc
* responding to all comments
* NFT-1075 update floor and last price to use body primary
* NFT-1080 update image thumbnail size and adjusted row accordingly
* NFT-1081 force page refresh on success screen
* NFT-1089 update same price icons
* NFT-1082 show warning colors over focus
* remove unused state var
* replace margin with padding for sticky header
* NFT-1109 properly calc if listing date is over 6mo
* NFT-1076 change listing button text to light and mobile profile bar to backgroundSurface
* NFT-1079 persist row data when listing to multiple markets
* perf improvement
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
* feat: implementing graphql endpoint
* changing from hook to function call
* initial gql routing works
* feat: initial pwatRouting setup
* sending correct amount
* removing console
* it is working
* sufficient balance
* 0 if no inputCurrency
* removing value to send if erc20
* removing console
* permit2 optional flag
* removing not necessary stuff
* mobile fixes
* overlay needs to be here
* changing swap amount to pool reserves
* refactoring routing logic
* no route found button state
* better price loading for insufficient liquidity
* refactoring graphql routing code
* overflow
* initial comments
* resetting bag status on input currency change
* locking
* done
* remove helper text for eth
* fix: pay with any token routing bug
* reordering button
* zindex
* price updated
* keeping debounce
* feat: adding amplitude events for pwat
* bumping analytics version
* types and hooks
* moving erc20 flag to useSendTransaction
* why did i put it in a hook
* no return
* fix: not using usdc value to calculate price impact
* refactor + loading state
* feat: implementing graphql endpoint
* changing from hook to function call
* initial gql routing works
* feat: initial pwatRouting setup
* sending correct amount
* removing console
* it is working
* sufficient balance
* 0 if no inputCurrency
* removing value to send if erc20
* removing console
* permit2 optional flag
* removing not necessary stuff
* mobile fixes
* overlay needs to be here
* changing swap amount to pool reserves
* refactoring routing logic
* no route found button state
* better price loading for insufficient liquidity
* refactoring graphql routing code
* overflow
* initial comments
* resetting bag status on input currency change
* locking
* done
* remove helper text for eth
* fix: pay with any token routing bug
* reordering button
* zindex
* price updated
* keeping debounce
* feat: adding amplitude events for pwat
* bumping analytics version
* types and hooks
* moving erc20 flag to useSendTransaction
* why did i put it in a hook
* no return
* feat: implementing graphql endpoint
* changing from hook to function call
* initial gql routing works
* feat: initial pwatRouting setup
* sending correct amount
* removing console
* it is working
* sufficient balance
* 0 if no inputCurrency
* removing value to send if erc20
* removing console
* permit2 optional flag
* removing not necessary stuff
* mobile fixes
* overlay needs to be here
* changing swap amount to pool reserves
* refactoring routing logic
* no route found button state
* better price loading for insufficient liquidity
* refactoring graphql routing code
* overflow
* initial comments
* resetting bag status on input currency change
* locking
* done
* remove helper text for eth
* fix: pay with any token routing bug
* reordering button
* zindex
* price updated
* keeping debounce
* feat: implementing graphql endpoint
* changing from hook to function call
* initial gql routing works
* feat: initial pwatRouting setup
* sending correct amount
* removing console
* it is working
* sufficient balance
* 0 if no inputCurrency
* removing value to send if erc20
* removing console
* permit2 optional flag
* removing not necessary stuff
* mobile fixes
* overlay needs to be here
* changing swap amount to pool reserves
* refactoring routing logic
* no route found button state
* better price loading for insufficient liquidity
* refactoring graphql routing code
* overflow
* initial comments
* resetting bag status on input currency change
* locking
* done
* remove helper text for eth
* feat: implementing permit2 with pay with any token
* permit2 hook
* usePayWithAnyTokenHook
* removing ternary operators
* weird export type bug
* resolving merge
* fixing nft test
* styles
* refactoring styles
* reformatting
* price impact warnings
* forgot trans tag
* responding to comments
* fixes
* disabling pay with any token when on the wrong chain
* missing enabled flag
* vertically centering button
* duration wrap
* better styling a different breakpoints
* throw error on listing same price
* don't show spinner on v2
* remove unused check
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
* added success screen with images
* add listing proceeds
* working return
* working single tweet
* working tweet multiple
* update how we parse twitterName
* add scrollbar styles
* usestablecoinvalue
* math.min
* add collection name backup to tweet
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
* dynamic styles based on listing status
* connect collection approval to v2 modal
* import cleanup
* add comments
* connect sign listing logic
* correct pending styles
* correct pending status for collection approval
* correct pending status for os listings
* use check from react-feather
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
* feat: adds input token quote for nfts
* remove eslint
* correct usdc pricing
* fix: uses swap token selector for pay with any token selector
* check when balances are loaded
* removing token selector
* only showing active tokens in pay with any token
* init modal title
* active and closed section headers
* added left border to section
* add tooltip
* complete collection row
* enforce max height
* add sign listings section
* fix top margin for section
* file re-org
* make modal section re-useable and move to its own file
* format
* define section props
* use accentAction for icons
* improved index
---------
Co-authored-by: Charles Bachmeier <charlie@genie.xyz>