fiatjaf
eaec3480e6
lnurl-auth from lnbits wallets to services.
2020-11-10 11:36:10 -03:00
fiatjaf
a773584f6f
tags and extras metadata in payment details dialog.
2020-10-21 09:50:45 -03:00
fiatjaf
85ec111ff0
return proper error codes on /lnurlscan
...
so the notification works.
2020-10-20 23:19:23 -03:00
fiatjaf
9cb58833ad
make httpx calls async when doing them from view functions.
...
this is important so lnbits can call itself without hanging forever.
and these functions are already async so it should have been this way since ever.
2020-10-15 13:04:56 -03:00
fiatjaf
be7d36214a
use payments/sse on the core wallet UI.
...
still fallback to the invoice polling (now with a 5 seconds interval
because less than that is too annoying).
this fixes issues with /lnurlwallet invoices not getting paid in time,
so we update the UI automatically when they do get paid.
(see https://t.me/lnbits/7069 )
2020-10-15 00:18:57 -03:00
fiatjaf
ec4b558638
fix: domain variable assignment in pay_lnurl.
2020-10-14 22:44:23 -03:00
fiatjaf
1529ebb689
lnurlpay comment.
2020-10-13 15:18:34 -03:00
fiatjaf
bcdc065cc0
mypy fixes.
2020-10-13 14:46:23 -03:00
fiatjaf
cf0bd7ece8
displaying lnurlpay success_actions.
2020-10-13 13:57:26 -03:00
fiatjaf
8d135489ab
fix: invoice parsing JS bug from the lnurl implementation.
2020-10-12 23:21:45 -03:00
fiatjaf
69063190ab
also catch httpx.ConnectError whenever we do catch httpx.RequestError.
2020-10-12 23:21:45 -03:00
fiatjaf
bc2207ba27
actually paying and withdrawing with lnurl.
2020-10-12 23:21:45 -03:00
fiatjaf
3cd15c40fc
lnurl-pay and lnurl-withdraw UI.
2020-10-12 23:21:45 -03:00
fiatjaf
7a5159f293
send/create/scan buttons for clear LNURL support.
2020-10-12 23:21:45 -03:00
fiatjaf
2894944b1e
pending=False on /sse payments.
2020-10-09 22:05:39 -03:00
fiatjaf
31820e041c
/sse returns payment as objects instead of arrays.
2020-10-09 21:08:01 -03:00
fiatjaf
9185342c72
simplify environment variables required.
...
instead of multiple keys/macaroons with different permissions we request only one.
if someone wants to use lnbits with an invoice macaroon they're free to do it and
we will just fail on 'pay' methods, as before.
this also grandfathers the previous environment variables names so everything keeps
working without people having to change their setups.
in the meantime some bugs with lntxbot and c-lightning were fixed and the `requests`
dependency was eliminated because I can't organize myself into meaningful chunks of
changes.
2020-10-08 16:03:21 -03:00
fiatjaf
0b1f3c22e0
lndhub: fix "token" -> "refresh_token".
2020-10-06 21:53:43 -03:00
fiatjaf
c5352c0309
register channel listeners instead of callbacks.
...
makes for a little less black magic and more reasonable use of nurseries
and less unnecessary pseudo-requests.
2020-10-06 01:50:56 -03:00
fiatjaf
95e8573ff8
SSE endpoint for paid invoices.
...
also move very essential stuff from core/tasks.py to tasks.py so things
are more organized.
2020-10-06 00:40:18 -03:00
fiatjaf
04222f1f01
basic invoice listeners.
2020-10-04 12:04:47 -03:00
fiatjaf
e0b8470d40
show unpaid invoices, balance calculated on server-side so isn't affected.
2020-09-29 15:43:11 -03:00
fiatjaf
f01028eac7
migrate from flask to quart.
...
also remove all flaskiness from static file serving.
and reference all vendored scripts on the base tempĺate for simplicity.
2020-09-14 16:03:25 -03:00
fiatjaf
6210305791
checking pending invoices and payments from lndhub interface.
2020-09-12 21:55:13 -03:00
fiatjaf
4855e2cd3d
make every request a database transaction.
2020-09-11 14:17:09 -03:00
fiatjaf
130beaf38a
fix undeclared ok error.
2020-09-06 23:39:46 -03:00
fiatjaf
4447a48724
deleting expired invoices based on their actual expiry date.
...
also fixes a possible bug that could have caused pending outgoing
payments to be deleted and affecting the balance. probably never happened.
2020-09-02 11:10:48 -03:00
fiatjaf
d2650d6e2c
don't try to check payments that start with temp_ or internal_.
2020-09-02 11:10:48 -03:00
fiatjaf
bf3c44b3c4
extra fields on apipayments + index payments by payment_hash
2020-09-02 11:10:48 -03:00
fiatjaf
b4a6b45645
only check pending payments on "check_pending".
2020-08-31 22:55:19 -03:00
fiatjaf
fadddc995a
get_wallet_payments with more fine-grained, explicit filters.
2020-08-31 22:16:19 -03:00
fiatjaf
24dc6e5415
fix validation rules so description_hash works.
2020-07-04 22:28:08 -03:00
fiatjaf
bc27293315
support description_hash across all APIs.
2020-07-03 20:04:04 -03:00
Eneko Illarramendi
083f7a0a8d
chore: use standard library's HTTP status codes
2020-05-03 15:57:05 +02:00
Eneko Illarramendi
97f4fabea1
fix: create temporal payments to keep balance updated
2020-04-24 14:56:10 +02:00
Eneko Illarramendi
b1da103080
chore: minor tweaks
2020-04-21 23:47:21 +02:00
Eneko Illarramendi
d4c9043278
feat(core): delete expired payments
2020-04-17 21:13:57 +02:00
Eneko Illarramendi
fd4dddda6e
chore: rename api-key-macaroon
2020-04-16 20:58:16 +02:00
Eneko Illarramendi
dd23b20090
chore: various tweaks
2020-04-16 20:58:16 +02:00
Eneko Illarramendi
af5269e239
refactor: add core.utils for creating and paying invoices
...
This methods can be used by extensions too.
2020-04-11 23:15:24 +02:00
Eneko Illarramendi
4397a6cab3
feat: use cerberus
schemas to validate POST data
2020-04-11 20:16:54 +02:00
Eneko Illarramendi
649cc888ab
refactor: /wallet
tweaks
2020-04-01 22:18:46 +02:00
Eneko Illarramendi
d03785558b
refactor: a wallet is a wallet is a wallet
2020-03-31 19:05:25 +02:00
Eneko Illarramendi
49addb8d56
refactor: breaking bad
2020-03-08 23:00:41 +01:00