-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Expose WebLN interface via React Context #749
Commits on Feb 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3177672 - Browse repository at this point
Copy the full SHA 3177672View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e8af2f - Browse repository at this point
Copy the full SHA 3e8af2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ad058f - Browse repository at this point
Copy the full SHA 7ad058fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76ba4d7 - Browse repository at this point
Copy the full SHA 76ba4d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ef1159 - Browse repository at this point
Copy the full SHA 8ef1159View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cd32b5 - Browse repository at this point
Copy the full SHA 9cd32b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 632b1bf - Browse repository at this point
Copy the full SHA 632b1bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for d62cfbe - Browse repository at this point
Copy the full SHA d62cfbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 860c54a - Browse repository at this point
Copy the full SHA 860c54aView commit details -
Be optimistic regarding WebLN zaps
This wraps the WebLN payment promise with Apollo cache updates. We will be optimistics and assume that the payment will succeed and update the cache accordingly. When we notice that the payment failed, we undo this update.
Configuration menu - View commit details
-
Copy full SHA for c9e7ba0 - Browse repository at this point
Copy the full SHA c9e7ba0View commit details -
If lightning strike animation is disabled, toaster will be used.
Configuration menu - View commit details
-
Copy full SHA for 8f0e974 - Browse repository at this point
Copy the full SHA 8f0e974View commit details -
Configuration menu - View commit details
-
Copy full SHA for e93b9cb - Browse repository at this point
Copy the full SHA e93b9cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for c63b4a7 - Browse repository at this point
Copy the full SHA c63b4a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f7f1a5 - Browse repository at this point
Copy the full SHA 0f7f1a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d659ff2 - Browse repository at this point
Copy the full SHA d659ff2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19031bd - Browse repository at this point
Copy the full SHA 19031bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7039f9 - Browse repository at this point
Copy the full SHA b7039f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b4cf78 - Browse repository at this point
Copy the full SHA 1b4cf78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08d0dca - Browse repository at this point
Copy the full SHA 08d0dcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0951adc - Browse repository at this point
Copy the full SHA 0951adcView commit details -
refactor: Wrap WebLN providers into own context
I should have done this earlier
Configuration menu - View commit details
-
Copy full SHA for bfdbe4e - Browse repository at this point
Copy the full SHA bfdbe4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 28c63f6 - Browse repository at this point
Copy the full SHA 28c63f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 408f20a - Browse repository at this point
Copy the full SHA 408f20aView commit details -
The event pubkey is derived from the secret. Doesn't make sense to manually set it. It's also the wrong pubkey: we're not the wallet service.
Configuration menu - View commit details
-
Copy full SHA for 2da2fc4 - Browse repository at this point
Copy the full SHA 2da2fc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b4684a - Browse repository at this point
Copy the full SHA 0b4684aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3f3f96 - Browse repository at this point
Copy the full SHA b3f3f96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c01294 - Browse repository at this point
Copy the full SHA 0c01294View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3d01b6 - Browse repository at this point
Copy the full SHA e3d01b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d11d79b - Browse repository at this point
Copy the full SHA d11d79bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 335fc76 - Browse repository at this point
Copy the full SHA 335fc76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a063d7 - Browse repository at this point
Copy the full SHA 7a063d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7307217 - Browse repository at this point
Copy the full SHA 7307217View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ce7912 - Browse repository at this point
Copy the full SHA 5ce7912View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2eca9eb - Browse repository at this point
Copy the full SHA 2eca9ebView commit details -
WIP: Wrap WebLN payments with toasts
* add toasts for pending, error, success * while pending, invoice can be canceled * there are still some race conditions between payiny the invoice / error on payment and invoice cancellation
Configuration menu - View commit details
-
Copy full SHA for 7c7f652 - Browse repository at this point
Copy the full SHA 7c7f652View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17c455a - Browse repository at this point
Copy the full SHA 17c455aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ecbdec0 - Browse repository at this point
Copy the full SHA ecbdec0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c479ca1 - Browse repository at this point
Copy the full SHA c479ca1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fdd978 - Browse repository at this point
Copy the full SHA 3fdd978View commit details -
If WebLN payments failed due to insufficient balances, the promise resolved and thus the action was retried but failed immediately since the invoice (still) wasn't paid.
Configuration menu - View commit details
-
Copy full SHA for 4239568 - Browse repository at this point
Copy the full SHA 4239568View commit details -
Configuration menu - View commit details
-
Copy full SHA for c23f7f1 - Browse repository at this point
Copy the full SHA c23f7f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 477eb5c - Browse repository at this point
Copy the full SHA 477eb5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f5dcb7 - Browse repository at this point
Copy the full SHA 9f5dcb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 263a056 - Browse repository at this point
Copy the full SHA 263a056View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01de653 - Browse repository at this point
Copy the full SHA 01de653View commit details -
Configuration menu - View commit details
-
Copy full SHA for af733aa - Browse repository at this point
Copy the full SHA af733aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 49abf98 - Browse repository at this point
Copy the full SHA 49abf98View commit details -
Configuration menu - View commit details
-
Copy full SHA for acf6135 - Browse repository at this point
Copy the full SHA acf6135View commit details -
But following warning is now shown in console: """ Warning: A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components """
Configuration menu - View commit details
-
Copy full SHA for 7aef8c7 - Browse repository at this point
Copy the full SHA 7aef8c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46ecb77 - Browse repository at this point
Copy the full SHA 46ecb77View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcf4856 - Browse repository at this point
Copy the full SHA dcf4856View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d454ef - Browse repository at this point
Copy the full SHA 7d454efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 036787b - Browse repository at this point
Copy the full SHA 036787bView commit details -
Configuration menu - View commit details
-
Copy full SHA for aac5d2e - Browse repository at this point
Copy the full SHA aac5d2eView commit details
Commits on Feb 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c91f9f2 - Browse repository at this point
Copy the full SHA c91f9f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2865ca4 - Browse repository at this point
Copy the full SHA 2865ca4View commit details -
Confirmed that nostr-tools verifies events and filters for us. See https://github.com/nbd-wtf/nostr-tools/blob/master/abstract-relay.ts#L161
Configuration menu - View commit details
-
Copy full SHA for c106eaa - Browse repository at this point
Copy the full SHA c106eaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2f6181 - Browse repository at this point
Copy the full SHA a2f6181View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1f41c5 - Browse repository at this point
Copy the full SHA c1f41c5View commit details
Commits on Feb 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4a084c1 - Browse repository at this point
Copy the full SHA 4a084c1View commit details
Commits on Feb 4, 2024
-
Only nostr.mutinywallet.com didn't respond with info events due to implementation-specific reasons. This is no longer the case.
Configuration menu - View commit details
-
Copy full SHA for 8db4cd1 - Browse repository at this point
Copy the full SHA 8db4cd1View commit details
Commits on Feb 5, 2024
-
Use invoice expiry for NWC timeout
I don't think there was a specific reason why I used 60 seconds initially.
Configuration menu - View commit details
-
Copy full SHA for 1664450 - Browse repository at this point
Copy the full SHA 1664450View commit details
Commits on Feb 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a330f93 - Browse repository at this point
Copy the full SHA a330f93View commit details
Commits on Feb 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6252b25 - Browse repository at this point
Copy the full SHA 6252b25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1046116 - Browse repository at this point
Copy the full SHA 1046116View commit details -
Also show unattach if configuration is invalid
If unattach is only shown if configuration is valid, resetting the configuration is not possible while it's invalid. So we're stuck with a red wallet indicator.
Configuration menu - View commit details
-
Copy full SHA for b38377b - Browse repository at this point
Copy the full SHA b38377bView commit details -
Fix detection of WebLN payment
It depended on a Apollo cache update function being available. But that is not the case for every WebLN payment.
Configuration menu - View commit details
-
Copy full SHA for 19c725e - Browse repository at this point
Copy the full SHA 19c725eView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc6c460 - Browse repository at this point
Copy the full SHA cc6c460View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac347c7 - Browse repository at this point
Copy the full SHA ac347c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08401e9 - Browse repository at this point
Copy the full SHA 08401e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 838fab2 - Browse repository at this point
Copy the full SHA 838fab2View commit details
Commits on Feb 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f397352 - Browse repository at this point
Copy the full SHA f397352View commit details -
Naming of config object was inconsistent with saveConfig function which was annoying. Also fixed other inconsistencies between LNbits and NWC provider.
Configuration menu - View commit details
-
Copy full SHA for 4873c2f - Browse repository at this point
Copy the full SHA 4873c2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b95add - Browse repository at this point
Copy the full SHA 4b95addView commit details -
Update TODO comment about provider priority
The list 'paymentMethods' is not used yet but is already implemented for future iterations.
Configuration menu - View commit details
-
Copy full SHA for 998a600 - Browse repository at this point
Copy the full SHA 998a600View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a55913 - Browse repository at this point
Copy the full SHA 7a55913View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c0aa5a - Browse repository at this point
Copy the full SHA 4c0aa5aView commit details