Commit Graph

529 Commits

Author SHA1 Message Date
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
fiatjaf
197af922d0 use {"tag": ext} for extension-related payments. 2020-09-02 12:44:54 -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
b56877d470 make db.py context manager operate in a transaction. 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
arcbtc
c96b22664e internal payments. 2020-09-02 11:10:48 -03:00
Eneko Illarramendi
d4f957a5c8 chore: update js vendors 2020-09-02 14:39:20 +02: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
d09e624eb6 fix: wallet.balance computed property self-reference. 2020-08-31 16:19:27 -03:00
fiatjaf
5d523519c3 bring back code mysteriously deleted in 79d5befe0c
fixes https://github.com/lnbits/lnbits/issues/73
2020-08-31 00:09:34 -03:00
fiatjaf
68b0adfe66 fix: description_hash as an optional param to create_invoice.
fixes https://github.com/lnbits/lnbits/issues/74
2020-08-30 23:54:50 -03:00
fiatjaf
660d56d400 run black on everything. 2020-08-30 23:19:43 -03:00
fiatjaf
2cecaa229b bolt11.py now supports everything. 2020-08-30 17:40:28 -03:00
fiatjaf
ac20e06dc3 fix: correct db.cursor() usage on lnurlp. 2020-08-29 22:33:01 -03:00
fiatjaf
79d5befe0c mypy on Makefile and apply prettier. 2020-08-29 14:10:26 -03:00
fiatjaf
479760c5a5
Merge pull request #43 from fiatjaf/lnurlpayserver
description_hash support, spark backend and lnurlp extension.
2020-08-29 14:02:59 -03:00
fiatjaf
3ce1e72e10 lnurlp lnurl explanation slightly different from lnurlw. 2020-08-29 14:06:07 -03:00
fiatjaf
1e4f39954e fix: spark create_invoice error case. 2020-08-29 13:48:16 -03:00
fiatjaf
01b19add79 format: prettier lnurlp files. 2020-08-29 13:41:59 -03:00
fiatjaf
96b80fb3fc lnurlp: store description as memo. 2020-08-29 13:11:19 -03:00
fiatjaf
3645e0ac38 fix: lnpay invoices with description_hash. 2020-08-29 13:04:11 -03:00
fiatjaf
0c7284be31 description_hash fix. 2020-08-29 12:23:17 -03:00
fiatjaf
0de08dda0b add spark backend and fix c-lightning. 2020-08-29 12:23:01 -03:00
fiatjaf
a79ec8f4a4 lnurlp extension. 2020-08-28 23:03:12 -03:00
arcbtc
6cf488ea4f Fixed lnurlw bugs 2020-08-19 08:49:52 +01:00
Arc
5650731bce
Update index.html 2020-08-16 23:25:54 +01:00
Arc
53d65c0258
Update index.html 2020-08-16 23:22:32 +01:00
Arc
c4db2d5c28
Update index.html 2020-08-16 23:21:44 +01:00
arcbtc
b97595b06d Added "quick vouchers" option to withdraw ext 2020-08-16 22:46:06 +01:00
arcbtc
dd2a282158 Fixed migration bug 2020-08-13 23:43:42 +01:00
arcbtc
3c7e4a3eaf Fixed events migration 2020-08-13 22:01:33 +01:00
arcbtc
2d580a0d0e Fixed lntickets migration 2020-08-13 21:49:50 +01:00
arcbtc
97a13526d9 Made print outs bigger 2020-08-10 19:44:55 +01:00
arcbtc
c56784340e LNtickets now works 2020-08-10 19:08:44 +01:00
arcbtc
0603e525ff Fixed LNticket extension 2020-08-10 19:06:56 +01:00
arcbtc
410e96771e Events extension works
Little bug fix
2020-08-10 15:39:04 +01:00
arcbtc
784a2dd876 Events extension now works 2020-08-10 15:27:30 +01:00
Robert Habermann
1e36a8a393 add missing protocol (to ensure http - or more likely - https://) 2020-08-02 20:01:07 +02:00
benarc
c17ac32c86 Fixed LNURLw migration 2020-07-22 20:17:37 +01:00
benarc
c73fbe1b27 Fixed unique LNURLw for print 2020-07-20 22:08:54 +01:00
benarc
2ddc23de04 LNURLw fix 2020-07-20 21:32:55 +01:00
benarc
294beb2fca Updated Withdraw extension to handle unique facets 2020-07-20 21:03:23 +01:00
frennkie
68e41789ce
Update index.js
`location.host` contains the hostname and the port while `location.hostname` is only the hostname
2020-07-12 16:24:18 +02: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
benarc
95b0ba536b Prettier 2020-06-15 16:53:34 +01:00
benarc
5e81c64831 Usermanager extension update 2020-06-15 16:35:30 +01:00
benarc
d56c2627f4 Endpoint for updating user extensions vie usermanager 2020-06-15 16:30:24 +01:00
Dennis Reimann
c3281399d2
Improve setup instructions and README
- README cleanups and link to documentation
- Improve dev setup instructions
- Fix js linting errors
- Move local setup instructions to installation docs
- Project link fix, closes #42
- Notes about frontend
- Clarify different LND backends
2020-06-12 20:58:37 +02:00
Eneko Illarramendi
8ea72c9934 feat: add CORS headers 2020-05-18 23:33:07 +02:00
Eneko Illarramendi
aed2414f3a fix: show better errors when a LNURL-withdraw wallet cannot be created, closes #39 2020-05-18 06:33:02 +02:00
benarc
76f17d8594 Removed API docs for Support Tickets 2020-05-11 13:21:03 +01:00
benarc
85e617aae9 Updated redme 2020-05-11 13:14:25 +01:00
benarc
68d94a43d0 Support Ticket name change 2020-05-11 13:11:36 +01:00
benarc
a54bff6640 Changed extension name to Support Tickets 2020-05-11 12:34:35 +01:00
benarc
d2874a90e9 Working Events extension 2020-05-11 12:34:35 +01:00
benarc
9af4161679 Redirect feedback 2020-05-10 18:46:58 +01:00
benarc
76510b7892 Events extension mostly functional
Can register attendees via camera
2020-05-10 18:10:45 +01:00
benarc
ea3b858695 Replaced events extension with almost working vuejs one 2020-05-09 22:27:11 +01:00
Eneko Illarramendi
41277e6931 fix(paywall): disable create button when an invoice already exists 2020-05-09 22:52:30 +02:00
Eneko Illarramendi
8add56a24c feat: allow limiting the use of LNbits to some user uuids
The `LNBITS_ALLOWED_USERS` env var can be used to limit access
to the application to some uuids only. "all" gives open access.
UUIDs should be comma separated.
2020-05-09 22:30:33 +02:00
Arc
e768e4b075
Update views_api.py 2020-05-09 18:07:31 +01:00
Arc
a40823de43
Update lntxbot.py 2020-05-09 17:29:24 +01:00
Arc
6f4cac0c41
Update index.html 2020-05-08 22:19:43 +01:00
Arc
13f01dfbe6
Add files via upload 2020-05-08 21:03:18 +01:00
Eneko Illarramendi
14d61eaf56 feat(withdraw): type casting 2020-05-08 21:12:31 +02:00
Eneko Illarramendi
63b9741c14 feat(tpos): type casting 2020-05-08 21:11:59 +02:00
Eneko Illarramendi
22451ca806 fix: allow empty values (nullable) 2020-05-08 21:10:04 +02:00
Eneko Illarramendi
e73a508011 feat(paywall): improved extension
- make remember cookie optional
- improve database
- improve type casting
2020-05-08 21:05:32 +02:00
Arc
2fac47c05a
Update _api_docs.html 2020-05-05 20:53:13 +01:00
Arc
b8dd151043
Updated api docs to include listing specific LNURL 2020-05-05 20:07:54 +01:00
Eneko Illarramendi
42d307adf9
Merge pull request #38 from fiatjaf/adminkey-to-inkey
allow inkey endpoints to be accessed with adminkeys.
2020-05-05 11:09:02 +02:00
fiatjaf
c3ce18c8d9 allow inkey endpoints to be accessed with adminkeys. 2020-05-05 05:46:05 -03:00
Eneko Illarramendi
9eb253fe55 fix: typo 2020-05-04 17:34:53 +02:00
Eneko Illarramendi
b37af0c600 feat: use github pages and jekyll for docs 2020-05-04 17:20:36 +02:00
Eneko Illarramendi
a61d346669 chore: update js vendors 2020-05-04 15:33:39 +02:00
fiatjaf
4730500ed7 apply prettier to everything. 2020-05-03 13:55:17 -03:00
Eneko Illarramendi
083f7a0a8d chore: use standard library's HTTP status codes 2020-05-03 15:57:05 +02:00
Arc
3a1167c892
Rename config.json.example to config.json 2020-05-02 20:17:33 +01:00
Eneko Illarramendi
2c5e539795 refactor: make some wallet dependencies optional 2020-05-02 19:16:10 +02:00
Arc
5553ed82f0
Update index.html 2020-05-01 09:48:00 +01:00
Arc
9fadb68fed
Update index.html 2020-05-01 06:28:45 +01:00
Arc
d496869572
Update _api_docs.html 2020-05-01 06:12:55 +01:00
Arc
9f33ed49e5
Update README.md 2020-05-01 06:12:20 +01:00
Arc
ea480866ea
Update README.md 2020-05-01 06:10:44 +01:00
Arc
690b33e096
Rename config.json to config.json.example 2020-05-01 06:10:16 +01:00
Arc
d72678972d
Add files via upload 2020-05-01 06:09:51 +01:00
Eneko Illarramendi
8dfdd15adb fix: self host icon fonts 2020-04-29 13:24:49 +02:00