* fix: token image for chains / natives
* feat: include native currency in select
- Updates widgets swap state to use Currency (and deals with downstream updates)
- Refactors logoURI code to a new lib/hooks/useCurrencyLogoURIs
- Adds native currency to useQueryTokenList
NB: This does not build because tests must be updated to use Currency (they currently use mock tokens)
* test: update fixtures to use real currency
* fix: data uri color extraction
* fix: token img state
* fix: use new array
* feat: swap defaults
* refactor: mv token list utils to lib
* feat: expand fetchTokenList to include inlined
* feat: simple widget token list
* fix: token img props
* feat: use token list in selector
* fix: update useColor for optional logoURI
* fix: avoid leaking deps
* chore: add state to lib build
* chore: mv devDeps to deps for lib
* fix: microbundle css import
* fix: match ethers versions
* fix: use color callback
* chore: clean up token info type
* chore: widget type simplification
* refactor: share token map code
* test: include list in token select fixture
* fix: no tokens without chain id
* Add `{id}` replacement for ERC-1155
For issue #3010
* Update useENSAvatar.ts
Add leading zero pad to 64 hex chars
* Update useENSAvatar.ts
Following review comments
* feat: design system (#2622)
* refactor: mv setInterval to lib (#2621)
* chore: widget tooling (#2620)
* chore: remove global styles from cosmos viewer
* chore: add generated svgs to bundle
* chore: alias lib within lib
* feat: widgets swap settings and arch (#2629)
* style: update theme
* feat: grid-based row/column
* feat: widget/modal arch
* feat: tooltip arch
* feat: atoms arch
* feat: swap settings
* chore: update deps
* fix: input width
* refactor: modularize Tooltip
* feat: add grow to Row
* style: true prop
* refactor: clean NumericInput
* fix: customizable data structure
* chore: sort styled-components
* fix: import ReactNode
* fix: svgr index generation
* chore: run tests on widgets (#2635)
* chore: widgets nits (#2636)
* fix: restrict type color to theme
* feat: add types
* fix: input width
* fix: header divider
* fix: eslint
* fix: color name
* fix: use inputs for a11y (#2646)
* fix: clearable customizable
* feat: accent hovered select option
* feat: custom slippage color
* fix: use buttons for a11y
* fix: widgets styles (#2654)
* style: add body1
* refactor: modularize theme/components
* refactor: modularize all text Input
* fix: toggle opacity
* test: fixture arch
* feat: rm gas price select
* fix: toggle styles/strings
* feat: mock toggle
* fix: dialog overflow clipping
* fix: mix-blend-mode for safari
* fix: clip-path for safari svg
* fix: mock toggle content
* fix: input margin
* fix: input and cursor
* fix: validate . input
* fix: unused useMemo
* feat: widgets empty state (#2657)
* refactor: TextButton
* feat: inline icons
* feat: swap empty state
* feat: define TokenSelect
* fix: always inline icons
* feat: recent transactions (#2661)
* feat: wallet button
* fix: tx deps
* feat: widgets token select (#2685)
* fix: line height of 1
* fix: button margin
* fix: update styles
* feat: token select
* refactor: mocks and types
* feat: close dialog on esc
* feat: focus input on token select
* refactor: layer swap elements
* feat: use token color
* fix: widget theme
* fix: use vibrant
* chore: lodash types
* fix: fixture props
* feat: smoother color extraction
* fix: vibrant dep
* perf: extract input token color too
* feat: eased token background
* feat: token color prefetching
* chore: mv polished to deps
* chore: package management
* fix: token background transition
* fix: better color transitions
* feat: widgets UI (#2742)
* feat: add swap states
* fix: widget-global box-sizing
* feat: desaturate and opacity on token approval
* feat: red balance on balance insufficient
* fix: states
* feat: action button
* refactor: action button
* feat: loading spinner border
* fix: typescript errors
* fix: token color transition
* fix: unused typings
* feat: swap summary sans tooltip
* refactor: swap state
* feat: swap summary
* refactor: simpler swap names
* fix: cutoffs around footer
* refactor: recent txs
* refactor: buttons
* feat: tx status
* fix: consistent formatting
* feat: tx error
* test: tx error
* test: widget decorator
* style: theming
* fix: clean up dialogs
* fix: clean up swap
* fix: clean up overlays
* fix: action button text on hover
* fix: pickAtom
* fix: pickAtom typings
* fix: smoother error transition
* feat: enter for toggle
* fix: select tabbing
* refactor: simplify dialogs
* feat: widgets polish (#2757)
* fix: loading spinner fallback for safari
* fix: use border for focus
* refactor: token options
* fix: use react toggle event
* fix: token select
* fix: inert content when modal
* fix: windowed token select
* chore: mv windowing utils to deps
* fix: windowing with no rerender
* feat: widget i18n (#2765)
* feat: configure widget i18n
* i18n: wrap translatable strings in macros
* fix: rm lib/locales
* refactor: t to trans
* feat: cosmos locale selector
* chore: widgets nits (#2786)
* fix: tooltip color
* fix: tx ttl tooltip
* fix: tooltip positioning
* fix: token list padding top
* style: responsive tx
* nit: fix summary copy
* chore: change byline
* feat(widgets): add new @web3-react cosmos decorator (#2799)
add new @web3-react cosmos decorator and provider api to widget
* feat: token color mock (#2878)
* chore: merge main into widgets (#2893)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: center focused outline card (#2625)
* fix: add usdc to arbitrum/optimism common bases (#2641)
* remove WETH from optimism bases (#2640)
* use l2 logos in base pairs (#2634)
* fix: split calls into more chunks if they fail due to out of gas errors (#2630)
* fix: split calls into more chunks if they fail due to out of gas errors
* set to 100m gas
* back to 25m so we batch fewer calls
* do not pass through gas limit, some simplification of the code
* unused import
* fix: restrict @davatar usage to avoid 3p fetches (#2649)
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): ensure chainIds match before fetching pool data (#2652)
* ensure chainIds match before fetching pool data
* debounce both input currencies, and only look for pairs on currencies that share a chainId
* pr feedback
* fix: use optional operator for chainId (#2666)
* chore: update token list (#2670)
* update token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: update token list (#2671)
* update token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: extend privacy and terms (#2623)
* initial iteration
* add logging
* added hook
* polish
* remove unused import
* add hash
* addressed pr feedback
* remove autorouter icon
* use firebase store
* style
* adjust recat ga
* log remove liquidity
* update copy
* addressed pr feedback
* addressed pr feedback
* prevent privacy content from dismissing modal
* make top-level key origin
* use hostname
* restore trm
* chore(i18n): synchronize translations from crowdin [skip ci]
* log full signed tx (#2681)
* refactor monitoring (#2682)
* chore: set final privacy learn more link' (#2684)
* add learn more button
* add final link
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: back arrow bug in wallet modal and fill tx for wallet (#2687)
* add tx to wallet connect
* remove id from env
* restore env
* block import of unsupported tokens (#2673)
generalize custom import token block ui
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(deps-dev): bump @uniswap/token-lists (#2699)
* chore(i18n): synchronize translations from crowdin [skip ci]
* try out 'dimension1' (#2704)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: walletconnect modal re-open after user rejection (#2693)
Co-authored-by: M0kY <moky@example.com>
* chore: update unsupported token list (#2689)
* chore: update unsupported token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: memoize the list stuff so the tokens are consistently clickable (#2724)
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: update cmc list link (#2710)
* update cmc lists
* update CMC url
* add token to unsupported list (#2732)
* don't overwrite localstorage lists when fetch throws (#2723)
* try cd1 for custom dimension (#2734)
* fix: Update walletlink-connector to 6.2.8 (#2655)
* Update walletlink-connector to 6.2.5 which has a walletlink update to support addEthereumChain+switchEthereumChain requests
* Update walletlink-connector to 6.2.7
* Update walletlink-connector to 6.2.8
* fix: Parse latest proposal description correctly
* add proposal start time (#2738)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: #2741 Increase liquidity form off center (#2746)
* fix: bump to latest token list including ENS token
* fix: remove deprecated optimism status url (#2771)
* feat: Menu update. Add help center & feature requests. Remove analytics & github. (#2709)
* Add help center, remove analytics from menu
* Add canny feature requests link, remove github link
* add coffee icon
* no unused imports eslint rule (#2773)
* chore(i18n): synchronize translations from crowdin [skip ci]
* add protocols param to quote endpoint (#2774)
* add protocols param to quote endpoint
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: lint error (#2775)
* fix(optimism): Optimism regenesis support (#2703)
* feat(optimism): optimistic kovan local regenesis changes
* use the regenesis version of the sdk
* remove the override no longer necessary
* diff rpc url
* back to kovan url
* lint error
* Optimism mainnet regenesis test (#2695)
* remove the optimism mainnet specific code and point to the mainnet regenesis rpc url
* point at the old mainnet multicall address
* bump the sdk version
* copy the list
* multicall address regenesis change
* revert the gas limit special casing for optimism
* bump the sdk version
* remove a couple other temporary edits
* unused test case
* specific version of v3-sdk
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: add support for 0.01% tier (#2769)
* chore: add support for 0.01% tier
* only show 1bps on mainnet
* rename VERY_LOW to LOWEST
* upgrade to v3-sdk 3.7.0
* add snapshot testing for lowest tier
* fix integration test
* fix integration test
* use ALL_SUPPORTED_CHAIN_IDS over string all
* consider 0.01% tier in pool (#2770)
* merge main and only consider lowest tier for mainnet
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): update block warning updater to check most recent block timestamp (#2777)
* update block warning updater to check most recent block timestamp
* stop doing dumb state manipulation
* fix: copy in network alert
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): remove redux from chain connectivity (#2781)
* remove redux from chain connectivity
* useMachineTimeMs instead of Date.now to force updates, useCurrentBlockTimestamp
* use useInterval
* change not created font size to 10 (#2785)
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: format date using Date.toLocaleString (#2459)
* fix: format date using Date.toLocaleString
Fixes#2458
* fix: date typings
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: broken link to docs (#2816)
* chore: fix typo in useAllCurrencyCombinations.ts (#2778)
occurence -> occurrence
* chore: update typechain scripts for Windows (#2707)
There are two errors when deploying on Windows system:
1. Using single quotes in path argument doesn't seem to be accepted in typechain command
2. `?(v3-core|v3-periphery)` operator doesn't work
Here are fixes/workarounds.
* perf: lazy load vote related routes (#2468)
* perf: lazy load vote related routes
* wrap Switch in Suspense
* remove exact to match nested routes
* fix nested routes
* split Landing
* fix
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: Enable 3085 requests for coinbase wallet (#2753)
enable 3085 requests for coinbase wallet
* feat: set the auto slippage tolerance by the dollar value of gas (#2815)
* feat: set the auto slippage tolerance by the dollar value of gas
* comments
* min/max at 0.5% to 25%
* oops on constant
* address review feedback
* Fixing #2818 (#2820)
* Fix code style issues with ESLint
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: fix#2818
* chore(i18n): synchronize translations from crowdin [skip ci]
* log an event on max click (#2827)
* Add trailing slash to L2 info links (#2696)
Some links were broken. For example on /pools/ page click the 'Top Pools' CTA. It would mistakenly direct you to info.uniswap.org/optimismpools instead of optimism/pools
* fix(L2): block L2 tokens explicitly linked to L1 tokens that are blocked (#2721)
* block L2 tokens explicitly linked to L1 tokens that are blocked
* Fix code style issues with ESLint
* check for support on all connectors, and disable when the connector (or lack thereof) no longer supports 3085 (#2824)
* feat: display an ENS avatar (#2806)
* feat: ens avatar resolution
* chore: uninstall @davatar/react
* fix: add avatar alt
* feat: support data uris
* feat: support arweave uris
* feat: support erc721 avatars
* feat: support erc1155 avatars
* fix: jazzicon integration
* fix: clean usage of status icon
* fix: fix jazzicon svg offset
* refactor: share status icon component
* fix: pass memoized args to multicall
* Update locales.ts (#2825)
update Finnish from person (Suomalainen) to language (suomi)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore: fix the build blocking linter error
* chore: run linters with auto_fix = false for forks (#2852)
* fix: do not show urls if issue is not occurring on app.uniswap.org (#2855)
* fix: do not show urls if issue is not occurring on app.uniswap.org
fixes https://github.com/Uniswap/interface/issues/2572
* address comment
* fix: remove orphaned node (#2863)
* fix: remove orphaned node
* fix: react cleanup
* refactor: use ref for jazzicon (#2874)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(deps): bump ws from 5.2.2 to 5.2.3 (#2759)
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)
---
updated-dependencies:
- dependency-name: ws
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump url-parse from 1.5.1 to 1.5.3 (#2504)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* add more tests for tryParseTick (#2110)
* fix(lint): clean up the eslint config (#2886)
* fix(lint): clean up the eslint config
* Fix code style issues with ESLint
* fix the linter errors that arose from using the proper config
* clean up the rebass text renames
* fix if statement, use the config
* use the same name prefix for both steps
* `TextPreset` -> `ThemedText`
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: Add routes for stakewise tokens (#2832)
* Add additional routes for stakewise tokens
* Reference StakeWise addresses with sdk tokens
* Sort token imports
* chore: yarn-deduplicate
* chore: lint widgets
* fix: use lib useInterval
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Micael Rodrigues <micaelr95@outlook.pt>
Co-authored-by: Justin Domingue <judo@uniswap.org>
Co-authored-by: Moody Salem <moodysalem@users.noreply.github.com>
Co-authored-by: Jordan Frankfurt <jordanwfrankfurt@gmail.com>
Co-authored-by: Ian Lapham <ian@uniswap.org>
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: M0kY <46133205+M0kY@users.noreply.github.com>
Co-authored-by: M0kY <moky@example.com>
Co-authored-by: Will Hennessy <hennessywill@gmail.com>
Co-authored-by: Brendan Weinstein <65564422+brendanww@users.noreply.github.com>
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
Co-authored-by: Ben Krochta <35636764+bkrochta@users.noreply.github.com>
Co-authored-by: Moody Salem <moody.salem@gmail.com>
Co-authored-by: Raj <sukhrajghuman@live.com>
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Co-authored-by: Matthew Salamon <35425388+Matthews3301@users.noreply.github.com>
Co-authored-by: Sam Chen <chenxsan@gmail.com>
Co-authored-by: Ali Eray Kısabacak <eraykisabacak@hotmail.com>
Co-authored-by: Kimmo S <kkpsiren@gmail.com>
Co-authored-by: Dmitri Tsumak <tsumak.dmitri@gmail.com>
* chore: merge main into widgets (#2923)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: center focused outline card (#2625)
* fix: add usdc to arbitrum/optimism common bases (#2641)
* remove WETH from optimism bases (#2640)
* use l2 logos in base pairs (#2634)
* fix: split calls into more chunks if they fail due to out of gas errors (#2630)
* fix: split calls into more chunks if they fail due to out of gas errors
* set to 100m gas
* back to 25m so we batch fewer calls
* do not pass through gas limit, some simplification of the code
* unused import
* fix: restrict @davatar usage to avoid 3p fetches (#2649)
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): ensure chainIds match before fetching pool data (#2652)
* ensure chainIds match before fetching pool data
* debounce both input currencies, and only look for pairs on currencies that share a chainId
* pr feedback
* fix: use optional operator for chainId (#2666)
* chore: update token list (#2670)
* update token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: update token list (#2671)
* update token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: extend privacy and terms (#2623)
* initial iteration
* add logging
* added hook
* polish
* remove unused import
* add hash
* addressed pr feedback
* remove autorouter icon
* use firebase store
* style
* adjust recat ga
* log remove liquidity
* update copy
* addressed pr feedback
* addressed pr feedback
* prevent privacy content from dismissing modal
* make top-level key origin
* use hostname
* restore trm
* chore(i18n): synchronize translations from crowdin [skip ci]
* log full signed tx (#2681)
* refactor monitoring (#2682)
* chore: set final privacy learn more link' (#2684)
* add learn more button
* add final link
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: back arrow bug in wallet modal and fill tx for wallet (#2687)
* add tx to wallet connect
* remove id from env
* restore env
* block import of unsupported tokens (#2673)
generalize custom import token block ui
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(deps-dev): bump @uniswap/token-lists (#2699)
* chore(i18n): synchronize translations from crowdin [skip ci]
* try out 'dimension1' (#2704)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: walletconnect modal re-open after user rejection (#2693)
Co-authored-by: M0kY <moky@example.com>
* chore: update unsupported token list (#2689)
* chore: update unsupported token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: memoize the list stuff so the tokens are consistently clickable (#2724)
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: update cmc list link (#2710)
* update cmc lists
* update CMC url
* add token to unsupported list (#2732)
* don't overwrite localstorage lists when fetch throws (#2723)
* try cd1 for custom dimension (#2734)
* fix: Update walletlink-connector to 6.2.8 (#2655)
* Update walletlink-connector to 6.2.5 which has a walletlink update to support addEthereumChain+switchEthereumChain requests
* Update walletlink-connector to 6.2.7
* Update walletlink-connector to 6.2.8
* fix: Parse latest proposal description correctly
* add proposal start time (#2738)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: #2741 Increase liquidity form off center (#2746)
* fix: bump to latest token list including ENS token
* fix: remove deprecated optimism status url (#2771)
* feat: Menu update. Add help center & feature requests. Remove analytics & github. (#2709)
* Add help center, remove analytics from menu
* Add canny feature requests link, remove github link
* add coffee icon
* no unused imports eslint rule (#2773)
* chore(i18n): synchronize translations from crowdin [skip ci]
* add protocols param to quote endpoint (#2774)
* add protocols param to quote endpoint
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: lint error (#2775)
* fix(optimism): Optimism regenesis support (#2703)
* feat(optimism): optimistic kovan local regenesis changes
* use the regenesis version of the sdk
* remove the override no longer necessary
* diff rpc url
* back to kovan url
* lint error
* Optimism mainnet regenesis test (#2695)
* remove the optimism mainnet specific code and point to the mainnet regenesis rpc url
* point at the old mainnet multicall address
* bump the sdk version
* copy the list
* multicall address regenesis change
* revert the gas limit special casing for optimism
* bump the sdk version
* remove a couple other temporary edits
* unused test case
* specific version of v3-sdk
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: add support for 0.01% tier (#2769)
* chore: add support for 0.01% tier
* only show 1bps on mainnet
* rename VERY_LOW to LOWEST
* upgrade to v3-sdk 3.7.0
* add snapshot testing for lowest tier
* fix integration test
* fix integration test
* use ALL_SUPPORTED_CHAIN_IDS over string all
* consider 0.01% tier in pool (#2770)
* merge main and only consider lowest tier for mainnet
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): update block warning updater to check most recent block timestamp (#2777)
* update block warning updater to check most recent block timestamp
* stop doing dumb state manipulation
* fix: copy in network alert
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): remove redux from chain connectivity (#2781)
* remove redux from chain connectivity
* useMachineTimeMs instead of Date.now to force updates, useCurrentBlockTimestamp
* use useInterval
* change not created font size to 10 (#2785)
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: format date using Date.toLocaleString (#2459)
* fix: format date using Date.toLocaleString
Fixes#2458
* fix: date typings
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: broken link to docs (#2816)
* chore: fix typo in useAllCurrencyCombinations.ts (#2778)
occurence -> occurrence
* chore: update typechain scripts for Windows (#2707)
There are two errors when deploying on Windows system:
1. Using single quotes in path argument doesn't seem to be accepted in typechain command
2. `?(v3-core|v3-periphery)` operator doesn't work
Here are fixes/workarounds.
* perf: lazy load vote related routes (#2468)
* perf: lazy load vote related routes
* wrap Switch in Suspense
* remove exact to match nested routes
* fix nested routes
* split Landing
* fix
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: Enable 3085 requests for coinbase wallet (#2753)
enable 3085 requests for coinbase wallet
* feat: set the auto slippage tolerance by the dollar value of gas (#2815)
* feat: set the auto slippage tolerance by the dollar value of gas
* comments
* min/max at 0.5% to 25%
* oops on constant
* address review feedback
* Fixing #2818 (#2820)
* Fix code style issues with ESLint
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: fix#2818
* chore(i18n): synchronize translations from crowdin [skip ci]
* log an event on max click (#2827)
* Add trailing slash to L2 info links (#2696)
Some links were broken. For example on /pools/ page click the 'Top Pools' CTA. It would mistakenly direct you to info.uniswap.org/optimismpools instead of optimism/pools
* fix(L2): block L2 tokens explicitly linked to L1 tokens that are blocked (#2721)
* block L2 tokens explicitly linked to L1 tokens that are blocked
* Fix code style issues with ESLint
* check for support on all connectors, and disable when the connector (or lack thereof) no longer supports 3085 (#2824)
* feat: display an ENS avatar (#2806)
* feat: ens avatar resolution
* chore: uninstall @davatar/react
* fix: add avatar alt
* feat: support data uris
* feat: support arweave uris
* feat: support erc721 avatars
* feat: support erc1155 avatars
* fix: jazzicon integration
* fix: clean usage of status icon
* fix: fix jazzicon svg offset
* refactor: share status icon component
* fix: pass memoized args to multicall
* Update locales.ts (#2825)
update Finnish from person (Suomalainen) to language (suomi)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore: fix the build blocking linter error
* chore: run linters with auto_fix = false for forks (#2852)
* fix: do not show urls if issue is not occurring on app.uniswap.org (#2855)
* fix: do not show urls if issue is not occurring on app.uniswap.org
fixes https://github.com/Uniswap/interface/issues/2572
* address comment
* fix: remove orphaned node (#2863)
* fix: remove orphaned node
* fix: react cleanup
* refactor: use ref for jazzicon (#2874)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(deps): bump ws from 5.2.2 to 5.2.3 (#2759)
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)
---
updated-dependencies:
- dependency-name: ws
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump url-parse from 1.5.1 to 1.5.3 (#2504)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* add more tests for tryParseTick (#2110)
* fix(lint): clean up the eslint config (#2886)
* fix(lint): clean up the eslint config
* Fix code style issues with ESLint
* fix the linter errors that arose from using the proper config
* clean up the rebass text renames
* fix if statement, use the config
* use the same name prefix for both steps
* `TextPreset` -> `ThemedText`
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: Add routes for stakewise tokens (#2832)
* Add additional routes for stakewise tokens
* Reference StakeWise addresses with sdk tokens
* Sort token imports
* fix: fix layout of proposal list items on the vote page on mobile (#2898)
* fix: fixing layout from using grid to flexbox
* fix: setting WrapSmall to nowrap due to layout issue on mobile
* fix: using width auto instead of disabling flex wrap
Co-authored-by: Julian Anderson <juliancanderson@gmail.com>
* fix: typo in arweave URI recognition (#2901)
* deleted files
* Revert "Merge branch 'main' of https://github.com/Uniswap/interface" (#2912)
This reverts commit bf7a40be7a0a37b5051b9a877bbea563fba5782d, reversing
changes made to 097b8361d4c09afd3cb681c4622145c555ced884.
* fix: inadvertent merges/reverts (#2915)
* Revert "Revert "Merge branch 'main' of https://github.com/Uniswap/interface" (#2912)"
This reverts commit 7d343dcfbdf75a2f91d28cefce84e4b1bace7b87.
* Revert "deleted files"
This reverts commit 097b8361d4c09afd3cb681c4622145c555ced884.
* refactor: Replace multicall implementation with library (#2768)
- Replace the local implementation of multicall with the new redux-multicall lib
- Create wrappers for redux-multicall hooks to inject block number and chainId
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Micael Rodrigues <micaelr95@outlook.pt>
Co-authored-by: Justin Domingue <judo@uniswap.org>
Co-authored-by: Moody Salem <moodysalem@users.noreply.github.com>
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
Co-authored-by: Ian Lapham <ian@uniswap.org>
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: M0kY <46133205+M0kY@users.noreply.github.com>
Co-authored-by: M0kY <moky@example.com>
Co-authored-by: Will Hennessy <hennessywill@gmail.com>
Co-authored-by: Brendan Weinstein <65564422+brendanww@users.noreply.github.com>
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
Co-authored-by: Ben Krochta <35636764+bkrochta@users.noreply.github.com>
Co-authored-by: Moody Salem <moody.salem@gmail.com>
Co-authored-by: Raj <sukhrajghuman@live.com>
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Co-authored-by: Matthew Salamon <35425388+Matthews3301@users.noreply.github.com>
Co-authored-by: Sam Chen <chenxsan@gmail.com>
Co-authored-by: Ali Eray Kısabacak <eraykisabacak@hotmail.com>
Co-authored-by: Kimmo S <kkpsiren@gmail.com>
Co-authored-by: Dmitri Tsumak <tsumak.dmitri@gmail.com>
Co-authored-by: Julian Anderson <juliancanderson@gmail.com>
Co-authored-by: Carlos Diaz-Padron <carlosdiazpadron@gmail.com>
Co-authored-by: J M Rossy <jm.rossy@gmail.com>
* feat: Multicall lib integration for widgets (#2946)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: center focused outline card (#2625)
* fix: add usdc to arbitrum/optimism common bases (#2641)
* remove WETH from optimism bases (#2640)
* use l2 logos in base pairs (#2634)
* fix: split calls into more chunks if they fail due to out of gas errors (#2630)
* fix: split calls into more chunks if they fail due to out of gas errors
* set to 100m gas
* back to 25m so we batch fewer calls
* do not pass through gas limit, some simplification of the code
* unused import
* fix: restrict @davatar usage to avoid 3p fetches (#2649)
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): ensure chainIds match before fetching pool data (#2652)
* ensure chainIds match before fetching pool data
* debounce both input currencies, and only look for pairs on currencies that share a chainId
* pr feedback
* fix: use optional operator for chainId (#2666)
* chore: update token list (#2670)
* update token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: update token list (#2671)
* update token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: extend privacy and terms (#2623)
* initial iteration
* add logging
* added hook
* polish
* remove unused import
* add hash
* addressed pr feedback
* remove autorouter icon
* use firebase store
* style
* adjust recat ga
* log remove liquidity
* update copy
* addressed pr feedback
* addressed pr feedback
* prevent privacy content from dismissing modal
* make top-level key origin
* use hostname
* restore trm
* chore(i18n): synchronize translations from crowdin [skip ci]
* log full signed tx (#2681)
* refactor monitoring (#2682)
* chore: set final privacy learn more link' (#2684)
* add learn more button
* add final link
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: back arrow bug in wallet modal and fill tx for wallet (#2687)
* add tx to wallet connect
* remove id from env
* restore env
* block import of unsupported tokens (#2673)
generalize custom import token block ui
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(deps-dev): bump @uniswap/token-lists (#2699)
* chore(i18n): synchronize translations from crowdin [skip ci]
* try out 'dimension1' (#2704)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: walletconnect modal re-open after user rejection (#2693)
Co-authored-by: M0kY <moky@example.com>
* chore: update unsupported token list (#2689)
* chore: update unsupported token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: memoize the list stuff so the tokens are consistently clickable (#2724)
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: update cmc list link (#2710)
* update cmc lists
* update CMC url
* add token to unsupported list (#2732)
* don't overwrite localstorage lists when fetch throws (#2723)
* try cd1 for custom dimension (#2734)
* fix: Update walletlink-connector to 6.2.8 (#2655)
* Update walletlink-connector to 6.2.5 which has a walletlink update to support addEthereumChain+switchEthereumChain requests
* Update walletlink-connector to 6.2.7
* Update walletlink-connector to 6.2.8
* fix: Parse latest proposal description correctly
* add proposal start time (#2738)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: #2741 Increase liquidity form off center (#2746)
* fix: bump to latest token list including ENS token
* fix: remove deprecated optimism status url (#2771)
* feat: Menu update. Add help center & feature requests. Remove analytics & github. (#2709)
* Add help center, remove analytics from menu
* Add canny feature requests link, remove github link
* add coffee icon
* no unused imports eslint rule (#2773)
* chore(i18n): synchronize translations from crowdin [skip ci]
* add protocols param to quote endpoint (#2774)
* add protocols param to quote endpoint
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: lint error (#2775)
* fix(optimism): Optimism regenesis support (#2703)
* feat(optimism): optimistic kovan local regenesis changes
* use the regenesis version of the sdk
* remove the override no longer necessary
* diff rpc url
* back to kovan url
* lint error
* Optimism mainnet regenesis test (#2695)
* remove the optimism mainnet specific code and point to the mainnet regenesis rpc url
* point at the old mainnet multicall address
* bump the sdk version
* copy the list
* multicall address regenesis change
* revert the gas limit special casing for optimism
* bump the sdk version
* remove a couple other temporary edits
* unused test case
* specific version of v3-sdk
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: add support for 0.01% tier (#2769)
* chore: add support for 0.01% tier
* only show 1bps on mainnet
* rename VERY_LOW to LOWEST
* upgrade to v3-sdk 3.7.0
* add snapshot testing for lowest tier
* fix integration test
* fix integration test
* use ALL_SUPPORTED_CHAIN_IDS over string all
* consider 0.01% tier in pool (#2770)
* merge main and only consider lowest tier for mainnet
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): update block warning updater to check most recent block timestamp (#2777)
* update block warning updater to check most recent block timestamp
* stop doing dumb state manipulation
* fix: copy in network alert
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): remove redux from chain connectivity (#2781)
* remove redux from chain connectivity
* useMachineTimeMs instead of Date.now to force updates, useCurrentBlockTimestamp
* use useInterval
* change not created font size to 10 (#2785)
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: format date using Date.toLocaleString (#2459)
* fix: format date using Date.toLocaleString
Fixes#2458
* fix: date typings
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: broken link to docs (#2816)
* chore: fix typo in useAllCurrencyCombinations.ts (#2778)
occurence -> occurrence
* chore: update typechain scripts for Windows (#2707)
There are two errors when deploying on Windows system:
1. Using single quotes in path argument doesn't seem to be accepted in typechain command
2. `?(v3-core|v3-periphery)` operator doesn't work
Here are fixes/workarounds.
* perf: lazy load vote related routes (#2468)
* perf: lazy load vote related routes
* wrap Switch in Suspense
* remove exact to match nested routes
* fix nested routes
* split Landing
* fix
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: Enable 3085 requests for coinbase wallet (#2753)
enable 3085 requests for coinbase wallet
* feat: set the auto slippage tolerance by the dollar value of gas (#2815)
* feat: set the auto slippage tolerance by the dollar value of gas
* comments
* min/max at 0.5% to 25%
* oops on constant
* address review feedback
* Fixing #2818 (#2820)
* Fix code style issues with ESLint
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: fix#2818
* chore(i18n): synchronize translations from crowdin [skip ci]
* log an event on max click (#2827)
* Add trailing slash to L2 info links (#2696)
Some links were broken. For example on /pools/ page click the 'Top Pools' CTA. It would mistakenly direct you to info.uniswap.org/optimismpools instead of optimism/pools
* fix(L2): block L2 tokens explicitly linked to L1 tokens that are blocked (#2721)
* block L2 tokens explicitly linked to L1 tokens that are blocked
* Fix code style issues with ESLint
* check for support on all connectors, and disable when the connector (or lack thereof) no longer supports 3085 (#2824)
* feat: display an ENS avatar (#2806)
* feat: ens avatar resolution
* chore: uninstall @davatar/react
* fix: add avatar alt
* feat: support data uris
* feat: support arweave uris
* feat: support erc721 avatars
* feat: support erc1155 avatars
* fix: jazzicon integration
* fix: clean usage of status icon
* fix: fix jazzicon svg offset
* refactor: share status icon component
* fix: pass memoized args to multicall
* Update locales.ts (#2825)
update Finnish from person (Suomalainen) to language (suomi)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore: fix the build blocking linter error
* chore: run linters with auto_fix = false for forks (#2852)
* fix: do not show urls if issue is not occurring on app.uniswap.org (#2855)
* fix: do not show urls if issue is not occurring on app.uniswap.org
fixes https://github.com/Uniswap/interface/issues/2572
* address comment
* fix: remove orphaned node (#2863)
* fix: remove orphaned node
* fix: react cleanup
* refactor: use ref for jazzicon (#2874)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(deps): bump ws from 5.2.2 to 5.2.3 (#2759)
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)
---
updated-dependencies:
- dependency-name: ws
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump url-parse from 1.5.1 to 1.5.3 (#2504)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* add more tests for tryParseTick (#2110)
* fix(lint): clean up the eslint config (#2886)
* fix(lint): clean up the eslint config
* Fix code style issues with ESLint
* fix the linter errors that arose from using the proper config
* clean up the rebass text renames
* fix if statement, use the config
* use the same name prefix for both steps
* `TextPreset` -> `ThemedText`
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: Add routes for stakewise tokens (#2832)
* Add additional routes for stakewise tokens
* Reference StakeWise addresses with sdk tokens
* Sort token imports
* fix: fix layout of proposal list items on the vote page on mobile (#2898)
* fix: fixing layout from using grid to flexbox
* fix: setting WrapSmall to nowrap due to layout issue on mobile
* fix: using width auto instead of disabling flex wrap
Co-authored-by: Julian Anderson <juliancanderson@gmail.com>
* fix: typo in arweave URI recognition (#2901)
* deleted files
* Revert "Merge branch 'main' of https://github.com/Uniswap/interface" (#2912)
This reverts commit bf7a40be7a0a37b5051b9a877bbea563fba5782d, reversing
changes made to 097b8361d4c09afd3cb681c4622145c555ced884.
* fix: inadvertent merges/reverts (#2915)
* Revert "Revert "Merge branch 'main' of https://github.com/Uniswap/interface" (#2912)"
This reverts commit 7d343dcfbdf75a2f91d28cefce84e4b1bace7b87.
* Revert "deleted files"
This reverts commit 097b8361d4c09afd3cb681c4622145c555ced884.
* refactor: Replace multicall implementation with library (#2768)
- Replace the local implementation of multicall with the new redux-multicall lib
- Create wrappers for redux-multicall hooks to inject block number and chainId
* package.json tweaks
* add multicall lib and some basic provider things
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Micael Rodrigues <micaelr95@outlook.pt>
Co-authored-by: Justin Domingue <judo@uniswap.org>
Co-authored-by: Moody Salem <moodysalem@users.noreply.github.com>
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
Co-authored-by: Ian Lapham <ian@uniswap.org>
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: M0kY <46133205+M0kY@users.noreply.github.com>
Co-authored-by: M0kY <moky@example.com>
Co-authored-by: Will Hennessy <hennessywill@gmail.com>
Co-authored-by: Brendan Weinstein <65564422+brendanww@users.noreply.github.com>
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
Co-authored-by: Ben Krochta <35636764+bkrochta@users.noreply.github.com>
Co-authored-by: Moody Salem <moody.salem@gmail.com>
Co-authored-by: Raj <sukhrajghuman@live.com>
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Co-authored-by: Matthew Salamon <35425388+Matthews3301@users.noreply.github.com>
Co-authored-by: Sam Chen <chenxsan@gmail.com>
Co-authored-by: Ali Eray Kısabacak <eraykisabacak@hotmail.com>
Co-authored-by: Kimmo S <kkpsiren@gmail.com>
Co-authored-by: Dmitri Tsumak <tsumak.dmitri@gmail.com>
Co-authored-by: Julian Anderson <juliancanderson@gmail.com>
Co-authored-by: Carlos Diaz-Padron <carlosdiazpadron@gmail.com>
Co-authored-by: J M Rossy <jm.rossy@gmail.com>
* feat: widgets style update (#2939)
* feat: widgets empty state (#2951)
* chore: mv onHover to computed theme; reduce to 0.16
* chore: transparentize primary on hover
* chore: transparentize dynamic primary on hover
* style: restrict icon usage
Restricts icons to lib/icons. This ensures that icons are loaded as singletons outside of the React lifecycle. Doing otherwise hinders performance.
* fix: logo mix-blend-mode
* wip: empty states
* fix: accent/active colors
* wip: empty states
* fix: input hover states
* nit: specific user select
* nit: button transition
* nit: no button transition
* chore: better cosmos toggles
* chore: load inter
* make cosmos work with new required widget props (#2956)
* separate connector atoms (#2959)
* fix: widgets nits sans summary/status (#2960)
* fix: dynamic scrollbar
* feat: system theme hook
* nit: settings
* nit: large settings icons
* fix: accessible color computation
* fix: ignore status scroll for now
* fix: ignore txs scroll for now
* feat: widgets summary (#2980)
* fix: output first in toolbar
* fix: widget height
* feat: token color extraction toggle
* fix: header sizing
* fix: height nits
* chore: re-arch sub pages
* nit: height
* feat: border radius as range
* fix: exclude cosmos setter from hook deps
* feat: default width to 360
* feat: type classes
* fix: header height
* fix: default cosmos width to 360
* refactor: icon button
* wip: summary
* fix: scrollbar
* feat: summary
* fix: summary expando
* fix: widgets transitions (#2983)
* fix: action button height
* fix: summary scrollbar fading
* fix: summary fixture
* fix: action button transitions
* feat: widgets status (#2987)
* fix: action button height
* fix: summary scrollbar fading
* fix: summary fixture
* fix: action button transitions
* refactor: commit spinner as svg asset
* feat: status dialog
* fix: spinner rounding
* feat: widgets fonts and transitions (#2998)
* feat: fonts using @fontsource
* feat: dialog transitions
* fix: swap transitions
* Refactor use active web3 react (#3002)
* separate connector atoms
* refactor cosmos and set up widgets env var
* fix: cosmos modularization (#3014)
* fix: cosmos modularization
* fix: web3 in atom provider
* feat: make connectors resettable
* drop empty test (#3022)
* Revert "feat: make connectors resettable"
This reverts commit db5af68b9be1edf4d6e1b7dc8ed2004f19e33f16.
* undo dumb open reorder
* bump widget web3-react versions
* bump to fix tests
Co-authored-by: Jordan Frankfurt <jordanwfrankfurt@gmail.com>
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
* chore(widgets): Merge main into widgets (#3013)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: center focused outline card (#2625)
* fix: add usdc to arbitrum/optimism common bases (#2641)
* remove WETH from optimism bases (#2640)
* use l2 logos in base pairs (#2634)
* fix: split calls into more chunks if they fail due to out of gas errors (#2630)
* fix: split calls into more chunks if they fail due to out of gas errors
* set to 100m gas
* back to 25m so we batch fewer calls
* do not pass through gas limit, some simplification of the code
* unused import
* fix: restrict @davatar usage to avoid 3p fetches (#2649)
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): ensure chainIds match before fetching pool data (#2652)
* ensure chainIds match before fetching pool data
* debounce both input currencies, and only look for pairs on currencies that share a chainId
* pr feedback
* fix: use optional operator for chainId (#2666)
* chore: update token list (#2670)
* update token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: update token list (#2671)
* update token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: extend privacy and terms (#2623)
* initial iteration
* add logging
* added hook
* polish
* remove unused import
* add hash
* addressed pr feedback
* remove autorouter icon
* use firebase store
* style
* adjust recat ga
* log remove liquidity
* update copy
* addressed pr feedback
* addressed pr feedback
* prevent privacy content from dismissing modal
* make top-level key origin
* use hostname
* restore trm
* chore(i18n): synchronize translations from crowdin [skip ci]
* log full signed tx (#2681)
* refactor monitoring (#2682)
* chore: set final privacy learn more link' (#2684)
* add learn more button
* add final link
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: back arrow bug in wallet modal and fill tx for wallet (#2687)
* add tx to wallet connect
* remove id from env
* restore env
* block import of unsupported tokens (#2673)
generalize custom import token block ui
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(deps-dev): bump @uniswap/token-lists (#2699)
* chore(i18n): synchronize translations from crowdin [skip ci]
* try out 'dimension1' (#2704)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: walletconnect modal re-open after user rejection (#2693)
Co-authored-by: M0kY <moky@example.com>
* chore: update unsupported token list (#2689)
* chore: update unsupported token list
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: memoize the list stuff so the tokens are consistently clickable (#2724)
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: update cmc list link (#2710)
* update cmc lists
* update CMC url
* add token to unsupported list (#2732)
* don't overwrite localstorage lists when fetch throws (#2723)
* try cd1 for custom dimension (#2734)
* fix: Update walletlink-connector to 6.2.8 (#2655)
* Update walletlink-connector to 6.2.5 which has a walletlink update to support addEthereumChain+switchEthereumChain requests
* Update walletlink-connector to 6.2.7
* Update walletlink-connector to 6.2.8
* fix: Parse latest proposal description correctly
* add proposal start time (#2738)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: #2741 Increase liquidity form off center (#2746)
* fix: bump to latest token list including ENS token
* fix: remove deprecated optimism status url (#2771)
* feat: Menu update. Add help center & feature requests. Remove analytics & github. (#2709)
* Add help center, remove analytics from menu
* Add canny feature requests link, remove github link
* add coffee icon
* no unused imports eslint rule (#2773)
* chore(i18n): synchronize translations from crowdin [skip ci]
* add protocols param to quote endpoint (#2774)
* add protocols param to quote endpoint
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: lint error (#2775)
* fix(optimism): Optimism regenesis support (#2703)
* feat(optimism): optimistic kovan local regenesis changes
* use the regenesis version of the sdk
* remove the override no longer necessary
* diff rpc url
* back to kovan url
* lint error
* Optimism mainnet regenesis test (#2695)
* remove the optimism mainnet specific code and point to the mainnet regenesis rpc url
* point at the old mainnet multicall address
* bump the sdk version
* copy the list
* multicall address regenesis change
* revert the gas limit special casing for optimism
* bump the sdk version
* remove a couple other temporary edits
* unused test case
* specific version of v3-sdk
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(i18n): synchronize translations from crowdin [skip ci]
* feat: add support for 0.01% tier (#2769)
* chore: add support for 0.01% tier
* only show 1bps on mainnet
* rename VERY_LOW to LOWEST
* upgrade to v3-sdk 3.7.0
* add snapshot testing for lowest tier
* fix integration test
* fix integration test
* use ALL_SUPPORTED_CHAIN_IDS over string all
* consider 0.01% tier in pool (#2770)
* merge main and only consider lowest tier for mainnet
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): update block warning updater to check most recent block timestamp (#2777)
* update block warning updater to check most recent block timestamp
* stop doing dumb state manipulation
* fix: copy in network alert
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix(L2): remove redux from chain connectivity (#2781)
* remove redux from chain connectivity
* useMachineTimeMs instead of Date.now to force updates, useCurrentBlockTimestamp
* use useInterval
* change not created font size to 10 (#2785)
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: format date using Date.toLocaleString (#2459)
* fix: format date using Date.toLocaleString
Fixes#2458
* fix: date typings
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: broken link to docs (#2816)
* chore: fix typo in useAllCurrencyCombinations.ts (#2778)
occurence -> occurrence
* chore: update typechain scripts for Windows (#2707)
There are two errors when deploying on Windows system:
1. Using single quotes in path argument doesn't seem to be accepted in typechain command
2. `?(v3-core|v3-periphery)` operator doesn't work
Here are fixes/workarounds.
* perf: lazy load vote related routes (#2468)
* perf: lazy load vote related routes
* wrap Switch in Suspense
* remove exact to match nested routes
* fix nested routes
* split Landing
* fix
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: Enable 3085 requests for coinbase wallet (#2753)
enable 3085 requests for coinbase wallet
* feat: set the auto slippage tolerance by the dollar value of gas (#2815)
* feat: set the auto slippage tolerance by the dollar value of gas
* comments
* min/max at 0.5% to 25%
* oops on constant
* address review feedback
* Fixing #2818 (#2820)
* Fix code style issues with ESLint
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: fix#2818
* chore(i18n): synchronize translations from crowdin [skip ci]
* log an event on max click (#2827)
* Add trailing slash to L2 info links (#2696)
Some links were broken. For example on /pools/ page click the 'Top Pools' CTA. It would mistakenly direct you to info.uniswap.org/optimismpools instead of optimism/pools
* fix(L2): block L2 tokens explicitly linked to L1 tokens that are blocked (#2721)
* block L2 tokens explicitly linked to L1 tokens that are blocked
* Fix code style issues with ESLint
* check for support on all connectors, and disable when the connector (or lack thereof) no longer supports 3085 (#2824)
* feat: display an ENS avatar (#2806)
* feat: ens avatar resolution
* chore: uninstall @davatar/react
* fix: add avatar alt
* feat: support data uris
* feat: support arweave uris
* feat: support erc721 avatars
* feat: support erc1155 avatars
* fix: jazzicon integration
* fix: clean usage of status icon
* fix: fix jazzicon svg offset
* refactor: share status icon component
* fix: pass memoized args to multicall
* Update locales.ts (#2825)
update Finnish from person (Suomalainen) to language (suomi)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore: fix the build blocking linter error
* chore: run linters with auto_fix = false for forks (#2852)
* fix: do not show urls if issue is not occurring on app.uniswap.org (#2855)
* fix: do not show urls if issue is not occurring on app.uniswap.org
fixes https://github.com/Uniswap/interface/issues/2572
* address comment
* fix: remove orphaned node (#2863)
* fix: remove orphaned node
* fix: react cleanup
* refactor: use ref for jazzicon (#2874)
* chore(i18n): synchronize translations from crowdin [skip ci]
* chore(deps): bump ws from 5.2.2 to 5.2.3 (#2759)
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)
---
updated-dependencies:
- dependency-name: ws
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump url-parse from 1.5.1 to 1.5.3 (#2504)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* add more tests for tryParseTick (#2110)
* fix(lint): clean up the eslint config (#2886)
* fix(lint): clean up the eslint config
* Fix code style issues with ESLint
* fix the linter errors that arose from using the proper config
* clean up the rebass text renames
* fix if statement, use the config
* use the same name prefix for both steps
* `TextPreset` -> `ThemedText`
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* fix: Add routes for stakewise tokens (#2832)
* Add additional routes for stakewise tokens
* Reference StakeWise addresses with sdk tokens
* Sort token imports
* fix: fix layout of proposal list items on the vote page on mobile (#2898)
* fix: fixing layout from using grid to flexbox
* fix: setting WrapSmall to nowrap due to layout issue on mobile
* fix: using width auto instead of disabling flex wrap
Co-authored-by: Julian Anderson <juliancanderson@gmail.com>
* fix: typo in arweave URI recognition (#2901)
* deleted files
* Revert "Merge branch 'main' of https://github.com/Uniswap/interface" (#2912)
This reverts commit bf7a40be7a0a37b5051b9a877bbea563fba5782d, reversing
changes made to 097b8361d4c09afd3cb681c4622145c555ced884.
* fix: inadvertent merges/reverts (#2915)
* Revert "Revert "Merge branch 'main' of https://github.com/Uniswap/interface" (#2912)"
This reverts commit 7d343dcfbdf75a2f91d28cefce84e4b1bace7b87.
* Revert "deleted files"
This reverts commit 097b8361d4c09afd3cb681c4622145c555ced884.
* refactor: Replace multicall implementation with library (#2768)
- Replace the local implementation of multicall with the new redux-multicall lib
- Create wrappers for redux-multicall hooks to inject block number and chainId
* fix: introduce safeNamehash (#2925)
* namehash -> safeNamehash where necessary
* cleanup
* address comment
* feat: Add learn more link in TRM description (#2919)
* Add learn more link in TRM description
* Update src/components/PrivacyPolicy/index.tsx
Co-authored-by: Justin Domingue <judo@uniswap.org>
* give a bit more gas to balanceOf (#2943)
* fix: memoize hooks from /swap (#2949)
* fix: memoize hooks from /swap
* chore: rm console
* add fix for polygon proposal title (#2974)
* fix: display Uniswap token list in UI (#2821)
* fix: display Uniswap token list in UI
* chore: remove default-token-list build dependency
* fix: use ENS name for Uniswap token list
* fix: change Uniswap token list url
* fix: extend transaction deadline to 3 days (#2982)
* feat: integrate SwapRouter02 on L1/L2 + gas ui
* client-side smart order router support
* support auto router on L2s
* add swap router version in approval/swap callback GA events to save $ on approval txs
* add persistent UI view of gas estimate on L1s
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: Ian Lapham <ian@uniswap.org>
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
* Update CONTRIBUTING.md (#2992)
* feat: Update contribution spec (#2993)
* Update CONTRIBUTING.md (#2994)
* Update CONTRIBUTING.md (#2995)
* feat: Update contribution spec (#2996)
* chore(i18n): synchronize translations from crowdin [skip ci]
* fix: double scroll in manage token list (#3020)
* fix double scroll
* remove bottom padding
* restrict walletlink to mainnet only (#3024)
* increase warning timer (#3004)
* add index.html styles to widget
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Micael Rodrigues <micaelr95@outlook.pt>
Co-authored-by: Justin Domingue <judo@uniswap.org>
Co-authored-by: Moody Salem <moodysalem@users.noreply.github.com>
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
Co-authored-by: Ian Lapham <ian@uniswap.org>
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: M0kY <46133205+M0kY@users.noreply.github.com>
Co-authored-by: M0kY <moky@example.com>
Co-authored-by: Will Hennessy <hennessywill@gmail.com>
Co-authored-by: Brendan Weinstein <65564422+brendanww@users.noreply.github.com>
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
Co-authored-by: Ben Krochta <35636764+bkrochta@users.noreply.github.com>
Co-authored-by: Moody Salem <moody.salem@gmail.com>
Co-authored-by: Raj <sukhrajghuman@live.com>
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Co-authored-by: Matthew Salamon <35425388+Matthews3301@users.noreply.github.com>
Co-authored-by: Sam Chen <chenxsan@gmail.com>
Co-authored-by: Ali Eray Kısabacak <eraykisabacak@hotmail.com>
Co-authored-by: Kimmo S <kkpsiren@gmail.com>
Co-authored-by: Dmitri Tsumak <tsumak.dmitri@gmail.com>
Co-authored-by: Julian Anderson <juliancanderson@gmail.com>
Co-authored-by: Carlos Diaz-Padron <carlosdiazpadron@gmail.com>
Co-authored-by: J M Rossy <jm.rossy@gmail.com>
Co-authored-by: Barry G <bgitarts@gmail.com>
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
Co-authored-by: Tina Zheng <59578595+tinaszheng@users.noreply.github.com>
* feat: widgets transitions (#3007)
* fix: logo target
* feat: settings transition
* feat: reverse transition
* fix: transitions will-change and durations
* fix: logo color
* fix: only will-change transform
* fix: header targets
* fix: clip modal transitions
* fix: token select header
* fix: safari transparent gradients
* fix: safari scrollbar
* fix: scroll overlay
* fix: safari bounce jank
* fix: firefox overscroll
* refactor: scrollbar hook
* feat: native event hook
* fix: details nowrap
* fix: settings cog transition
* feat: expando icon
* fix: expando transition
* refactor: cosmos web3 integration (#3052)
* chore: use zustand 4.0.0-beta for dynamic stores
* chore: use strict mode
* refactor: clean connector state
* chore: mv web3 state to cosmos selectors
* chore: dedup yarn.lock
* chore: define EthereumProvider in lib
* fix: destructure would not compile
* fix: make it bundle
* chore: prune deps
* refactor: use error handler instead of GA
* chore: add make-plural
* chore: add redux
* chore: yarn dedup
* chore: do not (re)load default locale
* fix: center error headings
* feat: error dialog for boundary
* fix: tighten up transitions
* test: include bundle depcheck
* fix: rm console
* fix: do not load empty sourceLocale
* fix: no lingui defaults
* refactor: mv svg to assets/svg
* chore: block font display
* fix: remove manual zustand resolution
* fix: svg generation script
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
* chore: widget placeholders (#3061)
* chore: update comments
- typo
- performance comment was performant on retest
* nit: status placeholders
- prevent flashes of rerendering from lazy-loaded elements
* chore: initialize cosmos with json rpc
* refactor: token img component
- modularize the TokenImg
- add a placeholder for UX and broken images
* fix: recent tx token img usage
* pr feedback
* undo REACT_APP_IS_WIDGET network ternary
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Micael Rodrigues <micaelr95@outlook.pt>
Co-authored-by: Justin Domingue <judo@uniswap.org>
Co-authored-by: Moody Salem <moodysalem@users.noreply.github.com>
Co-authored-by: Ian Lapham <ian@uniswap.org>
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: M0kY <46133205+M0kY@users.noreply.github.com>
Co-authored-by: M0kY <moky@example.com>
Co-authored-by: Will Hennessy <hennessywill@gmail.com>
Co-authored-by: Brendan Weinstein <65564422+brendanww@users.noreply.github.com>
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
Co-authored-by: Ben Krochta <35636764+bkrochta@users.noreply.github.com>
Co-authored-by: Moody Salem <moody.salem@gmail.com>
Co-authored-by: Raj <sukhrajghuman@live.com>
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Co-authored-by: Matthew Salamon <35425388+Matthews3301@users.noreply.github.com>
Co-authored-by: Sam Chen <chenxsan@gmail.com>
Co-authored-by: Ali Eray Kısabacak <eraykisabacak@hotmail.com>
Co-authored-by: Kimmo S <kkpsiren@gmail.com>
Co-authored-by: Dmitri Tsumak <tsumak.dmitri@gmail.com>
Co-authored-by: Julian Anderson <juliancanderson@gmail.com>
Co-authored-by: Carlos Diaz-Padron <carlosdiazpadron@gmail.com>
Co-authored-by: J M Rossy <jm.rossy@gmail.com>
Co-authored-by: Barry G <bgitarts@gmail.com>
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
Co-authored-by: Tina Zheng <59578595+tinaszheng@users.noreply.github.com>
* Add ENSName and address check to Web3Status
Issue #2838
* Update useENSName.ts
Do the forward ENSAddress check in useENSName
* Update index.tsx
Revert ENSAddress check, which has been moved into ENSName hook
* Update useENSName.ts
Correcting the equality check (was testing that things work, and made a wrong commit)
* add comment, change var names
Co-authored-by: Tina Zheng <tina.s.zheng+github@gmail.com>
* feat(polygon): polygon mainnet and testnet support
WIP! DO NOT USE
* fix unit test
* fix explorer links
* compute usdc prices
* - fix the header currency label
- fix unit tests
* polygon gradient colors
* chore: adding weth to common bases (#3025)
* adding weth to common bases
* adding usdc and dai
* adding usdt and wbtc
* fix a bunch of polish issues
- 3085 detection
- some wrapping stuff
- the network selector dropdown
* fix wrap/unwrap notification text on polygon
* background color per the figma
* subgraph url
* fix the re-render blinking on the network selector
* failed network switch
* clean up duplicate code in the network switching functions
* fix text color in the privacy notice on light mode
* add some routing constants for polygon
* do not show the separator in the trade route if auto router is not supported
* - network switching without a wallet connected
- remove v2 stuff from pool page when n/a
- remove WMATIC from common bases on polygon
* background colors of network alert
* oops fix background on network alert
* clean up optimism labels
* fix alignment of text on downtime warning
* finish the network alert styles
Co-authored-by: Sara Reynolds <30504811+snreynolds@users.noreply.github.com>
* client-side smart order router support
* support auto router on L2s
* add swap router version in approval/swap callback GA events to save $ on approval txs
* add persistent UI view of gas estimate on L1s
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: Ian Lapham <ian@uniswap.org>
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
- Replace the local implementation of multicall with the new redux-multicall lib
- Create wrappers for redux-multicall hooks to inject block number and chainId
* fix(lint): clean up the eslint config
* Fix code style issues with ESLint
* fix the linter errors that arose from using the proper config
* clean up the rebass text renames
* fix if statement, use the config
* use the same name prefix for both steps
* `TextPreset` -> `ThemedText`
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* chore: add support for 0.01% tier
* only show 1bps on mainnet
* rename VERY_LOW to LOWEST
* upgrade to v3-sdk 3.7.0
* add snapshot testing for lowest tier
* fix integration test
* fix integration test
* use ALL_SUPPORTED_CHAIN_IDS over string all
* consider 0.01% tier in pool (#2770)
* merge main and only consider lowest tier for mainnet
* feat(optimism): optimistic kovan local regenesis changes
* use the regenesis version of the sdk
* remove the override no longer necessary
* diff rpc url
* back to kovan url
* lint error
* Optimism mainnet regenesis test (#2695)
* remove the optimism mainnet specific code and point to the mainnet regenesis rpc url
* point at the old mainnet multicall address
* bump the sdk version
* copy the list
* multicall address regenesis change
* revert the gas limit special casing for optimism
* bump the sdk version
* remove a couple other temporary edits
* unused test case
* specific version of v3-sdk
* ensure chainIds match before fetching pool data
* debounce both input currencies, and only look for pairs on currencies that share a chainId
* pr feedback
* fix: split calls into more chunks if they fail due to out of gas errors
* set to 100m gas
* back to 25m so we batch fewer calls
* do not pass through gas limit, some simplification of the code
* unused import
Updates node-vibrant to use a webpack-compatible version.
lodash was implicitly installed through node-vibrant (and its lack of tree-shaking); with this fixed, lodash is no longer provided.
* fix(swap): use undefined as initial currencyId state
Null should be used for a selection state, not an unknown state. undefined may signify that a currency was passed in the URL but not yet parsed.
* perf(swap): initialize swap with url
Initializes SwapState with URL parameters so that currency input may be rendered on the first frame.
* test(swap): update hooks tests
* test: fix casing
* fix: check nullish to allow eg 0
* refactor: transaction info is translated in the appropriate places
fixes https://github.com/Uniswap/interface/issues/1756
* getting closer
* more work
* finished, finally
* bit more refactoring
* move summary into its own file
* little more cleanup in the transaction summary file
* fix bad copy
* fix the migrate notification
* missing translation
* fix the language for vote and address other pr comments
* fix typo
* - remove old transactions with this update
- change to present tense
- show ens name where appropriate
* add a test that shows we don't clear old ones
* initial routing api integration
* add routing api slice
* display route in dialog
* addressed pr feedback
* improved routing
* switch to `get`
* first pass at integration new MultiRouteTrade
* initial implementation of RoutingDiagram
* add RoutingDiagram tests
* improve tests in RoutingDiagram
* integrate with v3-sdk 3.3.1
* removed references to MultiRouteTrade
* revert swapcallback
* fix abi compilation error
* added useRoute hook to build a Route from edges and nodes
* added react-hooks-testing-library
* integrated latest changes
* renamed router hook to routerTrade
* improve integration
* fixed routing
* usability
* mock RoutingDiagram children to reduce size
* undo mocked children
* adjust ui
* better support long routes
* use routing api logo and adjust ux
* set default percent to 0
* added intermediary hook to combine local and routing api trades
* added intermediary hook to combine local and routing api trades
* make account optional
* improve ux
* improve router
* fixed duplicate pool bug and inputAmount undefined bug
* extract input/outputAmounts from routes
* add todo
* fixed uninitialized issue and added %
* fixed tests
* fix duplicate pool bug
* added routing api setting
* change router label based on router version
* improve useRoutes and fix duplicate pool bug
* debounce routing api/local routing
* removed single hop setting
* fix bug when moving between v2/v3
* consider isUnitialized non loading
* ui fixes
* reverted change to usedebounce
* use new route schema
* visual updates
* log quoteId for polish session
* fix: persist advanced swap details toggle state
* fix no route found
* poll every 10s
* derive currencies from pool rather than input
* polish query status handling in useRouterTrade
* removed RouterVersion
* update ui
* update ui
* update loading state
* animate auto router
* apply loading treatment to out
* disable routing api on l2 and support auto slippage
* use opacity on the whole element
* show loading card when syncing
* updated gradient
* polished ui
* create routerlabel component
* disable router on all bu mainnet
* polish
* feat: [draft] routing api polish (#2224)
* show loading card when syncing
* updated gradient
* polished ui
* create routerlabel component
* disable router on all bu mainnet
* polish
* polished loading state
* add dashes
* fixed tooltip styles
* fixed merge conflict
* few updates
* polish
* updated yarn.lock
* fixed styles
* updated routing diagram
* Fix code style issues with ESLint
* routing api enabled without localstorage upgrade
* fixed lint error
* Fix code style issues with ESLint
* refined mocks in routing diagram tests
* addressed pr feedback
* polish
* revert sending eth
* improved loading animation
* handle stale routing api
* Fix code style issues with ESLint
* updated yarn.lock
* support native eth
* Compute gas adjusted quote for V2 trade and compare to V3 gas adjusted quote
* Incorporate approval gas cost estimate
* feat: simplify routing api ux (#2258)
* support native eth
* simplified ui
* perf optimization
* implement realized lp fee
* improved route realized lp fee
* fix lp realized fee
* fix auto router gradient
* initial route overlay
* add auto router svg
* adjusted ux to mocks
* fix lp fee
* upddated routing diagram
* optimize tradeBetter hook
* adjust type and name
* add useBetterTrade
* useBetterTrade takes gasEstimateWei
* implement gasEstimateForApproval
* import state from react
* use gas estimate
* improve integration with gas estimate comparison
* remove dependency on account
* fix currency switch bug
* improve syncing state
* add loadingbar
* style tooltip container
* updated tooltip styles
* increase opacity range
* always keep dependent currency input interactable
* show placeholders in tooltips
* Revert v2 gas estimates and approval estimates
* Add debug logs
* refactor
* fix bug
* removed comment
* update engish key
* add try-catch
* addressed pr feedback
* remove loading bar for price impact
* addressed pr feedback and bug bash feedback
* fix: use url to force version
* addressed pr feedback and bug bash feedback
* stop fetching when losing focus
* only show auto router label when activated
* avoid showing syncing status
* move V3TradeSTate to own file
* make useRoutes a function rather than hook
* use logo from active list when possible
* renamed and refactored hook
* renamed and refactored hook
* update status
* polish
* remove unused import
* fixed merge error
* updated combined trade tests
* remove priceimpact while loading
* Design tweaks
* polish latest design
* removed some styles
* log gaevent on tooltip open and clean up origin
* Small tweaks
* addressed pr feedback
* wrap route length in a loading container
* renamed local to clientside
* fix percent and token logo
* addressed pr feedback
* avoid comparing trades when v3 not ready
* some refactor
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: Will Pote <will@uniswap.org>
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
* fix: only try SafeApp connection in an iframe
Improves non-iframe pageload by 300ms. Fixes#2338.
The Gnosis check for a SafeApp races a postMessage and a 300ms timeout [1]. The SafeApp embeds the interface in an iframe, so this avoids the check when not in iframes.
[1]: f224869dd5/packages/safe-apps-web3-react/src/connector.ts (L52)
* refactor: IS_IN_IFRAME const
* feat: support connecting to a gnosis safe
* add the manifest.json attributes required by gnosis safe
* remove background fill
* copy
* only try injected provider if not active after trying safe
* initial routing api integration
* add routing api slice
* display route in dialog
* addressed pr feedback
* switch to `get`
* renamed useRouterTradeExactIn to useRouter
* moving few files to later iteration
* removed unnecessary `as`
* switch to polling
* add todo for blocknumber freshness
* remove account-slippage-deadline
* polish
move getINfoLinkByChainId to chain constants
pr review - translations
optimism token list, typo, text color for L1 switch
use <Trans /> instead of t
undo unintentional tokenlist order change
use {'Optimism'} instead of {name}
switch deadline implementation
remove unused TYPE import
switch to generalized CHAIN_INFO instead of L2_INFO so we don't have to check in components
add target chain id param to optimism bridge
fix a minor breakpoint issue
reduce sigfigs for header balance
update network card dropdown text for optimism
remove list code
refactor SupportedChainId
* SupportedL1ChainId | SupportedL2ChainId -> SupportedChainId
* first iteration of useTicks and useActiveLiquidity
* feat(pools): add liquidity depth chart (#1835)
* cleanup
* use area chart instead of bar chart
* check for undefined rather than falsy
* feat: range buttons based on fee amount (#1870)
* range buttons based on fee amount
* hardcode percentages as ticks
* increase blocksperfect
* feat: optimize add liquidity charts (#1880)
* ignore syncing state
* remove surrounding ticks
* avoid processing price1 as it is unused
* cleanup
* feat: add zoom buttons to liquidity depth chart (#1882)
* ignore syncing state
* remove surrounding ticks
* avoid processing price1 as it is unused
* cleanup
* first pass at +/- zoom buttons
* remove console.log, cleanup
* use real price for price line
* updated brush handles to latest spec
* added % labels to handles
* round tick to nearest usable tick
* first pass at brushable area chart with d3
* first pass at brushable area chart with d3
* rework
* address PR comments
* add brush handles
* address PR comments
* further improvements
* feat(pools): improve full range support + capital efficiency warning (#1903)
* handle min and max prices in add liquidity
* cleaned up
* use flag to denote full range
* reset inputs on fee select
* fixed merge conflict
* handle full range in positions preview
* fixed invalid range when tokens are reversed
* use formatTickData
* updated layout
* cleaned up layout
* fixed address
* avoid re-rendering deposit amounts
* added zoom behavior and more styling
* renamed chart
* renamed main chart file;
* add brush tooltips
* remove chart title
* added accents to brush handles
* more work
* moved to file
* modularize chart components
* fix maximum depth
* added brush labels
* cleanup
* cleanup
* set up zoom
* added new components
* improved brush and zoom integration
* cleaned up clip path
* fixed clip paths
* integrated with the graph changes
* adjust fee selector
* fix data error
* add bar chart
* polish
* merged
* clean up error
* cleaned up after merge
* visual improvements
* moved +/- buttons to the right/left
* removed margin bottom
* removed unsused
* fix brush labels % change
* use d3.axisBottom
* updated labels
* improve brush range
* fix one brush change only
* adjust zoom and clippath
* use bars
* use area
* adjust axis bottom to mocks;
* improved bars
* show bar colors
* better handle full range
* adjust colors for light mode
* updated to mocks
* adjusted handles for visibility
* switch to area
* add react ga events
* adjusted to mocks
* memo brush domain to avoid re-renders
* fix inputstepcounter color
* adjust handles
* rely on the graph sorting tickidx
* use curvestepafter
* updated polish
* merged main
* add clamping and other fixes
* highlight selected area using a mask
* use price instead of % for labels
* delete unused
* refine ux
* relayout
* improve hooks
* adjust layout for mobile
* fixed card color
* adjust padding
* preent tick overflow
* flip handles sooner
* delete bars.tsx
* preliminary support
* fix multicall abi
add explorer support
* Fix code style issues with ESLint
* fix gas estimation
* fix todo tests
* fix gas estimation comments
* anonymize links to kovan etherscan and poll more frequently on optimistic kovan
* separate pool creation
* remove supported chain id
* remove the blocktag
* do not use the blocktag on optimism only
* give more gas to tokenURI for optimism
* update sdk
* temp fix to the block tag thing (do not update the block number from the fetch block number)
* remove unused import
* gasRequired -> multi-network
* bump quoter gas limit to 6m on optimism
* move the gas required parameter by chain id one level up
* missed a hook
* retry fetching receipts for optimism as many times as arbitrum
* fix duplicate enum, add optimism as well to retry options config
* fix: state not getting updated after a transaction confirmation
* bump sdk version
* update for mainnet optimism (#1998)
* fix for calculateGasMargin on optimism
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: Moody Salem <moody.salem@gmail.com>
* feat(logs): add an infrastructure for fetching logs in a declarative way
* use the logs hook in the vote page, first pass
* fix comment
* bit of cleanup
* unused imports
* improve loading indicator on vote page
* some testnet behavior improvements
* fix loader state
* loading state nit
* show correct indexes
* remove the unnecessary retry code
* first pass at the slice
* no throws
* loading indicator should go away if not connected
* use the logs slice for the logs hook state
* style changes per cal's request
* add hooks to fecth ticks data and active liquidity
* cleanup
* add polling interval
* moved ms.macro types to dev deps
* generate graphql schema on build
* added @types/ms.macro
* use clone deep
fix governor name bug
revert useContract change
add governorIndex to vote page
only fetch latest useLatestProposalCount
fix useDataFromEventLogs
hardcode proposalIndexes for old governors
* experimental! point at a kovan arbitrum deployment
* remove the unwrapped token from mint hook
* fix explorer links
* Etherscan -> Explorer
* move chains to constant file
* use NETWORK_URLS instead
* temporary fix to the syncing issue
* fix tests
* fix unknown chain id crash
* use a multicall that returns arbitrum block numbers
* lower polling interval for layer 2
* use a better multicall
* remove unused import
* fixed multicall2
* make some v2 code chain specific
* fix build
* line number changes
* update keys
* fix the locale parsing of full locale string
* extract
* fix lint
* add arbitrum one
* add arbitrum one to supported chains
* add missing arbitrum one label
* refactor: remove storybook
* point to the arbitrum explorer address
* fix arbitrum mainnet links
* fix how weth shows up in the interface
* make the usdc price feature more cross chain compatible
* missing translation
* clean up some governance code so it doesn't crash on unsupported networks
* improve how we check for transaction receipts for sequencer networks
* improve it a bit more
* chore: simplify app dispatch and selector types with ts inference
* update SearchModal to use new types inference
* chore: simplify useSelector and useDispatch types using inference
* add a link to switch the locale conditionally
* make it smaller
* add the locale labels
* language labels from the internet
* fix the heart in the claim popup
* undo the conditional change
* remove todo
* updated Chinese locale name to office-365 language ids
* added missing <Trans>
Co-authored-by: Justin Domingue <judo@uniswap.org>
* use argent wallet contract in swap callback
* maybe working swap callback
* chore(v3): trigger a breaking release
BREAKING CHANGE: trigger a major release for the uniswap interface to indicate it now supports swapping and liquidity provision against uniswap protocol v3
* fix the value
* improve the error coverage
* retry more frequently, couple more error nits
* the is argent call was being sketchy
* get it working for add liquidity
* `0x0` for v2 swaps too
* small nits in position page
* fix import
* fix compiler error
* stablizie fiat value by fixing max hop and increasing USDC out to 100k
* move maxHops and singleHopOnly to parameter of useV2TradeExactOut
* remove single hop param
* do not construct tokens for wrapped token info
* some cleanup of the wrapped token info
* back to extends, bump sdk core version via v2/v3 sdk updates
* Revert "back to extends, bump sdk core version via v2/v3 sdk updates"
This reverts commit 92cc5073
* update the sdk version
* fix some more uses of instanceof
* finish the refactor
* mess with the currency list performance
* start replacing with the latest v3/v2 sdks
* raw -> quotient
* more cleanup
* finish the refactor
* clean up currency list refactor
* fix list rendering
* perf(token lists): improve app performance when there are large inactive token lists (#1510)
* improve inactive token lists performance
* cleanup before larger changes to combine inactive lists
* only do the search if the query does not match any active lists, limit the number of results
* more performance improvements
* search inactive lists more aggressively
* automatic slippage tolerance start
* get it compiling
* out of range/in range behavior of slippage tolerance in add
* small useDerivedSwapInfo refactor
* improve useSwapSlippageTolerance
* fix unit test
* thread placeholder slippage through
* small improvement to slippage input behavior
* fix the display bug
* fix tx settings modal ux
* don't pass props unnecessarily
* switch back to static swap slippage for now
bump migrate slippage to .75%
* fix font size
* add flag for auto slippage migration
validate version updates even more
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>