@xchainjs/xchain-doge 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/README.md CHANGED
@@ -13,7 +13,7 @@ yarn add @xchainjs/xchain-doge
13
13
  Following peer dependencies have to be installed into your project. These are not included in `@xchainjs/xchain-doge`.
14
14
 
15
15
  ```
16
- yarn add @xchainjs/xchain-client @xchainjs/xchain-crypto @xchainjs/xchain-util axios bitcoinjs-lib coininfo wif
16
+ yarn add @xchainjs/xchain-client @xchainjs/xchain-crypto @xchainjs/xchain-util axios bitcoinjs-lib wif
17
17
  ```
18
18
 
19
19
  ## Documentation
package/lib/index.esm.js CHANGED
@@ -1,11 +1,10 @@
1
1
  import { ExplorerProvider, Network, FeeOption, checkFeeBounds } from '@xchainjs/xchain-client';
2
2
  import { getSeed } from '@xchainjs/xchain-crypto';
3
3
  import * as Dogecoin from 'bitcoinjs-lib';
4
- import { Client as Client$1 } from '@xchainjs/xchain-utxo';
4
+ import { toBitcoinJS, Client as Client$1 } from '@xchainjs/xchain-utxo';
5
5
  import accumulative from 'coinselect/accumulative';
6
6
  import { AssetType } from '@xchainjs/xchain-util';
7
7
  import { SochainProvider, SochainNetwork, BlockcypherProvider, BlockcypherNetwork, BitgoProvider } from '@xchainjs/xchain-utxo-providers';
8
- import coininfo from 'coininfo';
9
8
  import AppBtc from '@ledgerhq/hw-app-btc';
10
9
 
11
10
  /******************************************************************************
@@ -145,18 +144,11 @@ function inputBytes() {
145
144
  const dogeNetwork = (network) => {
146
145
  switch (network) {
147
146
  case Network.Mainnet:
148
- return coininfo.dogecoin.main.toBitcoinJS();
147
+ return toBitcoinJS('dogecoin', 'main');
149
148
  case Network.Stagenet:
150
- return coininfo.dogecoin.main.toBitcoinJS();
149
+ return toBitcoinJS('dogecoin', 'main');
151
150
  case Network.Testnet: {
152
- // Latest coininfo on NPM doesn't contain dogetest config information
153
- const bip32 = {
154
- private: 0x04358394,
155
- public: 0x043587cf,
156
- };
157
- const test = coininfo.dogecoin.test;
158
- test.versions.bip32 = bip32;
159
- return test.toBitcoinJS();
151
+ return toBitcoinJS('dogecoin', 'test');
160
152
  }
161
153
  }
162
154
  };
package/lib/index.js CHANGED
@@ -7,7 +7,6 @@ var xchainUtxo = require('@xchainjs/xchain-utxo');
7
7
  var accumulative = require('coinselect/accumulative');
8
8
  var xchainUtil = require('@xchainjs/xchain-util');
9
9
  var xchainUtxoProviders = require('@xchainjs/xchain-utxo-providers');
10
- var coininfo = require('coininfo');
11
10
  var AppBtc = require('@ledgerhq/hw-app-btc');
12
11
 
13
12
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -32,7 +31,6 @@ function _interopNamespace(e) {
32
31
 
33
32
  var Dogecoin__namespace = /*#__PURE__*/_interopNamespace(Dogecoin);
34
33
  var accumulative__default = /*#__PURE__*/_interopDefault(accumulative);
35
- var coininfo__default = /*#__PURE__*/_interopDefault(coininfo);
36
34
  var AppBtc__default = /*#__PURE__*/_interopDefault(AppBtc);
37
35
 
38
36
  /******************************************************************************
@@ -172,18 +170,11 @@ function inputBytes() {
172
170
  const dogeNetwork = (network) => {
173
171
  switch (network) {
174
172
  case xchainClient.Network.Mainnet:
175
- return coininfo__default.default.dogecoin.main.toBitcoinJS();
173
+ return xchainUtxo.toBitcoinJS('dogecoin', 'main');
176
174
  case xchainClient.Network.Stagenet:
177
- return coininfo__default.default.dogecoin.main.toBitcoinJS();
175
+ return xchainUtxo.toBitcoinJS('dogecoin', 'main');
178
176
  case xchainClient.Network.Testnet: {
179
- // Latest coininfo on NPM doesn't contain dogetest config information
180
- const bip32 = {
181
- private: 0x04358394,
182
- public: 0x043587cf,
183
- };
184
- const test = coininfo__default.default.dogecoin.test;
185
- test.versions.bip32 = bip32;
186
- return test.toBitcoinJS();
177
+ return xchainUtxo.toBitcoinJS('dogecoin', 'test');
187
178
  }
188
179
  }
189
180
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-doge",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Custom Doge client and utilities used by XChain clients",
5
5
  "keywords": [
6
6
  "Xchain",
@@ -34,13 +34,12 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@ledgerhq/hw-app-btc": "10.1.0",
37
- "@xchainjs/xchain-client": "2.0.0",
37
+ "@xchainjs/xchain-client": "2.0.1",
38
38
  "@xchainjs/xchain-crypto": "1.0.0",
39
39
  "@xchainjs/xchain-util": "2.0.0",
40
- "@xchainjs/xchain-utxo": "2.0.0",
41
- "@xchainjs/xchain-utxo-providers": "2.0.0",
40
+ "@xchainjs/xchain-utxo": "2.0.1",
41
+ "@xchainjs/xchain-utxo-providers": "2.0.1",
42
42
  "bitcoinjs-lib": "5.2.0",
43
- "coininfo": "5.1.0",
44
43
  "coinselect": "3.1.12"
45
44
  },
46
45
  "devDependencies": {