Skip to content

Feat/sync specific vtxo #66

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bonomat
Copy link
Collaborator

@bonomat bonomat commented May 19, 2025

the original settle function has been replaced by 2 new functions

  • settle_all: will attempt to settle all boarding inputs and pending vtxos
  • settle: which accepts inputs of which boarding and pending vtxos to settle

with this clients can decide to settle all VTXOs at once or decide to settle only specific VTXOs

Note: I've cherry-picked a single e2e test to use the new functions. The other e2e tests are still using the settle_all function.

Note: This is a breaking change due to renaming the existing settle function to settle_all.

bonomat added 2 commits May 19, 2025 11:23
the original `settle` function has been replaced by 2 new functions
- `settle_all`: will attempt to settle all boarding inputs and pending vtxos
- `settle`: which accepts inputs of which boarding and pending vtxos to settle

with this clients can decide to settle all VTXOs at once or decide to settle only specific VTXOs
@bonomat bonomat requested a review from luckysori May 19, 2025 03:44
Copy link
Collaborator

@luckysori luckysori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -127,7 +127,6 @@ pub use error::Error;
/// # &self,
/// # server_pk: XOnlyPublicKey,
/// # exit_delay: bitcoin::Sequence,
/// # descriptor_template: &str,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be running doc tests in CI?

Comment on lines +59 to +60
/// Lift all pending VTXOs and boarding outputs into the Ark, converting them into new,
/// confirmed VTXOs. We do this by "joining the next round".
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should document this function differently.

@tiero
Copy link
Member

tiero commented May 19, 2025

What if we avoided the breaking change and added a settle_only? I have yet to find a use case for granular settlements, so I would keep settle for consistency with other SDK (which settle all)

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.

3 participants