@chain-registry/client 1.23.0 → 1.24.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 +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ In this example, the `chainNames` option includes four chains, but `ibcNamePairs
|
|
|
112
112
|
|
|
113
113
|
- `fetchUrls()`: Asynchronously fetches the data for all the configured URLs and stores the results internally within the client instance.
|
|
114
114
|
- `getChain(chainName)`: Returns the `Chain` object for the specified chain name.
|
|
115
|
-
- `getChainInfo(chainName)`: Retrieves detailed information about the specified chain, including its configuration, assets, and IBC connections.
|
|
115
|
+
- `getChainInfo(chainName)`: Retrieves [`ChainInfo`](#chain-info), an object with detailed information about the specified chain, including its configuration, assets, and IBC connections.
|
|
116
116
|
- `getAssetList(chainName)`: Obtains a list of assets available on the specified chain.
|
|
117
117
|
- `getChainAssetList(chainName)`: Returns the `AssetList` for the specified chain.
|
|
118
118
|
- `getGeneratedAssetLists(chainName)`: Generates and returns `AssetList[]` for the specified chain, including IBC-connected assets.
|
|
@@ -130,7 +130,7 @@ In this line, `client.fetchUrls()` asynchronously fetches the chain and asset da
|
|
|
130
130
|
|
|
131
131
|
#### Accessing Chain Information
|
|
132
132
|
|
|
133
|
-
After fetching the data, you can access detailed information about a specific chain using the `getChainInfo` method. This method returns a
|
|
133
|
+
After fetching the data, you can access detailed information about a specific chain using the `getChainInfo` method. This method returns a [`ChainInfo`](#chain-info) object, which contains data about the requested chain, including its assets, IBC connections, and other metadata.
|
|
134
134
|
|
|
135
135
|
```js
|
|
136
136
|
const osmosisInfo = client.getChainInfo('osmosis');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chain-registry/client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.1",
|
|
4
4
|
"description": "Chain Registry Client",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/cosmology-tech/chain-registry",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@babel/runtime": "^7.21.0",
|
|
78
|
-
"@chain-registry/types": "^0.
|
|
79
|
-
"@chain-registry/utils": "^1.
|
|
78
|
+
"@chain-registry/types": "^0.21.1",
|
|
79
|
+
"@chain-registry/utils": "^1.22.1",
|
|
80
80
|
"bfs-path": "^1.0.2",
|
|
81
81
|
"cross-fetch": "^3.1.5"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "bfed96d5fbfd612daf7633f6081818003ee96b09"
|
|
84
84
|
}
|