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

@xchainjs/xchain-util

Package Overview
Dependencies
Maintainers
9
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 0.3.1 to 0.4.0-alpha

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# v.0.4.0 (2022-XX-XX)
### Add
- `Chain.Doge`
- `AssetDOGE`
# v.0.3.1 (2021-07-14)

@@ -2,0 +9,0 @@

8

lib/asset.d.ts

@@ -131,2 +131,9 @@ import BigNumber from 'bignumber.js';

/**
* Dogecoin asset
* Based on definition in Thorchain
* @see https://gitlab.com/thorchain/thornode/-/blob/781-add-doge-chain/common/asset.go#L24
*/
export declare const AssetDOGE: Asset;
export declare const RUNE_TICKER = "RUNE";
/**
* Base "chain" asset on ethereum main net.

@@ -138,3 +145,2 @@ *

export declare const AssetETH: Asset;
export declare const RUNE_TICKER = "RUNE";
/**

@@ -141,0 +147,0 @@ * Base "chain" asset for RUNE-67C on Binance test net.

4

lib/chain.d.ts

@@ -9,3 +9,4 @@ export declare enum Chain {

BitcoinCash = "BCH",
Litecoin = "LTC"
Litecoin = "LTC",
Doge = "DOGE"
}

@@ -20,2 +21,3 @@ export declare const BNBChain = Chain.Binance;

export declare const LTCChain = Chain.Litecoin;
export declare const DOGEChain = Chain.Doge;
/**

@@ -22,0 +24,0 @@ * Type guard to check whether string is based on type `Chain`

@@ -121,2 +121,3 @@ import BigNumber from 'bignumber.js';

Chain["Litecoin"] = "LTC";
Chain["Doge"] = "DOGE";
})(Chain || (Chain = {}));

@@ -131,2 +132,3 @@ var BNBChain = Chain.Binance;

var LTCChain = Chain.Litecoin;
var DOGEChain = Chain.Doge;
/**

@@ -158,2 +160,3 @@ * Type guard to check whether string is based on type `Chain`

_a[Chain.Polkadot] = 'Polkadot',
_a[Chain.Doge] = 'Dogecoin',
_a));

@@ -377,2 +380,9 @@

/**
* Dogecoin asset
* Based on definition in Thorchain
* @see https://gitlab.com/thorchain/thornode/-/blob/781-add-doge-chain/common/asset.go#L24
*/
var AssetDOGE = { chain: Chain.Doge, symbol: 'DOGE', ticker: 'DOGE' };
var RUNE_TICKER = 'RUNE';
/**
* Base "chain" asset on ethereum main net.

@@ -384,3 +394,2 @@ *

var AssetETH = { chain: Chain.Ethereum, symbol: 'ETH', ticker: 'ETH' };
var RUNE_TICKER = 'RUNE';
/**

@@ -578,3 +587,3 @@ * Base "chain" asset for RUNE-67C on Binance test net.

export { AssetBCH, AssetBNB, AssetBTC, AssetCurrencySymbol, AssetETH, AssetLTC, AssetRune67C, AssetRuneB1A, AssetRuneERC20, AssetRuneERC20Testnet, AssetRuneNative, BCHChain, BNBChain, BTCChain, Chain, CosmosChain, Denomination, ETHChain, LTCChain, PolkadotChain, RUNE_TICKER, THORChain, assetAmount, assetFromString, assetToBase, assetToString, baseAmount, baseToAsset, bn, bnOrZero, chainToString, currencySymbolByAsset, delay, fixedBN, formatAssetAmount, formatAssetAmountCurrency, formatBN, formatBNCurrency, formatBaseAmount, formatBaseAsAssetAmount, isAssetAmount, isBaseAmount, isBigNumberValue, isChain, isValidAsset, isValidBN, trimZeros, validBNOrZero };
export { AssetBCH, AssetBNB, AssetBTC, AssetCurrencySymbol, AssetDOGE, AssetETH, AssetLTC, AssetRune67C, AssetRuneB1A, AssetRuneERC20, AssetRuneERC20Testnet, AssetRuneNative, BCHChain, BNBChain, BTCChain, Chain, CosmosChain, DOGEChain, Denomination, ETHChain, LTCChain, PolkadotChain, RUNE_TICKER, THORChain, assetAmount, assetFromString, assetToBase, assetToString, baseAmount, baseToAsset, bn, bnOrZero, chainToString, currencySymbolByAsset, delay, fixedBN, formatAssetAmount, formatAssetAmountCurrency, formatBN, formatBNCurrency, formatBaseAmount, formatBaseAsAssetAmount, isAssetAmount, isBaseAmount, isBigNumberValue, isChain, isValidAsset, isValidBN, trimZeros, validBNOrZero };
//# sourceMappingURL=index.esm.js.map

@@ -128,2 +128,3 @@ 'use strict';

Chain["Litecoin"] = "LTC";
Chain["Doge"] = "DOGE";
})(exports.Chain || (exports.Chain = {}));

@@ -138,2 +139,3 @@ var BNBChain = exports.Chain.Binance;

var LTCChain = exports.Chain.Litecoin;
var DOGEChain = exports.Chain.Doge;
/**

@@ -165,2 +167,3 @@ * Type guard to check whether string is based on type `Chain`

_a[exports.Chain.Polkadot] = 'Polkadot',
_a[exports.Chain.Doge] = 'Dogecoin',
_a));

@@ -383,2 +386,9 @@

/**
* Dogecoin asset
* Based on definition in Thorchain
* @see https://gitlab.com/thorchain/thornode/-/blob/781-add-doge-chain/common/asset.go#L24
*/
var AssetDOGE = { chain: exports.Chain.Doge, symbol: 'DOGE', ticker: 'DOGE' };
var RUNE_TICKER = 'RUNE';
/**
* Base "chain" asset on ethereum main net.

@@ -390,3 +400,2 @@ *

var AssetETH = { chain: exports.Chain.Ethereum, symbol: 'ETH', ticker: 'ETH' };
var RUNE_TICKER = 'RUNE';
/**

@@ -583,2 +592,3 @@ * Base "chain" asset for RUNE-67C on Binance test net.

exports.AssetBTC = AssetBTC;
exports.AssetDOGE = AssetDOGE;
exports.AssetETH = AssetETH;

@@ -595,2 +605,3 @@ exports.AssetLTC = AssetLTC;

exports.CosmosChain = CosmosChain;
exports.DOGEChain = DOGEChain;
exports.ETHChain = ETHChain;

@@ -597,0 +608,0 @@ exports.LTCChain = LTCChain;

{
"name": "@xchainjs/xchain-util",
"version": "0.3.1",
"version": "0.4.0-alpha",
"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