@xchainjs/xchain-bitcoin 0.18.2 → 0.18.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-bitcoin",
3
- "version": "0.18.2",
3
+ "version": "0.18.4",
4
4
  "description": "Custom Bitcoin client and utilities used by XChainJS clients",
5
5
  "keywords": [
6
6
  "XChain",
package/CHANGELOG.md DELETED
@@ -1,307 +0,0 @@
1
- # v.0.18.2 (2022-05-05)
2
-
3
- ## Update
4
-
5
- - Add `deposit` function to Bitcoin `Client`
6
- - Update latest dependencies
7
- - Add tests for `deposit`
8
-
9
-
10
- # v.0.18.1 (2022-03-15)
11
-
12
- ## Fix
13
-
14
- - [Bug] Incorrect fee estimation by rounding down #503
15
-
16
- # v.0.18.0 (2022-03-08)
17
-
18
- ## Update
19
-
20
- - Fetch `txHex` optionally by scanning UTXOs #489
21
- - Cache list of `txHex`s in `getTxHexFromCache` to avoid same requests for same data #490
22
- - Cache `confirmed` status in `getConfirmedUnspentTxs` to avoid same requests for same data #490
23
- - Return `inputs` UTXOs from `buildTx` #489
24
- - Extract `Haskoin` types #490
25
-
26
- ## Fix
27
-
28
- - Broadcast same tx several times to Haskoin in case of `500` error #492
29
-
30
- ## Breaking change
31
-
32
- - Add `confirmedOnly` param to `Client.getBalance` and to misc. `balance*` helpers #490
33
- - Broadcast txs via `Haskoin` #490
34
- - Remove `blockstream` as API dependency #490
35
- - Remove deprecated Ledger files (\*\*/\*\*/ledger.ts) #490
36
-
37
- # v.0.17.1 (2022-02-04)
38
-
39
- ## Update
40
-
41
- - xchain-util@0.5.1
42
- - xchain-client@0.11.1
43
-
44
- # v.0.17.0 (2022-01-05)
45
-
46
- ## Breaking change
47
-
48
- - Make `haskoinUrl` configurable (change default haskoin url back to `https://api.haskoin.com/btc`)
49
- - `haskoinUrl` needs to be passed as parameter into misc. `utils` functions
50
-
51
- # v.0.16.0 (2021-12-29)
52
-
53
- ## Breaking change
54
-
55
- - Add stagenet environment handling for `Network` and `BaseXChainClient` changes client to default to mainnet values until stagenet is configured.
56
-
57
- # v.0.15.13 (2021-11-12)
58
-
59
- - updated haskoin api URL
60
-
61
- # v.0.15.12 (2021-09-03)
62
-
63
- - updated to the latest dependencies
64
-
65
- # v.0.15.11 (2021-07-07)
66
-
67
- - Use latest `xchain-client@0.10.1` + `xchain-util@0.3.0`
68
-
69
- # v.0.15.10 (2021-07-03)
70
-
71
- - refactored client methods to use regular method syntax (not fat arrow) in order for bcall to super.xxx() to work properly
72
-
73
- # v.0.15.9 (2021-06-29)
74
-
75
- - added support for pulling fees from thornode.
76
-
77
- # v.0.15.8 (2021-06-18)
78
-
79
- - changed rollupjs to treat axios as external lib
80
-
81
- # v.0.15.7 (2021-06-10)
82
-
83
- #### Fix
84
-
85
- - [haskoin] Fix `getBalance` (incl. test)
86
-
87
- # v.0.15.6 (2021-06-09)
88
-
89
- - ???
90
-
91
- # v.0.15.5 (2021-06-08)
92
-
93
- ### BREAKING CHANGE
94
-
95
- #### Issue
96
-
97
- [Sochain API](https://sochain.com/) is out of sync and it's reported to be fixed in a few days.
98
- Report from Sochain: "WARNING: DATA SHOWN FOR BITCOIN NETWORK MAY BE OUTDATED
99
- We are working to resolve the issue in the next few days."
100
-
101
- #### Fix
102
-
103
- - Replace `getBalance` and `getUnspentTxs` apis from sochain to haskoin for temporary purpose.
104
- - Update `Utils.scanUTXOs` method using haskoin api
105
- - Skip unit test for `utils` (it will be reverted after `sochain` api is recovered)
106
-
107
- # v.0.15.4 (2021-06-01)
108
-
109
- - updating peer deps
110
-
111
- # v.0.15.3 (2021-05-31)
112
-
113
- - refactor utils.buildTx() to include the memo for calculating inputs with accumulate() but re-adds it into outputs using `psbt.addOutput` to avoid dust attack error
114
-
115
- # v.0.15.2 (2021-05-31)
116
-
117
- - don't add memo output to `coinselect/accumulative`
118
- - add memo output by using `psbt.addOutput`
119
-
120
- # v.0.15.0 (2021-05-28)
121
-
122
- ### Breaking change
123
-
124
- - prevent spending unconfirmed UTXOs
125
- - update `client.transfer()` to pass `spendPendingUTXO` param to the `Utils.buildTx()`
126
- - update `Utils.buildTx()` to spend only confirmed UTXO if memo exists
127
- - update `Utils.buildTx()` to build `psbt` using `accumulative` lib
128
- - add `getIsTxConfirmed`, `getConfirmedUnspentTxs` sochain api
129
- - add unit test for sochain apis
130
- - add unit test for both success and failed cases of `client.transfer()` to prevent spending unconfirmed UTXOs
131
- - add `coinselect/accumulative` to devDependency and peerDependency, to select which utxos to use as inputs for transfer
132
- - add recursive call to https://sochain.com/api#get-unspent-tx to make sure we fetch ALL utxos
133
- - Merged updates from PR [#324](https://github.com/xchainjs/xchainjs-lib/issues/322) to fix Issue [#322](https://github.com/xchainjs/xchainjs-lib/issues/322)
134
-
135
- # v.0.14.0 (2021-05-17)
136
-
137
- ### Breaking change
138
-
139
- - added support for HD wallets
140
-
141
- # v.0.13.0 (2021-05-05)
142
-
143
- ### Breaking change
144
-
145
- - Latest @xchainjs/xchain-client@0.8.0
146
- - Latest @xchainjs/xchain-util@0.2.7
147
-
148
- # v.0.12.2 (2021-04-19)
149
-
150
- ### Update
151
-
152
- - Export `calFee`
153
-
154
- # v.0.12.1 (2021-03-02)
155
-
156
- ### Update
157
-
158
- - Export `validateAddress`
159
-
160
- # v.0.12.0 (2021-03-02)
161
-
162
- ### Breaking change
163
-
164
- - replace `find`, `findIndex`
165
- - Update @xchainjs/xchain-client package to 0.7.0
166
-
167
- # v.0.11.1 (2021-02-26)
168
-
169
- ### Update
170
-
171
- - Export `scanUTXOs` + `buildTx`
172
-
173
- # v.0.11.0 (2021-02-24)
174
-
175
- ### Breaking change
176
-
177
- - Update @xchainjs/xchain-client package to 0.6.0
178
-
179
- # v.0.10.1 (2021-02-22)
180
-
181
- ### Update
182
-
183
- - Uses BlockStream to submit transactions instead of Sochain
184
-
185
- # v.0.10.0 (2021-02-19)
186
-
187
- ### Breaking change
188
-
189
- - Update @xchainjs/xchain-client package to 0.5.0
190
- - Make `feeRate` optional in `transfer()`, default is `fast`
191
-
192
- ### Update
193
-
194
- - Update README.md
195
-
196
- ### Fix
197
-
198
- - Fix `peerDependencies`
199
-
200
- # v.0.9.0
201
-
202
- ### Breaking change
203
-
204
- - Update @xchainjs/xchain-client package to 0.4.0
205
- - Update @xchainjs/xchain-crypto package to 0.2.3
206
- - Change `blockchair` to `sochain`
207
- - Update `getSuggestedFee`
208
-
209
- ### Update
210
-
211
- - Add `Service Providers` section in README.md
212
-
213
- # v.0.8.2 (2021-01-30)
214
-
215
- - Clear lib folder on build
216
-
217
- # v.0.8.1 (2021-01-15)
218
-
219
- ### Change
220
-
221
- - Export `getPrefix`
222
-
223
- # v.0.8.0 (2021-01-15)
224
-
225
- ### Breaking change
226
-
227
- - Move `getPrefix` to util
228
-
229
- # v.0.7.1 (2021-01-12)
230
-
231
- ### Update
232
-
233
- - Update `getBalance` to check api key #180
234
- - Update comments for documentation
235
-
236
- # v.0.7.0 (2020-12-28)
237
-
238
- ### Update
239
-
240
- - Add `getDefaultFeesWithRates` to `utils` #157
241
-
242
- ### Breaking change
243
-
244
- - Extract `getDefaultFees`, `calcFee` from `Client` to `utils` #157
245
- - Remove `validateAddress` from `BitcoinClient`
246
-
247
- # v.0.6.0 (2020-12-11)
248
-
249
- ### Update
250
-
251
- - Update dependencies
252
- - Add `getDefaultFees`
253
- - Add `createTxInfo` to support transactions using Ledger
254
- - Add `getDerivePath` helper
255
-
256
- ### Breaking changes
257
-
258
- - Remove deprecated stuff of `electrs`
259
- - Extract constants to `src/const`
260
- - Extract common types to `types/common`
261
-
262
- ### Fix
263
-
264
- - Update exports
265
-
266
- # v.0.5.1 (2020-11-20)
267
-
268
- ### Update
269
-
270
- - Use `getSeed` of `xchain-crypto`
271
- - Remove `bip39` from dependencies
272
- - Use latest `xchain-crypto@0.2.1`
273
-
274
- # v.0.5.0 (2020-11-20)
275
-
276
- ### Breaking change
277
-
278
- - Update @xchainjs/xchain-crypto package to 0.2.0, deprecating old keystores
279
-
280
- # v.0.4.4 (2020-12-11)
281
-
282
- ### Fix:
283
-
284
- - Use latest `xchain-client@0.1.0`
285
-
286
- # v.0.4.3 (2020-11-11)
287
-
288
- ### Fix
289
-
290
- - replaced functions properties to the arrow functions at the `Client`
291
-
292
- # v.0.4.1 (2020-10-11)
293
-
294
- ### Fix:
295
-
296
- - Use latest `xchain-client@0.0.7`
297
-
298
- # v.0.4.0 (2020-09-11)
299
-
300
- ### Breaking changes:
301
-
302
- - Remove usage of a phrase for `BIP39.mnemonicToSeedSync`
303
- - Ignore transactions in `getTransactions` typed as 'nulldata' by Blockchair
304
-
305
- # v.0.1.0 (2020-05-11)
306
-
307
- First release