Commit Graph

818 Commits

Author SHA1 Message Date
benarc
5c894ff707 Adding satspay docs, making same as btcpay 2021-02-23 19:35:17 +00:00
benarc
d95159d73b BIP44/49/84 supported 💪 2021-02-23 19:13:21 +00:00
benarc
198cff8449 Loads now, but still broken 2021-02-23 15:26:17 +00:00
benarc
81326b2368 Still have broken watchonly, but addresses added 2021-02-23 15:19:51 +00:00
benarc
da20588c84 Trying to restore addresses functions, broken 2021-02-23 14:47:49 +00:00
benarc
be6ee64b4e Cleaning up watchonly 2021-02-23 14:31:05 +00:00
benarc
6e4f8431b7 Auto stash before checking out "HEAD" 2021-02-22 01:14:46 +00:00
benarc
a93903a183 added address dialogue 2021-02-22 01:14:28 +00:00
benarc
385406a78a Watchonly statspay basic gui working 2021-02-22 00:45:52 +00:00
benarc
ecfcc167f0 Splitting into x2 extensions
Splitting extension into 2, SatsPay Server, a BTCPay Server type extension, and WatchOnly
2021-02-21 17:53:43 +00:00
benarc
9724f33111 small bug 2021-02-21 17:00:13 +00:00
benarc
9c8836096c switched requests for httpx 2021-02-21 13:25:54 +00:00
Arc
ca60893701
Merge pull request #151 from lnbits/master
Bring branch up to date
2021-02-21 13:14:42 +00:00
Charles Hill
dbe028e1eb
Bleskomat extension for lnbits 2021-02-15 12:53:02 +01:00
fiatjaf
ec193ca697 put export-with-qr-code on a toggleable section. 2021-02-13 21:45:22 -03:00
fiatjaf
ea51af90d0 remove "Renew Keys" button.
it wasn't doing anything.
closes https://github.com/lnbits/lnbits/issues/147
2021-02-13 21:45:22 -03:00
Pac
378e408dca Update wallet.html 2021-02-13 21:45:22 -03:00
Pac
e251291076 Display QRcode for easy wallet export
This adds a QRcode of the "url_root/wallet?usr=#####&wal=####" so that
the user can create a wallet on desktop and easily use it on his phone.
Also, in a use case where the <User Manager> extension is used, the
manager can create a wallet and show the QRcode for the user to take it
(e.g. in a hotel front desk the clerk creates it and the user takes it
in his phone browser, to pay for laundry, massage, soda machine...)
2021-02-13 21:45:22 -03:00
fiatjaf
88eb8e0e78 fix curl examples in extensions, path was duplicating the plugin names. 2021-02-07 08:23:01 -03:00
fiatjaf
9c126696fc delete pending payments after WALLET.pay_invoice fails.
fixes https://github.com/lnbits/lnbits/issues/138
2021-01-05 22:29:02 -03:00
fiatjaf
9dd040186d fix fee on lntxbot wallets. 2021-01-05 19:50:06 -03:00
fiatjaf
45148d285e Revert "Fixed fee deduction "
This reverts commit 14b6e21a02.
2021-01-05 19:49:27 -03:00
Arc
e96c92e6df
Merge pull request #135 from grmkris/extensions/subdomains
subdomains extension
2021-01-05 22:35:06 +00:00
benarc
14b6e21a02 Fixed fee deduction 2021-01-05 21:54:58 +00:00
Kristjan
2a25932a85 refactored docs 2021-01-03 16:37:13 +01:00
Kristjan
d811d69dac fixed bug on frontend where user couldn't updated information about a domain 2021-01-03 16:15:03 +01:00
Kristjan
b6cb305e5c black formatting 2021-01-03 11:28:23 +01:00
Kristjan
babaa4459e decided to remove IP and subdomain validations.. we run dry-run to cloudflare anyway so those 2 checks are reduntant 2021-01-03 11:27:45 +01:00
Kristjan
f45aadaafe added checks to the cloudflare if the domain can be created; code refactoring - moved calls to cloudflare to seperate file 2021-01-03 11:22:42 +01:00
Kristjan
f6010bc139 black formatting 2021-01-03 00:31:02 +01:00
Kristjan
33b48341f1 checks before creating new subdomain 2021-01-03 00:26:33 +01:00
Kristjan
dc4a786dda black formatting 2021-01-02 22:56:36 +01:00
Kristjan
10414be0d2 now payments are finalized and dns registered when the event happens instead when user polls the backend 2021-01-02 22:55:52 +01:00
Kristjan
e1abea77f5 moved code for generating new dns name and updating the invoice in database to the invoiceListener 2021-01-02 22:38:28 +01:00
Kristjan
8a7652c06f started working on payment listeners 2021-01-02 20:49:39 +01:00
Kristjan
be0f853346 validation for the ip address and record type 2021-01-02 19:21:39 +01:00
Kristjan
afa7fce1c4 prettier formatting for lnticket extension 2021-01-02 17:05:24 +01:00
Kristjan
94b3416300 prettier formatting 2021-01-02 16:58:03 +01:00
Kristjan
c082c953f3 black formatting 2020-12-31 18:50:16 +01:00
Kristjan
128888be92 refactoring & bug fixes 2020-12-31 18:39:16 +01:00
pseudozach
c5c5bdb287 payment hash added to captcha for server-side verification 2020-12-30 17:06:30 -08:00
pseudozach
b91271315a captcha extension added 2020-12-30 15:50:08 -08:00
Kristjan
bd4a668d23 added instructions and better formatting to the readme file 2020-12-30 12:20:37 +01:00
Kristjan
399a07b98a added basic information 2020-12-30 12:08:53 +01:00
Kristjan
493ab5464e integration with cloudflare, working prototype 2020-12-30 11:50:49 +01:00
Kristjan
6c4b5ea406 working subdomains frontend, table, popup, payments 2020-12-29 20:52:54 +01:00
Kristjan
c0d7371137 subdomains public window 2020-12-29 19:16:04 +01:00
Kristjan
e96ec08f44 code refactor 2020-12-28 23:24:47 +01:00
Kristjan
2eb44674d0 added public facing api 2020-12-28 22:40:46 +01:00
Kristjan
307a919d17 added CRUD operations 2020-12-28 22:32:04 +01:00
Kristjan
3c398a8276 started working on subdomains extension 2020-12-28 19:51:45 +01:00
fiatjaf
1c922a5ddc finish webhooks for normal invoices with two extra columns. 2020-12-24 09:39:46 -03:00
fiatjaf
4623220316 specify webhooks from invoice creation and call them. 2020-12-24 09:39:46 -03:00
benarc
7d44fa1c2d Less broken refactor 2020-12-04 10:15:46 +00:00
benarc
4c7c792390 Trying to fix 2020-12-04 10:07:59 +00:00
benarc
54c0c9f3a8 Big, broken refactor payments/addresses to charges 2020-12-04 09:59:42 +00:00
benarc
257c9c1c64 Can fetch balance from mem.space 2020-12-03 22:56:34 +00:00
benarc
2db3325727 Added paylinks to table 2020-12-03 18:37:45 +00:00
benarc
c62678b3aa generated fresh addresses nicely 2020-12-03 17:26:11 +00:00
benarc
48cf23346c Added get fresh address button 2020-12-02 22:47:33 +00:00
benarc
503c981bc9 Updated example extension 2020-12-02 10:45:12 +00:00
benarc
31b1c0d1d5 Fixed tpos links not being fetched 2020-12-01 22:53:52 +00:00
benarc
ae59c74c24 Added if webhook to stop 500 in webhook absence 2020-12-01 22:35:06 +00:00
benarc
913f2a37c1 Awaits seem to be working in watchonly 2020-12-01 21:39:33 +00:00
benarc
93417e5bdf added awaits 2020-12-01 20:29:21 +00:00
benarc
a838706090 updated watchonly 2020-12-01 19:54:16 +00:00
benarc
52956a62a2 Added unique hash check to lnurlw 2020-11-30 22:27:53 +00:00
benarc
ccb9d107d5 fixed unique update lnurlw 2020-11-30 22:19:17 +00:00
benarc
edc533e902 Moved amount update to cb in lnurlw 2020-11-30 22:03:20 +00:00
benarc
9db327d5db changed 'comment' top 'content' in webhook 2020-11-30 21:12:00 +00:00
benarc
16fff9899f Added webhook for tickets 2020-11-30 14:59:21 +00:00
benarc
67e8c567a3 Fixed some lnticket bugs 2020-11-30 14:02:17 +00:00
fiatjaf
d4e718d29b fix migration. 2020-11-24 16:25:20 -03:00
fiatjaf
d84915cb00 oops: formatting. 2020-11-21 23:23:11 -03:00
fiatjaf
03706dcbad withdraw: fix incorrect setting of used+1.
fixes https://github.com/lnbits/lnbits/issues/123
2020-11-21 23:20:27 -03:00
fiatjaf
d3fc52cd49 migrate to sqlalchemy-aio.
a big refactor that:

- fixes some issues that might have happened (or not) with asynchronous
    reactions to payments;
- paves the way to https://github.com/lnbits/lnbits/issues/121;
- uses more async/await notation which just looks nice; and
- makes it simple(r?) for one extension to modify stuff from other extensions.
2020-11-21 23:02:14 -03:00
Christian Rotzoll
f877dde2b0
fix #125 qrcode printing (#126)
Authored-by: rootzoll <rotzoll@MacBook2020.fritz.box>
2020-11-19 22:18:22 -03:00
fiatjaf
594e28eab7 formatting. 2020-11-18 22:26:30 -03:00
fiatjaf
a67b93108b log errors on faulty lnpay webhooks. 2020-11-12 15:33:02 -03:00
fiatjaf
a198842f50 wallet name on <title> 2020-11-12 15:32:41 -03:00
fiatjaf
22b31a91c7
Merge pull request #122 from lnbits/lnurl-auth 2020-11-12 10:02:55 -03:00
fiatjaf
54881d777e lnurl-auth: show wallet name on modal. 2020-11-11 22:43:01 -03:00
fiatjaf
b7e337b0ee lnurl-auth: show the correct wallet linking_key on modal. 2020-11-11 22:42:40 -03:00
fiatjaf
b794f8302d lnurl-auth: hashing_key -> linking_key. 2020-11-11 22:37:55 -03:00
fiatjaf
805000cd06 fix ecdsa signing because these libraries are too naïve. 2020-11-11 02:41:41 -03:00
fiatjaf
bb94dc6526 fix perform_lnurl error handling. 2020-11-11 02:40:41 -03:00
fiatjaf
d4e30356c7 fix: return "message" instead of "error" so it is handled better at the client. 2020-11-10 22:59:50 -03:00
fiatjaf
4456dd6f59 catch stderr when running git subprocess outside of a git repo. 2020-11-10 22:29:52 -03:00
fiatjaf
eaec3480e6 lnurl-auth from lnbits wallets to services. 2020-11-10 11:36:10 -03:00
fiatjaf
8f1ae1646e opennode: fix webhook handling (json -> urlencoded data). 2020-11-09 09:38:06 -03:00
benarc
d75c69cd10 fixed first opennode bug
Opennode funding source isnt working, there are a few bugs. This fixes the first
2020-11-08 23:15:27 +00:00
fiatjaf
2e12c0ba3c lnurlp: actually fix what the previous commit did not. 2020-11-03 19:47:13 -03:00
fiatjaf
8947358c80 lnurlp: fix ?amount satoshi -> msatoshi conversion. 2020-11-03 19:12:10 -03:00
benarc
091f9b74f3 Fixed LNURL bug 2020-11-02 21:15:47 +00:00
benarc
cf3c5d83fe Fixed LNURLw QR bug 2020-11-02 15:52:56 +00:00
fiatjaf
2863653261 lnurlp: accept comments, USD prices, min/max ranges. 2020-10-22 15:58:15 -03:00
fiatjaf
2552fd8fc9 internal payments get reported on async listeners. 2020-10-22 15:36:37 -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
52619ecc0f improve querystring handling on lnurl fallback scheme. 2020-10-18 13:33:05 -03:00
fiatjaf
11e04e4314 fix CSS bundle order issue.
a final fix for https://github.com/lnbits/lnbits/issues/99
2020-10-17 15:24:23 -03:00
fiatjaf
32d75f7a60 support the lnurl fallback scheme.
completing https://github.com/lnbits/lnbits/issues/63
2020-10-17 15:24:10 -03:00
fiatjaf
435f5405c6 minor prettier change. 2020-10-16 14:45:28 -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
c81e61e4fe guards and safety timeouts around paymentChecker intervals. 2020-10-15 12:32:28 -03:00
fiatjaf
bdbb58b2b0 wrap memo columns in payments table. 2020-10-15 00:59:00 -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
f02ec67f35 add lntxbot invoices listener. 2020-10-14 23:58:57 -03:00
fiatjaf
d528d4e09e fix: wallet layout. 2020-10-14 23:13:55 -03:00
fiatjaf
ec4b558638 fix: domain variable assignment in pay_lnurl. 2020-10-14 22:44:23 -03:00
fiatjaf
0dc60d4795 increase timeouts for http wallets when stuff may take more than 5 seconds.
before we were using requests which had no default timeouts, but httpx has a
default timeout of 5 seconds. should have noticed that earlier.

when the timeout expires we are left with a pending payment on the db with a
temporary checking_id so we can never know if it was completed or not.

this is still an issue, because technically a lightning payment may take 2 weeks
or more, and we must have a way to dispatch a payment and check for it later.

that should be the default (and we already do check for the payment status later,
so half of the work is done), but on the other hand backends like lnpay and
opennode do not give us a checking_id before the thing is already settled.
2020-10-13 20:39:24 -03:00
fiatjaf
e1501e8ed6 fix bug with lnurl-withdraw dialog being skipped directly to the previous invoice shown. 2020-10-13 15:20:58 -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
Arc
fa8713de17 move scan to outside of receive. 2020-10-12 23:21:45 -03:00
fiatjaf
b1f30390b0 retrieve preimage from wallet backends, save it and show on UI dialog.
closes https://github.com/lnbits/lnbits/issues/77
2020-10-12 23:19:16 -03:00
fiatjaf
f2ea8a0c74 fix lndrest payment checking: b64/hex mismatch.
finally fixes https://github.com/lnbits/lnbits/issues/55
and https://github.com/lnbits/lnbits/issues/110
2020-10-12 23:18:58 -03:00
fiatjaf
b5a07c7ae7 add status() method to wallets to be used in initial check. 2020-10-12 22:30:19 -03:00
fiatjaf
d5d85d16e6 fix: auth headers variable name on opennode.py 2020-10-12 20:59:09 -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
1d00060419 harden sse connections to backends a little. 2020-10-09 20:55:58 -03:00
fiatjaf
7f41d73a84 SSE-based invoices stream for LNbitsWallet. 2020-10-09 17:06:50 -03:00
fiatjaf
f638a1088e lnurlp: fix querystring handling in success_url. 2020-10-09 16:40:49 -03:00
fiatjaf
ea3418c21d lnurlp: support success_text and success_url. 2020-10-09 16:17:16 -03:00
fiatjaf
f6bcff01f4 presort vendored paths list.
an attempt to fix https://github.com/lnbits/lnbits/issues/99.
2020-10-08 22:10:21 -03:00
fiatjaf
6f72f1fe6d fix typo: LND_MACAROON -> LND_REST_MACAROON 2020-10-08 16:24:23 -03:00
fiatjaf
76633fb71f lndrest: check last 20 payments instead of first 20.
fixes https://github.com/lnbits/lnbits/issues/110
2020-10-08 16:08:13 -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
24c8201920 add current git commit to summary. 2020-10-06 17:42:33 -03:00
fiatjaf
9a16dfa960 remove annoying warnings and unnecessary prints.
show a summary of some settings on startup when running __main__.py
2020-10-06 12:59:08 -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
4e68a0e7e6 lndrest: two small fixes. 2020-10-05 22:43:49 -03:00
fiatjaf
16541d40c6 show more data in txinfo modal and fee on main table.
- also center-align icons in main table.
- and use "x time ago" instead of raw dates by default in main table
  (raw date is accessible on a tooltip, on the modal and on the CSV export).
2020-10-05 22:38:06 -03:00
fiatjaf
bb965e4119 lndrest: account for when there are pending checking_ids from other sources. 2020-10-05 22:16:28 -03:00
fiatjaf
5ead82f57c fix /lnurlwallet again. db.commit() and wait 3 seconds.
should finally fix https://github.com/lnbits/lnbits/issues/103
2020-10-05 20:33:01 -03:00
fiatjaf
1eac618a25 lnurlp: allow creation of pay_links without webhook_url. 2020-10-05 20:12:24 -03:00
fiatjaf
39c331a7b9 fix opennode stupid syntax errors. 2020-10-05 08:46:20 -03:00
fiatjaf
6e6ce093f0 guard against lndrest URLs without a leading http... 2020-10-05 08:45:57 -03:00
fiatjaf
1ce9936561 better handling of missing dependencies on lndgrpc. 2020-10-05 08:45:32 -03:00
fiatjaf
c3ded859df fix requirements after rebase. 2020-10-04 14:07:52 -03:00
fiatjaf
f5b8ed8fc6 make lndgrpc work using the purerpc library and a manually-declared method. 2020-10-04 12:06:54 -03:00
fiatjaf
9994e61615 migrate to trio so c-lightning sockets stop hanging. 2020-10-04 12:06:20 -03:00
fiatjaf
e74cf33f90 broken invoice listener on c-lightning and other fixes around wallets. 2020-10-04 12:05:59 -03:00
fiatjaf
b3c69ad49c invoice listeners support on lnd and other fixes around wallets/ 2020-10-04 12:05:01 -03:00
fiatjaf
90c640b659 fix async so now it is a mess that works. 2020-10-04 12:05:01 -03:00
fiatjaf
28e6f40bea async fixes on _invoice_listener. 2020-10-04 12:05:01 -03:00
fiatjaf
bbe8d05af4 migrate from aiohttp to httpx following master. 2020-10-04 12:04:59 -03:00
fiatjaf
2c92205703 async invoice listeners through webhooks: lnpay and opennode. 2020-10-04 12:04:49 -03:00
fiatjaf
74117ffc57 lnurlp webhooks. 2020-10-04 12:04:49 -03:00
fiatjaf
04222f1f01 basic invoice listeners. 2020-10-04 12:04:47 -03:00
benarc
5971eefe44 Fixed register page blank bug 2020-10-01 19:44:04 +01:00
fiatjaf
88b8826bfd fix balance calculation vue glitch. 2020-09-29 20:04:02 -03:00
fiatjaf
211ac0391b overengineered async fix for /lnurlwallet internal hanging. 2020-09-29 18:24:08 -03:00
fiatjaf
e0b8470d40 show unpaid invoices, balance calculated on server-side so isn't affected. 2020-09-29 15:43:11 -03:00
Eneko
f60cebb072
fix: add missing assets command (#100) 2020-09-28 23:11:59 +02:00
benarc
d8da88aefa Fixed QR codes not printing 2020-09-28 16:59:20 +01:00
fiatjaf
49baa07141 fix proxyfix. 2020-09-28 00:21:53 -03:00
Eneko Illarramendi
098089af75 PREFER_SECURE_URLS, get rid of FORCE_HTTPS hacks. 2020-09-24 13:08:59 -03:00
fiatjaf
39cd96594e pass appropriate parameters to create_payment on lnurlwallet. 2020-09-24 13:09:02 -03:00
fiatjaf
ef0bdf8363 mypy quibbles. 2020-09-16 20:24:17 -03:00
fiatjaf
75047c5bc3 fix static extensions js url. 2020-09-16 20:21:42 -03:00
fiatjaf
2b38207100 mimic x_proto, x_host params from old ProxyFix. 2020-09-15 17:19:34 -03:00
fiatjaf
6928f431a7 poor man's flask-assets. 2020-09-15 15:54:05 -03:00
fiatjaf
3a0762ff82 proxy fix (x-forwarded-...). 2020-09-14 23:56:25 -03:00
fiatjaf
42c6620a07 quart run settings and hypercorn on docker/Procfile. 2020-09-14 23:28:14 -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
f452b9c00d withdraw: replace location.hostname with location.host.
fixes https://github.com/lnbits/lnbits/issues/88
2020-09-14 15:46:25 -03:00
fiatjaf
1e2dd412c7 lnurlp: remove wrong /pay/ segments from docs. 2020-09-14 09:35:58 -03:00
fiatjaf
e6ad42dbe1 update prettier to 2.1.1 2020-09-14 09:14:51 -03:00
fiatjaf
1faf0b152c remove annoying print(). 2020-09-13 21:48:46 -03:00
fiatjaf
f4fffc19aa lndhub extension frontend. 2020-09-12 21:55:13 -03:00
fiatjaf
6210305791 checking pending invoices and payments from lndhub interface. 2020-09-12 21:55:13 -03:00
fiatjaf
ce038193cf lndhub extension backend. 2020-09-12 21:55:13 -03:00
fiatjaf
5ac91ee2cf db commits at the right places when sending payments.
fixing vulnerabilities introduced in https://github.com/lnbits/lnbits/pull/90
2020-09-11 21:25:44 -03:00
fiatjaf
4855e2cd3d make every request a database transaction. 2020-09-11 14:17:09 -03:00
fiatjaf
487f082eb2 take extra care on check_internal() 2020-09-11 14:17:09 -03:00
frennkie
a8e1aa3154
Consider port number on lnurlp URL
fix #86
2020-09-09 21:43:34 -03:00
fiatjaf
130beaf38a fix undeclared ok error. 2020-09-06 23:39:46 -03:00
fiatjaf
ab6229806c fix: column is called hash, not payment_hash. 2020-09-06 22:15:29 -03:00
Eneko Illarramendi
d62031b068 chore: let's just call it flask_migrate
I think it should stay, because it can come handy for some deployment methods.
2020-09-06 21:06:01 -03:00
Eneko Illarramendi
1bc5e144d3 refactor: clean up __init__ file following some Flask conventions
Flask extensions are loaded in a way that makes them easily reusable by blueprints.
In this commit we are also adding `environs` to manage .env and settings:
breaking changes!

- FLASK_APP=lnbits.app
- LNBITS_ALLOWED_USERS needs to be empty now to allow all users (NOT "all")
2020-09-06 21:06:01 -03:00
fiatjaf
ffa3c3f6a6 python -m lnbits 2020-09-04 21:33:30 -03:00
fiatjaf
b8de30423f remove walrus operator because python3.7 2020-09-04 21:33:30 -03:00
fiatjaf
c965bca41d migration tracking. 2020-09-04 21:33:30 -03:00
Eneko Illarramendi
f238b3d1ef fix: TypedDict import 2020-09-04 21:24:30 +02:00
fiatjaf
8b7028d728 add VoidWallet and make it the default. 2020-09-03 21:43:32 -03:00
Eneko Illarramendi
23cfe0d417 chore: update github workflows 2020-09-03 23:10:41 +02:00
Eneko Illarramendi
a651f747ac chore: remove gunicorn and gevent from minimum requirements
It is now up to the user to install these (or other) for production deployment.
More info: https://flask.palletsprojects.com/en/1.1.x/tutorial/deploy/#run-with-a-production-server
2020-09-03 19:38:01 +02:00
fiatjaf
dcd3f80974 fix: invoice.payee is None by default. 2020-09-03 08:53:17 -03:00
fiatjaf
dc3d96c6a8 fix many mypy complaints, specially on bolt11.py 2020-09-02 22:21:56 -03:00
fiatjaf
ce28db76c9 add a dialog with payment details for each payment.
for outgoing payments this needs a preimage to be good,
but we don't have it yet because we don't get it from
backends.
2020-09-02 19:19:19 -03:00