Commit Graph

110 Commits

Author SHA1 Message Date
yanas
c1fcbfb36b feat(blockchain-link): cache addresses by Electrum worker 2026-01-15 14:19:49 +01:00
Jaroslav Hrách
912efab4b5 fix(suite): correct max amount behavior for ETH and SOL staking 2025-11-03 12:15:38 +01:00
Tomáš Boďa
74e276011e chore(suite): update network backends 2025-11-03 11:55:50 +01:00
Jan Komarek
adcf5db457 chore(utxo-lib): remove deprecated bchaddr dependency, add own implementation 2025-07-11 15:04:49 +02:00
Tomas Martykan
d349a5d05b chore(utxo-lib): move TxWeightCalculator to src 2025-04-14 15:04:22 +02:00
Daniel Suchý
e346ba7f61 chore: upgrade to TS 5.8 (#17537)
* chore: upgrade to TS 5.6

* chore: upgrade to TS 5.7

* feat: upgate to TS 5.8

* chore: update eslint

* fix: use es2023 also for build
2025-03-12 13:32:41 +01:00
yanas
b96c899ebb chore(packages): autofix for sort-imports eslint rule 2025-01-30 16:34:04 +01:00
Peter Sanderson
1c875caa7e chore: rbf-fee calculation (BIP-125) archeology and documentation 2025-01-23 14:05:46 +01:00
Peter Sanderson
610108e4da fix: show proper info for unspendable coinbase transactions 2024-12-20 13:51:43 +01:00
Peter Sanderson
1ad7b6f9b1 chore: get rid of '@typescript-eslint/no-unused-vars': 'off', and enforce it everywhere 2024-11-06 19:59:37 +01:00
Peter Sanderson
e22b683733 chore: enable import/order rule for whole codebase 2024-11-06 18:20:26 +01:00
Peter Sanderson
2223463b66 chore: rename bnb to branchAndBound to be more explicit & remove conllision with BNB token 2024-10-30 11:14:57 +01:00
Peter Sanderson
5707a4d267 chore: use interface (type) for coinselection algorithymns 2024-10-29 20:31:59 +01:00
Peter Sanderson
ed4c9e02ce fix: make reandom mocks work in Karma 2024-10-29 09:56:13 +01:00
Peter Sanderson
6c3137fdf8 feat: implement random strategy for utxo sorting
chore: improve test for composeTx so that random number generotor can be mocked per-case in fixure independently
2024-10-29 09:56:13 +01:00
Peter Sanderson
283d3f1eae feat: add sortingStrategy param to connect, deprecate skipPermitationparam in composeTransaction 2024-10-22 09:39:16 +02:00
Peter Sanderson
3dace574c0 feat: introduce sortingStrategy into utxo-lib so we can have more strategies (bip69, none, and later the random)
feat: refactor utxo-lib so it impements multiple sorting strategies (one strategy per file)
2024-10-21 11:38:16 +02:00
Jiri Zbytovsky
e8e2e59355 chore(suite): update mission dependencies: varuint-bitcoin 2024-09-11 09:34:30 +02:00
Jan Komarek
a304dd56a1 chore: update crypto libs 2024-08-27 16:31:51 +02:00
Jan Komarek
affd7d20c3 chore(utxo-lib): remove unused util 2024-08-27 16:31:51 +02:00
Szymon Lesisz
840ecb5b0f chore(utxo-lib): remove create-hash dependency 2024-06-12 13:20:52 +02:00
Marek Polak
4db4c2e903 fix(utxo-lib): support checksums in descriptor parsing 2024-04-03 17:03:51 +02:00
Peter Sanderson
c82455e746 chore(suite): autofix newlines 2024-02-20 14:54:29 +01:00
Daniel Suchý
44fa12a79d chore(repo): ESLint refactor + speed up 70% (#11143)
* chore: eslint speedup

* chore: disable some react rules for class components

* chore: fix startup command

* chore(deps): dedupe
2024-02-12 20:18:19 +01:00
Jan Komarek
00fe229e01 chore: update prettier 2024-02-12 11:56:09 +01:00
Martin Varmuza
57b9b4fee6 chore(utxo-lib): replace global.d.ts with global.ts 2024-01-15 21:10:56 +01:00
Szymon Lesisz
55eecd28bf refactor(utxo-lib): use spread instead of Object.assign 2023-12-22 12:20:13 +01:00
Szymon Lesisz
ab1dae3fd5 refactor(utxo-lib): coinselect VinVout values/amounts as BN 2023-12-22 12:20:13 +01:00
Szymon Lesisz
7a8dff4671 refactor(utxo-lib): composeTx merge coinselect modules 2023-12-13 14:12:55 +01:00
Szymon Lesisz
831d31688a refactor(utxo-lib): composeTx result in one place 2023-12-13 14:12:55 +01:00
Szymon Lesisz
ecb87bccdc refactor(utxo-lib): composeTx request validation in one place 2023-12-13 14:12:55 +01:00
Szymon Lesisz
466e10e4cd chore(utxo-lib): use default imports from commonjs dependencies 2023-12-12 15:03:47 +01:00
Szymon Lesisz
96d97c312d refactor(utxo-lib): do not use direct typeforce import 2023-12-12 15:03:47 +01:00
tomasklim
4229fd483b chore: update prettier to v3 and reformat 2023-11-04 08:55:36 +01:00
Szymon Lesisz
993dbf6284 chore(utxo-lib): export all ComposeResult types 2023-10-27 13:01:07 +02:00
Szymon Lesisz
6107d8d82c refactor(utxo-lib): composeTx nonfinal result with inputs 2023-10-27 13:01:07 +02:00
Szymon Lesisz
bb379b47de refactor(utxo-lib): composeTx final result without nested "transaction" object
BREAKING CHANGE:

- result `transaction.inputs` > `inputs`
- result `transaction.outputs.sorted` > `outputs`
- result `transaction.outputs.permutation` > `outputsPermutation`
2023-10-27 13:01:07 +02:00
Szymon Lesisz
8a6dacfc68 chore(utxo-lib): composeTx remove basePath and changeId params
BREAKING CHANGE:

- request `basePath` is removed (not used)
- request `changeId` is removed (not used)
2023-10-27 13:01:07 +02:00
Szymon Lesisz
9f91c09111 refactor(utxo-lib): composeTx make changeAddress param generic
BREAKING CHANGE:

- request `changeAddress` extends { address: string } interface (previously `string`)
2023-10-27 13:01:07 +02:00
Szymon Lesisz
2e4b3563ae refactor(utxo-lib): composeTx make ComposeOutput and ComposedTransaction.output generic
BREAKING CHANGE:

- request `output` === response `transaction.output`
- response `ComposedTxOutput` interface removed
2023-10-27 13:01:07 +02:00
Szymon Lesisz
af7ca4837d chore(utxo-lib): composeTx simplify processing result from coinselect
moved from index to `result` module:
- decision if the result is final or not
- final transaction build
2023-10-27 13:01:07 +02:00
Szymon Lesisz
3d8ce504a9 refactor(utxo-lib): composeTx strongly typed errors
BREAKING CHANGE:
- when utxos array is empty throws `MISSING-UTXOS` (previously `NOT-ENOUGH-FUNDS`)
- when outputs array is empty throws `MISSING-OUTPUTS` (previously `EMPTY`)
- on unknown `output.type` throws `INCORRECT-OUTPUT-TYPE` (previously `WRONG-OUTPUT-TYPE`
- on runtime error from `coinselect` module throws `COINSELECT` + additional message: string (previously `string`)
2023-10-27 13:01:07 +02:00
Szymon Lesisz
e78afec838 chore(utxo-lib): composeUtils simplify outputs sorting
Since all CoinSelectOutputFinal should now contain script represented as Buffer, including changeOutput (see previous commit) it no longer necessary to create those scripts once again to do the sorting.
`convertOutput` function returns `ComposedTxOutput` interface (without script)
2023-10-27 13:01:07 +02:00
Szymon Lesisz
a6d54e4436 chore(utxo-lib): composeUtils remove unnecessary function 2023-10-27 13:01:07 +02:00
Szymon Lesisz
2180ea28aa refactor(utxo-lib): composeUtils use payments module to create script used in CoinSelectOutput
pass Buffer instead of Object { lenght: number }
2023-10-27 13:01:07 +02:00
Szymon Lesisz
1ba5f0aad6 refactor(utxo-lib): coinselect add changeOutput to CoinSelectOptions
`changeOutput` is optional if not provided change output script is created from predefined OUTPUT_SCRIPT_LENGTH as before
2023-10-27 13:01:07 +02:00
Szymon Lesisz
a1ccae45f6 refactor(utxo-lib): composeTx replace Permutation class with simple function 2023-10-27 13:01:07 +02:00
Szymon Lesisz
6c36de1459 refactor(utxo-lib): composeTx ComposedTxOutput rename opReturnData to dataHex
BREAKING CHANGE:

- response `output.opReturnData: Buffer` > `output.dataHex: string`
2023-10-27 13:01:07 +02:00
Szymon Lesisz
d3c6c82e05 refactor(utxo-lib): composeTx ComposeOutput rename type field
BREAKING CHANGE:

- request `output.type = complete` > `output.type = payment`
- request `output.type = nodaddress` > `output.type = payment-noaddress`
2023-10-27 13:01:07 +02:00
Szymon Lesisz
3e3d2a601d refactor(utxo-lib): composeTx make ComposeInput and ComposedTransaction.input generic
BREAKING CHANGE:

- request `utxo` === response `transaction.input`
- request `utxo.addressPath` is removed (not used)
- response `ComposedTxInput` interface removed
2023-10-27 13:01:07 +02:00