monorepo icon indicating copy to clipboard operation
monorepo copied to clipboard

As a user I want to call an API to get cross-chain info such as supported tokens, chains

Open rhlsthrm opened this issue 3 years ago • 2 comments

Problem Currently parse out of JSON with helpers, but is a little cumbersome

Ideas to solve this We can serve the crossChain.json from an API which would be better than the current way of pulling JSON in.

Acceptance Criteria [ ] The same info can be accessed via an API [ ]

Other Where do we serve this out of? Cartographer?

rhlsthrm avatar Mar 29 '22 07:03 rhlsthrm

P3 - Nice to have

alexwhte avatar Jun 01 '22 15:06 alexwhte

Also suggest to add information about liquidity for each supported chain for such API, for ex. mapping like this:

{
  chain_name: [
      { token_info, balance },
      ....
  ],
  .....
}

It will be good opportunity to build better UX for users!

ko1ebayev avatar Sep 05 '22 11:09 ko1ebayev

the liquidity changes quite quickly, while the token information would only have to be loaded once.

if we want to include liquidity information, it should be at a different endpoint (and likely this should just use the sdk under the hood)

LayneHaber avatar Jan 06 '23 02:01 LayneHaber