@xchainjs/xchain-util
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -155,2 +155,8 @@ import BigNumber from 'bignumber.js'; | ||
/** | ||
* | ||
* @param {AnyAsset} asset | ||
* @returns {boolean} `true` or `false` | ||
*/ | ||
export declare const isTokenAsset: (asset: AnyAsset) => asset is TokenAsset; | ||
/** | ||
* Creates an `Asset` by a given string | ||
@@ -157,0 +163,0 @@ * |
@@ -322,2 +322,8 @@ import BigNumber from 'bignumber.js'; | ||
/** | ||
* | ||
* @param {AnyAsset} asset | ||
* @returns {boolean} `true` or `false` | ||
*/ | ||
const isTokenAsset = (asset) => asset.type === AssetType.TOKEN; | ||
/** | ||
* Creates an `Asset` by a given string | ||
@@ -739,3 +745,3 @@ * | ||
export { AssetCryptoAmount, AssetCurrencySymbol, AssetType, CachedValue, CryptoAmount, Denomination, NATIVE_ASSET_DELIMITER, NINE_REALMS_CLIENT_HEADER, SYNTH_ASSET_DELIMITER, SynthCryptoAmount, TOKEN_ASSET_DELIMITER, TRADE_ASSET_DELIMITER, TokenCryptoAmount, TradeCryptoAmount, XCHAINJS_IDENTIFIER, add9Rheader, assetAmount, assetFromString, assetFromStringEx, assetToBase, assetToString, baseAmount, baseToAsset, bn, bnOrZero, currencySymbolByAsset, delay, eqAsset, fixedBN, formatAssetAmount, formatAssetAmountCurrency, formatBN, formatBNCurrency, formatBaseAmount, formatBaseAsAssetAmount, getContractAddressFromAsset, isAssetAmount, isBaseAmount, isBigNumberValue, isSynthAsset, isTradeAsset, isValidAsset, isValidBN, register9Rheader, strip0x, trimZeros, validBNOrZero }; | ||
export { AssetCryptoAmount, AssetCurrencySymbol, AssetType, CachedValue, CryptoAmount, Denomination, NATIVE_ASSET_DELIMITER, NINE_REALMS_CLIENT_HEADER, SYNTH_ASSET_DELIMITER, SynthCryptoAmount, TOKEN_ASSET_DELIMITER, TRADE_ASSET_DELIMITER, TokenCryptoAmount, TradeCryptoAmount, XCHAINJS_IDENTIFIER, add9Rheader, assetAmount, assetFromString, assetFromStringEx, assetToBase, assetToString, baseAmount, baseToAsset, bn, bnOrZero, currencySymbolByAsset, delay, eqAsset, fixedBN, formatAssetAmount, formatAssetAmountCurrency, formatBN, formatBNCurrency, formatBaseAmount, formatBaseAsAssetAmount, getContractAddressFromAsset, isAssetAmount, isBaseAmount, isBigNumberValue, isSynthAsset, isTokenAsset, isTradeAsset, isValidAsset, isValidBN, register9Rheader, strip0x, trimZeros, validBNOrZero }; | ||
//# sourceMappingURL=index.esm.js.map |
@@ -330,2 +330,8 @@ 'use strict'; | ||
/** | ||
* | ||
* @param {AnyAsset} asset | ||
* @returns {boolean} `true` or `false` | ||
*/ | ||
const isTokenAsset = (asset) => asset.type === exports.AssetType.TOKEN; | ||
/** | ||
* Creates an `Asset` by a given string | ||
@@ -784,2 +790,3 @@ * | ||
exports.isSynthAsset = isSynthAsset; | ||
exports.isTokenAsset = isTokenAsset; | ||
exports.isTradeAsset = isTradeAsset; | ||
@@ -786,0 +793,0 @@ exports.isValidAsset = isValidAsset; |
{ | ||
"name": "@xchainjs/xchain-util", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Helper utilities for XChain clients", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
174442
2054