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

Lnurl withdrawal support #837

Closed
wants to merge 10 commits into from
Closed

Conversation

tompro
Copy link
Contributor

@tompro tompro commented Jan 19, 2024

Added very basic support for LNUrl withdrawal requests. I tried to just add the business logic and leave all graphical stuff untouched when possible (you probably don't want me to mess up your CI).

The following UI related things will need some follow up:

  • Add a paste field in the receive screen (LNUrl withdrawal can only be started from scan/paste screen as of now)
  • Show a more telling loading screen while withdrawal is running. Right now it just shows a QR with checking (LNUrl can take a while)

Another thing I could not solve is to preset an fixed amount for the withdrawal (when min === max). Whenever I set the initial amount in the amount editor it is immediately reset to 0 from the editor (invoking the callback). I did not mess with that central component.

@tompro
Copy link
Contributor Author

tompro commented Jan 22, 2024

Think I found a way to solve the fixed amount issue mentioned above

@futurepaul
Copy link
Collaborator

what's a good way for me to test this with mutinynet?

@benthecarman
Copy link
Collaborator

what's a good way for me to test this with mutinynet?

there's one on the faucet

lnurl1dp68gurn8ghj7enpw43k2apwd46hg6tw09hx2apwvdhk6tmpwp5j7mrww4excac7utxd6

@tompro
Copy link
Contributor Author

tompro commented Jan 30, 2024

what's a good way for me to test this with mutinynet?

I can provide you with some fixed amt ones (skips enter amt) from our dev server. Needs to be DM though as they are one time use. Just let me know.

- route scan/paste navigation to either /send or /receive
- similar to /send handling use onMount and global state to communicate and trigger lnUrl handling
- experimental trigger lnurlWithdrawal
- allow non fixed amt lnurl withdrawal
- fix paste ln url in send
did not add new ui elements but just show the available info with current elements
@futurepaul
Copy link
Collaborator

closing in favor of #905. thank you for doing this! it made really straightforward for me to do in my own style, made you a co-author on #905

@futurepaul futurepaul closed this Feb 26, 2024
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