Uniswap without TORN censoring
Go to file
Jordan Frankfurt ce96873a72
feat(widgets): use default input/output (#3161)
* 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>
2022-01-26 12:14:18 -06:00
.github chore: replace microbundle with rollup (#3115) 2022-01-13 17:11:27 -08:00
cypress chore: import @ethersprojects directly (#3104) 2022-01-12 10:06:22 -08:00
public feat: integrate SwapRouter02 on L1/L2 + gas ui 2021-12-16 14:44:03 -05:00
src feat(widgets): use default input/output (#3161) 2022-01-26 12:14:18 -06:00
.env chore: merge widgets work into main (#3065) 2022-01-05 12:38:53 -06:00
.env.production feat: extend privacy and terms (#2623) 2021-10-25 08:41:55 -04:00
.eslintrc.json chore: import @ethersprojects directly (#3104) 2022-01-12 10:06:22 -08:00
.gitignore chore: replace microbundle with rollup (#3115) 2022-01-13 17:11:27 -08:00
.nvmrc feature(storybook): first pass at storybook integration 2021-02-12 15:32:25 -05:00
.prettierignore feat(thegraph): auto-generate graphql types (#1926) 2021-06-28 16:43:24 -07:00
.prettierrc set up eslint and prettier; run prettier 2019-04-15 12:56:40 -04:00
babel-plugin-macros.config.js use styled-components/macro to display className in dev builds (#1541) 2021-05-13 09:15:13 -04:00
codegen.yml feat(pools): fetch pool tick data from uniswap v3 subgraph (#1932) 2021-07-01 11:08:53 -07:00
CONTRIBUTING.md feat: Update contribution spec (#2996) 2021-12-16 16:08:45 -05:00
cosmos.config.json chore: merge widgets work into main (#3065) 2022-01-05 12:38:53 -06:00
cosmos.override.js feat: include native currency in widget select (#3124) 2022-01-18 12:11:22 -08:00
custom-test-env.js test: set up component snapshot testing (#2102) 2021-07-26 10:41:08 -07:00
cypress.json chore: support stubbing subgraph in integration tests (#2039) 2021-07-13 12:54:49 -07:00
LICENSE add tokens, do some summer cleaning (#368) 2019-07-23 13:50:31 -04:00
lingui.config.ts chore: merge widgets work into main (#3065) 2022-01-05 12:38:53 -06:00
package.json refactor: track txs (#3185) 2022-01-25 18:55:27 -05:00
README.md fix: broken link to docs (#2816) 2021-11-17 20:30:54 -08:00
rollup.config.ts chore: replace microbundle with rollup (#3115) 2022-01-13 17:11:27 -08:00
tsconfig.base.json chore: merge widgets work into main (#3065) 2022-01-05 12:38:53 -06:00
tsconfig.json chore: stub out new component lib (#2495) 2021-10-04 11:01:05 -07:00
tsconfig.lib.json feat: include native currency in widget select (#3124) 2022-01-18 12:11:22 -08:00
yarn.lock feat: include native currency in widget select (#3124) 2022-01-18 12:11:22 -08:00

Uniswap Interface

Unit Tests Integration Tests Lint Release Crowdin

An open source interface for Uniswap -- a protocol for decentralized exchange of Ethereum tokens.

Accessing the Uniswap Interface

To access the Uniswap Interface, use an IPFS gateway link from the latest release, or visit app.uniswap.org.

Unsupported tokens

Check out useUnsupportedTokenList() in src/state/lists/hooks.ts for blocking tokens in your instance of the interface.

You can block an entire list of tokens by passing in a tokenlist like here or you can block specific tokens by adding them to unsupported.tokenlist.json.

Contributions

For steps on local deployment, development, and code contribution, please see CONTRIBUTING.

Accessing Uniswap V2

The Uniswap Interface supports swapping, adding liquidity, removing liquidity and migrating liquidity for Uniswap protocol V2.

Accessing Uniswap V1

The Uniswap V1 interface for mainnet and testnets is accessible via IPFS gateways linked from the v1.0.0 release.