@xchainjs/xchain-thorchain 0.27.7 → 0.27.8

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/CHANGELOG.md ADDED
@@ -0,0 +1,598 @@
1
+ # v.0.27.8 (2023-01-19)
2
+
3
+ ## Update
4
+
5
+ - Type safety `THORChain`
6
+
7
+ # v.0.27.7 (2022-12-27)
8
+
9
+ ## Add
10
+
11
+ - Add `AssetRune67C`, `AssetRuneB1A`, `AssetRuneERC20`, `AssetRuneERC20Testnet`, `THORChain` and `AssetRuneNative` definitions
12
+
13
+ ## Update
14
+
15
+ - Bump `xchain-client@13.5.0`
16
+
17
+ ## Update
18
+
19
+ - Change `AssetETH`, `AssetBNB` and `GAIAChain` imports to its own `xchain-*` package
20
+
21
+ # v.0.27.6 (2022-12-13)
22
+
23
+ ## Update
24
+
25
+ - removed `customRequestHeaders`
26
+
27
+ # v.0.27.5 (2022-12-12)
28
+
29
+ ## Update
30
+
31
+ - Add optional `sequence` to `transfer` and `deposit` to override `sequence`
32
+ - Add helpers `getAccount` and `getSequence` to `utils`
33
+
34
+ # v.0.27.4 (2022-11-??)
35
+
36
+ # v.0.27.3 (2022-11-24)
37
+
38
+ ## Update
39
+
40
+ - Added `customRequestHeaders` to `BroadcastTxParams`
41
+ - Bump `xchain-client`
42
+
43
+ # v.0.27.2 (2022-11-08)
44
+
45
+ ## Update
46
+
47
+ - changed chain-id-stagenet to `thorchain-stagenet-v2`
48
+
49
+ # v.0.27.1 (2022-10-13)
50
+
51
+ - added default `chainIds` in constructor
52
+ - added default `explorerUrls` in constructor
53
+ - Set Default network to `Network.Mainnet`
54
+
55
+ ## Update
56
+
57
+ - Bumped `xchain-utils` & `xchain-client`
58
+
59
+ # v0.27.0 (2022-10-07)
60
+
61
+ ## Breaking Changes
62
+
63
+ - Removed `getDefaultClientUrl`
64
+ - Removed `getChainIds`
65
+ - Update `ThorchainClientParams` to make clientUrl required (not optional)
66
+
67
+ # v.0.26.2 (2022-10-06)
68
+
69
+ ## Update
70
+
71
+ - Bumped `xchain-utils` & `xchain-client`
72
+
73
+ # v.0.26.1 (2022-09-29)
74
+
75
+ ## Update
76
+
77
+ - bumped deps on xchain-utils & xchain-client
78
+
79
+ # v.0.26.0 (2022-07-20)
80
+
81
+ ## Change
82
+
83
+ - updated packages xchain-client & xchain-util
84
+
85
+ # v0.25.3 (2022-07-01)
86
+
87
+ ## Update
88
+
89
+ - Latest "xchain-cosmos@0.19.0"
90
+
91
+ # v0.25.2 (2022-06-22)
92
+
93
+ ## Update
94
+
95
+ - Latest `@cosmos-client/core@0.45.10`
96
+ - Latest "xchain-cosmos@0.18.0"
97
+
98
+ ## Fix
99
+
100
+ - Fix `setNetwork` to create new instance of SDK client
101
+
102
+ # v0.25.1 (2022-06-17)
103
+
104
+ ## Fix
105
+
106
+ - Remove estimation of gas in `transfer` and `deposit` (introduced by #564) in favour of using `DEFAULT_GAS_LIMIT_VALUE` or `DEPOSIT_GAS_LIMIT_VALUE` (both can be overridden by users in `transfer` or `deposit`)
107
+ - Increase `DEPOSIT_GAS_LIMIT_VALUE` to `600000000` (before `500000000`)
108
+
109
+ # v0.25.0 (2022-06-16)
110
+
111
+ ## Fix
112
+
113
+ - Before sending a transaction, gas limits are estimated
114
+ - Helper `getEstimatedGas`
115
+
116
+ ## Breaking changes
117
+
118
+ - Client's `transferOffline` requires `fromAccountNumber` and `fromSequence`
119
+ - Rename parameters in `transferOffline` to keep names in camel case (not snake case)
120
+ - Rename `DEFAULT_GAS_VALUE` to `DEFAULT_GAS_LIMIT_VALUE`
121
+ - Rename `DEPOSIT_GAS_VALUE` to `DEPOSIT_GAS_LIMIT_VALUE`
122
+
123
+ # v0.24.1 (2022-04-23)
124
+
125
+ ## Fix
126
+
127
+ - Increase `DEFAULT_GAS_VALUE` to `4000000` (before `3000000`)
128
+
129
+ # v0.24.0 (2022-03-23)
130
+
131
+ ## Update
132
+
133
+ - upgraded to "@cosmos-client/core": "0.45.1"
134
+ - client now extend BaseXChainClient
135
+
136
+ ## Breaking Changes
137
+
138
+ - `buildDepositTx` now returns `proto.cosmos.tx.v1beta1.TxBody` from `@cosmos-client/core`
139
+
140
+ # v0.23.0 (2022-03-08)
141
+
142
+ ## Add
143
+
144
+ - Helpers `getChainId` + `getChainIds`
145
+
146
+ ## Breaking change
147
+
148
+ - `chainIds: ChainIds` is required to initialize `Client`
149
+
150
+ ## Fix
151
+
152
+ - Request fees from THORChain and use `defaultFees` in case of server errors only
153
+ - Fix `defaultFees` to be 0.02 RUNE
154
+
155
+ # v0.22.2 (2022-02-17)
156
+
157
+ ## Fix
158
+
159
+ - Request fees from THORChain and use `defaultFees` in case of server errors only
160
+ - Fix `defaultFees` to be 0.02 RUNE
161
+
162
+ # v0.22.1 (2022-02-16)
163
+
164
+ ## Fix
165
+
166
+ - Increase limit for `DEFAULT_GAS_VALUE` from 2000000 to 3000000 to accommodate recent increases in gas used that go above the old limit
167
+
168
+ # v0.22.0 (2022-02-06)
169
+
170
+ ## Add
171
+
172
+ - Option to pass `ChainIds` into constructor
173
+ - getter / setter for `chainId` in `Client`
174
+
175
+ ## Breaking change
176
+
177
+ - `buildDepositTx` needs `chainId` to be passed - all params are set as object
178
+ - Remove `enum ChainId` + `getChainId` + `isChainId` from `utils`
179
+
180
+ # v0.21.2 (2022-02-04)
181
+
182
+ ## Fix
183
+
184
+ - Use latest axios@0.25.0
185
+ - xchain-client@0.11.1
186
+ - @xchainjs/xchain-util@0.5.1
187
+ - @xchainjs/xchain-cosmos@0.16.1
188
+
189
+ # v.0.21.1 (2022-02-04)
190
+
191
+ ## Fix
192
+
193
+ - Fix chain id for `testnet` #477
194
+
195
+ ## Add
196
+
197
+ - Helper `isChainId`
198
+ - `enum ChainId`
199
+
200
+ # v.0.21.0 (2022-02-02)
201
+
202
+ ## Breaking change
203
+
204
+ - Remove `getDenomWithChain`
205
+ - Rename `getAsset` -> `assetFromDenom` (incl. fix to get synth asset properly)
206
+
207
+ ## Update
208
+
209
+ - xchain-util@0.5.0
210
+ - xchain-cosmos@0.16.0
211
+
212
+ ## Add
213
+
214
+ - `isAssetNativeRune` helper
215
+ - Add `TxOfflineParams` type
216
+
217
+ ## Fix
218
+
219
+ - Fix synth notation in `transfer|transferOffline|deposit` #473
220
+
221
+ # v0.20.1 (2022-01-11)
222
+
223
+ ## Fix
224
+
225
+ - Get chain ID from THORNode before posting to deposit handler.
226
+
227
+ # v.0.20.0 (2021-12-29)
228
+
229
+ ## Breaking change
230
+
231
+ - Add stagenet environment handling for `Network` and `BaseXChainClient` to client
232
+
233
+ # v.0.19.5 (2021-11-22)
234
+
235
+ ## Add
236
+
237
+ - Provide `transferOffline` method
238
+
239
+ # v.0.19.4 (2021-11-22)
240
+
241
+ ## Add
242
+
243
+ - Provide `getPubKey` method to access public key
244
+
245
+ ## Change
246
+
247
+ - Make `getPrivKey` method `public` to access private key
248
+
249
+ # v.0.19.3 (2021-10-31)
250
+
251
+ ## Update
252
+
253
+ - Use latest `xchain-cosmos@0.13.8` to use `sync` mode for broadcasting txs
254
+
255
+ # v.0.19.2 (2021-09-27)
256
+
257
+ ## Fix
258
+
259
+ - Increase `gas` to `500,000,000` (five hundred million)
260
+
261
+ # v.0.19.1 (2021-09-26)
262
+
263
+ ## Fix
264
+
265
+ - Increase `gas` to `30,000,000` (thirty million)
266
+
267
+ # v.0.19.0 (2021-09-10)
268
+
269
+ ## Breaking change
270
+
271
+ - Extract `buildDepositTx` from `Client` into `utils`
272
+
273
+ ## Add
274
+
275
+ - Add `getBalance` to `utils`
276
+
277
+ # v.0.18.0 (2021-09-08)
278
+
279
+ ## Add
280
+
281
+ - Make `buildDepositTx` public and overrides its fee
282
+ - Add `DEPOSIT_GAS_VALUE`
283
+
284
+ ## Breaking change
285
+
286
+ - Remove `AssetRune` in favour of using `AssetRuneNative` of `xchain-util` only
287
+ - Extract `getChainId` into `util` module
288
+
289
+ # v.0.17.7 (2021-07-20)
290
+
291
+ ## Fix
292
+
293
+ - cosmos 0.42.x has too many breaking changes that wren't caught in the last version, downgrade "cosmos-client": "0.39.2"
294
+
295
+ # v.0.17.6 (2021-07-19)
296
+
297
+ ## Update
298
+
299
+ - bumping peer dependency "cosmos-client": "0.39.2" -> "cosmos-client": "^0.42.7"
300
+
301
+ # v.0.17.5 (2021-07-18)
302
+
303
+ ## Update
304
+
305
+ - Updated rollupjs to include axios to enlable usage on node
306
+
307
+ # v.0.17.4 (2021-07-14)
308
+
309
+ ### Fix
310
+
311
+ - Bump `fee.gas to `25000000` (twenty five million) to try to avoid failing withdraw txs
312
+
313
+ # v.0.17.3 (2021-07-07)
314
+
315
+ ## Update
316
+
317
+ - Use latest `xchain-client@0.10.1` + `xchain-util@0.3.0`
318
+
319
+ # v.0.17.2 (2021-07-05)
320
+
321
+ ## Fix
322
+
323
+ - refactored client methods to use regular method syntax (not fat arrow) in order for bcall to super.xxx() to work properly
324
+
325
+ # v.0.17.1 (2021-06-29)
326
+
327
+ ### Fix
328
+
329
+ - Stick with `cosmos-client@0.39.2`
330
+
331
+ ### Add
332
+
333
+ - Add examples to README
334
+
335
+ # v.0.17.0 (2021-06-21)
336
+
337
+ ### Fix
338
+
339
+ - Fix `to` / `from` addresses by parsing tx data from event logs
340
+
341
+ ### Breaking change
342
+
343
+ - Remove deprecated `getTxDataFromResponse` helper
344
+
345
+ # v.0.16.1 (2021-06-14)
346
+
347
+ ### Fix
348
+
349
+ - Double `fee.gas to `20000000` (twenty million) to avoid failing withdraw transactions
350
+
351
+ # v.0.16.0 (2021-06-08)
352
+
353
+ ### Breaking change
354
+
355
+ - Use `viewblock` as default explorer
356
+ - [types] Refactored structure of explorer urls (via `type ExplorerUrls`)
357
+ - [types] Refactored `ExplorerUrl`
358
+ - [client] Constructor accepts `ExplorerUrls`
359
+ - [client] Removed `getExplorerNodeUrl` (use `getExplorerAddressUrl` instead)
360
+ - [client] Extract `getDefaultClientUrl` into `utils`
361
+ - [utils] Renamed `getDefaultExplorerUrlByNetwork` -> `getDefaultExplorerUrl`
362
+ - [utils] Removed `getDefaultExplorerAddressUrl`, `getDefaultExplorerNodeUrl`, `getDefaultExplorerTxUrl`
363
+ - [utils] Added `getExplorerTxUrl`, `getExplorerAddressUrl`, `getExplorerUrl` helpers
364
+
365
+ # v.0.15.2 (2021-06-01)
366
+
367
+ ### Update
368
+
369
+ - updated peer deps
370
+
371
+ # v.0.15.0 (2021-05-17)
372
+
373
+ ### Breaking change
374
+
375
+ - added support for HD wallets
376
+
377
+ # v.0.14.0 (2021-05-05)
378
+
379
+ ### Breaking change
380
+
381
+ - Latest @xchainjs/xchain-client@0.8.0
382
+ - Latest @xchainjs/xchain-util@0.2.7
383
+
384
+ # v.0.13.7 (2021-04-21)
385
+
386
+ ### Update
387
+
388
+ - Export `MSG_SEND` `MSG_DEPOSIT` `MAX_COUNT`
389
+ - Added `getCosmosClient()`
390
+ - Extend `getTransactions` parameters with an optional `filterFn`
391
+
392
+ # v.0.13.6 (2021-04-16)
393
+
394
+ ### Update
395
+
396
+ - Set `fee.gas` to `10000000` (ten million) in `deposit` due to failing withdraw transactions
397
+
398
+ # v.0.13.5 (2021-04-16)
399
+
400
+ ### Update
401
+
402
+ - Set `fee.gas` to `1000000` (one million) in `deposit`
403
+
404
+ # v.0.13.4 (2021-04-16)
405
+
406
+ ### Update
407
+
408
+ - Set `fee.gas` to `auto` in `deposit`
409
+ - Try sending `deposit` tx up to 3x
410
+ - Updates `DEFAULT_GAS_VALUE` to `2000000`
411
+
412
+ # v.0.13.3 (2021-04-12)
413
+
414
+ ### Breaking changes
415
+
416
+ - Change `/addresses` to `/address` for explorer url.
417
+
418
+ ### Update
419
+
420
+ - Add util helpers for explorer urls.
421
+
422
+ # v.0.13.2 (2021-04-01)
423
+
424
+ ### Update
425
+
426
+ - Updates `getDefaultClientUrl` to use new mainnet endpoints
427
+
428
+ # v.0.13.1 (2021-03-18)
429
+
430
+ ### Fix
431
+
432
+ - Changed `getDefaultExplorerUrl` to return valid urls
433
+
434
+ # v.0.13.0 (2021-03-02)
435
+
436
+ ### Breaking change
437
+
438
+ - replace `find`, `findIndex`
439
+ - Update @xchainjs/xchain-client package to 0.7.0
440
+ - Update @xchainjs/xchain-cosmos package to 0.11.0
441
+
442
+ # v.0.12.0 (2021-02-24)
443
+
444
+ ### Breaking change
445
+
446
+ - Update @xchainjs/xchain-client package to 0.6.0
447
+ - Update @xchainjs/xchain-cosmos package to 0.10.0
448
+ - Update `getBalance`
449
+
450
+ # v.0.11.1 (2021-02-24)
451
+
452
+ ### Breaking change
453
+
454
+ - Update @xchainjs/xchain-cosmos package to 0.9.0
455
+
456
+ ### Fix
457
+
458
+ - Fix `getTransactions` - sort transactions from latest
459
+ - Fix `DECIMAL`
460
+
461
+ # v.0.11.0 (2021-02-19)
462
+
463
+ ### Breaking change
464
+
465
+ - Update @xchainjs/xchain-client package to 0.5.0
466
+
467
+ ### Update
468
+
469
+ - Add `Service Providers` section in README.md
470
+
471
+ ### Fix
472
+
473
+ - Fix `peerDependencies`
474
+
475
+ # v.0.10.1 (2021-02-05)
476
+
477
+ ### Update
478
+
479
+ - Update `getTransactions` to support incoming transactions
480
+
481
+ ### Breaking change
482
+
483
+ - Update @xchainjs/xchain-client package to 0.4.0
484
+ - Update @xchainjs/xchain-crypto package to 0.2.3
485
+
486
+ # v.0.10.0 (2021-02-03)
487
+
488
+ ### Breaking changes
489
+
490
+ - Change `getTransactions` to use tendermint rpc. (transaction query from the latest ones.)
491
+
492
+ # v.0.9.3 (2021-02-02)
493
+
494
+ ### Update
495
+
496
+ - Add `getExplorerNodeUrl`
497
+
498
+ # v.0.9.2 (2021-01-30)
499
+
500
+ - Clear lib folder on build
501
+
502
+ # v.0.9.1 (2021-01-26)
503
+
504
+ ### Fix
505
+
506
+ - Fix `deposit`. Use `/thorchain/deposit` to build a deposit transaction.
507
+
508
+ # v.0.9.0 (2021-01-15)
509
+
510
+ ### Breaking change
511
+
512
+ - Move `getPrefix` to util
513
+
514
+ # v.0.8.0 (2021-01-13)
515
+
516
+ ### Breaking change
517
+
518
+ - change MsgNativeTx.fromJson
519
+
520
+ # v.0.7.1 (2021-01-06)
521
+
522
+ ### Fix
523
+
524
+ - Fix getTransactions pagination issue #168
525
+
526
+ ### Update
527
+
528
+ - Update comments for documentation
529
+
530
+ # v.0.7.0 (2020-12-28)
531
+
532
+ ### Breaking change
533
+
534
+ - Extract `getDefaultFees` from `Client` to `utils` #157
535
+
536
+ # v.0.6.2 (2020-12-23)
537
+
538
+ ### Update
539
+
540
+ - Use latest xchain-client@0.2.1
541
+
542
+ ### Fix
543
+
544
+ - Fix invalid assets comparison #151
545
+
546
+ ### Breaking change
547
+
548
+ - Remove `validateAddress` from `ThorchainClient` #149
549
+
550
+ # v.0.6.1 (2020-12-18)
551
+
552
+ ### Update
553
+
554
+ - Add `setClientUrl`
555
+ - Add `getDefaultClientUrl`
556
+ - Add `getClientUrlByNetwork`
557
+
558
+ ### Fix
559
+
560
+ - Fix client url for multichain testnet (`https://testnet.thornode.thorchain.info`)
561
+
562
+ # v.0.6.0 (2020-12-16)
563
+
564
+ ### Update
565
+
566
+ - Set the latest multi-chain node
567
+ - Update `getTransactionData`, `getTransactions`
568
+ - Update `transfer` (for `MsgSend`)
569
+ - Update `deposit` (for `MsgNativeTx`)
570
+
571
+ # v.0.5.0 (2020-12-11)
572
+
573
+ ### Update
574
+
575
+ - Update dependencies
576
+ - Add `getDefaultFees`
577
+
578
+ # v.0.4.2 (2020-11-23)
579
+
580
+ ### Fix
581
+
582
+ - Fix import of `cosmos/codec`
583
+
584
+ ### Update
585
+
586
+ - Use latest `@xchainjs/cosmos@0.4.2`
587
+
588
+ # v.0.4.1 (2020-11-23)
589
+
590
+ ### Update
591
+
592
+ - Update to latest `@xchainjs/*` packages and other dependencies
593
+
594
+ # v.0.4.0 (2020-11-20)
595
+
596
+ ### Breaking change
597
+
598
+ - Update @xchainjs/xchain-crypto package to 0.2.0, deprecating old keystores
package/lib/const.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Asset, Chain } from '@xchainjs/xchain-util/lib';
1
+ import { Asset } from '@xchainjs/xchain-util/lib';
2
2
  import { ExplorerUrls } from './types';
3
3
  export declare const DECIMAL = 8;
4
4
  export declare const DEFAULT_GAS_ADJUSTMENT = 2;
@@ -11,7 +11,7 @@ export declare const defaultExplorerUrls: ExplorerUrls;
11
11
  * Chain identifier for Thorchain
12
12
  *
13
13
  */
14
- export declare const THORChain: Chain;
14
+ export declare const THORChain: "THOR";
15
15
  /**
16
16
  * Base "chain" asset for RUNE-67C on Binance test net.
17
17
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-thorchain",
3
- "version": "0.27.7",
3
+ "version": "0.27.8",
4
4
  "description": "Custom Thorchain client and utilities used by XChainJS clients",
5
5
  "keywords": [
6
6
  "THORChain",