chain-registry 0.0.20 → 0.0.21

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,14 @@
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.21 (2022-07-10)
7
+
8
+ **Note:** Version bump only for package chain-registry
9
+
10
+
11
+
12
+
13
+
6
14
  ## 0.0.20 (2022-07-10)
7
15
 
8
16
  **Note:** Version bump only for package chain-registry
package/README.md CHANGED
@@ -9,4 +9,45 @@ The npm package for the Official Cosmos [chain registry](https://github.com/cosm
9
9
 
10
10
  ```
11
11
  npm install chain-registry
12
- ```
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
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chain-registry",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "Cosmos chain registry ⚛️",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/cosmology-finance/chain-registry/tree/master/packages/chain-registry#readme",
@@ -65,5 +65,5 @@
65
65
  "dependencies": {
66
66
  "@babel/runtime": "^7.18.3"
67
67
  },
68
- "gitHead": "0ccf7c50fba03920263396530e40fe12e9bbc397"
68
+ "gitHead": "8bf738de3ea4b1ac4d66e313b35840f76026e046"
69
69
  }