Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bitcoinjs-lib dependency #696

Merged
merged 1 commit into from
Sep 27, 2023
Merged

Add bitcoinjs-lib dependency #696

merged 1 commit into from
Sep 27, 2023

Conversation

tomaszslabon
Copy link
Contributor

@tomaszslabon tomaszslabon commented Sep 15, 2023

Refs: #695.

In this PR bitcoinjs-liblibrary was added to tbtc-v2.ts.

Since there is a node version conflict between the newest bitcoinjs-lib (requires node 16 or later) and tbt-v2.ts (requires node 14), an older version of bitcoinjs-lib was added(6.0.2).
Once we get rid of bcoin we can update bitcoinjs-lib to its newest version as it should be possible to use node 16 with tbtc-v2.ts.

I verified that the library was successfully installed.

@tomaszslabon tomaszslabon marked this pull request as ready for review September 26, 2023 11:40
@lukasz-zimnoch lukasz-zimnoch merged commit d9806cd into main Sep 27, 2023
38 checks passed
@lukasz-zimnoch lukasz-zimnoch deleted the install-bitcoinjs-lib branch September 27, 2023 05:22
lukasz-zimnoch added a commit that referenced this pull request Sep 28, 2023
Depends on: #696.
Refs: #695.

This PR replaces the `bcoin` library with `bitcoinjs-lib` for deposit
sweep transactions.
The `bcoin` library was removed from `deposit-sweep.ts`.
After this update, deposit sweep generally works in the same way as
before.
The only difference is that transaction inputs are always added in the
same order:
 - main UTXO is added first
 - deposit inputs are added in the same order as the provided UTXOs.
 
Before this change the inputs could be rearranged by the `bcoin`
library.
@lukasz-zimnoch lukasz-zimnoch added this to the typescript/v1.4.0 milestone Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔌 typescript TypeScript library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants