-
Notifications
You must be signed in to change notification settings - Fork 23
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: Onboarding through a hodl invoice #2560
Commits on May 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 80d2916 - Browse repository at this point
Copy the full SHA 80d2916View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81a3116 - Browse repository at this point
Copy the full SHA 81a3116View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7bc782 - Browse repository at this point
Copy the full SHA e7bc782View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19ced8d - Browse repository at this point
Copy the full SHA 19ced8dView commit details -
feat: Add generic signed value model
This will allow us to generically wrap a api model into a signed value model which covers the signature creation and verification.
Configuration menu - View commit details
-
Copy full SHA for d34edf1 - Browse repository at this point
Copy the full SHA d34edf1View commit details
Commits on May 27, 2024
-
Creates a hodl invoices, subscribes to updates to it and returns the invoice to the app.
Configuration menu - View commit details
-
Copy full SHA for 39f2b4c - Browse repository at this point
Copy the full SHA 39f2b4cView commit details -
feat: Generate pre image and hash
Co-authored-by: Richard Holzeis <richard@holzeis.me>
Configuration menu - View commit details
-
Copy full SHA for f9bfa82 - Browse repository at this point
Copy the full SHA f9bfa82View commit details -
fix: Wrap confirm slider and next button in sized box
Before the button was jumping depending on whether the slider or the button was shown. I also changed the button text from "Confirm" to "Next" since there wouldn't be any semantical difference between funding with internal wallet or external.
Configuration menu - View commit details
-
Copy full SHA for 13e3392 - Browse repository at this point
Copy the full SHA 13e3392View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c87af0 - Browse repository at this point
Copy the full SHA 4c87af0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2909b7f - Browse repository at this point
Copy the full SHA 2909b7fView commit details -
feat: Add icon to show collapsable fees
The asterix was just not clear enough. I also did some minor styling improvements and removed the unused label argument from the fee expansion widget.
Configuration menu - View commit details
-
Copy full SHA for 40eaf91 - Browse repository at this point
Copy the full SHA 40eaf91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83330cc - Browse repository at this point
Copy the full SHA 83330ccView commit details -
feat: Watch for lightning invoice payment
This will submit the order once a hodl invoice is paid. In the next step we have to extend the post order api to revail the pre image so that the coordinator can claim the payment and open a single sided channel.
Configuration menu - View commit details
-
Copy full SHA for 67454ed - Browse repository at this point
Copy the full SHA 67454edView commit details -
chore: extract function back into own module
api.rs should remain as a thin proxy to the flutter frontend.
Configuration menu - View commit details
-
Copy full SHA for ef02faf - Browse repository at this point
Copy the full SHA ef02fafView commit details -
feat: store hodl invoice hash in db
we need to store the pre image to be able to refer to it later again. Also, it will help us get a good overview of who asked for what.
Configuration menu - View commit details
-
Copy full SHA for ac3b549 - Browse repository at this point
Copy the full SHA ac3b549View commit details -
feat: share preimage with coordinator
if the trader receives the note that the ln invoice has been funded, he shares the preimage with him when creating a new order. Upon receiving said preimage, the coordinator checks if the preimage fits to a known hash in the db. Next: redeem payment before matching the order
Configuration menu - View commit details
-
Copy full SHA for bfd6c02 - Browse repository at this point
Copy the full SHA bfd6c02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cec0b4 - Browse repository at this point
Copy the full SHA 4cec0b4View commit details -
chore: provide convenient methods to deserialize pre_images
this is needed because we send a url_safe base64 version over the via.
Configuration menu - View commit details
-
Copy full SHA for 698f718 - Browse repository at this point
Copy the full SHA 698f718View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58407aa - Browse repository at this point
Copy the full SHA 58407aaView commit details -
feat: Open one sided channel from coordinator
If we received the lightning payment from the user we open the channel to the user with only the coordinator's funds. Co-authored-by: Richard Holzeis <richard@holzeis.me>
Configuration menu - View commit details
-
Copy full SHA for c1555d5 - Browse repository at this point
Copy the full SHA c1555d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d40fc68 - Browse repository at this point
Copy the full SHA d40fc68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6af5cbc - Browse repository at this point
Copy the full SHA 6af5cbcView commit details -
fix: Generate a url safe pre image hash
Otherwise, we might end up with "/" in the hash what will result in an endpoint not found error as the "/" is interpreted as path.
Configuration menu - View commit details
-
Copy full SHA for 3418850 - Browse repository at this point
Copy the full SHA 3418850View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4306159 - Browse repository at this point
Copy the full SHA 4306159View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f7546e - Browse repository at this point
Copy the full SHA 4f7546eView commit details -
chore: Expire the hodl invoice after 5 minutes
That should be enough to pay the lightning invoice and reduces the risk of price movements.
Configuration menu - View commit details
-
Copy full SHA for 911094c - Browse repository at this point
Copy the full SHA 911094cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89fa6fe - Browse repository at this point
Copy the full SHA 89fa6feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 06909be - Browse repository at this point
Copy the full SHA 06909beView commit details