chain-registry 0.0.19 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 0.0.22 (2022-07-12)
7
+
8
+ **Note:** Version bump only for package chain-registry
9
+
10
+
11
+
12
+
13
+
14
+ ## 0.0.21 (2022-07-10)
15
+
16
+ **Note:** Version bump only for package chain-registry
17
+
18
+
19
+
20
+
21
+
22
+ ## 0.0.20 (2022-07-10)
23
+
24
+ **Note:** Version bump only for package chain-registry
25
+
26
+
27
+
28
+
29
+
6
30
  ## 0.0.19 (2022-07-10)
7
31
 
8
32
  **Note:** Version bump only for package chain-registry
package/README.md CHANGED
@@ -1,7 +1,53 @@
1
- # cosmos chain registry
1
+ # chain-registry
2
2
 
3
- the npm package for https://github.com/cosmos/chain-registry
3
+ The npm package for the Official Cosmos [chain registry](https://github.com/cosmos/chain-registry)
4
+
5
+ <p align="center" width="100%">
6
+ <a href="https://github.com/cosmology-finance/chain-registry/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
7
+ <a href="https://www.npmjs.com/package/chain-registry"><img height="20" src="https://img.shields.io/github/package-json/v/cosmology-finance/chain-registry?filename=packages%2Fchain-registry%2Fpackage.json"></a>
8
+ </p>
4
9
 
5
10
  ```
6
11
  npm install chain-registry
7
- ```
12
+ ```
13
+
14
+ ## example
15
+
16
+ ```js
17
+ import { assets, chains, ibc } from 'chain-registry';
18
+
19
+ const asset = assets.find(({chain_name})=>chain_name==='osmosis');
20
+
21
+ console.log(asset);
22
+
23
+ ```
24
+ will output:
25
+
26
+ ```
27
+ > {
28
+ '$schema': '../assetlist.schema.json',
29
+ chain_name: 'osmosis',
30
+ assets: [
31
+ {
32
+ description: 'The native token of Osmosis',
33
+ denom_units: [Array],
34
+ base: 'uosmo',
35
+ name: 'Osmosis',
36
+ display: 'osmo',
37
+ symbol: 'OSMO',
38
+ logo_URIs: [Object],
39
+ coingecko_id: 'osmosis'
40
+ },
41
+ {
42
+ denom_units: [Array],
43
+ base: 'uion',
44
+ name: 'Ion',
45
+ display: 'ion',
46
+ symbol: 'ION',
47
+ logo_URIs: [Object],
48
+ coingecko_id: 'ion'
49
+ }
50
+ ]
51
+ }
52
+ ```
53
+