Skip to content

cosmology-tech/chain-registry

Repository files navigation

chain-registry

The npm package for the Official Cosmos chain registry

npm install chain-registry

example

import { assets, chains, ibc } from 'chain-registry';

const asset = assets.find(({chain_name})=>chain_name==='osmosis');

console.log(asset);

will output:

{
  '$schema': '../assetlist.schema.json',
  chain_name: 'osmosis',
  assets: [
    {
      description: 'The native token of Osmosis',
      denom_units: [Array],
      base: 'uosmo',
      name: 'Osmosis',
      display: 'osmo',
      symbol: 'OSMO',
      logo_URIs: [Object],
      coingecko_id: 'osmosis'
    },
    {
      denom_units: [Array],
      base: 'uion',
      name: 'Ion',
      display: 'ion',
      symbol: 'ION',
      logo_URIs: [Object],
      coingecko_id: 'ion'
    }
  ]
}

packages

An npm module for the Official chain-registry for the Cosmos ⚛️

Keplr integration for the chain-registry returning keplr's ChainInfo type from @chain-registry/types Chain type.

Asset lists for the Cosmos ⚛️

Utility functions for the chain-registry

Chain Registry info for Osmosis, including asset lists.

Chain Registry info for Juno, including asset lists.

Developing

Checkout the repository and bootstrap the yarn workspace:

# Clone the repo.
git clone https://github.com/cosmology-tech/chain-registry
yarn
yarn bootstrap

Building

yarn build