uniswap-interface-uncensored/src/constants/lists.ts

37 lines
1.5 KiB
TypeScript
Raw Normal View History

Improvement(lists): Switch to multiple active lists (#1237) * basic support for multiple active lists * start search across inactive lists * store card before list update * basic import flow for inactive tokens * update supported lists * update import flow for address pasting * basic mvp * hide filter if no results * update min heights * update manage view, index tokens on page load * start routing fix for multi hops * switch to input amount comparison on exactOut * start list import view * updated list UI, token search updates, list import flow, surpress popups and warnings * add unsupported tokens * show warning if logged out * update to opyn list * show token details on warning; * make percent logic more clear * remove uneeded comaprisons * move logic to functions for testing * test updates * update list reducer tests * remove unused locals * code cleanup * add unsupported local list * add multi hop disable switch * add GA * fix bug to return multihop no single * update swap details * copy updates * Visual refinements * Further tweaks * copy updates, actual list order * Move settings button * Update all trade views with settings cog * Add better tips, remove darkmode toggle from dropdown * Clean up routing UI * UI tweaks * minor tweaks * copy updates * add local default list, use existing function for trade comparison, disable v1 helper, show inactive/active at once * updated inactive view * remove slippage fix * update output amount return * center button, update search to character threshold * reset add state on back navigation * style tweak on add button * fix bug on search results Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2021-01-14 19:20:50 +03:00
const AAVE_LIST = 'tokenlist.aave.eth'
const BA_LIST = 'https://raw.githubusercontent.com/The-Blockchain-Association/sec-notice-list/master/ba-sec-list.json'
Improvement(lists): Switch to multiple active lists (#1237) * basic support for multiple active lists * start search across inactive lists * store card before list update * basic import flow for inactive tokens * update supported lists * update import flow for address pasting * basic mvp * hide filter if no results * update min heights * update manage view, index tokens on page load * start routing fix for multi hops * switch to input amount comparison on exactOut * start list import view * updated list UI, token search updates, list import flow, surpress popups and warnings * add unsupported tokens * show warning if logged out * update to opyn list * show token details on warning; * make percent logic more clear * remove uneeded comaprisons * move logic to functions for testing * test updates * update list reducer tests * remove unused locals * code cleanup * add unsupported local list * add multi hop disable switch * add GA * fix bug to return multihop no single * update swap details * copy updates * Visual refinements * Further tweaks * copy updates, actual list order * Move settings button * Update all trade views with settings cog * Add better tips, remove darkmode toggle from dropdown * Clean up routing UI * UI tweaks * minor tweaks * copy updates * add local default list, use existing function for trade comparison, disable v1 helper, show inactive/active at once * updated inactive view * remove slippage fix * update output amount return * center button, update search to character threshold * reset add state on back navigation * style tweak on add button * fix bug on search results Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2021-01-14 19:20:50 +03:00
const CMC_ALL_LIST = 'defi.cmc.eth'
const CMC_STABLECOIN = 'stablecoin.cmc.eth'
const COINGECKO_LIST = 'https://tokens.coingecko.com/uniswap/all.json'
const COMPOUND_LIST = 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json'
const GEMINI_LIST = 'https://www.gemini.com/uniswap/manifest.json'
const KLEROS_LIST = 't2crtokens.eth'
export const OPTIMISM_LIST = 'https://static.optimism.io/optimism.tokenlist.json'
const ROLL_LIST = 'https://app.tryroll.com/tokens.json'
const SET_LIST = 'https://raw.githubusercontent.com/SetProtocol/uniswap-tokenlist/main/set.tokenlist.json'
const UMA_LIST = 'https://umaproject.org/uma.tokenlist.json'
const WRAPPED_LIST = 'wrapped.tokensoft.eth'
// used to mark unsupported tokens, these are hosted lists of unsupported tokens
export const UNSUPPORTED_LIST_URLS: string[] = [BA_LIST]
Improvement(lists): Switch to multiple active lists (#1237) * basic support for multiple active lists * start search across inactive lists * store card before list update * basic import flow for inactive tokens * update supported lists * update import flow for address pasting * basic mvp * hide filter if no results * update min heights * update manage view, index tokens on page load * start routing fix for multi hops * switch to input amount comparison on exactOut * start list import view * updated list UI, token search updates, list import flow, surpress popups and warnings * add unsupported tokens * show warning if logged out * update to opyn list * show token details on warning; * make percent logic more clear * remove uneeded comaprisons * move logic to functions for testing * test updates * update list reducer tests * remove unused locals * code cleanup * add unsupported local list * add multi hop disable switch * add GA * fix bug to return multihop no single * update swap details * copy updates * Visual refinements * Further tweaks * copy updates, actual list order * Move settings button * Update all trade views with settings cog * Add better tips, remove darkmode toggle from dropdown * Clean up routing UI * UI tweaks * minor tweaks * copy updates * add local default list, use existing function for trade comparison, disable v1 helper, show inactive/active at once * updated inactive view * remove slippage fix * update output amount return * center button, update search to character threshold * reset add state on back navigation * style tweak on add button * fix bug on search results Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2021-01-14 19:20:50 +03:00
// lower index == higher priority for token import
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 16:46:21 +03:00
export const DEFAULT_LIST_OF_LISTS: string[] = [
Improvement(lists): Switch to multiple active lists (#1237) * basic support for multiple active lists * start search across inactive lists * store card before list update * basic import flow for inactive tokens * update supported lists * update import flow for address pasting * basic mvp * hide filter if no results * update min heights * update manage view, index tokens on page load * start routing fix for multi hops * switch to input amount comparison on exactOut * start list import view * updated list UI, token search updates, list import flow, surpress popups and warnings * add unsupported tokens * show warning if logged out * update to opyn list * show token details on warning; * make percent logic more clear * remove uneeded comaprisons * move logic to functions for testing * test updates * update list reducer tests * remove unused locals * code cleanup * add unsupported local list * add multi hop disable switch * add GA * fix bug to return multihop no single * update swap details * copy updates * Visual refinements * Further tweaks * copy updates, actual list order * Move settings button * Update all trade views with settings cog * Add better tips, remove darkmode toggle from dropdown * Clean up routing UI * UI tweaks * minor tweaks * copy updates * add local default list, use existing function for trade comparison, disable v1 helper, show inactive/active at once * updated inactive view * remove slippage fix * update output amount return * center button, update search to character threshold * reset add state on back navigation * style tweak on add button * fix bug on search results Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2021-01-14 19:20:50 +03:00
COMPOUND_LIST,
AAVE_LIST,
CMC_ALL_LIST,
CMC_STABLECOIN,
Improvement(lists): Switch to multiple active lists (#1237) * basic support for multiple active lists * start search across inactive lists * store card before list update * basic import flow for inactive tokens * update supported lists * update import flow for address pasting * basic mvp * hide filter if no results * update min heights * update manage view, index tokens on page load * start routing fix for multi hops * switch to input amount comparison on exactOut * start list import view * updated list UI, token search updates, list import flow, surpress popups and warnings * add unsupported tokens * show warning if logged out * update to opyn list * show token details on warning; * make percent logic more clear * remove uneeded comaprisons * move logic to functions for testing * test updates * update list reducer tests * remove unused locals * code cleanup * add unsupported local list * add multi hop disable switch * add GA * fix bug to return multihop no single * update swap details * copy updates * Visual refinements * Further tweaks * copy updates, actual list order * Move settings button * Update all trade views with settings cog * Add better tips, remove darkmode toggle from dropdown * Clean up routing UI * UI tweaks * minor tweaks * copy updates * add local default list, use existing function for trade comparison, disable v1 helper, show inactive/active at once * updated inactive view * remove slippage fix * update output amount return * center button, update search to character threshold * reset add state on back navigation * style tweak on add button * fix bug on search results Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2021-01-14 19:20:50 +03:00
UMA_LIST,
WRAPPED_LIST,
SET_LIST,
ROLL_LIST,
COINGECKO_LIST,
KLEROS_LIST,
OPTIMISM_LIST,
GEMINI_LIST,
2021-02-16 11:46:17 +03:00
...UNSUPPORTED_LIST_URLS, // need to load unsupported tokens as well
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 16:46:21 +03:00
]
Improvement(lists): Switch to multiple active lists (#1237) * basic support for multiple active lists * start search across inactive lists * store card before list update * basic import flow for inactive tokens * update supported lists * update import flow for address pasting * basic mvp * hide filter if no results * update min heights * update manage view, index tokens on page load * start routing fix for multi hops * switch to input amount comparison on exactOut * start list import view * updated list UI, token search updates, list import flow, surpress popups and warnings * add unsupported tokens * show warning if logged out * update to opyn list * show token details on warning; * make percent logic more clear * remove uneeded comaprisons * move logic to functions for testing * test updates * update list reducer tests * remove unused locals * code cleanup * add unsupported local list * add multi hop disable switch * add GA * fix bug to return multihop no single * update swap details * copy updates * Visual refinements * Further tweaks * copy updates, actual list order * Move settings button * Update all trade views with settings cog * Add better tips, remove darkmode toggle from dropdown * Clean up routing UI * UI tweaks * minor tweaks * copy updates * add local default list, use existing function for trade comparison, disable v1 helper, show inactive/active at once * updated inactive view * remove slippage fix * update output amount return * center button, update search to character threshold * reset add state on back navigation * style tweak on add button * fix bug on search results Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2021-01-14 19:20:50 +03:00
// default lists to be 'active' aka searched across
export const DEFAULT_ACTIVE_LIST_URLS: string[] = [GEMINI_LIST]