swaponline / swap.io-networks

A repo with static network, coin, token definitions.
7 stars 10 forks source link

Create our own tokenlist #1

Open vladiuz1 opened 3 years ago

vladiuz1 commented 3 years ago

UDPATED... See 1st comment to this ticket: https://github.com/swaponline/swap.io-networks/issues/1#issuecomment-890929730

We need to create a tokenlist compliant with tokenlists.org / https://github.com/Uniswap/token-lists

The list must include multi-chain tokens. Tokens in different chains with matching SYMBOLs must be considered equivalents... e.g. USDC with chainId 56 and chainId 1 are the same USDC but on different chains.

https://gateway.pinata.cloud/ipfs/QmdKy1K5TMzSHncLzUXUJdvKi1tHRmJocDRfmCXxW5mshS

Based on TL compliant tokenlist we may or may not need our own format. E.g. hosted in /data/coins.json or some other format.

To start with, we can use some else's tokenlist as a base. We need to keep in mind that our tokenlists must reference logos hosted in our frontend repo.

The logos must be SVG

The job of mainterner must be converting the logos to SVG format using tools like sketch with Potrace plugin, or some other vector converter

vladiuz1 commented 3 years ago

Instead of having our own tokenlist, we must:

  1. Appoint maintainer of the coinlist
  2. Clone the trustwallet repo
  3. Create our own format similar to that of trustwallet, but with token symbols added to all subfolders... So directory structure is more manageable.
  4. Create build scripts, that will update our list from the trustwallet repo, in developer-friendly manner. It should find conficts (coins that were changed on our side, but don't match the coins in trustwallet repo).

We should also need to move to SVG coin logos. A good repo for coin logos is here:

https://github.com/spothq/cryptocurrency-icons

VitaliyShulik commented 3 years ago

xDai tokens lists: https://tokens.honeyswap.org/

Avalanche tokens lists: https://raw.githubusercontent.com/pangolindex/tokenlists/main/aeb.tokenlist.json

Polygon tokens lists: https://unpkg.com/quickswap-default-token-list/build/quickswap-default.tokenlist.json https://tokens.coingecko.com/polygon-pos/all.json https://storageapi.fleek.co/tomafrench-team-bucket/polygon.listed.tokenlist.json

ETH tokens lists: https://tokens.coingecko.com/uniswap/all.json https://t2crtokens.eth.link/ https://uniswap.mycryptoapi.com/ https://zapper.fi/api/token-list https://tokenlist.zerion.eth.link/

UNISWAP TOKEN LISTS https://github.com/Uniswap/tokenlists-org/blob/master/src/token-lists.json

VitaliyShulik commented 3 years ago

Solana tokens list: https://github.com/solana-labs/token-list/blob/main/src/tokens/solana.tokenlist.json