Skip to content

Commit 8762892

Browse files
authored
Merge pull request #187 from hyperweb-io/client-readme
readme
2 parents 1b15243 + a4eb36b commit 8762892

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

v2/packages/client/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The `ChainRegistryClient` constructor accepts an `options` object you can specif
7272

7373
- `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.
7474

75-
- `baseUrl` (optional): A string representing the base URL for fetching the chain registry data. If not specified, the client defaults to the official Cosmos chain registry on GitHub (`https://raw.githubusercontent.com/cosmos/chain-registry/master`).
75+
- `baseUrl` (optional): A string representing the base URL for fetching the chain registry data. If not specified, the client defaults to the official Cosmos chain registry on GitHub (`https://raw.githubusercontent.com/chain-registry/chain-registry/refs/heads/main/registries/camel`).
7676

7777
#### Initialization Examples
7878

@@ -173,12 +173,12 @@ import { ChainRegistryFetcher, ChainRegistryFetcherOptions } from '@chain-regist
173173

174174
const options: ChainRegistryFetcherOptions = {
175175
urls: [
176-
'https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/chain.json',
177-
'https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/assetlist.json',
178-
'https://raw.githubusercontent.com/cosmos/chain-registry/master/juno/assetlist.json',
179-
'https://raw.githubusercontent.com/cosmos/chain-registry/master/secretnetwork/assetlist.json',
180-
'https://raw.githubusercontent.com/cosmos/chain-registry/master/_IBC/juno-osmosis.json',
181-
'https://raw.githubusercontent.com/cosmos/chain-registry/master/_IBC/osmosis-secretnetwork.json'
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'
182182
]
183183
};
184184
const registry = new ChainRegistryFetcher(options);
@@ -187,7 +187,7 @@ await registry.fetchUrls();
187187

188188
#### Fetching Schemata
189189

190-
We currently only support fetching JSON schemas as defined in https://github.com/cosmos/chain-registry. Supported are `assetlist.schema.json`, `chain.schema.json` and `ibc_data.schema.json`.
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`.
191191

192192
#### fetchUrls
193193

0 commit comments

Comments
 (0)