@chain-registry/interfaces 0.26.0 → 0.28.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.
@@ -1,4 +1,3 @@
1
- import { Pointer } from "./shared";
2
1
  export interface Asset {
3
2
  deprecated?: boolean;
4
3
  description?: string;
@@ -42,6 +41,10 @@ export interface DenomUnit {
42
41
  exponent: number;
43
42
  aliases?: string[];
44
43
  }
44
+ export interface Pointer {
45
+ chain_name: string;
46
+ base_denom?: string;
47
+ }
45
48
  export interface IbcTransition {
46
49
  type: "ibc";
47
50
  counterparty: {
package/chain.schema.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { Pointer } from "./shared";
2
1
  export interface Peer {
3
2
  id: string;
4
3
  address: string;
@@ -29,6 +28,10 @@ export interface FeeToken {
29
28
  export interface StakingToken {
30
29
  denom: string;
31
30
  }
31
+ export interface Pointer {
32
+ chain_name: string;
33
+ base_denom?: string;
34
+ }
32
35
  export interface Chain {
33
36
  $schema?: string;
34
37
  chain_name: string;
package/esm/index.js CHANGED
@@ -1,6 +1 @@
1
- export * from './assetlist.schema';
2
- export * from './chain.schema';
3
- export * from './ibc_data.schema';
4
- export * from './memo_keys.schema';
5
- export * from './shared';
6
- export * from './versions.schema';
1
+ export {};
package/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- export * from './assetlist.schema';
2
- export * from './chain.schema';
3
- export * from './ibc_data.schema';
4
- export * from './memo_keys.schema';
5
- export * from './shared';
6
- export * from './versions.schema';
1
+ export { Asset, AssetList } from './assetlist.schema';
2
+ export { Chain } from './chain.schema';
3
+ export { IBCData } from './ibc_data.schema';
4
+ export { MemoKeys } from './memo_keys.schema';
5
+ export { Versions } from './versions.schema';
package/index.js CHANGED
@@ -1,22 +1,2 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./assetlist.schema"), exports);
18
- __exportStar(require("./chain.schema"), exports);
19
- __exportStar(require("./ibc_data.schema"), exports);
20
- __exportStar(require("./memo_keys.schema"), exports);
21
- __exportStar(require("./shared"), exports);
22
- __exportStar(require("./versions.schema"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chain-registry/interfaces",
3
- "version": "0.26.0",
3
+ "version": "0.28.0",
4
4
  "description": "Chain Registry interfaces",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/cosmology-tech/chain-registry",
@@ -23,15 +23,19 @@
23
23
  "copy": "copyfiles -f LICENSE README.md package.json dist",
24
24
  "clean": "del dist/**",
25
25
  "prepare": "npm run build",
26
+ "types": "chain-registry codegen --outputDir ./src/ --no-useCamelCase --registryDir ../../packages/chain-registry/chain-registry",
26
27
  "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
27
28
  "test": "jest",
28
29
  "test:watch": "jest --watch"
29
30
  },
31
+ "devDependencies": {
32
+ "@chain-registry/cli": "^1.29.0"
33
+ },
30
34
  "keywords": [
31
35
  "chain-registry",
32
36
  "web3",
33
37
  "cosmos",
34
38
  "interchain"
35
39
  ],
36
- "gitHead": "bef55160d9bd8290980354c99963da3f3b12b94e"
40
+ "gitHead": "df00cf702adec71eeaf5238046cc39e88a305f49"
37
41
  }
package/esm/shared.js DELETED
@@ -1 +0,0 @@
1
- export {};
package/shared.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export interface Pointer {
2
- chain_name: string;
3
- base_denom?: string;
4
- }
package/shared.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });