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

feat: transaction builder #31

Merged
merged 14 commits into from
Feb 19, 2025
Merged

feat: transaction builder #31

merged 14 commits into from
Feb 19, 2025

Conversation

darioAnongba
Copy link
Contributor

@darioAnongba darioAnongba commented Feb 13, 2025

This PR improves the transaction building mechanism by mimicking the BDK way of having a dynamic builder. The builder adds support for unspendable UTXOs to remove them from the coin selection. It also adds the Txid and Outpoint wrappers.

In order to implement the builder, the wallet needs to be passed by reference in a mutable way. There is no way to directly pass the reference in wasm-bindgen so we use a RefCell and Rc.

@darioAnongba darioAnongba self-assigned this Feb 13, 2025
@gantunesr gantunesr requested a review from ccharly February 19, 2025 13:41
darioAnongba and others added 5 commits February 19, 2025 17:27
Co-authored-by: Charly Chevalier <charlyy.chevalier@gmail.com>
Co-authored-by: Charly Chevalier <charlyy.chevalier@gmail.com>
Co-authored-by: Charly Chevalier <charlyy.chevalier@gmail.com>
@darioAnongba darioAnongba merged commit 36b202a into main Feb 19, 2025
9 checks passed
@darioAnongba darioAnongba deleted the feat/unspendable branch February 19, 2025 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants