@xchainjs/xchain-dash 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -2,9 +2,8 @@ import { ExplorerProvider, Network, TxType, FeeOption, checkFeeBounds } from '@x
2
2
  import { AssetType, baseAmount, assetToBase, assetAmount } from '@xchainjs/xchain-util';
3
3
  import { BlockcypherProvider, BlockcypherNetwork, BitgoProvider } from '@xchainjs/xchain-utxo-providers';
4
4
  import * as dashcore from '@dashevo/dashcore-lib';
5
- import { Client as Client$1 } from '@xchainjs/xchain-utxo';
5
+ import { toBitcoinJS, Client as Client$1 } from '@xchainjs/xchain-utxo';
6
6
  import * as Dash from 'bitcoinjs-lib';
7
- import * as coininfo from 'coininfo';
8
7
  import accumulative from 'coinselect/accumulative';
9
8
  import { getSeed } from '@xchainjs/xchain-crypto';
10
9
  import AppBtc from '@ledgerhq/hw-app-btc';
@@ -3908,9 +3907,9 @@ const dashNetwork = (network) => {
3908
3907
  switch (network) {
3909
3908
  case Network.Mainnet:
3910
3909
  case Network.Stagenet:
3911
- return coininfo.dash.main.toBitcoinJS(); // Convert Dash mainnet to BitcoinJS format
3910
+ return toBitcoinJS('dash', 'main'); // Convert Dash mainnet to BitcoinJS format
3912
3911
  case Network.Testnet:
3913
- return coininfo.dash.test.toBitcoinJS(); // Convert Dash testnet to BitcoinJS format
3912
+ return toBitcoinJS('dash', 'test'); // Convert Dash testnet to BitcoinJS format
3914
3913
  }
3915
3914
  };
3916
3915
  /**
package/lib/index.js CHANGED
@@ -6,7 +6,6 @@ var xchainUtxoProviders = require('@xchainjs/xchain-utxo-providers');
6
6
  var dashcore = require('@dashevo/dashcore-lib');
7
7
  var xchainUtxo = require('@xchainjs/xchain-utxo');
8
8
  var Dash = require('bitcoinjs-lib');
9
- var coininfo = require('coininfo');
10
9
  var accumulative = require('coinselect/accumulative');
11
10
  var xchainCrypto = require('@xchainjs/xchain-crypto');
12
11
  var AppBtc = require('@ledgerhq/hw-app-btc');
@@ -33,7 +32,6 @@ function _interopNamespace(e) {
33
32
 
34
33
  var dashcore__namespace = /*#__PURE__*/_interopNamespace(dashcore);
35
34
  var Dash__namespace = /*#__PURE__*/_interopNamespace(Dash);
36
- var coininfo__namespace = /*#__PURE__*/_interopNamespace(coininfo);
37
35
  var accumulative__default = /*#__PURE__*/_interopDefault(accumulative);
38
36
  var AppBtc__default = /*#__PURE__*/_interopDefault(AppBtc);
39
37
 
@@ -3936,9 +3934,9 @@ const dashNetwork = (network) => {
3936
3934
  switch (network) {
3937
3935
  case xchainClient.Network.Mainnet:
3938
3936
  case xchainClient.Network.Stagenet:
3939
- return coininfo__namespace.dash.main.toBitcoinJS(); // Convert Dash mainnet to BitcoinJS format
3937
+ return xchainUtxo.toBitcoinJS('dash', 'main'); // Convert Dash mainnet to BitcoinJS format
3940
3938
  case xchainClient.Network.Testnet:
3941
- return coininfo__namespace.dash.test.toBitcoinJS(); // Convert Dash testnet to BitcoinJS format
3939
+ return xchainUtxo.toBitcoinJS('dash', 'test'); // Convert Dash testnet to BitcoinJS format
3942
3940
  }
3943
3941
  };
3944
3942
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-dash",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Custom Dash client and utilities used by XChainJS clients",
5
5
  "keywords": [
6
6
  "XChain",
@@ -35,13 +35,12 @@
35
35
  "dependencies": {
36
36
  "@dashevo/dashcore-lib": "0.19.41",
37
37
  "@ledgerhq/hw-app-btc": "10.1.0",
38
- "@xchainjs/xchain-client": "2.0.0",
38
+ "@xchainjs/xchain-client": "2.0.1",
39
39
  "@xchainjs/xchain-crypto": "1.0.0",
40
40
  "@xchainjs/xchain-util": "2.0.0",
41
- "@xchainjs/xchain-utxo": "2.0.0",
42
- "@xchainjs/xchain-utxo-providers": "2.0.0",
41
+ "@xchainjs/xchain-utxo": "2.0.1",
42
+ "@xchainjs/xchain-utxo-providers": "2.0.1",
43
43
  "bitcoinjs-lib": "5.2.0",
44
- "coininfo": "5.1.0",
45
44
  "coinselect": "3.1.12"
46
45
  },
47
46
  "devDependencies": {