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 force-pushed the deposit-sweep-use-bitcoinjs-lib branch from 035e9c4 to 8f5a718 Compare September 18, 2023 10:46
@tomaszslabon tomaszslabon force-pushed the deposit-sweep-use-bitcoinjs-lib branch from 8f5a718 to f0c5dc2 Compare September 18, 2023 10:52
@tomaszslabon tomaszslabon force-pushed the deposit-sweep-use-bitcoinjs-lib branch from 7d3f496 to e609cee Compare September 20, 2023 10:51
@tomaszslabon tomaszslabon requested review from lukasz-zimnoch and michalsmiarowski and removed request for lukasz-zimnoch September 20, 2023 11:14
@tomaszslabon tomaszslabon self-assigned this Sep 20, 2023
@tomaszslabon tomaszslabon added the 🔌 typescript TypeScript library label Sep 20, 2023
@tomaszslabon tomaszslabon force-pushed the deposit-sweep-use-bitcoinjs-lib branch from 6833051 to dcf7314 Compare September 25, 2023 13:44
@tomaszslabon tomaszslabon force-pushed the deposit-sweep-use-bitcoinjs-lib branch from e243f0f to da9856a Compare September 25, 2023 16:22
@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
@tomaszslabon tomaszslabon force-pushed the deposit-sweep-use-bitcoinjs-lib branch from ddc92db to 770032c Compare September 27, 2023 09:09
@tomaszslabon tomaszslabon force-pushed the deposit-sweep-use-bitcoinjs-lib branch from d224d88 to b0eac23 Compare September 27, 2023 12:53
@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