@chain-registry/types 0.4.0 → 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,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.5.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/types@0.4.0...@chain-registry/types@0.5.0) (2022-08-20)
7
+
8
+ **Note:** Version bump only for package @chain-registry/types
9
+
10
+
11
+
12
+
13
+
6
14
  # [0.4.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/types@0.3.1...@chain-registry/types@0.4.0) (2022-08-14)
7
15
 
8
16
  **Note:** Version bump only for package @chain-registry/types
package/main/index.js CHANGED
@@ -41,17 +41,4 @@ Object.keys(_ibc).forEach(function (key) {
41
41
  return _ibc[key];
42
42
  }
43
43
  });
44
- });
45
-
46
- var _ibc_assets = require("./ibc_assets");
47
-
48
- Object.keys(_ibc_assets).forEach(function (key) {
49
- if (key === "default" || key === "__esModule") return;
50
- if (key in exports && exports[key] === _ibc_assets[key]) return;
51
- Object.defineProperty(exports, key, {
52
- enumerable: true,
53
- get: function get() {
54
- return _ibc_assets[key];
55
- }
56
- });
57
44
  });
package/module/index.js CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from './assets';
2
2
  export * from './chains';
3
- export * from './ibc';
4
- export * from './ibc_assets';
3
+ export * from './ibc';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chain-registry/types",
3
- "version": "0.4.0",
3
+ "version": "0.5.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",
@@ -79,5 +79,5 @@
79
79
  "@keplr-wallet/cosmos": "^0.10.3",
80
80
  "@keplr-wallet/crypto": "^0.10.11"
81
81
  },
82
- "gitHead": "e32116855a11fe78b01e1d22ab31671ca7315343"
82
+ "gitHead": "7b1714a8a4afe11fd7dc893d1e5790997731d2f8"
83
83
  }
package/types/assets.d.ts CHANGED
@@ -3,6 +3,19 @@ export interface AssetDenomUnit {
3
3
  exponent: number;
4
4
  aliases?: string[];
5
5
  }
6
+ export interface IBCTransition {
7
+ type: 'ibc';
8
+ counterparty: {
9
+ port?: string;
10
+ channel: string;
11
+ denom: string;
12
+ chain_name: string;
13
+ };
14
+ chain: {
15
+ port?: string;
16
+ channel: string;
17
+ };
18
+ }
6
19
  export interface Asset {
7
20
  description?: string;
8
21
  type_asset?: string;
@@ -18,9 +31,15 @@ export interface Asset {
18
31
  };
19
32
  coingecko_id?: string;
20
33
  keywords?: string[];
34
+ transition?: IBCTransition[];
35
+ ibc?: {
36
+ source_channel?: string;
37
+ source_denom?: string;
38
+ dst_channel?: string;
39
+ };
21
40
  }
22
41
  export declare type AssetList = {
23
- $schema: string;
42
+ $schema?: string;
24
43
  chain_name: string;
25
44
  assets: Asset[];
26
45
  };
package/types/chains.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export interface Chain {
2
- $schema: string;
2
+ $schema?: string;
3
3
  chain_name: string;
4
4
  status: string;
5
5
  network_type: string;
package/types/ibc.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export interface IBCInfo {
2
- $schema: string;
2
+ $schema?: string;
3
3
  'chain-1': {
4
4
  'chain-name': string;
5
5
  'client-id': string;
package/types/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from './assets';
2
2
  export * from './chains';
3
3
  export * from './ibc';
4
- export * from './ibc_assets';
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- export {};
@@ -1,33 +0,0 @@
1
- export interface IBCAsset {
2
- chain_name: string;
3
- assets: {
4
- description?: string;
5
- type_asset?: string;
6
- address?: string;
7
- denom_units: {
8
- denom: string;
9
- exponent: number;
10
- aliases?: string[];
11
- }[];
12
- base: string;
13
- name: string;
14
- display: string;
15
- symbol: string;
16
- logo_URIs?: {
17
- png?: string;
18
- svg?: string;
19
- };
20
- coingecko_id?: string;
21
- keywords?: string[];
22
- ibc: {
23
- counterparty: {
24
- channel: string;
25
- denom: string;
26
- chain_name: string;
27
- };
28
- chain: {
29
- channel: string;
30
- };
31
- };
32
- }[];
33
- }