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

Replace bcoin with bitcoinjs-lib for deposit-sweep #700

Merged
merged 34 commits into from
Sep 28, 2023

Conversation

tomaszslabon
Copy link
Contributor

@tomaszslabon tomaszslabon commented Sep 18, 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.

@tomaszslabon tomaszslabon changed the base branch from main to install-bitcoinjs-lib September 18, 2023 09:04
@tomaszslabon tomaszslabon marked this pull request as ready for review September 26, 2023 11:38
Base automatically changed from install-bitcoinjs-lib to main September 27, 2023 05:22
typescript/src/bitcoin.ts Outdated Show resolved Hide resolved
typescript/src/bitcoin.ts Outdated Show resolved Hide resolved
typescript/src/deposit-sweep.ts Outdated Show resolved Hide resolved
typescript/src/bitcoin.ts Outdated Show resolved Hide resolved
typescript/src/deposit-sweep.ts Outdated Show resolved Hide resolved
typescript/test/data/deposit-sweep.ts Show resolved Hide resolved
typescript/test/deposit-sweep.test.ts Show resolved Hide resolved
typescript/src/deposit-sweep.ts Outdated Show resolved Hide resolved
typescript/src/deposit-sweep.ts Outdated Show resolved Hide resolved
typescript/src/deposit-sweep.ts Outdated Show resolved Hide resolved
@lukasz-zimnoch lukasz-zimnoch merged commit c5edcdf into main Sep 28, 2023
38 checks passed
@lukasz-zimnoch lukasz-zimnoch deleted the deposit-sweep-use-bitcoinjs-lib branch September 28, 2023 07:27
lukasz-zimnoch added a commit that referenced this pull request Oct 9, 2023
lukasz-zimnoch added a commit that referenced this pull request Oct 10, 2023
@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