@chain-registry/types 0.7.1 → 0.10.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.10.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/types@0.9.0...@chain-registry/types@0.10.0) (2022-09-19)
7
+
8
+ **Note:** Version bump only for package @chain-registry/types
9
+
10
+
11
+
12
+
13
+
14
+ # [0.9.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/types@0.8.0...@chain-registry/types@0.9.0) (2022-09-16)
15
+
16
+ **Note:** Version bump only for package @chain-registry/types
17
+
18
+
19
+
20
+
21
+
22
+ # [0.8.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/types@0.7.1...@chain-registry/types@0.8.0) (2022-09-14)
23
+
24
+ **Note:** Version bump only for package @chain-registry/types
25
+
26
+
27
+
28
+
29
+
6
30
  ## [0.7.1](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/types@0.7.0...@chain-registry/types@0.7.1) (2022-09-08)
7
31
 
8
32
  **Note:** Version bump only for package @chain-registry/types
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @chain-registry/types
2
2
 
3
3
  <p align="center" width="100%">
4
- <img height="90" src="https://user-images.githubusercontent.com/545047/184277736-69fef40f-1991-4c0e-b979-da125cf7fd8f.svg" />
4
+ <img height="90" src="https://user-images.githubusercontent.com/545047/190171475-b416f99e-2831-4786-9ba3-a7ff4d95b0d3.svg" />
5
5
  </p>
6
6
 
7
7
  <p align="center" width="100%">
package/main/index.js CHANGED
@@ -41,4 +41,17 @@ Object.keys(_ibc).forEach(function (key) {
41
41
  return _ibc[key];
42
42
  }
43
43
  });
44
+ });
45
+
46
+ var _registry = require("./registry");
47
+
48
+ Object.keys(_registry).forEach(function (key) {
49
+ if (key === "default" || key === "__esModule") return;
50
+ if (key in exports && exports[key] === _registry[key]) return;
51
+ Object.defineProperty(exports, key, {
52
+ enumerable: true,
53
+ get: function get() {
54
+ return _registry[key];
55
+ }
56
+ });
44
57
  });
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.ChainRegistry = void 0;
9
+
10
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
+
12
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
+
14
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
+
16
+ var ChainRegistry = /*#__PURE__*/(0, _createClass2["default"])(function ChainRegistry() {
17
+ (0, _classCallCheck2["default"])(this, ChainRegistry);
18
+ (0, _defineProperty2["default"])(this, "assetLists", void 0);
19
+ (0, _defineProperty2["default"])(this, "chains", void 0);
20
+ (0, _defineProperty2["default"])(this, "ibcData", void 0);
21
+ });
22
+ exports.ChainRegistry = ChainRegistry;
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@chain-registry/types",
3
- "version": "0.7.1",
3
+ "version": "0.10.0",
4
4
  "description": "Chain Registry types",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/cosmology-tech/chain-registry",
7
7
  "license": "SEE LICENSE IN LICENSE",
8
8
  "main": "main/index.js",
9
- "module": "module/index.js",
10
9
  "typings": "types/index.d.ts",
11
10
  "directories": {
12
11
  "lib": "src",
@@ -14,13 +13,10 @@
14
13
  },
15
14
  "files": [
16
15
  "types",
17
- "main",
18
- "module"
16
+ "main"
19
17
  ],
20
18
  "scripts": {
21
- "build:main": "cross-env BABEL_ENV=production babel src --out-dir main --delete-dir-on-start --extensions \".tsx,.ts,.js\"",
22
- "build:module": "cross-env MODULE=true babel src --out-dir module --delete-dir-on-start --extensions \".tsx,.ts,.js\"",
23
- "build": "npm run build:module && npm run build:main",
19
+ "build": "cross-env BABEL_ENV=production babel src --out-dir main --delete-dir-on-start --extensions \".tsx,.ts,.js\"",
24
20
  "build:ts": "tsc --project ./tsconfig.json",
25
21
  "buidl": "npm run build && npm run build:ts",
26
22
  "prepare": "npm run build",
@@ -45,39 +41,39 @@
45
41
  "url": "https://github.com/cosmology-tech/chain-registry/issues"
46
42
  },
47
43
  "devDependencies": {
48
- "@babel/cli": "7.17.10",
49
- "@babel/core": "7.18.5",
50
- "@babel/eslint-parser": "^7.18.2",
51
- "@babel/node": "^7.18.5",
52
- "@babel/plugin-proposal-class-properties": "7.17.12",
53
- "@babel/plugin-proposal-export-default-from": "7.17.12",
54
- "@babel/plugin-proposal-object-rest-spread": "7.18.0",
55
- "@babel/plugin-transform-runtime": "7.18.5",
56
- "@babel/preset-env": "7.18.2",
44
+ "@babel/cli": "7.18.10",
45
+ "@babel/core": "7.19.1",
46
+ "@babel/eslint-parser": "^7.19.1",
47
+ "@babel/node": "^7.19.1",
48
+ "@babel/plugin-proposal-class-properties": "7.18.6",
49
+ "@babel/plugin-proposal-export-default-from": "7.18.10",
50
+ "@babel/plugin-proposal-object-rest-spread": "7.18.9",
51
+ "@babel/plugin-transform-runtime": "7.19.1",
52
+ "@babel/preset-env": "7.19.1",
57
53
  "@babel/preset-typescript": "^7.17.12",
58
- "@types/jest": "^28.1.1",
59
- "@typescript-eslint/eslint-plugin": "5.31.0",
60
- "@typescript-eslint/parser": "5.31.0",
54
+ "@types/jest": "^29.0.2",
55
+ "@typescript-eslint/eslint-plugin": "5.37.0",
56
+ "@typescript-eslint/parser": "5.37.0",
61
57
  "babel-core": "7.0.0-bridge.0",
62
- "babel-jest": "28.1.1",
58
+ "babel-jest": "29.0.3",
63
59
  "babel-watch": "^7.0.0",
64
60
  "cross-env": "^7.0.2",
65
- "eslint": "8.20.0",
61
+ "eslint": "8.23.1",
66
62
  "eslint-config-prettier": "^8.5.0",
67
63
  "eslint-plugin-prettier": "^4.0.0",
68
- "eslint-plugin-simple-import-sort": "7.0.0",
64
+ "eslint-plugin-simple-import-sort": "8.0.0",
69
65
  "eslint-plugin-unused-imports": "2.0.0",
70
- "jest": "^28.1.1",
66
+ "jest": "^29.0.3",
71
67
  "long": "^5.2.0",
72
68
  "prettier": "^2.7.0",
73
69
  "regenerator-runtime": "^0.13.7",
74
- "ts-jest": "^28.0.5",
75
- "typescript": "^4.7.3"
70
+ "ts-jest": "^29.0.1",
71
+ "typescript": "^4.8.3"
76
72
  },
77
73
  "dependencies": {
78
- "@babel/runtime": "^7.18.3",
79
- "@keplr-wallet/cosmos": "^0.10.3",
80
- "@keplr-wallet/crypto": "^0.10.11"
74
+ "@babel/runtime": "^7.19.0",
75
+ "@keplr-wallet/cosmos": "^0.10.24",
76
+ "@keplr-wallet/crypto": "^0.10.24"
81
77
  },
82
- "gitHead": "bff7e354c6383e548bf51bd932af9ad4cb1a0214"
78
+ "gitHead": "85c4d099a79b176a95e488af82b4b6b365c03732"
83
79
  }
package/types/assets.d.ts CHANGED
@@ -3,6 +3,38 @@ export interface AssetDenomUnit {
3
3
  exponent: number;
4
4
  aliases?: string[];
5
5
  }
6
+ export interface LiquidStakeTrace {
7
+ type: 'liquid-stake';
8
+ asset: {
9
+ platform?: string;
10
+ base_denom: string;
11
+ };
12
+ provider: string;
13
+ }
14
+ export interface SyntheicTrace {
15
+ type: 'synthetic';
16
+ asset: {
17
+ platform?: string;
18
+ base_denom: string;
19
+ };
20
+ provider: string;
21
+ }
22
+ export interface BridgeTrace {
23
+ type: 'bridge';
24
+ asset: {
25
+ platform?: string;
26
+ base_denom: string;
27
+ };
28
+ provider: string;
29
+ }
30
+ export interface WrapTrace {
31
+ type: 'wrapping';
32
+ asset: {
33
+ platform?: string;
34
+ base_denom: string;
35
+ };
36
+ provider: string;
37
+ }
6
38
  export interface IBCTrace {
7
39
  type: 'ibc';
8
40
  counterparty: {
@@ -16,6 +48,20 @@ export interface IBCTrace {
16
48
  channel: string;
17
49
  };
18
50
  }
51
+ export interface IBCCw20Trace {
52
+ type: 'ibc-cw20';
53
+ counterparty: {
54
+ port: string;
55
+ channel: string;
56
+ denom: string;
57
+ chain_name: string;
58
+ };
59
+ chain: {
60
+ port: string;
61
+ channel: string;
62
+ };
63
+ }
64
+ export declare type AssetTrace = IBCCw20Trace | IBCTrace | SyntheicTrace | LiquidStakeTrace | BridgeTrace;
19
65
  export interface Asset {
20
66
  description?: string;
21
67
  type_asset?: string;
@@ -31,7 +77,7 @@ export interface Asset {
31
77
  };
32
78
  coingecko_id?: string;
33
79
  keywords?: string[];
34
- traces?: IBCTrace[];
80
+ traces?: AssetTrace[];
35
81
  ibc?: {
36
82
  source_channel?: string;
37
83
  source_denom?: string;
package/types/chains.d.ts CHANGED
@@ -3,7 +3,7 @@ export interface Chain {
3
3
  chain_name: string;
4
4
  status: string;
5
5
  network_type: string;
6
- updatelink?: string;
6
+ update_link?: string;
7
7
  pretty_name: string;
8
8
  chain_id: string;
9
9
  bech32_prefix: string;
@@ -18,6 +18,7 @@ export interface Chain {
18
18
  logo_URIs?: {
19
19
  png?: string;
20
20
  svg?: string;
21
+ jpeg?: string;
21
22
  };
22
23
  fees?: {
23
24
  fee_tokens: {
@@ -34,39 +35,68 @@ export interface Chain {
34
35
  }[];
35
36
  };
36
37
  explorers?: {
37
- kind: string;
38
- url: string;
39
- tx_page: string;
38
+ name?: string;
39
+ kind?: string;
40
+ url?: string;
41
+ tx_page?: string;
40
42
  account_page?: string;
41
43
  }[];
42
44
  codebase?: {
43
- git_repo: string;
44
- recommended_version: string;
45
- compatible_versions: string[];
45
+ git_repo?: string;
46
+ recommended_version?: string;
47
+ compatible_versions?: string[];
46
48
  binaries?: Record<string, string>;
47
49
  cosmos_sdk_version?: string;
48
50
  tendermint_version?: string;
49
51
  cosmwasm_version?: string;
50
52
  cosmwasm_enabled?: boolean;
53
+ genesis?: {
54
+ tag?: string;
55
+ name?: string;
56
+ genesis_url?: string;
57
+ };
58
+ versions?: {
59
+ name?: string;
60
+ tag?: string;
61
+ height?: number;
62
+ next_version_name?: string;
63
+ }[];
51
64
  };
52
65
  peers?: {
53
- seeds: any[];
54
- persistent_peers: {
66
+ seeds?: any[];
67
+ persistent_peers?: {
55
68
  id: string;
56
69
  address: string;
57
70
  provider?: string;
58
71
  }[];
59
72
  };
60
73
  apis?: {
61
- rpc: {
74
+ rpc?: {
75
+ address: string;
76
+ provider?: string;
77
+ archive?: boolean;
78
+ }[];
79
+ rest?: {
80
+ address: string;
81
+ provider?: string;
82
+ }[];
83
+ grpc?: {
84
+ address: string;
85
+ provider?: string;
86
+ }[];
87
+ 'evm-http-jsonrpc'?: {
88
+ address: string;
89
+ provider?: string;
90
+ }[];
91
+ 'grpc-web'?: {
62
92
  address: string;
63
93
  provider?: string;
64
94
  }[];
65
- rest: {
95
+ sidechains_rpc?: {
66
96
  address: string;
67
97
  provider?: string;
68
98
  }[];
69
- grpc: {
99
+ [key: string]: {
70
100
  address: string;
71
101
  provider?: string;
72
102
  }[];
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './assets';
2
2
  export * from './chains';
3
3
  export * from './ibc';
4
+ export * from './registry';
@@ -0,0 +1,8 @@
1
+ import { AssetList } from './assets';
2
+ import { Chain } from './chains';
3
+ import { IBCInfo } from './ibc';
4
+ export declare class ChainRegistry {
5
+ assetLists: AssetList[];
6
+ chains: Chain[];
7
+ ibcData: IBCInfo[];
8
+ }
package/module/assets.js DELETED
@@ -1 +0,0 @@
1
- export {};
package/module/chains.js DELETED
@@ -1 +0,0 @@
1
- export {};
package/module/ibc.js DELETED
@@ -1 +0,0 @@
1
- export {};
package/module/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './assets';
2
- export * from './chains';
3
- export * from './ibc';