Commit Graph

571 Commits

Author SHA1 Message Date
dni ⚡
c189ec49e5 add superuser class to obscure superuser_id for admin in the ui 2022-12-07 11:00:48 +01:00
callebtc
e15cfeb943 print only if migration takes place 2022-12-06 21:05:09 +01:00
callebtc
6eb9c5d9ee better sort sql clause 2022-12-06 21:04:10 +01:00
callebtc
6f5f7753ef fix audit endpoint 2022-12-06 20:58:09 +01:00
callebtc
3bb11dc487 separate migrations 2022-12-06 16:21:19 +01:00
callebtc
36cebffbf5 clean migration 2022-12-06 13:23:51 +01:00
callebtc
07724eaa0f clean up if clause 2022-12-06 13:21:34 +01:00
callebtc
269ea0f975 optional expiry (float now) in Payment model 2022-12-06 13:08:36 +01:00
callebtc
8c324d8634 make format 2022-12-06 10:48:34 +01:00
callebtc
441d5337a3 fix expiry integer 2022-12-06 10:48:16 +01:00
dni ⚡
c56a31e6f5 add superuser and refactor check_admin function, also put it into satspay 2022-12-05 20:41:23 +01:00
dni ⚡
12b0ec138d removed unused file 2022-12-05 15:37:01 +01:00
callebtc
32448c4b0c on-the-fly deletion 2022-12-02 18:55:53 +01:00
callebtc
167c2ce9f1 make format 2022-12-02 18:51:52 +01:00
callebtc
7a6450f032 add expiry to Payment model 2022-12-02 18:51:18 +01:00
callebtc
2134b63cea readd comments 2022-12-02 17:48:47 +01:00
callebtc
1a98f15d48 remove STARTUP_INVOICE_EXPIRY_CHECK 2022-12-02 17:39:56 +01:00
callebtc
4e69924c9c fix datetime conversion 2022-12-02 17:38:36 +01:00
Tiago Vasconcelos
fe5e1241bf fix some of Vlad's review comments 2022-12-02 14:52:31 +00:00
Tiago Vasconcelos
4410968bf5 enable disable ads and display ads 2022-12-02 14:36:09 +00:00
callebtc
79ffbb7bc2 merge main 2022-12-02 11:23:20 +01:00
ben
8ca390e0b0 format 2022-12-01 18:41:58 +00:00
benarc
a220acb583 Removed id, using param instead 2022-12-01 14:41:57 +00:00
benarc
4aeb7683e5 Added Response 2022-12-01 13:15:46 +00:00
Tiago Vasconcelos
3ff14cb71b change status code to 400 on exception 2022-12-01 12:21:25 +01:00
dni ⚡
86d2780c9f fix template typos and also update settings in memory after a admin PUT 2022-11-30 23:47:52 +01:00
ben
9a9733c1ce Auto stash before merge of "universalwebsocket" and "origin/universalwebsocket" 2022-11-29 11:23:34 +00:00
Arc
a7fd44f4ca
Merge branch 'main' into universalwebsocket 2022-11-29 11:12:28 +00:00
ben
31d9f2e2ee Removed returns and reverted socket check so multiple clients can join 2022-11-29 11:09:54 +00:00
Tiago Vasconcelos
b68172696d change status code to 400 on exception 2022-11-29 10:28:19 +00:00
ben
187d709098 isort 2022-11-28 13:28:11 +00:00
ben
bb84f6b0e8 Black 2022-11-28 13:24:10 +00:00
ben
aefd1fad69 isort 2022-11-28 13:13:45 +00:00
ben
746e119046 added vlads suggestion 2022-11-28 13:04:35 +00:00
ben
00123d6c16 Merge remote-tracking branch 'origin/main' into universalwebsocket 2022-11-28 12:29:34 +00:00
dni ⚡
a92bb03664 merge from main 2022-11-24 14:37:50 +01:00
dni ⚡
74eece78de merge from master 2022-11-24 14:35:32 +01:00
ben
3cea3a0ba8 Removed payments websocket example
To be prob added back at a later date
2022-11-24 11:18:38 +00:00
Arc
e1b44a000b
Merge pull request #1140 from motorina0/fix_cln_unhashed_description
fix: allow both `description_hash` and `unhashed_description` to be present
2022-11-24 02:57:42 -08:00
ben
dce4da96b7 fixed function name clash 2022-11-24 00:46:39 +00:00
ben
c2a737ab84 Black 2022-11-24 00:34:46 +00:00
ben
f876f0659f Moved into correct files, and added payment example 2022-11-24 00:21:39 +00:00
ben
fde128e961 Better naming 2022-11-23 23:35:02 +00:00
ben
cea4f9350c black 2022-11-23 22:42:32 +00:00
ben
152991fbec added try for return 2022-11-23 22:31:11 +00:00
ben
2f08255e92 added get option 2022-11-23 22:27:09 +00:00
ben
4b707b5a30 updated function names 2022-11-23 22:22:33 +00:00
ben
51ca515d26 renamed for clarity 2022-11-23 21:51:32 +00:00
ben
5a96bcd558 Adds universal websocket manager any extension can use
Connect to the `ws://<your-lnbits>/api/v1/ws/{item_id}` endpoint

POST data to the websocket with `https://<your-lnbits>/api/v1/ws/{item_id}`
2022-11-23 21:47:26 +00:00
ben
390d74eaf6 prettier 2022-11-23 16:57:27 +00:00
Vlad Stan
3edbe1b895 fix: allow both description_hash and unhashed_description to be present 2022-11-22 11:52:29 +02:00
ben
27ad32eede slight ui tweak for mobile 2022-11-20 18:06:29 +00:00
ben
0836ba6c77 Added to homescreen 2022-11-20 17:59:43 +00:00
ben
0c94b159e2 Improved ad space function 2022-11-20 17:29:07 +00:00
Vlad Stan
ea1d9eb088
Merge pull request #1116 from lnbits/add/add_tpos_last_tx_list
Add the ability to check for last (5) transactions
2022-11-18 13:13:55 +02:00
Tiago Vasconcelos
4549190e86 abstract get latest payments for extensions 2022-11-17 12:59:40 +00:00
ChuckNorrison
1971b9a24b
fix integer out of range for apipayments
related to #1030, this was missing
2022-11-16 23:06:21 +01:00
dni ⚡
e670b53412 fix WALLET initialisation 2022-10-25 09:24:14 +02:00
dni ⚡
f9de542361 use new settings and remove unused amdin extension stuff 2022-10-25 09:23:30 +02:00
dni ⚡
cede3317f3 prettier 2022-10-25 09:20:16 +02:00
dni ⚡
bfff5f3775 fix ADMIN_UI=false errors 2022-10-25 09:20:16 +02:00
dni ⚡
11393ef7e9 fix AD_SPACE 2022-10-25 09:20:16 +02:00
dni ⚡
a6bdd8c575 format 2022-10-25 09:20:16 +02:00
ben
3129692ab1 reverted other try 2022-10-25 09:20:16 +02:00
ben
429217f5a4 Had to add a couple of tries 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
a07fbf0187 allow user settings without restart 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
2a63fb1914 allow html to be passed to description 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
48d6a89e5b remove core admin.html 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
b4885de9e2 remove core admin html (renamed for now) 2022-10-25 09:20:16 +02:00
benarc
a3b1d9528c old admin setup UI 2022-10-25 09:20:16 +02:00
dni ⚡
09cf654427
Proper Error Handling for qrcode-stream components (#1076)
* proper errorhandling for camera

* fix javascript for calle
2022-10-24 12:32:20 +02:00
Anton Kovalenko
193d037ad6
Allow more than 2-nd level domain in incoming ln-addresses (#914) 2022-10-24 12:23:11 +02:00
calle
d1302e4868
show progress (#987) 2022-10-11 08:52:39 +02:00
Arc
00667badfd
Merge pull request #1022 from tehelsper/main
Add MYNODE Image
2022-10-06 17:50:31 +01:00
callebtc
efc024e1c0 check expiry upon payment creation 2022-10-05 14:17:23 +02:00
calle
5a12f4f237
Improved SSE listeners (#865)
* logging listeners

* comments

* generate privkey upon init

* listener queue

* remove duplicate check

* make format

* reuse channel

* error handling in sse listener

* uuid for listeners

* register named invoices

* uuid for listeners and listener list

* fix poetry lock

* setuptools

* requirements asyncio timeout

* setuptool;s

* make format

* remove async-timeout

* async_timeout readd

* try lower setuptools version

* try lower lower setuptools version

* back to current version + fix, maybe

* fix worflows to use poetry 1.2.1

* remove uneeded setuptools from build-system

* fix up formatting workflow

* debug to trace

* more traces

* debug logs to trace

Co-authored-by: dni  <office@dnilabs.com>
2022-10-04 09:51:47 +02:00
Taylor Helsper
148789a86f
Fix formatting 2022-09-30 10:19:17 -05:00
Taylor Helsper
04cfdc2bf3
Update index.html 2022-09-29 23:06:45 -05:00
dni ⚡
325139066c
fix service-worker.js issue #1009 (#1017)
* service-worker.js fix for issue #1009

fixup

* remove weird comment
2022-09-29 20:40:58 +02:00
Gene Takavic
e75610a04f
API auditor (#1002)
* just quick auditor

* fix for none balance

* handle node down case

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-09-23 16:33:51 +03:00
dni ⚡
a98c5f9a85
fixes issue #977 (#999)
* fixes issue #977

* fix prettier formatting, when pre-commit
2022-09-23 11:00:45 +03:00
calle
b0bedd53df
Fix lndgrpc preimage (#998) 2022-09-22 11:15:28 +03:00
calle
e7a6e86e7a
Fix/duplicate payments (#973)
* check if wallet exists

* check wallet existence in key check

* fix duplicate removal
2022-09-18 16:27:03 +03:00
calle
232d50baaa
Fix: tasks.py reuse db connection for invoice deletion (#971)
* check if wallet exists

* check wallet existence in key check

* reuse db connection for payment deletion
2022-09-15 14:48:59 +03:00
Arc
2782a92aaa
Merge pull request #957 from iWarpBTC/fix/withdrawQR
fix for uppercase QR
2022-09-13 15:49:27 +01:00
Arc
9e652d98ea
Merge pull request #958 from AaronDewes/patch-1
Change message about login functionality
2022-09-13 15:48:37 +01:00
calle
d0ca0b18da
Fix/db reuse connection mark pending (#964)
* check if wallet exists

* check wallet existence in key check

* reuse connection for stataus update

* make format
2022-09-12 20:57:23 +03:00
calle
1660b9dcf1
Revert "Revert "API key check: assert that wallet exists (#961)" (#962)" (#963)
This reverts commit 57fffa0c7f.
2022-09-12 18:49:57 +03:00
calle
57fffa0c7f
Revert "API key check: assert that wallet exists (#961)" (#962)
This reverts commit 0930fca7ec.
2022-09-12 18:41:27 +03:00
calle
0930fca7ec
API key check: assert that wallet exists (#961)
* check if wallet exists

* check wallet existence in key check
2022-09-12 18:39:53 +03:00
dni ⚡
d6e3eb5837
Fix donate link on start page 2022-09-12 14:38:37 +02:00
Aaron Dewes
b8531f9e0e
Change message about login functionality
According to the README, Lnbits is already at 0.9. Claiming a feature will be added in 0.2 doesn't make sense.
2022-09-12 12:32:03 +02:00
Gene Takavic
8c75ea600f
fix for uppercase QR 2022-09-12 10:17:45 +02:00
calle
4662a79c3b
little more logging (#953) 2022-09-09 16:46:27 +03:00
calle
d757154125
print time of expiration (#952) 2022-09-09 16:27:37 +03:00
calle
2ee10e28c5
Backend: Unstuck outgoing payments (#857)
* first attempts

* lndrest works

* fix details

* optional fee update

* use base64.urlsafe_b64encode

* return paymentstatus

* CLN: return pending for pending invoices

* grpc wip

* lndgrpc works

* cln: return pending for pending invoices really this time

* retry wallet out of exception

* wip eclair

* take all routines into try except

* cliche: return error

* rename payment.check_pending() to payment.check_status()

* rename payment.check_pending() to payment.check_status()

* eclair: works

* eclair: better error check

* opennode: works

* check payment.checking_id istead of payment.ok

* payment.ok check as well

* cln: works?

* cln: works

* lntxbot: works

* lnbits/wallets/lnpay.py

* cln: error handling

* make format

* lndhub full detail update

* spark: wip

* error to False

* wallets: return clean PaymentResponse

* opennode: strict error

* cliche: works

* lnbits: works

* cln: dont throw error

* preimage not error

* fix cln

* do not add duplicate payments

* revert cln

* extra safety for cln

* undo crud changes until tests work

* tasks: better logging and 0.5s sleep for regular status check

* 0.1 s

* check if wallet exists

* lnbits unhashed description

* remove sleep

* revert app.py

* cleanup

* add check

* clean error

* readd app.py

* fix eclaid
2022-08-30 13:28:58 +02:00
dni ⚡
5fecb02b8d
fix typo in view api.py (#933) 2022-08-29 17:32:36 +02:00
Tiago Vasconcelos
551c75c2cf
set focus on amount (#916) 2022-08-21 23:07:18 +02:00
calle
24de8f6611
isort api.py (#898) 2022-08-17 14:27:52 +02:00
calle
790f0efda7
Chore/unhashed description expressive error (#894)
* dont assume field

* expressive error for desciprion_hash and unhashed_description in format that isnt hex
2022-08-17 00:59:11 +02:00