@xchainjs/xchain-util
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -103,2 +103,7 @@ import BigNumber from 'bignumber.js'; | ||
/** | ||
* Base "chain" asset of Avalanche chain. | ||
* | ||
*/ | ||
export declare const AssetAVAX: Asset; | ||
/** | ||
* Base "chain" asset of Binance chain. | ||
@@ -105,0 +110,0 @@ * |
export declare enum Chain { | ||
Avalanche = "AVAX", | ||
Binance = "BNB", | ||
@@ -7,8 +8,9 @@ Bitcoin = "BTC", | ||
Cosmos = "GAIA", | ||
Polkadot = "POLKA", | ||
BitcoinCash = "BCH", | ||
Litecoin = "LTC", | ||
Terra = "TERRA", | ||
Doge = "DOGE" | ||
Doge = "DOGE", | ||
Avax = "AVAX" | ||
} | ||
export declare const AvalancheChain = Chain.Avalanche; | ||
export declare const BNBChain = Chain.Binance; | ||
@@ -19,3 +21,2 @@ export declare const BTCChain = Chain.Bitcoin; | ||
export declare const CosmosChain = Chain.Cosmos; | ||
export declare const PolkadotChain = Chain.Polkadot; | ||
export declare const BCHChain = Chain.BitcoinCash; | ||
@@ -25,2 +26,3 @@ export declare const LTCChain = Chain.Litecoin; | ||
export declare const DOGEChain = Chain.Doge; | ||
export declare const AVAXChain = Chain.Avalanche; | ||
/** | ||
@@ -27,0 +29,0 @@ * Type guard to check whether string is based on type `Chain` |
@@ -105,2 +105,3 @@ import BigNumber from 'bignumber.js'; | ||
(function (Chain) { | ||
Chain["Avalanche"] = "AVAX"; | ||
Chain["Binance"] = "BNB"; | ||
@@ -111,3 +112,2 @@ Chain["Bitcoin"] = "BTC"; | ||
Chain["Cosmos"] = "GAIA"; | ||
Chain["Polkadot"] = "POLKA"; | ||
Chain["BitcoinCash"] = "BCH"; | ||
@@ -117,3 +117,5 @@ Chain["Litecoin"] = "LTC"; | ||
Chain["Doge"] = "DOGE"; | ||
Chain["Avax"] = "AVAX"; | ||
})(Chain || (Chain = {})); | ||
const AvalancheChain = Chain.Avalanche; | ||
const BNBChain = Chain.Binance; | ||
@@ -124,3 +126,2 @@ const BTCChain = Chain.Bitcoin; | ||
const CosmosChain = Chain.Cosmos; | ||
const PolkadotChain = Chain.Polkadot; | ||
const BCHChain = Chain.BitcoinCash; | ||
@@ -130,2 +131,3 @@ const LTCChain = Chain.Litecoin; | ||
const DOGEChain = Chain.Doge; | ||
const AVAXChain = Chain.Avax; | ||
/** | ||
@@ -160,2 +162,3 @@ * Type guard to check whether string is based on type `Chain` | ||
}, { | ||
[Chain.Avalanche]: 'Avalanche', | ||
[Chain.THORChain]: 'Thorchain', | ||
@@ -168,3 +171,2 @@ [Chain.Bitcoin]: 'Bitcoin', | ||
[Chain.Cosmos]: 'Cosmos', | ||
[Chain.Polkadot]: 'Polkadot', | ||
[Chain.Terra]: 'Terra', | ||
@@ -241,3 +243,3 @@ [Chain.Doge]: 'Dogecoin', | ||
* Default number of asset decimals | ||
* For history reason and by starting the project on Binance chain assets, it's 8 decimal. | ||
* For history reason and by starting the project on Binance chain assets, it's 8 decimal.F | ||
* | ||
@@ -364,2 +366,7 @@ * For example: | ||
/** | ||
* Base "chain" asset of Avalanche chain. | ||
* | ||
*/ | ||
const AssetAVAX = { chain: Chain.Avalanche, symbol: 'AVAX', ticker: 'AVAX', synth: false }; | ||
/** | ||
* Base "chain" asset of Binance chain. | ||
@@ -614,3 +621,3 @@ * | ||
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, TerraChain, assetAmount, assetFromString, assetToBase, assetToString, baseAmount, baseToAsset, bn, bnOrZero, chainToString, currencySymbolByAsset, delay, eqAsset, eqChain, fixedBN, formatAssetAmount, formatAssetAmountCurrency, formatBN, formatBNCurrency, formatBaseAmount, formatBaseAsAssetAmount, isAssetAmount, isBaseAmount, isBchChain, isBigNumberValue, isBnbChain, isBtcChain, isChain, isDogeChain, isEnabledChain, isEthChain, isLtcChain, isSynthAsset, isTerraChain, isThorChain, isValidAsset, isValidBN, trimZeros, validBNOrZero }; | ||
export { AVAXChain, AssetAVAX, AssetBCH, AssetBNB, AssetBTC, AssetCurrencySymbol, AssetDOGE, AssetETH, AssetLTC, AssetRune67C, AssetRuneB1A, AssetRuneERC20, AssetRuneERC20Testnet, AssetRuneNative, AvalancheChain, BCHChain, BNBChain, BTCChain, Chain, CosmosChain, DOGEChain, Denomination, ETHChain, LTCChain, RUNE_TICKER, THORChain, TerraChain, assetAmount, assetFromString, assetToBase, assetToString, baseAmount, baseToAsset, bn, bnOrZero, chainToString, currencySymbolByAsset, delay, eqAsset, eqChain, fixedBN, formatAssetAmount, formatAssetAmountCurrency, formatBN, formatBNCurrency, formatBaseAmount, formatBaseAsAssetAmount, isAssetAmount, isBaseAmount, isBchChain, isBigNumberValue, isBnbChain, isBtcChain, isChain, isDogeChain, isEnabledChain, isEthChain, isLtcChain, isSynthAsset, isTerraChain, isThorChain, isValidAsset, isValidBN, trimZeros, validBNOrZero }; | ||
//# sourceMappingURL=index.esm.js.map |
@@ -112,2 +112,3 @@ 'use strict'; | ||
(function (Chain) { | ||
Chain["Avalanche"] = "AVAX"; | ||
Chain["Binance"] = "BNB"; | ||
@@ -118,3 +119,2 @@ Chain["Bitcoin"] = "BTC"; | ||
Chain["Cosmos"] = "GAIA"; | ||
Chain["Polkadot"] = "POLKA"; | ||
Chain["BitcoinCash"] = "BCH"; | ||
@@ -124,3 +124,5 @@ Chain["Litecoin"] = "LTC"; | ||
Chain["Doge"] = "DOGE"; | ||
Chain["Avax"] = "AVAX"; | ||
})(exports.Chain || (exports.Chain = {})); | ||
const AvalancheChain = exports.Chain.Avalanche; | ||
const BNBChain = exports.Chain.Binance; | ||
@@ -131,3 +133,2 @@ const BTCChain = exports.Chain.Bitcoin; | ||
const CosmosChain = exports.Chain.Cosmos; | ||
const PolkadotChain = exports.Chain.Polkadot; | ||
const BCHChain = exports.Chain.BitcoinCash; | ||
@@ -137,2 +138,3 @@ const LTCChain = exports.Chain.Litecoin; | ||
const DOGEChain = exports.Chain.Doge; | ||
const AVAXChain = exports.Chain.Avax; | ||
/** | ||
@@ -167,2 +169,3 @@ * Type guard to check whether string is based on type `Chain` | ||
}, { | ||
[exports.Chain.Avalanche]: 'Avalanche', | ||
[exports.Chain.THORChain]: 'Thorchain', | ||
@@ -175,3 +178,2 @@ [exports.Chain.Bitcoin]: 'Bitcoin', | ||
[exports.Chain.Cosmos]: 'Cosmos', | ||
[exports.Chain.Polkadot]: 'Polkadot', | ||
[exports.Chain.Terra]: 'Terra', | ||
@@ -247,3 +249,3 @@ [exports.Chain.Doge]: 'Dogecoin', | ||
* Default number of asset decimals | ||
* For history reason and by starting the project on Binance chain assets, it's 8 decimal. | ||
* For history reason and by starting the project on Binance chain assets, it's 8 decimal.F | ||
* | ||
@@ -370,2 +372,7 @@ * For example: | ||
/** | ||
* Base "chain" asset of Avalanche chain. | ||
* | ||
*/ | ||
const AssetAVAX = { chain: exports.Chain.Avalanche, symbol: 'AVAX', ticker: 'AVAX', synth: false }; | ||
/** | ||
* Base "chain" asset of Binance chain. | ||
@@ -616,2 +623,4 @@ * | ||
exports.AVAXChain = AVAXChain; | ||
exports.AssetAVAX = AssetAVAX; | ||
exports.AssetBCH = AssetBCH; | ||
@@ -628,2 +637,3 @@ exports.AssetBNB = AssetBNB; | ||
exports.AssetRuneNative = AssetRuneNative; | ||
exports.AvalancheChain = AvalancheChain; | ||
exports.BCHChain = BCHChain; | ||
@@ -636,3 +646,2 @@ exports.BNBChain = BNBChain; | ||
exports.LTCChain = LTCChain; | ||
exports.PolkadotChain = PolkadotChain; | ||
exports.RUNE_TICKER = RUNE_TICKER; | ||
@@ -639,0 +648,0 @@ exports.THORChain = THORChain; |
{ | ||
"name": "@xchainjs/xchain-util", | ||
"version": "0.8.0", | ||
"version": "0.8.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
142042
1784