chain-registry 0.3.1 → 0.5.0

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.5.0](https://github.com/cosmology-tech/chain-registry/compare/chain-registry@0.4.1...chain-registry@0.5.0) (2022-08-13)
7
+
8
+ **Note:** Version bump only for package chain-registry
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.4.1](https://github.com/cosmology-tech/chain-registry/compare/chain-registry@0.4.0...chain-registry@0.4.1) (2022-08-13)
15
+
16
+ **Note:** Version bump only for package chain-registry
17
+
18
+
19
+
20
+
21
+
22
+ # [0.4.0](https://github.com/cosmology-tech/chain-registry/compare/chain-registry@0.3.1...chain-registry@0.4.0) (2022-08-13)
23
+
24
+ **Note:** Version bump only for package chain-registry
25
+
26
+
27
+
28
+
29
+
6
30
  ## [0.3.1](https://github.com/cosmology-tech/chain-registry/compare/chain-registry@0.3.0...chain-registry@0.3.1) (2022-08-13)
7
31
 
8
32
  **Note:** Version bump only for package chain-registry
package/README.md CHANGED
@@ -1,12 +1,21 @@
1
1
  # chain-registry
2
2
 
3
- The npm package for the Official Cosmos [chain registry](https://github.com/cosmos/chain-registry)
3
+ <p align="center" width="100%">
4
+ <img height="90" src="https://user-images.githubusercontent.com/545047/184277736-69fef40f-1991-4c0e-b979-da125cf7fd8f.svg" />
5
+ </p>
4
6
 
5
7
  <p align="center" width="100%">
8
+
9
+ <a href="https://github.com/cosmology-tech/chain-registry/actions/workflows/run-tests.yml">
10
+ <img height="20" src="https://github.com/cosmology-tech/chain-registry/actions/workflows/run-tests.yml/badge.svg" />
11
+ </a>
6
12
  <a href="https://github.com/cosmology-tech/chain-registry/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
7
13
  <a href="https://www.npmjs.com/package/chain-registry"><img height="20" src="https://img.shields.io/github/package-json/v/cosmology-tech/chain-registry?filename=packages%2Fchain-registry%2Fpackage.json"></a>
8
14
  </p>
9
15
 
16
+ The npm package for the Official Cosmos [chain registry](https://github.com/cosmos/chain-registry)
17
+
18
+
10
19
  ```
11
20
  npm install chain-registry
12
21
  ```
@@ -23,8 +32,8 @@ console.log(asset);
23
32
  ```
24
33
  will output:
25
34
 
26
- ```
27
- > {
35
+ ```js
36
+ {
28
37
  '$schema': '../assetlist.schema.json',
29
38
  chain_name: 'osmosis',
30
39
  assets: [
package/main/assets.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
 
3
- module.exports = [{
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _default = [{
4
8
  "$schema": "../assetlist.schema.json",
5
9
  "chain_name": "avalanche",
6
10
  "assets": [{
@@ -7038,4 +7042,5 @@ module.exports = [{
7038
7042
  },
7039
7043
  "coingecko_id": "neta"
7040
7044
  }]
7041
- }];
7045
+ }];
7046
+ exports["default"] = _default;
package/main/chains.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
 
3
- module.exports = [{
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _default = [{
4
8
  "$schema": "../chain.schema.json",
5
9
  "chain_name": "agoric",
6
10
  "status": "live",
@@ -7628,4 +7632,5 @@ module.exports = [{
7628
7632
  "url": "https://atomscan.com/vidulum",
7629
7633
  "tx_page": "https://atomscan.com/vidulum/transactions/${txHash}"
7630
7634
  }]
7631
- }];
7635
+ }];
7636
+ exports["default"] = _default;
package/main/ibc.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
 
3
- module.exports = [{
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _default = [{
4
8
  "$schema": "../ibc_data.schema.json",
5
9
  "chain-1": {
6
10
  "chain-name": "akash",
@@ -3506,4 +3510,5 @@ module.exports = [{
3506
3510
  "version": "ics20-1",
3507
3511
  "tags": {}
3508
3512
  }]
3509
- }];
3513
+ }];
3514
+ exports["default"] = _default;
package/main/index.js CHANGED
@@ -1,36 +1,39 @@
1
1
  "use strict";
2
2
 
3
- var _typeof = require("@babel/runtime/helpers/typeof");
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.ibc_assets = exports.ibc = exports["default"] = exports.chains = exports.assets = void 0;
9
-
10
- var assets = _interopRequireWildcard(require("./assets"));
11
-
12
- exports.assets = assets;
13
-
14
- var chains = _interopRequireWildcard(require("./chains"));
15
-
16
- exports.chains = chains;
17
-
18
- var ibc = _interopRequireWildcard(require("./ibc"));
19
-
20
- exports.ibc = ibc;
21
-
22
- var ibc_assets = _interopRequireWildcard(require("./ibc_assets"));
8
+ Object.defineProperty(exports, "assets", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _assets["default"];
12
+ }
13
+ });
14
+ Object.defineProperty(exports, "chains", {
15
+ enumerable: true,
16
+ get: function get() {
17
+ return _chains["default"];
18
+ }
19
+ });
20
+ exports["default"] = void 0;
21
+ Object.defineProperty(exports, "ibc", {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _ibc["default"];
25
+ }
26
+ });
23
27
 
24
- exports.ibc_assets = ibc_assets;
28
+ var _assets = _interopRequireDefault(require("./assets"));
25
29
 
26
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
30
+ var _chains = _interopRequireDefault(require("./chains"));
27
31
 
28
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
32
+ var _ibc = _interopRequireDefault(require("./ibc"));
29
33
 
30
34
  var _default = {
31
- assets: assets,
32
- chains: chains,
33
- ibc: ibc,
34
- ibc_assets: ibc_assets
35
+ assets: _assets["default"],
36
+ chains: _chains["default"],
37
+ ibc: _ibc["default"]
35
38
  };
36
39
  exports["default"] = _default;
package/module/assets.js CHANGED
@@ -1,4 +1,4 @@
1
- module.exports = [{
1
+ export default [{
2
2
  "$schema": "../assetlist.schema.json",
3
3
  "chain_name": "avalanche",
4
4
  "assets": [{
package/module/chains.js CHANGED
@@ -1,4 +1,4 @@
1
- module.exports = [{
1
+ export default [{
2
2
  "$schema": "../chain.schema.json",
3
3
  "chain_name": "agoric",
4
4
  "status": "live",
package/module/ibc.js CHANGED
@@ -1,4 +1,4 @@
1
- module.exports = [{
1
+ export default [{
2
2
  "$schema": "../ibc_data.schema.json",
3
3
  "chain-1": {
4
4
  "chain-name": "akash",
package/module/index.js CHANGED
@@ -1,11 +1,9 @@
1
- import * as assets from './assets';
2
- import * as chains from './chains';
3
- import * as ibc from './ibc';
4
- import * as ibc_assets from './ibc_assets';
1
+ import assets from './assets';
2
+ import chains from './chains';
3
+ import ibc from './ibc';
5
4
  export default {
6
5
  assets,
7
6
  chains,
8
- ibc,
9
- ibc_assets
7
+ ibc
10
8
  };
11
- export { assets, chains, ibc, ibc_assets };
9
+ export { assets, chains, ibc };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chain-registry",
3
- "version": "0.3.1",
3
+ "version": "0.5.0",
4
4
  "description": "Cosmos chain registry ⚛️",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/cosmology-tech/chain-registry/tree/master/packages/chain-registry#readme",
@@ -30,7 +30,7 @@
30
30
  "build": "npm run build:module && npm run build:main",
31
31
  "build:ts": "tsc --project ./tsconfig.json",
32
32
  "buidl": "npm run build && npm run build:ts",
33
- "make": "node ./bin/build.js",
33
+ "make": "node ./scripts/build.js",
34
34
  "prepare": "npm run build",
35
35
  "lint": "eslint src --fix",
36
36
  "test": "jest",
@@ -50,7 +50,7 @@
50
50
  "@babel/plugin-transform-runtime": "7.18.5",
51
51
  "@babel/preset-env": "7.18.2",
52
52
  "@babel/preset-typescript": "^7.17.12",
53
- "@chain-registry/utils": "^0.2.1",
53
+ "@chain-registry/utils": "^0.3.1",
54
54
  "babel-core": "7.0.0-bridge.0",
55
55
  "babel-eslint": "10.1.0",
56
56
  "cross-env": "^7.0.2",
@@ -71,5 +71,5 @@
71
71
  "dependencies": {
72
72
  "@babel/runtime": "^7.18.3"
73
73
  },
74
- "gitHead": "786591e22bca470c80885f984369c1acb24ac36b"
74
+ "gitHead": "b20ad10d099c2e8f970b6ac42d0826198c3fd4fe"
75
75
  }
package/types/index.d.ts CHANGED
@@ -1,18 +1,11 @@
1
- import * as assets from './assets';
2
- import * as chains from './chains';
3
- import * as ibc from './ibc';
4
- import * as ibc_assets from './ibc_assets';
1
+ import assets from './assets';
2
+ import chains from './chains';
3
+ import ibc from './ibc';
5
4
 
6
5
  export default {
7
- assets,
8
- chains,
9
- ibc,
10
- ibc_assets
6
+ assets,
7
+ chains,
8
+ ibc
11
9
  };
12
10
 
13
- export {
14
- assets,
15
- chains,
16
- ibc,
17
- ibc_assets
18
- };
11
+ export { assets, chains, ibc };