diff --git a/README.md b/README.md index b222469..84ba938 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ + + + + LNbits + + + +[![License: MIT](https://img.shields.io/badge/License-MIT-success?logo=open-source-initiative&logoColor=white)](./LICENSE) +[![Built for LNbits](https://img.shields.io/badge/Built%20for-LNbits-4D4DFF?logo=lightning&logoColor=white)](https://github.com/lnbits/lnbits) + # NWC Service Provider Extension for [LNbits](https://github.com/lnbits/lnbits) Easily connect your LNbits wallets via [NWC](https://nwc.dev/). @@ -68,3 +78,10 @@ The "Configuration" page of the NWC Service Provider extension can be accessed b > For example, in shared or community lnbits instances, where users are unaware of this functionality, they might assume a payment has failed and attempt to pay a new invoice with a different wallet, only for the instance to come back online and process the original payment request, potentially leading to duplicate payments. > > For this reason, unless you are trying to tackle this specific issue, it is recommended to leave this setting at `0`. + +## Powered by LNbits + +[LNbits](https://lnbits.com) is a free and open-source lightning accounts system. + +[![Visit LNbits Shop](https://img.shields.io/badge/Visit-LNbits%20Shop-7C3AED?logo=shopping-cart&logoColor=white&labelColor=5B21B6)](https://shop.lnbits.com/) +[![Try myLNbits SaaS](https://img.shields.io/badge/Try-myLNbits%20SaaS-2563EB?logo=lightning&logoColor=white&labelColor=1E40AF)](https://my.lnbits.com/login) diff --git a/config.json b/config.json index e74cc86..9fbe5ce 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,10 @@ { + "id": "nwcprovider", + "version": "1.1.0", "name": "NWC Service Provider", + "repo": "https://github.com/lnbits/nwcprovider", "short_description": "A NWC service provider for LNbits", + "description": "", "tile": "/nwcprovider/static/image/nwcprovider.png", "version": "1.1.2", "min_lnbits_version": "1.4.0", @@ -22,6 +26,10 @@ } ], "images": [ + { + "uri": "https://raw.githubusercontent.com/lnbits/nwcprovider/main/static/image/nwc_thumbnail.png", + "link": "https://www.youtube.com/watch?v=0c77d2q-_PQ" + }, { "uri": "https://raw.githubusercontent.com/lnbits/nwcprovider/main/static/image/1.png" }, @@ -34,5 +42,9 @@ ], "description_md": "https://raw.githubusercontent.com/lnbits/nwcprovider/main/description.md", "terms_and_conditions_md": "https://raw.githubusercontent.com/lnbits/nwcprovider/main/toc.md", - "license": "MIT" + "license": "MIT", + "paid_features": "", + "tags": ["Nostr", "Wallet"], + "donate": "", + "hidden": false } diff --git a/description.md b/description.md index bc65726..edb14d1 100644 --- a/description.md +++ b/description.md @@ -1,3 +1,10 @@ -NWC Service Provider Extension for https://github.com/lnbits/lnbits +Connect your LNbits wallet to apps using the Nostr Wallet Connect protocol. -Easily connect your LNbits wallets via https://nwc.dev/ +Its functions include: + +- Exposing your wallet via the NWC protocol +- Connecting to NWC-compatible applications +- Managing wallet connection permissions +- Supporting the nwc.dev standard + +Enables seamless integration with NWC-compatible apps like Alby, Amethyst, Jumble, Buho and other Nostr clients that support wallet connections. diff --git a/static/image/nwc_thumbnail.png b/static/image/nwc_thumbnail.png new file mode 100644 index 0000000..31b1c7d Binary files /dev/null and b/static/image/nwc_thumbnail.png differ diff --git a/tasks.py b/tasks.py index 412f2b5..d7e9015 100644 --- a/tasks.py +++ b/tasks.py @@ -426,11 +426,9 @@ async def _on_list_transactions( "type": "outgoing" if p.is_out else "incoming", "invoice": p.bolt11, # Fallback chain so a human-readable description reaches - # the NWC client. Mirror of `_on_lookup_invoice` + # the NWC client. Mirror of `_on_lookup_invoice` "description": ( - (p.extra or {}).get("comment") - or invoice_data.description - or p.memo + (p.extra or {}).get("comment") or invoice_data.description or p.memo ), "description_hash": invoice_data.description_hash, "preimage": p.preimage if is_settled or p.is_in else None,