@chain-registry/client
Advanced tools
Comparing version 1.31.4 to 1.31.5
@@ -20,4 +20,4 @@ import { Asset } from '@chain-registry/types'; | ||
getExponentBySymbol(symbol: string): Exponent | undefined; | ||
getTokenLogoByDenom(denom: Denom): string | undefined; | ||
getTokenNameByDenom(denom: Denom): string | undefined; | ||
getAssetLogoByDenom(denom: Denom): string | undefined; | ||
getAssetNameByDenom(denom: Denom): string | undefined; | ||
getChainNameByDenom(denom: Denom): string | undefined; | ||
@@ -24,0 +24,0 @@ mapCoinGeckoPricesToDenoms(prices: Record<string, CoinGeckoUSDPrice>): DenomPriceMap; |
@@ -47,7 +47,7 @@ "use strict"; | ||
} | ||
getTokenLogoByDenom(denom) { | ||
return (0, utils_1.getTokenLogoByDenom)(this._assets, denom, this._chainName); | ||
getAssetLogoByDenom(denom) { | ||
return (0, utils_1.getAssetLogoByDenom)(this._assets, denom, this._chainName); | ||
} | ||
getTokenNameByDenom(denom) { | ||
return (0, utils_1.getTokenNameByDenom)(this._assets, denom, this._chainName); | ||
getAssetNameByDenom(denom) { | ||
return (0, utils_1.getAssetNameByDenom)(this._assets, denom, this._chainName); | ||
} | ||
@@ -54,0 +54,0 @@ getChainNameByDenom(denom) { |
@@ -1,2 +0,2 @@ | ||
import { getAssetByDenom, getAssetBySymbol, getDenomByCoinGeckoId, getCoinGeckoIdByDenom, getSymbolByDenom, getDenomBySymbol, getExponentByDenom, getExponentBySymbol, getTokenLogoByDenom, getTokenNameByDenom, getChainNameByDenom, mapCoinGeckoPricesToDenoms, convertBaseUnitToDollarValue, convertDollarValueToBaseUnit, convertBaseUnitToDisplayUnit, convertDisplayUnitToBaseUnit } from '@chain-registry/utils'; | ||
import { getAssetByDenom, getAssetBySymbol, getDenomByCoinGeckoId, getCoinGeckoIdByDenom, getSymbolByDenom, getDenomBySymbol, getExponentByDenom, getExponentBySymbol, getAssetLogoByDenom, getAssetNameByDenom, getChainNameByDenom, mapCoinGeckoPricesToDenoms, convertBaseUnitToDollarValue, convertDollarValueToBaseUnit, convertBaseUnitToDisplayUnit, convertDisplayUnitToBaseUnit } from '@chain-registry/utils'; | ||
export class ChainRegistryChainUtil { | ||
@@ -44,7 +44,7 @@ _assets = []; | ||
} | ||
getTokenLogoByDenom(denom) { | ||
return getTokenLogoByDenom(this._assets, denom, this._chainName); | ||
getAssetLogoByDenom(denom) { | ||
return getAssetLogoByDenom(this._assets, denom, this._chainName); | ||
} | ||
getTokenNameByDenom(denom) { | ||
return getTokenNameByDenom(this._assets, denom, this._chainName); | ||
getAssetNameByDenom(denom) { | ||
return getAssetNameByDenom(this._assets, denom, this._chainName); | ||
} | ||
@@ -51,0 +51,0 @@ getChainNameByDenom(denom) { |
{ | ||
"name": "@chain-registry/client", | ||
"version": "1.31.4", | ||
"version": "1.31.5", | ||
"description": "Chain Registry Client", | ||
@@ -37,4 +37,4 @@ "author": "Dan Lynch <pyramation@gmail.com>", | ||
"dependencies": { | ||
"@chain-registry/types": "^0.28.4", | ||
"@chain-registry/utils": "^1.29.4", | ||
"@chain-registry/types": "^0.28.5", | ||
"@chain-registry/utils": "^1.29.5", | ||
"bfs-path": "^1.0.2", | ||
@@ -50,3 +50,3 @@ "cross-fetch": "^3.1.5" | ||
], | ||
"gitHead": "2e0598f8583ab48784ddb85468e21d83966e8f93" | ||
"gitHead": "63df544ec7e864f893bdc7a4605a1666ca292da3" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package