Commit graph

18 commits

Author SHA1 Message Date
31cf2eb164 feat: register transport RPCs over LNbits nostr transport
Some checks failed
lint.yml / feat: register transport RPCs over LNbits nostr transport (push) Failing after 0s
Mirrors what aiolabs/withdraw did — hooks lnurlp's existing CRUD into
the LNbits nostr transport layer so an HTTP-allergic client (e.g.
lamassu-next ATM) can manage PayLinks over kind-21000 encrypted
events instead of HTTP.

Extends the existing `lnurlp_start()` lifecycle hook (auto-invoked
by the LNbits extension manager) to import the transport's
`register_rpc` and register five RPCs:

  lnurlp_create   AUTH_WALLET
  lnurlp_get      AUTH_WALLET
  lnurlp_list     AUTH_ACCOUNT
  lnurlp_update   AUTH_WALLET
  lnurlp_delete   AUTH_WALLET

All handlers are thin shims around the existing crud.py functions —
no business logic duplication. *_get / *_update / *_delete verify
that the link's stored wallet matches the caller's wallet id.

Also registers a link-owner resolver with the core subscriptions
module (tag "lnurlp", extras-key "link" — the default, matching
where views_lnurl.py:86 stamps the link id on settlement). That lets
clients call `subscribe_payments({tag:"lnurlp", link_id:...})` and
stream real-time pay events without polling, with ownership enforced
server-side.

The transport import is guarded by try/except ImportError so this
extension still loads cleanly against an LNbits build that doesn't
have nostr_transport.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 08:46:17 +02:00
dni ⚡
e48be221b1
chore: update lnurl lib to v0.8.0 (#102) 2025-08-21 17:15:17 +02:00
dni ⚡
badc420069
feat: code quality (#59)
* feat: code quality
* fixup!
2024-08-05 12:49:50 +03:00
dni ⚡
65732f7aa0
chore: remove unused env and new create unique task
remove old scheduled tasks approach

update min version

Update __init__.py

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
2024-04-01 09:26:50 +02:00
dni ⚡
f2e419e18d
feat: add extension-settings instead of environs (#28)
* feat: add extension-settings instead of environs
2023-11-22 11:40:22 +01:00
Vlad Stan
257f5d34d2
Fix update validations (#30)
* fix: no `username` update
* fix: update for old pay_links
* chore: code format
2023-11-02 15:09:32 +01:00
Tiago Vasconcelos
67933b546f
allow custom path (#19)
Some checks failed
/ release (push) Has been cancelled
/ pullrequest (push) Has been cancelled
* allow custom path
* bump

---------

Co-authored-by: dni  <office@dnilabs.com>
2023-09-26 12:27:45 +01:00
callebtc
d7c0507407 user custom private key 2023-04-27 11:56:41 +02:00
callebtc
bf6659bbbd remove the need for nostrclient 2023-04-04 12:52:10 +02:00
callebtc
c2e58fa1b4 generate new keys 2023-03-22 17:49:43 +01:00
Bitkarrot
89f9cda6f4
remove trailing slashes for redirect 2023-03-06 23:24:13 -08:00
bitkarrot
8082913eba fix redirect paths 2023-03-05 21:24:54 -08:00
bitkarrot
58737b58e7 temporary hard link for testing 2023-03-02 23:38:32 -08:00
bitkarrot
afd1cece0b test redirects 2023-03-02 23:23:52 -08:00
bitkarrot
a665714978 add lnurlp to application/json 2023-03-02 22:40:43 -08:00
bitkarrot
1176fd0322 add redirect paths 2023-03-02 22:10:18 -08:00
Arc
dbb3a1a132
Add files via upload 2023-02-16 10:09:40 +00:00
Arc
ad9fd4e4ad
Add files via upload 2023-02-16 10:03:33 +00:00