2017-10-28 03:55:27 -04:00
|
|
|
{
|
2020-05-20 22:31:05 -05:00
|
|
|
"name": "@uniswap/interface",
|
2020-05-20 16:10:26 -05:00
|
|
|
"description": "Uniswap Interface",
|
2021-09-29 16:55:31 -07:00
|
|
|
"homepage": ".",
|
2021-10-04 11:01:05 -07:00
|
|
|
"main": "dist/interface.js",
|
|
|
|
"module": "dist/interface.esm.js",
|
|
|
|
"types": "dist/index.d.ts",
|
|
|
|
"files": [
|
|
|
|
"lib",
|
|
|
|
"dist"
|
|
|
|
],
|
2017-10-28 03:55:27 -04:00
|
|
|
"private": true,
|
2020-05-21 15:47:52 -04:00
|
|
|
"devDependencies": {
|
2021-07-29 17:46:35 -05:00
|
|
|
"@ethersproject/experimental": "^5.4.0",
|
2021-07-23 12:04:18 -05:00
|
|
|
"@gnosis.pm/safe-apps-web3-react": "^0.6.0",
|
2021-06-28 16:43:24 -07:00
|
|
|
"@graphql-codegen/cli": "1.21.5",
|
|
|
|
"@graphql-codegen/typescript": "1.22.3",
|
|
|
|
"@graphql-codegen/typescript-operations": "^1.18.2",
|
|
|
|
"@graphql-codegen/typescript-rtk-query": "^1.1.1",
|
2021-05-26 13:34:52 -07:00
|
|
|
"@lingui/cli": "^3.9.0",
|
|
|
|
"@lingui/macro": "^3.9.0",
|
|
|
|
"@lingui/react": "^3.9.0",
|
2021-11-22 10:55:25 -08:00
|
|
|
"@metamask/jazzicon": "^2.0.0",
|
2020-07-06 21:26:38 -04:00
|
|
|
"@popperjs/core": "^2.4.4",
|
2020-05-25 01:39:30 -04:00
|
|
|
"@reach/dialog": "^0.10.3",
|
|
|
|
"@reach/portal": "^0.10.3",
|
2021-05-12 13:19:43 -04:00
|
|
|
"@react-hook/window-scroll": "^1.3.0",
|
2021-07-21 15:08:35 -07:00
|
|
|
"@reduxjs/toolkit": "^1.6.1",
|
2021-07-26 10:41:08 -07:00
|
|
|
"@testing-library/jest-dom": "^5.14.1",
|
|
|
|
"@testing-library/react": "^12.0.0",
|
2021-09-16 10:50:58 -04:00
|
|
|
"@testing-library/react-hooks": "^7.0.2",
|
2021-05-11 16:43:08 -05:00
|
|
|
"@typechain/ethers-v5": "^7.0.0",
|
2021-09-15 11:03:12 -07:00
|
|
|
"@types/array.prototype.flat": "^1.2.1",
|
|
|
|
"@types/array.prototype.flatmap": "^1.2.2",
|
2021-07-07 16:39:44 -07:00
|
|
|
"@types/d3": "^6.7.1",
|
2020-05-21 15:47:52 -04:00
|
|
|
"@types/jest": "^25.2.1",
|
2021-05-26 13:34:52 -07:00
|
|
|
"@types/lingui__core": "^2.7.1",
|
|
|
|
"@types/lingui__macro": "^2.7.4",
|
|
|
|
"@types/lingui__react": "^2.8.3",
|
2021-07-01 11:08:53 -07:00
|
|
|
"@types/ms.macro": "^2.0.0",
|
feat(lists): allow selecting and adding token lists (#1023)
* more list stuff
Use the selected list instead of the default list, but also use the default list
start list selection code
* move token warning to a modal, fix the install issue
* add/remove/enter key
* handle enter on currency select for ETHER
* change slippage tolerance to be a slider
* make ui closer to the mocks
* commit slider changes
* back to tabs
* copy changes
* bump list version
* some styling for the list select
* bump uniswap default list version
* use contract calls to get ens names and addresses
* show list logo
* fix failing integration test
* .eth.link
* list introduction screen
* remove showSendWithSwap
* fix integration and unit tests
* resolve ENS names
* logos from ens
* fix the lint errors
* some refactoring to better support using a the library provider from the user for resolving ENS names
* load list info from the list url for the introduction page
* make it slightly harder to remove a list
* minor clean up, some help text and links
* remove icon from list update popup
* show added/removed tokens
* add GA everywhere, don't debounce contenthash lookups
* show tags
* fix tag key
* tag display, list rendering, needs optimization
* fix list fetching in firefox, style issue in safari
* sort the lists, clean up styling
* use client provider when possible
* show token warning for url loaded tokens
* improve the warning modal
* some refactoring to fix the list fetching on networks other than mainnet
* fix tests
* some minor improvements
* increase timeout to maybe fix integration tests which pass locally
* build for tests using the dev network url
* reset the lists if we deleted the other two copies
* improve how we handle updating the default list of lists
* fix integration test
* Update token list selection styles
* fix external links, reuse the on click outside code, show add errors
* show the list origin instead of the full url
* fix update list link
* show host instead of hostname
do not automatically dismiss major version upgrades for lists
* fix link to tokenlists.org
* add uma
* clean up styling in list rows
* bump token list version
* bump token list version again
* hover symbol to see currency name
* bump version
* add cmc lists, dharma list
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-08-26 08:46:21 -05:00
|
|
|
"@types/multicodec": "^1.0.0",
|
2020-05-21 15:47:52 -04:00
|
|
|
"@types/node": "^13.13.5",
|
|
|
|
"@types/qs": "^6.9.2",
|
2021-02-13 15:05:09 -05:00
|
|
|
"@types/react": "^17.0.2",
|
|
|
|
"@types/react-dom": "^17.0.1",
|
|
|
|
"@types/react-redux": "^7.1.16",
|
2020-05-21 15:47:52 -04:00
|
|
|
"@types/react-router-dom": "^5.0.0",
|
feat(lists): allow selecting and adding token lists (#1023)
* more list stuff
Use the selected list instead of the default list, but also use the default list
start list selection code
* move token warning to a modal, fix the install issue
* add/remove/enter key
* handle enter on currency select for ETHER
* change slippage tolerance to be a slider
* make ui closer to the mocks
* commit slider changes
* back to tabs
* copy changes
* bump list version
* some styling for the list select
* bump uniswap default list version
* use contract calls to get ens names and addresses
* show list logo
* fix failing integration test
* .eth.link
* list introduction screen
* remove showSendWithSwap
* fix integration and unit tests
* resolve ENS names
* logos from ens
* fix the lint errors
* some refactoring to better support using a the library provider from the user for resolving ENS names
* load list info from the list url for the introduction page
* make it slightly harder to remove a list
* minor clean up, some help text and links
* remove icon from list update popup
* show added/removed tokens
* add GA everywhere, don't debounce contenthash lookups
* show tags
* fix tag key
* tag display, list rendering, needs optimization
* fix list fetching in firefox, style issue in safari
* sort the lists, clean up styling
* use client provider when possible
* show token warning for url loaded tokens
* improve the warning modal
* some refactoring to fix the list fetching on networks other than mainnet
* fix tests
* some minor improvements
* increase timeout to maybe fix integration tests which pass locally
* build for tests using the dev network url
* reset the lists if we deleted the other two copies
* improve how we handle updating the default list of lists
* fix integration test
* Update token list selection styles
* fix external links, reuse the on click outside code, show add errors
* show the list origin instead of the full url
* fix update list link
* show host instead of hostname
do not automatically dismiss major version upgrades for lists
* fix link to tokenlists.org
* add uma
* clean up styling in list rows
* bump token list version
* bump token list version again
* hover symbol to see currency name
* bump version
* add cmc lists, dharma list
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-08-26 08:46:21 -05:00
|
|
|
"@types/react-virtualized-auto-sizer": "^1.0.0",
|
2020-05-23 12:06:16 -04:00
|
|
|
"@types/react-window": "^1.8.2",
|
2021-02-16 17:33:55 -05:00
|
|
|
"@types/rebass": "^4.0.7",
|
2020-07-20 06:48:42 -05:00
|
|
|
"@types/styled-components": "^5.1.0",
|
2020-05-21 15:47:52 -04:00
|
|
|
"@types/testing-library__cypress": "^5.0.5",
|
2021-05-11 18:09:01 +02:00
|
|
|
"@types/ua-parser-js": "^0.7.35",
|
2020-09-24 11:18:57 -05:00
|
|
|
"@types/wcag-contrast": "^3.0.0",
|
2021-04-14 10:12:35 -04:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.1.0",
|
|
|
|
"@typescript-eslint/parser": "^4.1.0",
|
2020-09-24 11:18:57 -05:00
|
|
|
"@uniswap/governance": "^1.0.2",
|
|
|
|
"@uniswap/liquidity-staker": "^1.0.2",
|
|
|
|
"@uniswap/merkle-distributor": "1.0.1",
|
2021-12-03 06:29:39 -05:00
|
|
|
"@uniswap/redux-multicall": "^1.0.0",
|
2021-12-16 14:44:03 -05:00
|
|
|
"@uniswap/router-sdk": "^1.0.1",
|
2021-08-05 14:43:02 -04:00
|
|
|
"@uniswap/sdk-core": "^3.0.1",
|
2021-12-16 14:44:03 -05:00
|
|
|
"@uniswap/smart-order-router": "^2.5.4",
|
2021-10-27 07:15:50 -04:00
|
|
|
"@uniswap/token-lists": "^1.0.0-beta.27",
|
2020-05-05 16:36:22 -04:00
|
|
|
"@uniswap/v2-core": "1.0.0",
|
2020-06-05 18:40:02 -04:00
|
|
|
"@uniswap/v2-periphery": "^1.1.0-beta.0",
|
2021-12-16 14:44:03 -05:00
|
|
|
"@uniswap/v2-sdk": "^3.0.1",
|
2021-05-04 12:23:00 -05:00
|
|
|
"@uniswap/v3-core": "1.0.0",
|
2021-07-02 12:25:37 -05:00
|
|
|
"@uniswap/v3-periphery": "^1.1.1",
|
2021-11-12 09:46:26 -05:00
|
|
|
"@uniswap/v3-sdk": "^3.7.1",
|
2020-05-07 19:53:08 -04:00
|
|
|
"@web3-react/core": "^6.0.9",
|
|
|
|
"@web3-react/fortmatic-connector": "^6.0.9",
|
|
|
|
"@web3-react/injected-connector": "^6.0.7",
|
|
|
|
"@web3-react/portis-connector": "^6.0.9",
|
2021-08-13 11:01:56 -04:00
|
|
|
"@web3-react/walletconnect-connector": "^7.0.2-alpha.0",
|
2021-11-03 08:56:54 -06:00
|
|
|
"@web3-react/walletlink-connector": "^6.2.8",
|
2020-07-25 10:41:03 -05:00
|
|
|
"ajv": "^6.12.3",
|
2021-09-15 11:03:12 -07:00
|
|
|
"array.prototype.flat": "^1.2.4",
|
|
|
|
"array.prototype.flatmap": "^1.2.4",
|
feat(lists): allow selecting and adding token lists (#1023)
* more list stuff
Use the selected list instead of the default list, but also use the default list
start list selection code
* move token warning to a modal, fix the install issue
* add/remove/enter key
* handle enter on currency select for ETHER
* change slippage tolerance to be a slider
* make ui closer to the mocks
* commit slider changes
* back to tabs
* copy changes
* bump list version
* some styling for the list select
* bump uniswap default list version
* use contract calls to get ens names and addresses
* show list logo
* fix failing integration test
* .eth.link
* list introduction screen
* remove showSendWithSwap
* fix integration and unit tests
* resolve ENS names
* logos from ens
* fix the lint errors
* some refactoring to better support using a the library provider from the user for resolving ENS names
* load list info from the list url for the introduction page
* make it slightly harder to remove a list
* minor clean up, some help text and links
* remove icon from list update popup
* show added/removed tokens
* add GA everywhere, don't debounce contenthash lookups
* show tags
* fix tag key
* tag display, list rendering, needs optimization
* fix list fetching in firefox, style issue in safari
* sort the lists, clean up styling
* use client provider when possible
* show token warning for url loaded tokens
* improve the warning modal
* some refactoring to fix the list fetching on networks other than mainnet
* fix tests
* some minor improvements
* increase timeout to maybe fix integration tests which pass locally
* build for tests using the dev network url
* reset the lists if we deleted the other two copies
* improve how we handle updating the default list of lists
* fix integration test
* Update token list selection styles
* fix external links, reuse the on click outside code, show add errors
* show the list origin instead of the full url
* fix update list link
* show host instead of hostname
do not automatically dismiss major version upgrades for lists
* fix link to tokenlists.org
* add uma
* clean up styling in list rows
* bump token list version
* bump token list version again
* hover symbol to see currency name
* bump version
* add cmc lists, dharma list
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-08-26 08:46:21 -05:00
|
|
|
"cids": "^1.0.0",
|
2019-05-30 16:42:25 -04:00
|
|
|
"copy-to-clipboard": "^3.2.0",
|
2021-10-04 11:01:05 -07:00
|
|
|
"cross-env": "^7.0.3",
|
2021-07-13 12:54:49 -07:00
|
|
|
"cypress": "^7.7.0",
|
2021-07-07 16:39:44 -07:00
|
|
|
"d3": "^7.0.0",
|
2021-02-13 15:05:09 -05:00
|
|
|
"eslint": "^7.11.0",
|
2020-05-21 15:47:52 -04:00
|
|
|
"eslint-config-prettier": "^6.11.0",
|
|
|
|
"eslint-plugin-prettier": "^3.1.3",
|
|
|
|
"eslint-plugin-react": "^7.19.0",
|
|
|
|
"eslint-plugin-react-hooks": "^4.0.0",
|
2021-09-21 18:21:28 -05:00
|
|
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
2021-11-11 09:53:14 -06:00
|
|
|
"eslint-plugin-unused-imports": "^2.0.0",
|
2021-08-31 07:47:06 -07:00
|
|
|
"ethers": "^5.4.6",
|
2021-10-25 08:41:55 -04:00
|
|
|
"firebase": "^9.1.3",
|
2021-06-28 15:12:58 -07:00
|
|
|
"graphql": "^15.5.0",
|
|
|
|
"graphql-request": "^3.4.0",
|
2020-06-30 16:47:16 -04:00
|
|
|
"inter-ui": "^3.13.1",
|
2021-07-26 10:41:08 -07:00
|
|
|
"jest-styled-components": "^7.0.5",
|
2021-10-04 11:01:05 -07:00
|
|
|
"microbundle": "^0.13.3",
|
2021-07-01 11:08:53 -07:00
|
|
|
"ms.macro": "^2.0.0",
|
2021-04-14 10:12:35 -04:00
|
|
|
"multicodec": "^3.0.1",
|
|
|
|
"multihashes": "^4.0.2",
|
2021-09-27 13:07:09 -07:00
|
|
|
"node-vibrant": "^3.2.1-alpha.1",
|
2019-05-30 16:42:25 -04:00
|
|
|
"polished": "^3.3.2",
|
2021-09-02 02:17:49 +08:00
|
|
|
"polyfill-object.fromentries": "^1.0.1",
|
2021-02-16 03:31:16 -05:00
|
|
|
"prettier": "^2.2.1",
|
2020-05-16 17:55:22 -04:00
|
|
|
"qs": "^6.9.4",
|
2021-02-13 15:05:09 -05:00
|
|
|
"react": "^17.0.1",
|
2020-09-24 11:18:57 -05:00
|
|
|
"react-confetti": "^6.0.0",
|
2021-10-04 11:01:05 -07:00
|
|
|
"react-cosmos": "^5.6.3",
|
2021-02-13 15:05:09 -05:00
|
|
|
"react-dom": "^17.0.1",
|
2020-04-30 21:14:29 -04:00
|
|
|
"react-feather": "^2.0.8",
|
2019-04-15 20:06:39 -04:00
|
|
|
"react-ga": "^2.5.7",
|
2021-07-06 17:05:19 -04:00
|
|
|
"react-is": "^17.0.2",
|
2020-09-24 11:18:57 -05:00
|
|
|
"react-markdown": "^4.3.1",
|
2020-05-16 10:44:26 -04:00
|
|
|
"react-popper": "^2.2.3",
|
2021-02-13 15:05:09 -05:00
|
|
|
"react-redux": "^7.2.2",
|
2019-04-15 14:05:54 -04:00
|
|
|
"react-router-dom": "^5.0.0",
|
2021-04-14 10:12:35 -04:00
|
|
|
"react-scripts": "^4.0.3",
|
2019-11-25 17:56:31 -05:00
|
|
|
"react-spring": "^8.0.27",
|
|
|
|
"react-use-gesture": "^6.0.14",
|
feat(lists): allow selecting and adding token lists (#1023)
* more list stuff
Use the selected list instead of the default list, but also use the default list
start list selection code
* move token warning to a modal, fix the install issue
* add/remove/enter key
* handle enter on currency select for ETHER
* change slippage tolerance to be a slider
* make ui closer to the mocks
* commit slider changes
* back to tabs
* copy changes
* bump list version
* some styling for the list select
* bump uniswap default list version
* use contract calls to get ens names and addresses
* show list logo
* fix failing integration test
* .eth.link
* list introduction screen
* remove showSendWithSwap
* fix integration and unit tests
* resolve ENS names
* logos from ens
* fix the lint errors
* some refactoring to better support using a the library provider from the user for resolving ENS names
* load list info from the list url for the introduction page
* make it slightly harder to remove a list
* minor clean up, some help text and links
* remove icon from list update popup
* show added/removed tokens
* add GA everywhere, don't debounce contenthash lookups
* show tags
* fix tag key
* tag display, list rendering, needs optimization
* fix list fetching in firefox, style issue in safari
* sort the lists, clean up styling
* use client provider when possible
* show token warning for url loaded tokens
* improve the warning modal
* some refactoring to fix the list fetching on networks other than mainnet
* fix tests
* some minor improvements
* increase timeout to maybe fix integration tests which pass locally
* build for tests using the dev network url
* reset the lists if we deleted the other two copies
* improve how we handle updating the default list of lists
* fix integration test
* Update token list selection styles
* fix external links, reuse the on click outside code, show add errors
* show the list origin instead of the full url
* fix update list link
* show host instead of hostname
do not automatically dismiss major version upgrades for lists
* fix link to tokenlists.org
* add uma
* clean up styling in list rows
* bump token list version
* bump token list version again
* hover symbol to see currency name
* bump version
* add cmc lists, dharma list
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-08-26 08:46:21 -05:00
|
|
|
"react-virtualized-auto-sizer": "^1.0.2",
|
2020-05-23 12:06:16 -04:00
|
|
|
"react-window": "^1.8.5",
|
2020-02-26 12:00:59 -05:00
|
|
|
"rebass": "^4.0.7",
|
2020-08-27 10:21:51 -05:00
|
|
|
"redux-localstorage-simple": "^2.3.1",
|
2021-03-23 21:45:58 -04:00
|
|
|
"serve": "^11.3.2",
|
2020-05-21 15:47:52 -04:00
|
|
|
"start-server-and-test": "^1.11.0",
|
2021-07-06 17:05:19 -04:00
|
|
|
"styled-components": "^5.3.0",
|
2021-05-11 16:43:08 -05:00
|
|
|
"typechain": "^5.0.0",
|
2021-03-30 03:51:37 -04:00
|
|
|
"typescript": "^4.2.3",
|
2021-05-11 18:09:01 +02:00
|
|
|
"ua-parser-js": "^0.7.28",
|
2020-09-24 11:18:57 -05:00
|
|
|
"use-count-up": "^2.2.5",
|
2021-12-16 14:44:03 -05:00
|
|
|
"use-resize-observer": "^8.0.0",
|
2021-03-23 21:45:58 -04:00
|
|
|
"wcag-contrast": "^3.0.0",
|
2021-09-17 09:14:45 -07:00
|
|
|
"web-vitals": "^2.1.0",
|
2021-03-23 21:45:58 -04:00
|
|
|
"workbox-core": "^6.1.0",
|
|
|
|
"workbox-precaching": "^6.1.0",
|
2021-08-25 14:46:56 -05:00
|
|
|
"workbox-routing": "^6.1.0"
|
2020-08-06 18:18:43 -05:00
|
|
|
},
|
2021-08-18 12:26:00 -05:00
|
|
|
"resolutions": {
|
2021-09-17 15:56:08 -05:00
|
|
|
"@walletconnect/ethereum-provider": "1.6.5"
|
2021-08-18 12:26:00 -05:00
|
|
|
},
|
2017-10-28 03:55:27 -04:00
|
|
|
"scripts": {
|
2021-11-18 05:00:37 +00:00
|
|
|
"contracts:compile:abi": "typechain --target ethers-v5 --out-dir src/abis/types \"./src/abis/**/*.json\"",
|
|
|
|
"contracts:compile:v3": "typechain --target ethers-v5 --out-dir src/types/v3 \"./node_modules/@uniswap/**/artifacts/contracts/**/*.json\"",
|
2021-09-24 09:24:03 -07:00
|
|
|
"contracts:compile": "yarn contracts:compile:abi && yarn contracts:compile:v3",
|
2021-06-28 16:43:24 -07:00
|
|
|
"graphql:generate": "graphql-codegen --config codegen.yml",
|
2021-08-13 14:02:59 -07:00
|
|
|
"prei18n:extract": "touch src/locales/en-US.po",
|
2021-09-24 09:24:03 -07:00
|
|
|
"i18n:extract": "lingui extract --locale en-US",
|
|
|
|
"i18n:compile": "yarn i18n:extract && lingui compile",
|
|
|
|
"postinstall": "yarn contracts:compile && yarn graphql:generate && yarn i18n:compile",
|
|
|
|
"start": "react-scripts start",
|
|
|
|
"build": "react-scripts build",
|
|
|
|
"test": "react-scripts test --env=./custom-test-env.js",
|
2021-10-04 11:01:05 -07:00
|
|
|
"test:e2e": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'",
|
|
|
|
"bundle": "microbundle --tsconfig tsconfig.lib.json src/lib/index.tsx --format esm,cjs",
|
|
|
|
"cosmos": "open http://localhost:5000 && cross-env FAST_REFRESH=false cosmos"
|
2019-04-15 12:56:40 -04:00
|
|
|
},
|
2019-05-14 10:19:09 -04:00
|
|
|
"browserslist": {
|
|
|
|
"production": [
|
|
|
|
">0.2%",
|
|
|
|
"not dead",
|
|
|
|
"not op_mini all"
|
|
|
|
],
|
|
|
|
"development": [
|
|
|
|
"last 1 chrome version",
|
|
|
|
"last 1 firefox version",
|
|
|
|
"last 1 safari version"
|
|
|
|
]
|
|
|
|
},
|
2021-05-04 12:23:00 -05:00
|
|
|
"license": "GPL-3.0-or-later",
|
|
|
|
"dependencies": {}
|
2020-05-23 12:06:16 -04:00
|
|
|
}
|