Skip to content

Commit 14a9627

Browse files
authored
Changes to more pages (#29)
* Changes to more pages * fix: correct thumbnail URL in config.json Changed image URI from lnbits/tpos to lnbits/nwcprovider. * Fix lint after main merge (tasks.py) - remove trailing whitespace (ruff W291) - collapse description chain (black)
1 parent 0204f8f commit 14a9627

5 files changed

Lines changed: 41 additions & 7 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a href="https://lnbits.com" target="_blank" rel="noopener noreferrer">
2+
<picture>
3+
<source media="(prefers-color-scheme: dark)" srcset="https://i.imgur.com/QE6SIrs.png">
4+
<img src="https://i.imgur.com/fyKPgVT.png" alt="LNbits" style="width:280px">
5+
</picture>
6+
</a>
7+
8+
[![License: MIT](https://img.shields.io/badge/License-MIT-success?logo=open-source-initiative&logoColor=white)](./LICENSE)
9+
[![Built for LNbits](https://img.shields.io/badge/Built%20for-LNbits-4D4DFF?logo=lightning&logoColor=white)](https://github.com/lnbits/lnbits)
10+
111
# NWC Service Provider Extension for [LNbits](https://github.com/lnbits/lnbits)
212

313
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
6878
> 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.
6979
>
7080
> For this reason, unless you are trying to tackle this specific issue, it is recommended to leave this setting at `0`.
81+
82+
## Powered by LNbits
83+
84+
[LNbits](https://lnbits.com) is a free and open-source lightning accounts system.
85+
86+
[![Visit LNbits Shop](https://img.shields.io/badge/Visit-LNbits%20Shop-7C3AED?logo=shopping-cart&logoColor=white&labelColor=5B21B6)](https://shop.lnbits.com/)
87+
[![Try myLNbits SaaS](https://img.shields.io/badge/Try-myLNbits%20SaaS-2563EB?logo=lightning&logoColor=white&labelColor=1E40AF)](https://my.lnbits.com/login)

config.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
2+
"id": "nwcprovider",
3+
"version": "1.1.0",
24
"name": "NWC Service Provider",
5+
"repo": "https://github.com/lnbits/nwcprovider",
36
"short_description": "A NWC service provider for LNbits",
7+
"description": "",
48
"tile": "/nwcprovider/static/image/nwcprovider.png",
59
"version": "1.1.2",
610
"min_lnbits_version": "1.4.0",
@@ -22,6 +26,10 @@
2226
}
2327
],
2428
"images": [
29+
{
30+
"uri": "https://raw.githubusercontent.com/lnbits/nwcprovider/main/static/image/nwc_thumbnail.png",
31+
"link": "https://www.youtube.com/watch?v=0c77d2q-_PQ"
32+
},
2533
{
2634
"uri": "https://raw.githubusercontent.com/lnbits/nwcprovider/main/static/image/1.png"
2735
},
@@ -34,5 +42,9 @@
3442
],
3543
"description_md": "https://raw.githubusercontent.com/lnbits/nwcprovider/main/description.md",
3644
"terms_and_conditions_md": "https://raw.githubusercontent.com/lnbits/nwcprovider/main/toc.md",
37-
"license": "MIT"
45+
"license": "MIT",
46+
"paid_features": "",
47+
"tags": ["Nostr", "Wallet"],
48+
"donate": "",
49+
"hidden": false
3850
}

description.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
NWC Service Provider Extension for https://github.com/lnbits/lnbits
1+
Connect your LNbits wallet to apps using the Nostr Wallet Connect protocol.
22

3-
Easily connect your LNbits wallets via https://nwc.dev/
3+
Its functions include:
4+
5+
- Exposing your wallet via the NWC protocol
6+
- Connecting to NWC-compatible applications
7+
- Managing wallet connection permissions
8+
- Supporting the nwc.dev standard
9+
10+
Enables seamless integration with NWC-compatible apps like Alby, Amethyst, Jumble, Buho and other Nostr clients that support wallet connections.

static/image/nwc_thumbnail.png

498 KB
Loading

tasks.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,9 @@ async def _on_list_transactions(
426426
"type": "outgoing" if p.is_out else "incoming",
427427
"invoice": p.bolt11,
428428
# Fallback chain so a human-readable description reaches
429-
# the NWC client. Mirror of `_on_lookup_invoice`
429+
# the NWC client. Mirror of `_on_lookup_invoice`
430430
"description": (
431-
(p.extra or {}).get("comment")
432-
or invoice_data.description
433-
or p.memo
431+
(p.extra or {}).get("comment") or invoice_data.description or p.memo
434432
),
435433
"description_hash": invoice_data.description_hash,
436434
"preimage": p.preimage if is_settled or p.is_in else None,

0 commit comments

Comments
 (0)