@juno-network/assets 0.5.5 → 0.5.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juno-network/assets",
3
- "version": "0.5.5",
3
+ "version": "0.5.8",
4
4
  "description": "Chain Registry info for Juno",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/CosmosContracts/typescript",
@@ -23,7 +23,8 @@
23
23
  "build": "npm run build:module && npm run build:main",
24
24
  "build:ts": "tsc --project ./tsconfig.json",
25
25
  "buidl": "npm run build && npm run build:ts",
26
- "make": "babel-node ./scripts/build.js",
26
+ "build:pkg": "babel-node ./scripts/build.js",
27
+ "codegen": "npm run build:pkg && npm run format",
27
28
  "prepare": "npm run build",
28
29
  "lint": "eslint --ext .ts,.tsx,.js .",
29
30
  "format": "eslint --fix . --ext .ts,.tsx,.js",
@@ -60,7 +61,7 @@
60
61
  "babel-core": "7.0.0-bridge.0",
61
62
  "babel-jest": "28.1.1",
62
63
  "babel-watch": "^7.0.0",
63
- "chain-registry": "^0.5.1",
64
+ "chain-registry": "^0.6.1",
64
65
  "cross-env": "^7.0.2",
65
66
  "eslint": "8.20.0",
66
67
  "eslint-config-prettier": "^8.5.0",
@@ -75,7 +76,8 @@
75
76
  "typescript": "^4.7.3"
76
77
  },
77
78
  "dependencies": {
78
- "@babel/runtime": "^7.18.3"
79
+ "@babel/runtime": "^7.18.3",
80
+ "@chain-registry/types": "0.4.0"
79
81
  },
80
- "gitHead": "7e61827e9a0d0160139b08c6c0cf4d8402de5861"
82
+ "gitHead": "cf88fdfeb62778f2b5d5c745f19db77e3f370293"
81
83
  }
package/types/assets.d.ts CHANGED
@@ -1,28 +1,3 @@
1
- declare const _exports: {
2
- $schema: string;
3
- chain_name: string;
4
- assets: {
5
- description: string;
6
- denom_units: (
7
- | {
8
- denom: string;
9
- exponent: number;
10
- }
11
- | {
12
- denom: string;
13
- exponent: number;
14
- aliases: string[];
15
- }
16
- )[];
17
- base: string;
18
- name: string;
19
- display: string;
20
- symbol: string;
21
- logo_URIs: {
22
- svg: string;
23
- png: string;
24
- };
25
- coingecko_id: string;
26
- };
27
- };
28
- export = _exports;
1
+ import { AssetList } from '@chain-registry/types';
2
+ declare const assets: AssetList;
3
+ export default assets;
package/types/chain.d.ts CHANGED
@@ -1,61 +1,3 @@
1
- declare const _exports: {
2
- $schema: string;
3
- chain_name: string;
4
- status: string;
5
- network_type: string;
6
- pretty_name: string;
7
- chain_id: string;
8
- bech32_prefix: string;
9
- daemon_name: string;
10
- node_home: string;
11
- genesis: {
12
- genesis_url: string;
13
- };
14
- slip44: number;
15
- fees?: {
16
- fee_tokens: {
17
- denom: string;
18
- fixed_min_gas_price?: number;
19
- low_gas_price?: number;
20
- average_gas_price?: number;
21
- high_gas_price?: number;
22
- }[];
23
- };
24
- staking?: {
25
- staking_tokens: {
26
- denom: string;
27
- }[];
28
- };
29
- explorers: {
30
- kind: string;
31
- url: string;
32
- tx_page: string;
33
- }[];
34
- codebase: {
35
- git_repo: string;
36
- recommended_version: string;
37
- compatible_versions: string[];
38
- };
39
- peers: {
40
- seeds: any[];
41
- persistent_peers: {
42
- id: string;
43
- address: string;
44
- }[];
45
- };
46
- apis: {
47
- rpc: {
48
- address: string;
49
- provider?: string;
50
- }[];
51
- rest: {
52
- address: string;
53
- provider?: string;
54
- }[];
55
- grpc: {
56
- address: string;
57
- provider?: string;
58
- }[];
59
- };
60
- };
61
- export = _exports;
1
+ import { Chain } from '@chain-registry/types';
2
+ declare const chain: Chain;
3
+ export default chain;
@@ -1,31 +1,3 @@
1
- declare const _exports: {
2
- chain_name: string;
3
- assets: {
4
- description: string;
5
- denom_units: {
6
- denom: string;
7
- exponent: number;
8
- aliases?: string[];
9
- }[];
10
- base: string;
11
- name: string;
12
- display: string;
13
- symbol: string;
14
- logo_URIs: {
15
- png: string;
16
- svg: string;
17
- };
18
- coingecko_id: string;
19
- ibc: {
20
- counterparty: {
21
- channel: string;
22
- denom: string;
23
- chain_name: string;
24
- };
25
- chain: {
26
- channel: string;
27
- };
28
- };
29
- }[];
30
- }[];
31
- export = _exports;
1
+ import { IBCAsset } from '@chain-registry/types';
2
+ declare const ibc_assets: IBCAsset;
3
+ export default ibc_assets;
package/types/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  import assets from './assets';
2
2
  import chain from './chain';
3
3
  import ibc_assets from './ibc_assets';
4
-
5
- export default {
6
- chain,
7
- assets,
8
- ibc_assets
4
+ declare const _default: {
5
+ chain: Chain;
6
+ assets: AssetList;
7
+ ibc_assets: IBCAsset;
9
8
  };
10
-
9
+ export default _default;
11
10
  export { assets, chain, ibc_assets };