@chain-registry/types 0.2.1 → 0.4.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.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
+
8
+ **Note:** Version bump only for package @chain-registry/types
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.3.1](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/types@0.3.0...@chain-registry/types@0.3.1) (2022-08-13)
15
+
16
+ **Note:** Version bump only for package @chain-registry/types
17
+
18
+
19
+
20
+
21
+
22
+ # [0.3.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/types@0.2.1...@chain-registry/types@0.3.0) (2022-08-13)
23
+
24
+ **Note:** Version bump only for package @chain-registry/types
25
+
26
+
27
+
28
+
29
+
6
30
  ## 0.2.1 (2022-08-13)
7
31
 
8
32
  **Note:** Version bump only for package @chain-registry/types
package/README.md CHANGED
@@ -1,3 +1,15 @@
1
1
  # @chain-registry/types
2
2
 
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>
6
+
7
+ <p align="center" width="100%">
8
+ <a href="https://github.com/cosmology-tech/chain-registry/actions/workflows/run-tests.yml">
9
+ <img height="20" src="https://github.com/cosmology-tech/chain-registry/actions/workflows/run-tests.yml/badge.svg" />
10
+ </a>
11
+ <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>
12
+ <a href="https://www.npmjs.com/package/@chain-registry/types"><img height="20" src="https://img.shields.io/github/package-json/v/cosmology-tech/chain-registry?filename=packages%2Ftypes%2Fpackage.json"></a>
13
+ </p>
14
+
3
15
  types for the chain-registry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chain-registry/types",
3
- "version": "0.2.1",
3
+ "version": "0.4.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": "786591e22bca470c80885f984369c1acb24ac36b"
82
+ "gitHead": "e32116855a11fe78b01e1d22ab31671ca7315343"
83
83
  }
@@ -0,0 +1,26 @@
1
+ export interface AssetDenomUnit {
2
+ denom: string;
3
+ exponent: number;
4
+ aliases?: string[];
5
+ }
6
+ export interface Asset {
7
+ description?: string;
8
+ type_asset?: string;
9
+ address?: string;
10
+ denom_units: AssetDenomUnit[];
11
+ base: string;
12
+ name: string;
13
+ display: string;
14
+ symbol: string;
15
+ logo_URIs?: {
16
+ svg?: string;
17
+ png?: string;
18
+ };
19
+ coingecko_id?: string;
20
+ keywords?: string[];
21
+ }
22
+ export declare type AssetList = {
23
+ $schema: string;
24
+ chain_name: string;
25
+ assets: Asset[];
26
+ };
@@ -0,0 +1,75 @@
1
+ export interface Chain {
2
+ $schema: string;
3
+ chain_name: string;
4
+ status: string;
5
+ network_type: string;
6
+ updatelink?: string;
7
+ pretty_name: string;
8
+ chain_id: string;
9
+ bech32_prefix: string;
10
+ daemon_name?: string;
11
+ key_algos?: string[];
12
+ keywords?: string[];
13
+ node_home?: string;
14
+ genesis?: {
15
+ genesis_url: string;
16
+ };
17
+ slip44: number;
18
+ logo_URIs?: {
19
+ png?: string;
20
+ svg?: string;
21
+ };
22
+ fees?: {
23
+ fee_tokens: {
24
+ denom: string;
25
+ fixed_min_gas_price?: number;
26
+ low_gas_price?: number;
27
+ average_gas_price?: number;
28
+ high_gas_price?: number;
29
+ }[];
30
+ };
31
+ staking?: {
32
+ staking_tokens: {
33
+ denom: string;
34
+ }[];
35
+ };
36
+ explorers: {
37
+ kind: string;
38
+ url: string;
39
+ tx_page: string;
40
+ account_page?: string;
41
+ }[];
42
+ codebase?: {
43
+ git_repo: string;
44
+ recommended_version: string;
45
+ compatible_versions: string[];
46
+ binaries?: Record<string, string>;
47
+ cosmos_sdk_version?: string;
48
+ tendermint_version?: string;
49
+ cosmwasm_version?: string;
50
+ cosmwasm_enabled?: boolean;
51
+ };
52
+ peers?: {
53
+ seeds: any[];
54
+ persistent_peers: {
55
+ id: string;
56
+ address: string;
57
+ provider?: string;
58
+ }[];
59
+ };
60
+ apis?: {
61
+ rpc: {
62
+ address: string;
63
+ provider?: string;
64
+ }[];
65
+ rest: {
66
+ address: string;
67
+ provider?: string;
68
+ }[];
69
+ grpc: {
70
+ address: string;
71
+ provider?: string;
72
+ }[];
73
+ };
74
+ }
75
+ export declare type Chains = Chain[];
package/types/ibc.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ export interface IBCInfo {
2
+ $schema: string;
3
+ 'chain-1': {
4
+ 'chain-name': string;
5
+ 'client-id': string;
6
+ 'connection-id': string;
7
+ };
8
+ 'chain-2': {
9
+ 'chain-name': string;
10
+ 'client-id': string;
11
+ 'connection-id': string;
12
+ };
13
+ channels: {
14
+ 'chain-1': {
15
+ 'channel-id': string;
16
+ 'port-id': string;
17
+ };
18
+ 'chain-2': {
19
+ 'channel-id': string;
20
+ 'port-id': string;
21
+ };
22
+ ordering: string;
23
+ version: string;
24
+ tags: object;
25
+ }[];
26
+ }
@@ -0,0 +1,33 @@
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
+ }
@@ -0,0 +1,4 @@
1
+ export * from './assets';
2
+ export * from './chains';
3
+ export * from './ibc';
4
+ export * from './ibc_assets';