Uniswap without TORN censoring
Go to file
Charles Bachmeier d63bdf1887
feat: [info] Add Stats Section to PDP (#7353)
* feat: setup initial pool details page and route

* add pool data query and call on enw page

* make query dynamic to url chainId

* Get and display Header info

* add token symbols

* split header into its own file

* add helper function to not default to eth chain

* add helper function tests

* add header component tests

* add mocked test for PDP

* use valid values

* allow unsupported BE chains supported by thegraph

* typecheck

* remove useless row

* no longer needed child

* use first and last child

* move mock consts to their own file

* skele linear task

* return null

* descriptiive pool not found bool

* modify correct logo container

* update snapshots

* instantiate all chain apollo clients

* added snapshot test

* merge main and update snapshots

* Update src/pages/PoolDetails/PoolDetailsHeader.tsx

Co-authored-by: Nate Wienert <natewienert@gmail.com>

* type feeTier

* setup init stats component

* correctly query pool data for t24, t48, and tWeek timestamps

* add comments

* sanitize pool data and update tests

* correct test data

* add todo

* lint

* show correct data

* remove logs

* use formatter

* showing colored bars

* styled graph

* get muted color

* refactor: move getColor to src

* refactor useColor to use getColor function

* remove consts

* refactor files

* 1st class var support courtesy of carter

* remove logging and adds comments

* mobile styling

* move Stats to its own file

* add test cases

* add test file

* update padding

* remove old test file

* respond to feedback

* right column wrapper

* update tests

---------

Co-authored-by: Nate Wienert <natewienert@gmail.com>
2023-09-28 09:27:29 -07: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 fix: use sentence case for text (#7375) 2023-09-27 12:46:09 -04: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: [info] Add Stats Section to PDP (#7353) 2023-09-28 09:27:29 -07: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 feat: user property git commit hash (#7378) 2023-09-26 13:37:08 -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 feat: user property git commit hash (#7378) 2023-09-26 13:37:08 -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.