Uniswap without TORN censoring
Go to file
Jordan Frankfurt 809841df0a
feat: new app provider w/ fallback behavior (#7205)
* feat: new app provider w/ fallback behavior

* progress

* update useContractX signer params

* Revert "update useContractX signer params"

This reverts commit 386d1580dff77338810a4b31be38efd039d4b138.

* extend jsonrpcprovider

* add mainnet quicknode example, use old staticJsonRpc extension

* add tests

* unit testing

* fixes to tests/tsc

* Update src/state/routing/gas.ts

Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>

* pr review

* e2e tests should only talk to the chain via connected wallet

* Revert "e2e tests should only talk to the chain via connected wallet"

This reverts commit 0ce76eb7e4132917a52b49531db871a189448e51.

* add charlie's null nit

* fix e2e

* add feature flag

* Update cypress/support/setupTests.ts

Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>

* pr review

* pr feedback

* fix tests

* add generic send test

* fix merge error

* add a failure rate calculation and inline comments on scoring algo w/ an example

* fix sort test

* cleaner provider creation

* simplify sort

---------

Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-09-22 14:05:27 -05:00
.github fix: ci added CODEOWNERS github format (#7285) 2023-09-14 07:59:28 -10:00
.husky feat: dedupe on commit (#7171) 2023-08-17 12:58:35 -05:00
.vscode build: add vscode settings for default formatter (#6644) 2023-05-25 08:22:51 -10:00
cypress feat: new app provider w/ fallback behavior (#7205) 2023-09-22 14:05:27 -05:00
eslint_rules build: use webpack-retry-chunk-load-plugin (#6885) 2023-07-06 17:54:49 -04:00
functions feat: Condense color extraction logic and improve fallback (#7347) 2023-09-22 10:09:05 -07:00
patches feat: lazy-load safe only if iframed (#7360) 2023-09-21 11:31:38 -07:00
public fix: Fix visual issues in Spore (#7240) 2023-09-20 09:44:25 -10:00
scripts build: improve tree-shaking (#7325) 2023-09-21 11:29:22 -07:00
src feat: new app provider w/ fallback behavior (#7205) 2023-09-22 14:05:27 -05:00
.env feat: new app provider w/ fallback behavior (#7205) 2023-09-22 14:05:27 -05:00
.env.production feat: new app provider w/ fallback behavior (#7205) 2023-09-22 14:05:27 -05:00
.eslintrc.js chore: prohibit barrels (#7362) 2023-09-21 19:38:17 -07:00
.gitignore build: replace babel with swc (#7056) 2023-08-08 10:38:37 -07:00
.npmrc build: enforce node/npm versions (#4434) 2022-08-22 13:55:48 -04:00
.nvmrc feat: upgrade to node 18 (#6606) 2023-06-06 11:59:03 -07:00
.snyk build: bump widgets/universal-router-sdk (#5582) 2022-12-12 11:21:22 -05:00
.swcrc fix: fix jest breaking with new swc setting (#7149) 2023-08-11 13:53:48 -07:00
codecov.yml feat: add CodeCov to cloud tests (#7154) 2023-08-17 11:30:56 -04:00
codegen.yml refactor: add source to subgraph queries (#7253) 2023-09-05 08:44:57 -07:00
CONTRIBUTING.md test: enforce package size (#4098) 2023-03-07 09:27:20 -08:00
craco.config.cjs build: improve tree-shaking (#7325) 2023-09-21 11:29:22 -07:00
cypress.config.ts feat: Spore colors refresh (#7118) 2023-08-24 17:14:24 -10:00
graphql.data.codegen.config.ts fix: Handle new and unsupported chains passed in from GQL BE (#6878) 2023-07-05 21:31:30 -07:00
graphql.data.config.js build: cache generated files across builds (#6495) 2023-05-09 15:49:53 -07:00
graphql.thegraph.codegen.config.ts build: cache generated files across builds (#6495) 2023-05-09 15:49:53 -07:00
graphql.thegraph.config.js build: cache generated files across builds (#6495) 2023-05-09 15:49:53 -07:00
hardhat.config.js feat: update infura fork block height for cypress tests to be dynamic (#6998) 2023-07-24 18:00:29 -07:00
LICENSE add tokens, do some summer cleaning (#368) 2019-07-23 13:50:31 -04:00
lingui.config.ts build: replace babel with swc (#7056) 2023-08-08 10:38:37 -07:00
package.json build: improve tree-shaking (#7325) 2023-09-21 11:29:22 -07:00
README.md feat: path-based routing (#7275) 2023-09-08 10:43:59 -07:00
tsconfig.json test(cypress): clean up types/assumptions/infura (#7046) 2023-08-01 22:13:19 -07:00
yarn.lock build: improve tree-shaking (#7325) 2023-09-21 11:29:22 -07:00

Uniswap Labs Interface

codecov

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

Contributions

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

PR Title

Your PR title must follow conventional commits, and should start with one of the following types:

  • build: Changes that affect the build system or external dependencies (example scopes: yarn, eslint, typescript)
  • ci: Changes to our CI configuration files and scripts (example scopes: vercel, github, cypress)
  • docs: Documentation only changes
  • feat: A new feature
  • fix: A bug fix
  • perf: A code change that improves performance
  • refactor: A code change that neither fixes a bug nor adds a feature
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • test: Adding missing tests or correcting existing tests

Example commit messages:

  • feat: adds support for gnosis safe wallet
  • fix: removes a polling memory leak
  • chore: bumps redux version

Other things to note:

  • Please describe the change using verb statements (ex: Removes X from Y)
  • PRs with multiple changes should use a list of verb statements
  • Add any relevant unit / integration tests
  • Changes will be previewable via vercel. Non-obvious changes should include instructions for how to reproduce them

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.