cosmology-tech / starship

A k8s based unified development environment for Cosmos Ecosystem (and beyond)
https://docs.cosmology.zone/starship
MIT License
74 stars 24 forks source link

feature: `registry` fetch asset information from chain registry #239

Open Anmol1696 opened 1 year ago

Anmol1696 commented 1 year ago

Related to: #157

Overview

Currently assets are not properly structured, and are incorrect. registry service should be able to fetch assetList of a denom from base and populate itself.

Proposal

  1. Fetch infomation directly from chain registry via call to github chain-registry
  2. Use a go client, which already has chain information baked in. Similar to the npm package of chain-registry
  3. Mention information in default.yaml

Default

If the chain or denom does not exist on chain-registry, we keep using the current default asset.

Anmol1696 commented 1 year ago

Can we do both? Fetch from defaults.yaml file, if not specified, then fetch from chain registry