Commit graph

2909 commits

Author SHA1 Message Date
ben
aa8c543325 Added websocket checker for switch 2022-11-26 22:46:46 +00:00
ben
988c7eb7b4 Added websocket test 2022-11-26 21:36:11 +00:00
callebtc
9864f2a19c update cashu 2022-11-26 03:01:06 +01:00
callebtc
0735b5bf7d update to cashu 0.5.3 with db fix 2022-11-26 02:14:39 +01:00
Arc
e1dfdbba76
Merge pull request #1148 from motorina0/satspay_fix
fix `staspay` webhook for LN payment
2022-11-25 07:29:34 -08:00
ben
166df0104e Revert "Merge remote-tracking branch 'origin/fix/strip_html_db' into gerty"
This reverts commit 490ab65165.
2022-11-25 14:22:14 +00:00
ben
490ab65165 Merge remote-tracking branch 'origin/fix/strip_html_db' into gerty 2022-11-25 14:21:00 +00:00
callebtc
aa0fbde541 use isinstance, not type 2022-11-25 15:20:39 +01:00
callebtc
b970f0cb0c rewrite values in db 2022-11-25 15:11:58 +01:00
callebtc
60cc0ca11a strip html 2022-11-25 14:53:03 +01:00
Vlad Stan
44754df991 refactor: remove single use var 2022-11-25 14:37:26 +02:00
Vlad Stan
cd53f9930b chore: update comment 2022-11-25 14:37:02 +02:00
Vlad Stan
3178b79fe4 chore: format code 2022-11-25 14:31:00 +02:00
Vlad Stan
15c257fd65 fix: object is not subscriable 2022-11-25 14:20:56 +02:00
Vlad Stan
1a9cd81ee9 fix: persist webhook call status 2022-11-25 14:12:13 +02:00
Vlad Stan
ead710e591 fix: important info, should be visible in the logs 2022-11-25 11:32:30 +02:00
Vlad Stan
1aecedac84 refactor: move business logic logic to helpers.py 2022-11-25 11:25:40 +02:00
Vlad Stan
6f5c9a7798 chore: code clean-up 2022-11-25 11:06:45 +02:00
Vlad Stan
5440d4ab19 feat: store onchain charge config with the charge 2022-11-25 10:48:57 +02:00
ben
5be1cf2973 Fixed fe bugs, working fine 2022-11-25 01:00:29 +00:00
ben
83e4eb16b1 Caching working, fetches from mempool every 20 secs 2022-11-25 00:49:31 +00:00
ben
e84eedd66f cleaned up 2022-11-24 23:31:22 +00:00
ben
e6a3c63dd5 Shared mempool.space cache 2022-11-24 19:27:12 +00:00
ben
b4c970a005 Merge branch 'main' into gerty 2022-11-24 16:55:04 +00:00
Vlad Stan
4e984eae56 fix: center back button 2022-11-24 17:39:40 +02:00
Vlad Stan
3356bab5ca fix: refresh when both onchain and ln are present 2022-11-24 17:33:58 +02:00
Vlad Stan
d3c3622d22 fix: mempool hostname 2022-11-24 17:20:12 +02:00
Vlad Stan
00ba09d201 fix: remove wallet inkey 2022-11-24 17:08:32 +02:00
callebtc
7bfd8f3a62 overwrite mock data 2022-11-24 16:08:12 +01:00
Vlad Stan
fdfd9b1d9f fix: call webhook in the background (from the task.py) 2022-11-24 16:57:59 +02:00
Vlad Stan
a641ef4836 refactor: remove duplicate code 2022-11-24 16:55:35 +02:00
callebtc
179ac940e2 mypy 2022-11-24 15:25:37 +01:00
callebtc
0d48110783 better error 2022-11-24 15:24:16 +01:00
callebtc
a469132b40 mypy 2022-11-24 15:22:13 +01:00
callebtc
930ebfd6cc clean up for merge 2022-11-24 15:17:20 +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
Vlad Stan
4b4f18fad5 fix: oldObj should not overwrite properties 2022-11-24 11:39:35 +02:00
Vlad Stan
a8d4835b74 fix: use lnbitswallet form data 2022-11-24 10:42:28 +02: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
5827eb33c5 Merge branch 'main' into gerty 2022-11-23 21:07:16 +00:00