@chain-registry/types 0.50.149 → 2.0.1

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/README.md CHANGED
@@ -10,8 +10,87 @@
10
10
  </a>
11
11
  <a href="https://github.com/hyperweb-io/chain-registry/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
12
12
  <a href="https://www.npmjs.com/package/@chain-registry/types"><img height="20" src="https://img.shields.io/npm/dt/@chain-registry/types"></a>
13
- <a href="https://www.npmjs.com/package/@chain-registry/types"><img height="20" src="https://img.shields.io/github/package-json/v/hyperweb-io/chain-registry?filename=v1%2Fpackages%2Ftypes%2Fpackage.json"></a>
13
+ <a href="https://www.npmjs.com/package/@chain-registry/types"><img height="20" src="https://img.shields.io/github/package-json/v/hyperweb-io/chain-registry?filename=v2%2Fpackages%2Ftypes%2Fpackage.json"></a>
14
14
  </p>
15
15
 
16
- types for the chain-registry
16
+ The `@chain-registry/types` module provides TypeScript types derived from the [`cosmos/chain-registry`](https://github.com/cosmos/chain-registry), formatted with camelCase properties for better integration in JavaScript and TypeScript projects. This module is designed to offer developers easy-to-use types for building applications that interact with blockchain data.
17
+
18
+ ## Installation
19
+
20
+ To add these types to your project, run the following command:
21
+
22
+ ```sh
23
+ npm install @chain-registry/types
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ The types provided by this package can be imported into your TypeScript files. This allows you to utilize autocomplete features and enhance type-checking in your IDE, making your development process faster and reducing runtime errors.
29
+
30
+ Here’s how you can use these types in your code:
31
+
32
+
33
+ ```js
34
+ import { Chain, AssetList } from '@chain-registry/types';
35
+
36
+ function displayChainDetails(chain: Chain) {
37
+ console.log(`Chain Name: ${chain.chainName}`);
38
+ console.log(`Chain ID: ${chain.chainId}`);
39
+ console.log(`Bech32 Prefix: ${chain.bech32Prefix}`);
40
+ }
41
+
42
+ function displayAssetDetails(assetList: AssetList) {
43
+ assetList.assets.forEach(asset => {
44
+ console.log(`Asset Name: ${asset.name}`);
45
+ console.log(`Base Denom: ${asset.base}`);
46
+ console.log(`Display Denom: ${asset.display}`);
47
+ });
48
+ }
49
+
50
+ // Usage with hypothetical data
51
+ const sampleChain: Chain = {
52
+ chainName: "Osmosis",
53
+ chainId: "osmosis-1",
54
+ bech32Prefix: "osmo",
55
+ // Other necessary properties...
56
+ };
57
+
58
+ const sampleAssetList: AssetList = {
59
+ chainName: "Osmosis",
60
+ assets: [
61
+ { name: "Osmo", symbol: "OSMO", base: "uosmo", display: "osmo" },
62
+ // More assets...
63
+ ],
64
+ };
65
+
66
+ displayChainDetails(sampleChain);
67
+ displayAssetDetails(sampleAssetList);
68
+ ```
69
+
70
+
71
+ ## Interchain JavaScript Stack ⚛️
72
+
73
+ A unified toolkit for building applications and smart contracts in the Interchain ecosystem
74
+
75
+ | Category | Tools | Description |
76
+ |----------------------|------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
77
+ | **Chain Information** | [**Chain Registry**](https://github.com/hyperweb-io/chain-registry), [**Utils**](https://www.npmjs.com/package/@chain-registry/utils), [**Client**](https://www.npmjs.com/package/@chain-registry/client) | Everything from token symbols, logos, and IBC denominations for all assets you want to support in your application. |
78
+ | **Wallet Connectors**| [**Interchain Kit**](https://github.com/hyperweb-io/interchain-kit)<sup>beta</sup>, [**Cosmos Kit**](https://github.com/hyperweb-io/cosmos-kit) | Experience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface. |
79
+ | **Signing Clients** | [**InterchainJS**](https://github.com/hyperweb-io/interchainjs)<sup>beta</sup>, [**CosmJS**](https://github.com/cosmos/cosmjs) | A single, universal signing interface for any network |
80
+ | **SDK Clients** | [**Telescope**](https://github.com/hyperweb-io/telescope) | Your Frontend Companion for Building with TypeScript with Cosmos SDK Modules. |
81
+ | **Starter Kits** | [**Create Interchain App**](https://github.com/hyperweb-io/create-interchain-app)<sup>beta</sup>, [**Create Cosmos App**](https://github.com/hyperweb-io/create-cosmos-app) | Set up a modern Interchain app by running one command. |
82
+ | **UI Kits** | [**Interchain UI**](https://github.com/hyperweb-io/interchain-ui) | The Interchain Design System, empowering developers with a flexible, easy-to-use UI kit. |
83
+ | **Testing Frameworks** | [**Starship**](https://github.com/hyperweb-io/starship) | Unified Testing and Development for the Interchain. |
84
+ | **TypeScript Smart Contracts** | [**Create Hyperweb App**](https://github.com/hyperweb-io/create-hyperweb-app) | Build and deploy full-stack blockchain applications with TypeScript |
85
+ | **CosmWasm Contracts** | [**CosmWasm TS Codegen**](https://github.com/CosmWasm/ts-codegen) | Convert your CosmWasm smart contracts into dev-friendly TypeScript classes. |
86
+
87
+ ## Credits
88
+
89
+ 🛠 Built by Hyperweb (formerly Cosmology) — if you like our tools, please checkout and contribute to [our github ⚛️](https://github.com/hyperweb-io)
90
+
91
+ ## Disclaimer
92
+
93
+ AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
94
+
95
+ No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
17
96
 
@@ -1,9 +1,9 @@
1
1
  export interface Asset {
2
2
  deprecated?: boolean;
3
3
  description?: string;
4
- extended_description?: string;
5
- denom_units: DenomUnit[];
6
- type_asset: "sdk.coin" | "cw20" | "erc20" | "ics20" | "snip20" | "snip25" | "bitcoin-like" | "evm-base" | "svm-base" | "substrate" | "unknown";
4
+ extendedDescription?: string;
5
+ denomUnits: DenomUnit[];
6
+ typeAsset: "sdk.coin" | "cw20" | "erc20" | "ics20" | "snip20" | "snip25" | "bitcoin-like" | "evm-base" | "svm-base" | "substrate" | "sdk.factory" | "bitsong" | "unknown";
7
7
  address?: string;
8
8
  base: string;
9
9
  name: string;
@@ -11,27 +11,27 @@ export interface Asset {
11
11
  symbol: string;
12
12
  traces?: (IbcTransition | IbcCw20Transition | IbcBridgeTransition | NonIbcTransition)[];
13
13
  ibc?: {
14
- source_channel: string;
15
- dst_channel: string;
16
- source_denom: string;
14
+ sourceChannel: string;
15
+ dstChannel: string;
16
+ sourceDenom: string;
17
17
  };
18
- logo_URIs?: {
18
+ logoURIs?: {
19
19
  png?: string;
20
20
  svg?: string;
21
21
  };
22
22
  images?: {
23
- image_sync?: Pointer;
23
+ imageSync?: Pointer;
24
24
  png?: string;
25
25
  svg?: string;
26
26
  theme?: {
27
- primary_color_hex?: string;
28
- background_color_hex?: string;
27
+ primaryColorHex?: string;
28
+ backgroundColorHex?: string;
29
29
  circle?: boolean;
30
- dark_mode?: boolean;
30
+ darkMode?: boolean;
31
31
  monochrome?: boolean;
32
32
  };
33
33
  }[];
34
- coingecko_id?: string;
34
+ coingeckoId?: string;
35
35
  keywords?: string[];
36
36
  socials?: {
37
37
  website?: string;
@@ -49,55 +49,55 @@ export interface DenomUnit {
49
49
  aliases?: string[];
50
50
  }
51
51
  export interface Pointer {
52
- chain_name: string;
53
- base_denom?: string;
52
+ chainName: string;
53
+ baseDenom?: string;
54
54
  }
55
55
  export interface IbcTransition {
56
56
  type: "ibc";
57
57
  counterparty: {
58
- chain_name: string;
59
- base_denom: string;
60
- channel_id: string;
58
+ chainName: string;
59
+ baseDenom: string;
60
+ channelId: string;
61
61
  };
62
62
  chain: {
63
- channel_id: string;
63
+ channelId: string;
64
64
  path?: string;
65
65
  };
66
66
  }
67
67
  export interface IbcCw20Transition {
68
- type: 'ibc-cw20';
68
+ type: "ibc-cw20";
69
69
  counterparty: {
70
- chain_name: string;
71
- base_denom: string;
70
+ chainName: string;
71
+ baseDenom: string;
72
72
  port: string;
73
- channel_id: string;
73
+ channelId: string;
74
74
  };
75
75
  chain: {
76
76
  port: string;
77
- channel_id: string;
77
+ channelId: string;
78
78
  path?: string;
79
79
  };
80
80
  }
81
81
  export interface IbcBridgeTransition {
82
- type: 'ibc-bridge';
82
+ type: "ibc-bridge";
83
83
  counterparty: {
84
- chain_name: string;
85
- base_denom: string;
84
+ chainName: string;
85
+ baseDenom: string;
86
86
  port?: string;
87
- channel_id: string;
87
+ channelId: string;
88
88
  };
89
89
  chain: {
90
90
  port?: string;
91
- channel_id: string;
91
+ channelId: string;
92
92
  path?: string;
93
93
  };
94
94
  provider: string;
95
95
  }
96
96
  export interface NonIbcTransition {
97
- type: 'bridge' | 'liquid-stake' | 'synthetic' | 'wrapped' | 'additional-mintage' | 'test-mintage' | 'legacy-mintage';
97
+ type: "bridge" | "liquid-stake" | "synthetic" | "wrapped" | "additional-mintage" | "test-mintage" | "legacy-mintage";
98
98
  counterparty: {
99
- chain_name: string;
100
- base_denom: string;
99
+ chainName: string;
100
+ baseDenom: string;
101
101
  contract?: string;
102
102
  };
103
103
  chain?: {
@@ -107,6 +107,6 @@ export interface NonIbcTransition {
107
107
  }
108
108
  export interface AssetList {
109
109
  $schema?: string;
110
- chain_name: string;
110
+ chainName: string;
111
111
  assets: Asset[];
112
112
  }
package/chain.schema.d.ts CHANGED
@@ -11,21 +11,21 @@ export interface Endpoint {
11
11
  export interface Explorer {
12
12
  kind?: string;
13
13
  url?: string;
14
- tx_page?: string;
15
- account_page?: string;
16
- validator_page?: string;
17
- proposal_page?: string;
18
- block_page?: string;
14
+ txPage?: string;
15
+ accountPage?: string;
16
+ validatorPage?: string;
17
+ proposalPage?: string;
18
+ blockPage?: string;
19
19
  }
20
20
  export interface FeeToken {
21
21
  denom: string;
22
- fixed_min_gas_price?: number;
23
- low_gas_price?: number;
24
- average_gas_price?: number;
25
- high_gas_price?: number;
26
- gas_costs?: {
27
- cosmos_send?: number;
28
- ibc_transfer?: number;
22
+ fixedMinGasPrice?: number;
23
+ lowGasPrice?: number;
24
+ averageGasPrice?: number;
25
+ highGasPrice?: number;
26
+ gasCosts?: {
27
+ cosmosSend?: number;
28
+ ibcTransfer?: number;
29
29
  };
30
30
  }
31
31
  export interface StakingToken {
@@ -35,17 +35,17 @@ export type Repo = string;
35
35
  export type Version = string;
36
36
  export type Tag = string;
37
37
  export interface Sdk {
38
- type: 'cosmos' | 'penumbra' | 'other';
38
+ type: "cosmos" | "penumbra" | "other";
39
39
  version?: Version;
40
40
  repo?: Repo;
41
41
  tag?: Tag;
42
42
  }
43
43
  export interface Ibc {
44
- type: 'go' | 'rust' | 'other';
44
+ type: "go" | "rust" | "other";
45
45
  version?: Version;
46
46
  repo?: Repo;
47
47
  tag?: Tag;
48
- ics_enabled?: ('ics20-1' | 'ics27-1' | 'mauth')[];
48
+ icsEnabled?: ("ics20-1" | "ics27-1" | "mauth")[];
49
49
  }
50
50
  export interface Cosmwasm {
51
51
  version?: Version;
@@ -55,42 +55,41 @@ export interface Cosmwasm {
55
55
  path?: string;
56
56
  }
57
57
  export interface Consensus {
58
- type: 'tendermint' | 'cometbft' | 'sei-tendermint';
58
+ type: "tendermint" | "cometbft" | "sei-tendermint";
59
59
  version?: Version;
60
60
  repo?: Repo;
61
61
  tag?: Tag;
62
62
  }
63
63
  export interface Language {
64
- type: 'go' | 'rust' | 'solidity' | 'other';
64
+ type: "go" | "rust" | "solidity" | "other";
65
65
  version?: Version;
66
66
  repo?: Repo;
67
67
  tag?: Tag;
68
68
  }
69
69
  export interface Binaries {
70
- 'linux/amd64'?: string;
71
- 'linux/arm64'?: string;
72
- 'darwin/amd64'?: string;
73
- 'darwin/arm64'?: string;
74
- 'windows/amd64'?: string;
75
- 'windows/arm64'?: string;
70
+ "linux/amd64"?: string;
71
+ "linux/arm64"?: string;
72
+ "darwin/amd64"?: string;
73
+ "darwin/arm64"?: string;
74
+ "windows/amd64"?: string;
75
+ "windows/arm64"?: string;
76
76
  }
77
77
  export interface Pointer {
78
- chain_name: string;
79
- base_denom?: string;
78
+ chainName: string;
79
+ baseDenom?: string;
80
80
  }
81
81
  export interface Chain {
82
82
  $schema?: string;
83
- chain_name: string;
84
- chain_type: 'cosmos' | 'eip155' | 'bip122' | 'polkadot' | 'solana' | 'algorand' | 'arweave' | 'ergo' | 'fil' | 'hedera' | 'monero' | 'reef' | 'stacks' | 'starknet' | 'stellar' | 'tezos' | 'vechain' | 'waves' | 'xrpl' | 'unknown';
85
- chain_id: string;
86
- pre_fork_chain_name?: string;
87
- pretty_name?: string;
83
+ chainName: string;
84
+ chainType: "cosmos" | "eip155" | "bip122" | "polkadot" | "solana" | "algorand" | "arweave" | "ergo" | "fil" | "hedera" | "monero" | "reef" | "stacks" | "starknet" | "stellar" | "tezos" | "vechain" | "waves" | "xrpl" | "unknown";
85
+ chainId?: string;
86
+ preForkChainName?: string;
87
+ prettyName?: string;
88
88
  website?: string;
89
- update_link?: string;
90
- status?: 'live' | 'upcoming' | 'killed';
91
- network_type?: 'mainnet' | 'testnet' | 'devnet';
92
- bech32_prefix?: string;
93
- bech32_config?: {
89
+ status?: "live" | "upcoming" | "killed";
90
+ networkType?: "mainnet" | "testnet" | "devnet";
91
+ bech32Prefix?: string;
92
+ bech32Config?: {
94
93
  bech32PrefixAccAddr?: string;
95
94
  bech32PrefixAccPub?: string;
96
95
  bech32PrefixValAddr?: string;
@@ -98,91 +97,91 @@ export interface Chain {
98
97
  bech32PrefixConsAddr?: string;
99
98
  bech32PrefixConsPub?: string;
100
99
  };
101
- daemon_name?: string;
102
- node_home?: string;
103
- key_algos?: ('secp256k1' | 'ethsecp256k1' | 'ed25519' | 'sr25519' | 'bn254')[];
100
+ daemonName?: string;
101
+ nodeHome?: string;
102
+ keyAlgos?: ("secp256k1" | "ethsecp256k1" | "ed25519" | "sr25519" | "bn254")[];
104
103
  slip44?: number;
105
- alternative_slip44s?: number[];
104
+ alternativeSlip44s?: number[];
106
105
  fees?: {
107
- fee_tokens: FeeToken[];
106
+ feeTokens: FeeToken[];
108
107
  };
109
108
  staking?: {
110
- staking_tokens: StakingToken[];
111
- lock_duration?: {
109
+ stakingTokens: StakingToken[];
110
+ lockDuration?: {
112
111
  blocks?: number;
113
112
  time?: string;
114
113
  };
115
114
  };
116
115
  codebase?: {
117
- git_repo?: string;
118
- recommended_version?: string;
119
- compatible_versions?: string[];
116
+ gitRepo?: string;
117
+ recommendedVersion?: string;
118
+ compatibleVersions?: string[];
120
119
  language?: Language;
121
120
  binaries?: Binaries;
122
- cosmos_sdk_version?: string;
121
+ cosmosSdkVersion?: string;
123
122
  sdk?: Sdk;
124
123
  consensus?: Consensus;
125
- cosmwasm_version?: string;
126
- cosmwasm_enabled?: boolean;
127
- cosmwasm_path?: string;
124
+ cosmwasmVersion?: string;
125
+ cosmwasmEnabled?: boolean;
126
+ cosmwasmPath?: string;
128
127
  cosmwasm?: Cosmwasm;
129
128
  ibc?: Ibc;
130
129
  genesis?: {
131
130
  name?: string;
132
- genesis_url: string;
133
- ics_ccv_url?: string;
131
+ genesisUrl: string;
132
+ icsCcvUrl?: string;
134
133
  };
135
134
  versions?: {
136
135
  name: string;
137
136
  tag?: string;
138
137
  height?: number;
139
138
  proposal?: number;
140
- previous_version_name?: string;
141
- next_version_name?: string;
142
- recommended_version?: string;
143
- compatible_versions?: string[];
139
+ previousVersionName?: string;
140
+ nextVersionName?: string;
141
+ recommendedVersion?: string;
142
+ compatibleVersions?: string[];
144
143
  language?: Language;
145
- cosmos_sdk_version?: string;
144
+ cosmosSdkVersion?: string;
146
145
  sdk?: Sdk;
147
146
  consensus?: Consensus;
148
- cosmwasm_version?: string;
149
- cosmwasm_enabled?: boolean;
150
- cosmwasm_path?: string;
147
+ cosmwasmVersion?: string;
148
+ cosmwasmEnabled?: boolean;
149
+ cosmwasmPath?: string;
151
150
  cosmwasm?: Cosmwasm;
152
151
  ibc?: Ibc;
153
152
  binaries?: Binaries;
154
153
  }[];
155
154
  };
156
155
  images?: {
157
- image_sync?: Pointer;
156
+ imageSync?: Pointer;
158
157
  png?: string;
159
158
  svg?: string;
160
159
  theme?: {
161
- primary_color_hex?: string;
162
- background_color_hex?: string;
160
+ primaryColorHex?: string;
161
+ backgroundColorHex?: string;
163
162
  circle?: boolean;
164
- dark_mode?: boolean;
163
+ darkMode?: boolean;
165
164
  monochrome?: boolean;
166
165
  };
167
166
  }[];
168
- logo_URIs?: {
167
+ logoURIs?: {
169
168
  png?: string;
170
169
  svg?: string;
171
170
  };
172
171
  description?: string;
173
172
  peers?: {
174
173
  seeds?: Peer[];
175
- persistent_peers?: Peer[];
174
+ persistentPeers?: Peer[];
176
175
  };
177
176
  apis?: {
178
177
  rpc?: Endpoint[];
179
178
  rest?: Endpoint[];
180
179
  grpc?: Endpoint[];
181
180
  wss?: Endpoint[];
182
- 'grpc-web'?: Endpoint[];
183
- 'evm-http-jsonrpc'?: Endpoint[];
181
+ grpcWeb?: Endpoint[];
182
+ evmHttpJsonrpc?: Endpoint[];
184
183
  };
185
184
  explorers?: Explorer[];
186
185
  keywords?: string[];
187
- extra_codecs?: ('ethermint' | 'injective')[];
186
+ extraCodecs?: ("ethermint" | "injective")[];
188
187
  }
package/esm/index.js CHANGED
@@ -1 +1 @@
1
- export * from './registry';
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -2,39 +2,39 @@ export interface ChainOperatorInfo {
2
2
  address?: string;
3
3
  }
4
4
  export interface ChainInfo {
5
- chain_name: string;
6
- client_id: string;
7
- connection_id: string;
5
+ chainName: string;
6
+ clientId: string;
7
+ connectionId: string;
8
8
  }
9
9
  export interface ChannelInfo {
10
- channel_id: string;
11
- port_id: string;
12
- client_id?: string;
13
- connection_id?: string;
10
+ channelId: string;
11
+ portId: string;
12
+ clientId?: string;
13
+ connectionId?: string;
14
14
  }
15
15
  export interface IBCData {
16
16
  $schema?: string;
17
- chain_1: ChainInfo;
18
- chain_2: ChainInfo;
17
+ chain1: ChainInfo;
18
+ chain2: ChainInfo;
19
19
  channels: {
20
- chain_1: ChannelInfo;
21
- chain_2: ChannelInfo;
22
- ordering: 'ordered' | 'unordered';
20
+ chain1: ChannelInfo;
21
+ chain2: ChannelInfo;
22
+ ordering: "ordered" | "unordered";
23
23
  version: string;
24
- fee_version?: string;
24
+ feeVersion?: string;
25
25
  description?: string;
26
26
  tags?: {
27
- status?: 'live' | 'upcoming' | 'killed';
27
+ status?: "live" | "upcoming" | "killed";
28
28
  preferred?: boolean;
29
29
  dex?: string;
30
30
  properties?: string;
31
31
  };
32
32
  }[];
33
33
  operators?: {
34
- chain_1: ChainOperatorInfo;
35
- chain_2: ChainOperatorInfo;
34
+ chain1: ChainOperatorInfo;
35
+ chain2: ChainOperatorInfo;
36
36
  memo: string;
37
37
  name: string;
38
- discord_handle?: string;
38
+ discordHandle?: string;
39
39
  }[];
40
40
  }
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { Asset, AssetList, DenomUnit } from './assetlist.schema';
2
- export { Chain } from './chain.schema';
3
- export { ChannelInfo, IBCData as IBCInfo } from './ibc_data.schema';
4
- export * from './registry';
1
+ export { Asset, AssetList, DenomUnit, Pointer, IbcTransition, IbcCw20Transition, NonIbcTransition } from './assetlist.schema';
2
+ export { Chain, Peer, Endpoint, Explorer, FeeToken, StakingToken } from './chain.schema';
3
+ export { IBCData, ChainOperatorInfo, ChainInfo, ChannelInfo } from './ibc_data.schema';
4
+ export { MemoKeys } from './memo_keys.schema';
5
+ export { Versions } from './versions.schema';
package/index.js CHANGED
@@ -1,17 +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("./registry"), exports);
@@ -0,0 +1,11 @@
1
+ export interface MemoKeys {
2
+ $schema?: string;
3
+ memoKeys: {
4
+ key: string;
5
+ description: string;
6
+ gitRepo: string;
7
+ memo: {
8
+ [key: string]: unknown;
9
+ };
10
+ }[];
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chain-registry/types",
3
- "version": "0.50.149",
3
+ "version": "2.0.1",
4
4
  "description": "Chain Registry types",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/hyperweb-io/chain-registry",
@@ -33,5 +33,5 @@
33
33
  "cosmos",
34
34
  "interchain"
35
35
  ],
36
- "gitHead": "6f9566f3c446331c7e9fbfd309d4ee4376ed0bd8"
36
+ "gitHead": "305d26dcd259fd31a0e30444f02273abaf40e298"
37
37
  }
@@ -0,0 +1,69 @@
1
+ export type Repo = string;
2
+ export type Version = string;
3
+ export type Tag = string;
4
+ export interface Sdk {
5
+ type: "cosmos" | "penumbra" | "other";
6
+ version?: Version;
7
+ repo?: Repo;
8
+ tag?: Tag;
9
+ }
10
+ export interface Ibc {
11
+ type: "go" | "rust" | "other";
12
+ version?: Version;
13
+ repo?: Repo;
14
+ tag?: Tag;
15
+ icsEnabled?: ("ics20-1" | "ics27-1" | "mauth")[];
16
+ }
17
+ export interface Cosmwasm {
18
+ version?: Version;
19
+ repo?: Repo;
20
+ tag?: Tag;
21
+ enabled?: boolean;
22
+ path?: string;
23
+ }
24
+ export interface Consensus {
25
+ type: "tendermint" | "cometbft" | "sei-tendermint";
26
+ version?: Version;
27
+ repo?: Repo;
28
+ tag?: Tag;
29
+ }
30
+ export interface Language {
31
+ type: "go" | "rust" | "solidity" | "other";
32
+ version?: Version;
33
+ repo?: Repo;
34
+ tag?: Tag;
35
+ }
36
+ export interface Binaries {
37
+ "linux/amd64"?: string;
38
+ "linux/arm64"?: string;
39
+ "darwin/amd64"?: string;
40
+ "darwin/arm64"?: string;
41
+ "windows/amd64"?: string;
42
+ "windows/arm64"?: string;
43
+ }
44
+ export interface Versions {
45
+ $schema?: string;
46
+ chainName: string;
47
+ versions: {
48
+ name: string;
49
+ tag?: string;
50
+ height?: number;
51
+ proposal?: number;
52
+ previousVersionName?: string;
53
+ nextVersionName?: string;
54
+ recommendedVersion?: string;
55
+ compatibleVersions?: string[];
56
+ cosmosSdkVersion?: string;
57
+ sdk?: Sdk;
58
+ consensus?: Consensus;
59
+ cosmwasmVersion?: string;
60
+ cosmwasmEnabled?: boolean;
61
+ cosmwasmPath?: string;
62
+ cosmwasm?: Cosmwasm;
63
+ ibcGoVersion?: string;
64
+ ibc?: Ibc;
65
+ language?: Language;
66
+ icsEnabled?: ("ics20-1" | "ics27-1" | "mauth")[];
67
+ binaries?: Binaries;
68
+ }[];
69
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/registry.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import { AssetList } from './assetlist.schema';
2
- import { Chain } from './chain.schema';
3
- import { IBCData } from './ibc_data.schema';
4
- export interface ChainRegistry {
5
- assetLists: AssetList[];
6
- chains: Chain[];
7
- ibcData: IBCData[];
8
- }
File without changes
File without changes