* format usd prices, add loading states
* remove tildes, collapse details by default
* update swap deadline to use seconds
* update syntax for loading states
* update swap hooks to add swap txn confirmations
* fix: remove uneeded comments
* update with latest
* update utils to separate swap callback hooks
* create generic swap callabck to be used by both app and widget
* update app swap callback to use logic from lib
* update big number import
* add swap txn to state on submit
* remove redundant fields in txn interfaces
* consolidate trade type logic
* update swap hooks to add swap txn confirmations
* fix: remove uneeded comments
* update with latest
* update utils to separate swap callback hooks
* create generic swap callabck to be used by both app and widget
* update app swap callback to use logic from lib
* update big number import
* feat: use default input/output on chain switch
* feat(widgets): ErrorGenerator -> PropValidator
* default prop validation
* useDefaults hook
* pr feedback
* fix cosmos
* drop token map changes
* add default inputs to cosmos fixture
* set up different validation layers for widget and swap
* split widget/swap prop types
* cleanup
* pr feedback
* clear defaults when they're no longer valid on the current chain
* remove state checks on validators
* stop using address in cosmos fixture
* pr feedback
* useMemo on useSwapDefaults args
* tell the user what they gave to error'd props
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
* feat: track approval txs
* refactor: update transactions
* chore: add ms to deps
* test: rm stale test
* fix: comment usage of trade for optimized trade
* read from query param and change networks if necessary
* dont open network selector menu on url param change
* prompt network change when url changes
* keep url, network in sync
* use chain name instead of id in url param
* only prompt network switch if url chain doesnt match
* update slippage tolerance to use auto or custom
* remove attempted styling for other PR
* back out UI changes, small naming updates
* remove UI work
* small code style changes, fix typo
* update comment to doc comment
* feat: filter selected currency from select
* test: use infura urls
* fix: load native with chain
* fix: use currencyId for key
* feat: switch currencies when selecting other
* fix: resolve merge conflict name
* refactor: mv settings state to own file
* chore: add default exports
* refactor: update swap state to match biz logic
* feat: copy biz logic to widgets
* Hook up UI to updated swap state
* fix: decimal inputs
* fix max slippage
* fix error in settings
* fix: typing errors
* revert: useBestTrade changes
* fix: use client side trade for widgets
* fix: exhaustive deps
* chore: add router-sdk
* fix: gate old web3 on widget env
* fix building errors
* update trade imports
* update hook naming for swap amount and currencies
* small changes
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>