@chain-registry/types 0.50.151 → 2.0.2
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 +81 -2
- package/assetlist.schema.d.ts +32 -32
- package/chain.schema.d.ts +67 -68
- package/esm/index.js +1 -1
- package/esm/versions.schema.js +1 -0
- package/ibc_data.schema.d.ts +17 -17
- package/index.d.ts +5 -4
- package/index.js +0 -15
- package/memo_keys.schema.d.ts +11 -0
- package/package.json +2 -2
- package/versions.schema.d.ts +69 -0
- package/versions.schema.js +2 -0
- package/registry.d.ts +0 -8
- /package/esm/{registry.js → memo_keys.schema.js} +0 -0
- /package/{registry.js → memo_keys.schema.js} +0 -0
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=
|
|
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
|
|
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
|
|
package/assetlist.schema.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface Asset {
|
|
2
2
|
deprecated?: boolean;
|
|
3
3
|
description?: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
sourceChannel: string;
|
|
15
|
+
dstChannel: string;
|
|
16
|
+
sourceDenom: string;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
logoURIs?: {
|
|
19
19
|
png?: string;
|
|
20
20
|
svg?: string;
|
|
21
21
|
};
|
|
22
22
|
images?: {
|
|
23
|
-
|
|
23
|
+
imageSync?: Pointer;
|
|
24
24
|
png?: string;
|
|
25
25
|
svg?: string;
|
|
26
26
|
theme?: {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
primaryColorHex?: string;
|
|
28
|
+
backgroundColorHex?: string;
|
|
29
29
|
circle?: boolean;
|
|
30
|
-
|
|
30
|
+
darkMode?: boolean;
|
|
31
31
|
monochrome?: boolean;
|
|
32
32
|
};
|
|
33
33
|
}[];
|
|
34
|
-
|
|
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
|
-
|
|
53
|
-
|
|
52
|
+
chainName: string;
|
|
53
|
+
baseDenom?: string;
|
|
54
54
|
}
|
|
55
55
|
export interface IbcTransition {
|
|
56
56
|
type: "ibc";
|
|
57
57
|
counterparty: {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
chainName: string;
|
|
59
|
+
baseDenom: string;
|
|
60
|
+
channelId: string;
|
|
61
61
|
};
|
|
62
62
|
chain: {
|
|
63
|
-
|
|
63
|
+
channelId: string;
|
|
64
64
|
path?: string;
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
export interface IbcCw20Transition {
|
|
68
|
-
type:
|
|
68
|
+
type: "ibc-cw20";
|
|
69
69
|
counterparty: {
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
chainName: string;
|
|
71
|
+
baseDenom: string;
|
|
72
72
|
port: string;
|
|
73
|
-
|
|
73
|
+
channelId: string;
|
|
74
74
|
};
|
|
75
75
|
chain: {
|
|
76
76
|
port: string;
|
|
77
|
-
|
|
77
|
+
channelId: string;
|
|
78
78
|
path?: string;
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
export interface IbcBridgeTransition {
|
|
82
|
-
type:
|
|
82
|
+
type: "ibc-bridge";
|
|
83
83
|
counterparty: {
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
chainName: string;
|
|
85
|
+
baseDenom: string;
|
|
86
86
|
port?: string;
|
|
87
|
-
|
|
87
|
+
channelId: string;
|
|
88
88
|
};
|
|
89
89
|
chain: {
|
|
90
90
|
port?: string;
|
|
91
|
-
|
|
91
|
+
channelId: string;
|
|
92
92
|
path?: string;
|
|
93
93
|
};
|
|
94
94
|
provider: string;
|
|
95
95
|
}
|
|
96
96
|
export interface NonIbcTransition {
|
|
97
|
-
type:
|
|
97
|
+
type: "bridge" | "liquid-stake" | "synthetic" | "wrapped" | "additional-mintage" | "test-mintage" | "legacy-mintage";
|
|
98
98
|
counterparty: {
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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:
|
|
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:
|
|
44
|
+
type: "go" | "rust" | "other";
|
|
45
45
|
version?: Version;
|
|
46
46
|
repo?: Repo;
|
|
47
47
|
tag?: Tag;
|
|
48
|
-
|
|
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:
|
|
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:
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
79
|
-
|
|
78
|
+
chainName: string;
|
|
79
|
+
baseDenom?: string;
|
|
80
80
|
}
|
|
81
81
|
export interface Chain {
|
|
82
82
|
$schema?: string;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
daemonName?: string;
|
|
101
|
+
nodeHome?: string;
|
|
102
|
+
keyAlgos?: ("secp256k1" | "ethsecp256k1" | "ed25519" | "sr25519" | "bn254")[];
|
|
104
103
|
slip44?: number;
|
|
105
|
-
|
|
104
|
+
alternativeSlip44s?: number[];
|
|
106
105
|
fees?: {
|
|
107
|
-
|
|
106
|
+
feeTokens: FeeToken[];
|
|
108
107
|
};
|
|
109
108
|
staking?: {
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
stakingTokens: StakingToken[];
|
|
110
|
+
lockDuration?: {
|
|
112
111
|
blocks?: number;
|
|
113
112
|
time?: string;
|
|
114
113
|
};
|
|
115
114
|
};
|
|
116
115
|
codebase?: {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
gitRepo?: string;
|
|
117
|
+
recommendedVersion?: string;
|
|
118
|
+
compatibleVersions?: string[];
|
|
120
119
|
language?: Language;
|
|
121
120
|
binaries?: Binaries;
|
|
122
|
-
|
|
121
|
+
cosmosSdkVersion?: string;
|
|
123
122
|
sdk?: Sdk;
|
|
124
123
|
consensus?: Consensus;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
133
|
-
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
previousVersionName?: string;
|
|
140
|
+
nextVersionName?: string;
|
|
141
|
+
recommendedVersion?: string;
|
|
142
|
+
compatibleVersions?: string[];
|
|
144
143
|
language?: Language;
|
|
145
|
-
|
|
144
|
+
cosmosSdkVersion?: string;
|
|
146
145
|
sdk?: Sdk;
|
|
147
146
|
consensus?: Consensus;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
156
|
+
imageSync?: Pointer;
|
|
158
157
|
png?: string;
|
|
159
158
|
svg?: string;
|
|
160
159
|
theme?: {
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
primaryColorHex?: string;
|
|
161
|
+
backgroundColorHex?: string;
|
|
163
162
|
circle?: boolean;
|
|
164
|
-
|
|
163
|
+
darkMode?: boolean;
|
|
165
164
|
monochrome?: boolean;
|
|
166
165
|
};
|
|
167
166
|
}[];
|
|
168
|
-
|
|
167
|
+
logoURIs?: {
|
|
169
168
|
png?: string;
|
|
170
169
|
svg?: string;
|
|
171
170
|
};
|
|
172
171
|
description?: string;
|
|
173
172
|
peers?: {
|
|
174
173
|
seeds?: Peer[];
|
|
175
|
-
|
|
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
|
-
|
|
183
|
-
|
|
181
|
+
grpcWeb?: Endpoint[];
|
|
182
|
+
evmHttpJsonrpc?: Endpoint[];
|
|
184
183
|
};
|
|
185
184
|
explorers?: Explorer[];
|
|
186
185
|
keywords?: string[];
|
|
187
|
-
|
|
186
|
+
extraCodecs?: ("ethermint" | "injective")[];
|
|
188
187
|
}
|
package/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/ibc_data.schema.d.ts
CHANGED
|
@@ -2,39 +2,39 @@ export interface ChainOperatorInfo {
|
|
|
2
2
|
address?: string;
|
|
3
3
|
}
|
|
4
4
|
export interface ChainInfo {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
chainName: string;
|
|
6
|
+
clientId: string;
|
|
7
|
+
connectionId: string;
|
|
8
8
|
}
|
|
9
9
|
export interface ChannelInfo {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
channelId: string;
|
|
11
|
+
portId: string;
|
|
12
|
+
clientId?: string;
|
|
13
|
+
connectionId?: string;
|
|
14
14
|
}
|
|
15
15
|
export interface IBCData {
|
|
16
16
|
$schema?: string;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
chain1: ChainInfo;
|
|
18
|
+
chain2: ChainInfo;
|
|
19
19
|
channels: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
ordering:
|
|
20
|
+
chain1: ChannelInfo;
|
|
21
|
+
chain2: ChannelInfo;
|
|
22
|
+
ordering: "ordered" | "unordered";
|
|
23
23
|
version: string;
|
|
24
|
-
|
|
24
|
+
feeVersion?: string;
|
|
25
25
|
description?: string;
|
|
26
26
|
tags?: {
|
|
27
|
-
status?:
|
|
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
|
-
|
|
35
|
-
|
|
34
|
+
chain1: ChainOperatorInfo;
|
|
35
|
+
chain2: ChainOperatorInfo;
|
|
36
36
|
memo: string;
|
|
37
37
|
name: string;
|
|
38
|
-
|
|
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 {
|
|
4
|
-
export
|
|
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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chain-registry/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.2",
|
|
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": "
|
|
36
|
+
"gitHead": "06d713a3dcbfd99af7b11a3e8bc542d681d48d71"
|
|
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
|
+
}
|
package/registry.d.ts
DELETED
|
File without changes
|
|
File without changes
|