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 support for pending send #48

Merged
merged 3 commits into from
Mar 27, 2024
Merged

Add support for pending send #48

merged 3 commits into from
Mar 27, 2024

Conversation

hydra-yse
Copy link
Collaborator

@hydra-yse hydra-yse commented Mar 22, 2024

This PR:

  • Adds fields to OngoingSwap for pending sends, giving the user the ability to list and filter them
  • Adds the necessary columns for pending sends in the database schema

@hydra-yse hydra-yse requested a review from ok300 March 22, 2024 00:19
@hydra-yse hydra-yse self-assigned this Mar 22, 2024
@hydra-yse hydra-yse changed the title Added support for pending send Add support for pending send Mar 22, 2024
Comment on lines +103 to +122
pub(crate) enum OngoingSwap {
Send {
id: String,
amount_sat: u64,
funding_address: String,
},
Receive {
id: String,
preimage: String,
redeem_script: String,
blinding_key: String,
invoice_amount_sat: u64,
onchain_amount_sat: u64,
},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Think I found the best of both worlds here; the tables are split but we can still represent methods uniquely. What do you think @ok300 ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good!

@hydra-yse hydra-yse merged commit 21f6d70 into main Mar 27, 2024
2 checks passed
@hydra-yse hydra-yse deleted the yse-pending-send branch March 27, 2024 15:41
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