@chain-registry/client 1.31.4 → 1.31.6

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/chain-util.d.ts CHANGED
@@ -17,8 +17,8 @@ export declare class ChainRegistryChainUtil {
17
17
  getDenomBySymbol(symbol: string): Denom | undefined;
18
18
  getExponentByDenom(denom: Denom): Exponent | undefined;
19
19
  getExponentBySymbol(symbol: string): Exponent | undefined;
20
- getTokenLogoByDenom(denom: Denom): string | undefined;
21
- getTokenNameByDenom(denom: Denom): string | undefined;
20
+ getAssetLogoByDenom(denom: Denom): string | undefined;
21
+ getAssetNameByDenom(denom: Denom): string | undefined;
22
22
  getChainNameByDenom(denom: Denom): string | undefined;
23
23
  mapCoinGeckoPricesToDenoms(prices: Record<string, CoinGeckoUSDPrice>): DenomPriceMap;
24
24
  convertBaseUnitToDollarValue(prices: DenomPriceMap, symbol: string, amount: string | number): string;
package/chain-util.js CHANGED
@@ -44,11 +44,11 @@ class ChainRegistryChainUtil {
44
44
  getExponentBySymbol(symbol) {
45
45
  return (0, utils_1.getExponentBySymbol)(this._assets, symbol, this._chainName);
46
46
  }
47
- getTokenLogoByDenom(denom) {
48
- return (0, utils_1.getTokenLogoByDenom)(this._assets, denom, this._chainName);
47
+ getAssetLogoByDenom(denom) {
48
+ return (0, utils_1.getAssetLogoByDenom)(this._assets, denom, this._chainName);
49
49
  }
50
- getTokenNameByDenom(denom) {
51
- return (0, utils_1.getTokenNameByDenom)(this._assets, denom, this._chainName);
50
+ getAssetNameByDenom(denom) {
51
+ return (0, utils_1.getAssetNameByDenom)(this._assets, denom, this._chainName);
52
52
  }
53
53
  getChainNameByDenom(denom) {
54
54
  return (0, utils_1.getChainNameByDenom)(this._assets, denom);
package/esm/chain-util.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getAssetByDenom, getAssetBySymbol, getDenomByCoinGeckoId, getCoinGeckoIdByDenom, getSymbolByDenom, getDenomBySymbol, getExponentByDenom, getExponentBySymbol, getTokenLogoByDenom, getTokenNameByDenom, getChainNameByDenom, mapCoinGeckoPricesToDenoms, convertBaseUnitToDollarValue, convertDollarValueToBaseUnit, convertBaseUnitToDisplayUnit, convertDisplayUnitToBaseUnit } from '@chain-registry/utils';
1
+ import { getAssetByDenom, getAssetBySymbol, getDenomByCoinGeckoId, getCoinGeckoIdByDenom, getSymbolByDenom, getDenomBySymbol, getExponentByDenom, getExponentBySymbol, getAssetLogoByDenom, getAssetNameByDenom, getChainNameByDenom, mapCoinGeckoPricesToDenoms, convertBaseUnitToDollarValue, convertDollarValueToBaseUnit, convertBaseUnitToDisplayUnit, convertDisplayUnitToBaseUnit } from '@chain-registry/utils';
2
2
  export class ChainRegistryChainUtil {
3
3
  _assets = [];
4
4
  _chainName;
@@ -41,11 +41,11 @@ export class ChainRegistryChainUtil {
41
41
  getExponentBySymbol(symbol) {
42
42
  return getExponentBySymbol(this._assets, symbol, this._chainName);
43
43
  }
44
- getTokenLogoByDenom(denom) {
45
- return getTokenLogoByDenom(this._assets, denom, this._chainName);
44
+ getAssetLogoByDenom(denom) {
45
+ return getAssetLogoByDenom(this._assets, denom, this._chainName);
46
46
  }
47
- getTokenNameByDenom(denom) {
48
- return getTokenNameByDenom(this._assets, denom, this._chainName);
47
+ getAssetNameByDenom(denom) {
48
+ return getAssetNameByDenom(this._assets, denom, this._chainName);
49
49
  }
50
50
  getChainNameByDenom(denom) {
51
51
  return getChainNameByDenom(this._assets, denom);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chain-registry/client",
3
- "version": "1.31.4",
3
+ "version": "1.31.6",
4
4
  "description": "Chain Registry Client",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/cosmology-tech/chain-registry",
@@ -34,8 +34,8 @@
34
34
  "supertest": "6.3.3"
35
35
  },
36
36
  "dependencies": {
37
- "@chain-registry/types": "^0.28.4",
38
- "@chain-registry/utils": "^1.29.4",
37
+ "@chain-registry/types": "^0.28.6",
38
+ "@chain-registry/utils": "^1.29.6",
39
39
  "bfs-path": "^1.0.2",
40
40
  "cross-fetch": "^3.1.5"
41
41
  },
@@ -46,5 +46,5 @@
46
46
  "interchain",
47
47
  "tokens"
48
48
  ],
49
- "gitHead": "2e0598f8583ab48784ddb85468e21d83966e8f93"
49
+ "gitHead": "3c05e0b0fd00534f041f4b94b91073d93e0d8ded"
50
50
  }