@chain-registry/client 2.0.1 → 2.0.3
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 +8 -8
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ The `ChainRegistryClient` constructor accepts an `options` object you can specif
|
|
|
72
72
|
|
|
73
73
|
- `ibcNamePairs` (optional): An array of string arrays, where each nested array contains two elements representing a pair of chain names. This setting specifies the Inter-Blockchain Communication (IBC) connections between the chains for which data should be considered. It is particularly useful for limiting the scope of IBC-related data processing.
|
|
74
74
|
|
|
75
|
-
- `baseUrl` (optional): A string representing the base URL for fetching the chain registry data. If not specified, the client defaults to the
|
|
75
|
+
- `baseUrl` (optional): A string representing the base URL for fetching the chain registry data. If not specified, the client defaults to the [chain registry on GitHub](`https://raw.githubusercontent.com/chain-registry/chain-registry/refs/heads/main/registries/camel`). The client will support both [`camel`](https://github.com/chain-registry/chain-registry/tree/main/registries/camel) or [`minimal`](https://github.com/chain-registry/chain-registry/tree/main/registries/minimal)
|
|
76
76
|
|
|
77
77
|
#### Initialization Examples
|
|
78
78
|
|
|
@@ -173,12 +173,12 @@ import { ChainRegistryFetcher, ChainRegistryFetcherOptions } from '@chain-regist
|
|
|
173
173
|
|
|
174
174
|
const options: ChainRegistryFetcherOptions = {
|
|
175
175
|
urls: [
|
|
176
|
-
'https://raw.githubusercontent.com/
|
|
177
|
-
'https://raw.githubusercontent.com/
|
|
178
|
-
'https://raw.githubusercontent.com/
|
|
179
|
-
'https://raw.githubusercontent.com/
|
|
180
|
-
'https://raw.githubusercontent.com/
|
|
181
|
-
'https://raw.githubusercontent.com/
|
|
176
|
+
'https://raw.githubusercontent.com/chain-registry/chain-registry/refs/heads/main/registries/camel/osmosis/chain.json',
|
|
177
|
+
'https://raw.githubusercontent.com/chain-registry/chain-registry/refs/heads/main/registries/camel/osmosis/assetlist.json',
|
|
178
|
+
'https://raw.githubusercontent.com/chain-registry/chain-registry/refs/heads/main/registries/camel/juno/assetlist.json',
|
|
179
|
+
'https://raw.githubusercontent.com/chain-registry/chain-registry/refs/heads/main/registries/camel/secretnetwork/assetlist.json',
|
|
180
|
+
'https://raw.githubusercontent.com/chain-registry/chain-registry/refs/heads/main/registries/camel/_IBC/juno-osmosis.json',
|
|
181
|
+
'https://raw.githubusercontent.com/chain-registry/chain-registry/refs/heads/main/registries/camel/_IBC/osmosis-secretnetwork.json'
|
|
182
182
|
]
|
|
183
183
|
};
|
|
184
184
|
const registry = new ChainRegistryFetcher(options);
|
|
@@ -187,7 +187,7 @@ await registry.fetchUrls();
|
|
|
187
187
|
|
|
188
188
|
#### Fetching Schemata
|
|
189
189
|
|
|
190
|
-
We currently only support fetching JSON schemas as defined in https://github.com/
|
|
190
|
+
We currently only support fetching JSON schemas as defined in [chain-registry/chain-registry](https://github.com/chain-registry/chain-registry) — the v2 client will support both [`camel`](https://github.com/chain-registry/chain-registry/tree/main/registries/camel) or [`minimal`](https://github.com/chain-registry/chain-registry/tree/main/registries/minimal). Supported are `assetlist.schema.json`, `chain.schema.json` and `ibc_data.schema.json`.
|
|
191
191
|
|
|
192
192
|
#### fetchUrls
|
|
193
193
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chain-registry/client",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Chain Registry Client",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/hyperweb-io/chain-registry",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"supertest": "6.3.3"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@chain-registry/types": "^2.0.
|
|
39
|
-
"@chain-registry/utils": "^2.0.
|
|
38
|
+
"@chain-registry/types": "^2.0.3",
|
|
39
|
+
"@chain-registry/utils": "^2.0.3",
|
|
40
40
|
"bfs-path": "^1.0.2",
|
|
41
41
|
"cross-fetch": "^3.1.5"
|
|
42
42
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"interchain",
|
|
48
48
|
"tokens"
|
|
49
49
|
],
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "4975fbb0b7340e960f93e5eb25294b04357cc660"
|
|
51
51
|
}
|