Skip to content

Commit 61d1036

Browse files
authored
chore: rm widget code (Uniswap#3810)
* chore: rm widget tooling * chore: rm widget components * chore: rm widget theme * chore: rm widget assets * chore: rm widget business logic * chore: rm widget meta * chore: update yarn.lock * chore: mv type to usage
1 parent e11d208 commit 61d1036

124 files changed

Lines changed: 152 additions & 8422 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/bundle.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
# builds
2121
/build
22-
/cosmos-export
23-
/dist
2422
/dts
2523

2624
# misc

INTERFACE_README.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

README.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
This repo is home to the Uniswap Widgets package and the web app interface [app.uniswap.org](https://app.uniswap.org).
2-
31
# Uniswap Labs Interface
42

53
[![Unit Tests](https://github.com/Uniswap/interface/actions/workflows/unit-tests.yaml/badge.svg)](https://github.com/Uniswap/interface/actions/workflows/unit-tests.yaml)
@@ -8,14 +6,46 @@ This repo is home to the Uniswap Widgets package and the web app interface [app.
86
[![Release](https://github.com/Uniswap/interface/actions/workflows/release.yaml/badge.svg)](https://github.com/Uniswap/interface/actions/workflows/release.yaml)
97
[![Crowdin](https://badges.crowdin.net/uniswap-interface/localized.svg)](https://crowdin.com/project/uniswap-interface)
108

11-
The web application hosted at https://app.uniswap.org is a convenient way to access the core functionality of the Uniswap Protocol.
9+
An open source interface for Uniswap -- a protocol for decentralized exchange of Ethereum tokens.
10+
11+
- Website: [uniswap.org](https://uniswap.org/)
12+
- Interface: [app.uniswap.org](https://app.uniswap.org)
13+
- Docs: [uniswap.org/docs/](https://docs.uniswap.org/)
14+
- Twitter: [@Uniswap](https://twitter.com/Uniswap)
15+
- Reddit: [/r/Uniswap](https://www.reddit.com/r/Uniswap/)
16+
17+
- Discord: [Uniswap](https://discord.gg/FCfyBSbCU5)
18+
- Whitepapers:
19+
- [V1](https://hackmd.io/C-DvwDSfSxuh-Gd4WKE_ig)
20+
- [V2](https://uniswap.org/whitepaper.pdf)
21+
- [V3](https://uniswap.org/whitepaper-v3.pdf)
22+
23+
## Accessing the Uniswap Interface
24+
25+
To access the Uniswap Interface, use an IPFS gateway link from the
26+
[latest release](https://github.com/Uniswap/uniswap-interface/releases/latest),
27+
or visit [app.uniswap.org](https://app.uniswap.org).
28+
29+
## Unsupported tokens
30+
31+
Check out `useUnsupportedTokenList()` in [src/state/lists/hooks.ts](./src/state/lists/hooks.ts) for blocking tokens in your instance of the interface.
32+
33+
You can block an entire list of tokens by passing in a tokenlist like [here](./src/constants/lists.ts) or you can block specific tokens by adding them to [unsupported.tokenlist.json](./src/constants/tokenLists/unsupported.tokenlist.json).
34+
35+
## Contributions
36+
37+
For steps on local deployment, development, and code contribution, please see [CONTRIBUTING](./CONTRIBUTING.md).
1238

13-
For documentation of the interface including how to contribute or access prior builds, please view the README here: [INTERFACE_README.md](./INTERFACE_README.md)
39+
## Accessing Uniswap V2
1440

15-
# Uniswap Labs Widgets
41+
The Uniswap Interface supports swapping, adding liquidity, removing liquidity and migrating liquidity for Uniswap protocol V2.
1642

17-
The `@uniswap/widgets` package is an npm package of React components used to provide subsets of the Uniswap Protocol functionality in a small and configurable user interface element.
43+
- Swap on Uniswap V2: https://app.uniswap.org/#/swap?use=v2
44+
- View V2 liquidity: https://app.uniswap.org/#/pool/v2
45+
- Add V2 liquidity: https://app.uniswap.org/#/add/v2
46+
- Migrate V2 liquidity to V3: https://app.uniswap.org/#/migrate/v2
1847

19-
The npm package can be found here. [@uniswap/widgets](https://www.npmjs.com/package/@uniswap/widgets)
48+
## Accessing Uniswap V1
2049

21-
For documentation of the widgets package, please view the README here: [WIDGETS_README.md](./WIDGETS_README.md).
50+
The Uniswap V1 interface for mainnet and testnets is accessible via IPFS gateways
51+
linked from the [v1.0.0 release](https://github.com/Uniswap/uniswap-interface/releases/tag/v1.0.0).

WIDGETS_README.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

cosmos.config.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

cosmos.override.cjs

Lines changed: 0 additions & 26 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,6 @@
4444
"@reach/dialog": "^0.10.3",
4545
"@reach/portal": "^0.10.3",
4646
"@react-hook/window-scroll": "^1.3.0",
47-
"@rollup/plugin-alias": "^3.1.9",
48-
"@rollup/plugin-babel": "^5.3.0",
49-
"@rollup/plugin-commonjs": "^21.0.1",
50-
"@rollup/plugin-eslint": "^8.0.1",
51-
"@rollup/plugin-json": "^4.1.0",
52-
"@rollup/plugin-node-resolve": "^13.1.3",
53-
"@rollup/plugin-replace": "^3.0.1",
54-
"@rollup/plugin-typescript": "^8.3.0",
55-
"@rollup/plugin-url": "^6.1.0",
56-
"@svgr/rollup": "^6.2.0",
5747
"@testing-library/jest-dom": "^5.14.1",
5848
"@testing-library/react": "^12.0.0",
5949
"@testing-library/react-hooks": "^7.0.2",
@@ -117,7 +107,6 @@
117107
"qs": "^6.9.4",
118108
"react": "^17.0.1",
119109
"react-confetti": "^6.0.0",
120-
"react-cosmos": "^5.6.6",
121110
"react-dom": "^17.0.1",
122111
"react-ga4": "^1.4.1",
123112
"react-is": "^17.0.2",
@@ -129,14 +118,6 @@
129118
"react-use-gesture": "^6.0.14",
130119
"redux": "^4.1.2",
131120
"redux-localstorage-simple": "^2.3.1",
132-
"rollup": "^2.63.0",
133-
"rollup-plugin-copy": "^3.4.0",
134-
"rollup-plugin-delete": "^2.0.0",
135-
"rollup-plugin-dts": "^4.1.0",
136-
"rollup-plugin-multi-input": "^1.3.1",
137-
"rollup-plugin-node-externals": "^3.1.2",
138-
"rollup-plugin-scss": "^3.0.0",
139-
"rollup-plugin-typescript2": "^0.31.1",
140121
"sass": "^1.45.1",
141122
"serve": "^11.3.2",
142123
"start-server-and-test": "^1.11.0",
@@ -170,13 +151,10 @@
170151
"i18n:compile": "yarn i18n:extract && lingui compile",
171152
"i18n:pseudo": "lingui extract --locale pseudo && lingui compile",
172153
"prepare": "yarn contracts:compile && yarn graphql:generate && yarn i18n:compile",
173-
"prepublishOnly": "yarn widgets:build",
174154
"start": "react-scripts start",
175155
"build": "react-scripts build",
176156
"test": "react-scripts test --env=./custom-test-env.cjs",
177-
"test:e2e": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'",
178-
"widgets:start": "cosmos",
179-
"widgets:build": "rollup --config --failAfterWarnings --configPlugin typescript2"
157+
"test:e2e": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'"
180158
},
181159
"browserslist": {
182160
"production": [

0 commit comments

Comments
 (0)