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

feat: Split NWC client from NostrWeblnProvider #197

Merged
merged 7 commits into from
Feb 6, 2024
Merged

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Feb 4, 2024

Fixes #182

WebLN and NWC are not 100% compatible. This PR splits the two so that the WebLN provider uses a NWC Client (which can also be used on its own as it has more detailed responses and is less restricted than WebLN).

The WebLN provider should be unchanged.

This PR also adds multi_pay_keysend.

TODOs:

  • add examples for all client methods (currently only get-info)
  • re-test multi_methods (currently WIP)
  • review naming (NWCClient class and filename)
  • review exports (nwc)
  • address TODO on Transaction type: // TODO: review fields (replace with camelCase)

@rolznz rolznz merged commit 744689b into master Feb 6, 2024
3 checks passed
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.

Split NWC client and webln provider
1 participant