As a user I want to call an API to get cross-chain info such as supported tokens, chains
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?
P3 - Nice to have
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!
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)