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)
This commit is contained in:
parent
0204f8ff85
commit
14a96271ad
5 changed files with 41 additions and 7 deletions
17
README.md
17
README.md
|
|
@ -1,3 +1,13 @@
|
||||||
|
<a href="https://lnbits.com" target="_blank" rel="noopener noreferrer">
|
||||||
|
<picture>
|
||||||
|
<source media="(prefers-color-scheme: dark)" srcset="https://i.imgur.com/QE6SIrs.png">
|
||||||
|
<img src="https://i.imgur.com/fyKPgVT.png" alt="LNbits" style="width:280px">
|
||||||
|
</picture>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
[](./LICENSE)
|
||||||
|
[](https://github.com/lnbits/lnbits)
|
||||||
|
|
||||||
# NWC Service Provider Extension for [LNbits](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/).
|
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 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`.
|
> 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.
|
||||||
|
|
||||||
|
[](https://shop.lnbits.com/)
|
||||||
|
[](https://my.lnbits.com/login)
|
||||||
|
|
|
||||||
14
config.json
14
config.json
|
|
@ -1,6 +1,10 @@
|
||||||
{
|
{
|
||||||
|
"id": "nwcprovider",
|
||||||
|
"version": "1.1.0",
|
||||||
"name": "NWC Service Provider",
|
"name": "NWC Service Provider",
|
||||||
|
"repo": "https://github.com/lnbits/nwcprovider",
|
||||||
"short_description": "A NWC service provider for LNbits",
|
"short_description": "A NWC service provider for LNbits",
|
||||||
|
"description": "",
|
||||||
"tile": "/nwcprovider/static/image/nwcprovider.png",
|
"tile": "/nwcprovider/static/image/nwcprovider.png",
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"min_lnbits_version": "1.4.0",
|
"min_lnbits_version": "1.4.0",
|
||||||
|
|
@ -22,6 +26,10 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"images": [
|
"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"
|
"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",
|
"description_md": "https://raw.githubusercontent.com/lnbits/nwcprovider/main/description.md",
|
||||||
"terms_and_conditions_md": "https://raw.githubusercontent.com/lnbits/nwcprovider/main/toc.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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
BIN
static/image/nwc_thumbnail.png
Normal file
BIN
static/image/nwc_thumbnail.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 498 KiB |
6
tasks.py
6
tasks.py
|
|
@ -426,11 +426,9 @@ async def _on_list_transactions(
|
||||||
"type": "outgoing" if p.is_out else "incoming",
|
"type": "outgoing" if p.is_out else "incoming",
|
||||||
"invoice": p.bolt11,
|
"invoice": p.bolt11,
|
||||||
# Fallback chain so a human-readable description reaches
|
# 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": (
|
"description": (
|
||||||
(p.extra or {}).get("comment")
|
(p.extra or {}).get("comment") or invoice_data.description or p.memo
|
||||||
or invoice_data.description
|
|
||||||
or p.memo
|
|
||||||
),
|
),
|
||||||
"description_hash": invoice_data.description_hash,
|
"description_hash": invoice_data.description_hash,
|
||||||
"preimage": p.preimage if is_settled or p.is_in else None,
|
"preimage": p.preimage if is_settled or p.is_in else None,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue