Closed keone closed 2 years ago
the addition of https://github.com/certusone/wormhole-token-list/blob/main/src/utils/gen_data.py halfway addresses this (adds a mapping of source to dest addresses).
still need to add mapping of dest addresses to markets
tokenMarkets[x][y][TOK]['markets'] = ['uniswap']
says: tokenTOK
starting from chain idx
, sent to chain idy
, will be tradeable onuniswap
.this requires a lot of duplicate information because, for example, the below 4 tokens are
UST
on Solana, Ethereum, Terra, and BSC, and the below states the fact that UST:it would be a lot less verbose to just have:
tokens
list the native tokens for each chain, and then for each native token, the addresses on all other chains (this part can be autogenerated)tokenMarkets
lists the markets (on every chain) for each native tokenfor example the above information would be encoded with