hyperweb-io / hyperweb-io/cosmology-cli

DEPRECATING this repo — use `osmojs`, `@osmonauts/math` and `chain-registry` instead

Open
#34 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
50
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Hi! Cosmology/core is becoming deprecated soon, as the asset list is "baked in" and the code is legacy.

An ideal workflow is to use `osmojs` and `@osmonauts/math`, which we have [examples as shown here](https://github.com/cosmology-tech/create-cosmos-app/tree/main/examples/swap-tokens) and in a [video/tweet here](https://twitter.com/cosmology_tech/status/1657044367738130433?s=20)

then you can use the `chain-registry` for loading assets, and you can use `@chain-registry/osmosis` for pre-baked assets, or `@chain-registry/utils` to build an asset list dynamically:

```
import { ibc, assets } from 'chain-registry';
import { getAssetLists } from '@chain-registry/utils';

const list = getAssetLists('osmosis', ibc, assets);
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.