@chain-registry/types 0.14.0 → 0.15.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.15.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/types@0.14.0...@chain-registry/types@0.15.0) (2023-04-18)
7
+
8
+ **Note:** Version bump only for package @chain-registry/types
9
+
10
+
11
+
12
+
13
+
6
14
  # [0.14.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/types@0.13.1...@chain-registry/types@0.14.0) (2022-12-08)
7
15
 
8
16
  **Note:** Version bump only for package @chain-registry/types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chain-registry/types",
3
- "version": "0.14.0",
3
+ "version": "0.15.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",
@@ -73,5 +73,5 @@
73
73
  "dependencies": {
74
74
  "@babel/runtime": "^7.19.4"
75
75
  },
76
- "gitHead": "ad0a582adf079e3d5bf899ef18e0f7c605b09579"
76
+ "gitHead": "20fa47de0103e4a00dc20b88ce160e06e5bc7fea"
77
77
  }
package/types/assets.d.ts CHANGED
@@ -24,6 +24,10 @@ export interface BridgeTrace {
24
24
  counterparty: {
25
25
  chain_name: string;
26
26
  base_denom: string;
27
+ contract?: string;
28
+ };
29
+ chain?: {
30
+ contract: string;
27
31
  };
28
32
  provider: string;
29
33
  }
@@ -32,6 +36,7 @@ export interface WrapTrace {
32
36
  counterparty: {
33
37
  chain_name: string;
34
38
  base_denom: string;
39
+ contract?: string;
35
40
  };
36
41
  chain?: {
37
42
  contract: string;
package/types/chains.d.ts CHANGED
@@ -7,18 +7,55 @@ export interface Chain {
7
7
  pretty_name: string;
8
8
  chain_id: string;
9
9
  website?: string;
10
+ /**
11
+ * The default prefix for the human-readable part of addresses that identifies the coin type. Must be registered with SLIP-0173. E.g., 'cosmos'
12
+ */
10
13
  bech32_prefix: string;
14
+ bech32_config?: {
15
+ /**
16
+ * e.g., 'cosmos'
17
+ */
18
+ bech32PrefixAccAddr?: string;
19
+ /**
20
+ * e.g., 'cosmospub'
21
+ */
22
+ bech32PrefixAccPub?: string;
23
+ /**
24
+ * e.g., 'cosmosvaloper'
25
+ */
26
+ bech32PrefixValAddr?: string;
27
+ /**
28
+ * e.g., 'cosmosvaloperpub'
29
+ */
30
+ bech32PrefixValPub?: string;
31
+ /**
32
+ * e.g., 'cosmosvalcons'
33
+ */
34
+ bech32PrefixConsAddr?: string;
35
+ /**
36
+ * e.g., 'cosmosvalconspub'
37
+ */
38
+ bech32PrefixConsPub?: string;
39
+ };
11
40
  daemon_name?: string;
12
- key_algos?: string[];
41
+ key_algos?: ('secp256k1' | 'ethsecp256k1' | 'ed25519' | 'sr25519' | string)[];
13
42
  extra_codecs?: string[];
14
43
  keywords?: string[];
15
44
  node_home?: string;
16
45
  slip44: number;
46
+ alternative_slip44s?: number[];
17
47
  logo_URIs?: {
18
48
  png?: string;
19
49
  svg?: string;
20
50
  jpeg?: string;
21
51
  };
52
+ images?: {
53
+ png?: string;
54
+ svg?: string;
55
+ theme?: {
56
+ primary_color_hex?: string;
57
+ };
58
+ }[];
22
59
  fees?: {
23
60
  fee_tokens: {
24
61
  denom: string;
@@ -26,12 +63,26 @@ export interface Chain {
26
63
  low_gas_price?: number;
27
64
  average_gas_price?: number;
28
65
  high_gas_price?: number;
66
+ gas_costs?: {
67
+ cosmos_send?: number;
68
+ ibc_transfer?: number;
69
+ };
29
70
  }[];
30
71
  };
31
72
  staking?: {
32
73
  staking_tokens: {
33
74
  denom: string;
34
75
  }[];
76
+ lock_duration?: {
77
+ /**
78
+ * The number of blocks for which the staked tokens are locked.
79
+ */
80
+ blocks?: number;
81
+ /**
82
+ * The approximate time for which the staked tokens are locked.
83
+ */
84
+ time?: string;
85
+ };
35
86
  };
36
87
  explorers?: {
37
88
  name?: string;
@@ -44,23 +95,67 @@ export interface Chain {
44
95
  git_repo?: string;
45
96
  recommended_version?: string;
46
97
  compatible_versions?: string[];
47
- binaries?: Record<string, string>;
98
+ binaries?: {
99
+ 'linux/amd64'?: string;
100
+ 'linux/arm64'?: string;
101
+ 'darwin/amd64'?: string;
102
+ 'darwin/arm64'?: string;
103
+ 'windows/amd64'?: string;
104
+ };
48
105
  cosmos_sdk_version?: string;
49
- tendermint_version?: string;
106
+ consensus?: {
107
+ type: 'tendermint' | 'cometbft';
108
+ version?: string;
109
+ };
50
110
  cosmwasm_version?: string;
51
111
  cosmwasm_enabled?: boolean;
52
112
  ibc_go_version?: string;
53
- ics_enabled?: string[];
113
+ /**
114
+ * List of IBC apps (usually corresponding to a ICS standard) which have been enabled on the network.
115
+ */
116
+ ics_enabled?: ('ics20-1' | 'ics27-1' | 'mauth' | string)[];
54
117
  genesis?: {
55
- tag?: string;
56
118
  name?: string;
57
- genesis_url?: string;
119
+ genesis_url: string;
58
120
  };
59
121
  versions?: {
60
- name?: string;
122
+ /**
123
+ * Official Upgrade Name
124
+ */
125
+ name: string;
126
+ /**
127
+ * Git Upgrade Tag
128
+ */
61
129
  tag?: string;
130
+ /**
131
+ * Block Height
132
+ */
62
133
  height?: number;
134
+ /**
135
+ * [Optional] Name of the following version
136
+ */
63
137
  next_version_name?: string;
138
+ recommended_version?: string;
139
+ compatible_versions?: string[];
140
+ cosmos_sdk_version?: string;
141
+ consensus?: {
142
+ type: 'tendermint' | 'cometbft';
143
+ version?: string;
144
+ };
145
+ cosmwasm_version?: string;
146
+ cosmwasm_enabled?: boolean;
147
+ ibc_go_version?: string;
148
+ /**
149
+ * List of IBC apps (usually corresponding to a ICS standard) which have been enabled on the network.
150
+ */
151
+ ics_enabled?: ('ics20-1' | 'ics27-1' | 'mauth' | string)[];
152
+ binaries?: {
153
+ 'linux/amd64'?: string;
154
+ 'linux/arm64'?: string;
155
+ 'darwin/amd64'?: string;
156
+ 'darwin/arm64'?: string;
157
+ 'windows/amd64'?: string;
158
+ };
64
159
  }[];
65
160
  };
66
161
  peers?: {
@@ -97,6 +192,11 @@ export interface Chain {
97
192
  provider?: string;
98
193
  archive?: boolean;
99
194
  }[];
195
+ wss?: {
196
+ address: string;
197
+ provider?: string;
198
+ archive?: boolean;
199
+ }[];
100
200
  sidechains_rpc?: {
101
201
  address: string;
102
202
  provider?: string;