xchainjs-lib icon indicating copy to clipboard operation
xchainjs-lib copied to clipboard

[xchain-cosmos] Get readable `ticker` for IBC assets from `denom`

Open veado opened this issue 3 years ago • 0 comments

Issue

#599 supportes IBC assets. However, ticker is still empty due the lack of parsing denom in getAsset (code) properly.

Todo

Use a third party API to get ticker of any IBC asset. One (possible) resource to get asset data is https://github.com/cosmostation/cosmostation_token_resource/tree/master/assets/v2

Example

BTSG - Bitsong (https://github.com/bitsongofficial/docs.bitsong.io/blob/main/relayer.md#official-bitsong-ibc-channels)

  • denom = ibc/E7D5E9D0E9BF8B7354929A817DD28D4D017E745F638954764AA88522A7A409EC
  • ticker = BTSG

veado avatar Jun 19 '22 18:06 veado