Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xchainjs/xchain-util

Package Overview
Dependencies
Maintainers
0
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xchainjs/xchain-util - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

lib/asset.d.ts

@@ -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 @@ *

8

lib/index.esm.js

@@ -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;

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc