MCPcopy
hub / github.com/Uniswap/interface

github.com/Uniswap/interface @v4.271.0 sqlite

repository ↗ · DeepWiki ↗ · release v4.271.0 ↗
2,563 symbols 9,513 edges 1,067 files 40 documented · 2%
README

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.

Extension points exported contracts — how you extend this code

MoonpayIPAddressesResponse (Interface)
@ref https://dashboard.moonpay.com/api_reference/client_side_api#ip_addresses
src/state/application/hooks.ts
Connection (Interface)
(no doc) [1 implementers]
src/connection/types.ts
Token (Interface)
(no doc) [1 implementers]
src/components/Pools/PoolDetails/PoolDetailsHeader.tsx
Data (Interface)
(no doc)
functions/utils/cache.ts
Window (Interface)
(no doc)
src/polyfills.ts
Window (Interface)
(no doc)
src/react-app-env.d.ts
PositionDetails (Interface)
(no doc)
src/types/position.d.ts
WalletMeta (Interface)
(no doc)
src/utils/walletMeta.ts

Core symbols most depended-on inside this repo

getTestSelector
called by 279
cypress/utils/index.ts
formatNumber
called by 200
src/utils/formatNumbers.ts
from
called by 184
src/serviceWorker/document.ts
mocked
called by 142
src/test-utils/mocked.tsx
useFormatter
called by 124
src/utils/formatNumbers.ts
sendAnalyticsEvent
called by 67
src/analytics/index.tsx
nativeOnChain
called by 49
src/constants/tokens.ts
currencyId
called by 43
src/utils/currencyId.ts

Shape

Function 1,984
Interface 310
Enum 105
Method 92
Class 72

Languages

TypeScript100%

Modules by API surface

src/nft/components/icons.tsx71 symbols
src/state/routing/types.ts34 symbols
src/theme/components/text.tsx33 symbols
src/constants/tokens.ts26 symbols
src/state/governance/hooks.ts25 symbols
src/state/transactions/types.ts23 symbols
src/utils/formatNumbers.ts22 symbols
src/state/application/hooks.ts21 symbols
src/components/AccountDetails/TransactionSummary.tsx21 symbols
src/nft/components/collection/ActivityCells.tsx20 symbols
src/components/AccountDrawer/MiniPortfolio/Activity/parseRemote.tsx20 symbols
src/state/user/hooks.tsx19 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@apollo/client3.7.2 · 1×
@babel/preset-env7.22.7 · 1×
@cloudflare/workers-types4.20230710.1 · 1×
@coinbase/wallet-sdk3.6.4 · 1×
@craco/craco7.1.0 · 1×
@ethersproject/experimental5.4.0 · 1×
@fontsource/ibm-plex-mono4.5.1 · 1×
@fontsource/inter4.5.1 · 1×
@graphql-codegen/cli3.3.1 · 1×
@graphql-codegen/client-preset3.0.1 · 1×
@graphql-codegen/typescript3.0.4 · 1×
@graphql-codegen/typescript-operations3.0.2 · 1×

For agents

$ claude mcp add interface \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact