Commit Graph
100 Commits
Author SHA1 Message Date
callebtc 56fc273e15 error handling 2022-11-05 20:16:17 +01:00
callebtc f99dcf407c cols 2022-11-05 20:05:57 +01:00
callebtc 6e59f86778 invoice and token check worker 2022-11-05 20:00:24 +01:00
callebtc 2488bb9da3 check token history 2022-11-05 19:12:13 +01:00
callebtc 39db468ed8 revert 2022-11-05 18:01:35 +01:00
callebtc 66d7d7969f refactor wallet js 2022-11-05 17:58:07 +01:00
callebtc 888ececc64 fix chrome 2022-11-05 17:50:35 +01:00
callebtc c697e8ad56 apple icon 2022-11-05 17:18:39 +01:00
callebtc e8b7835c0a multiple mints 2022-11-05 16:54:40 +01:00
callebtc 7a263924aa vibrate 2022-11-05 07:42:39 +01:00
callebtc 6a2cf9a99c qtab 2022-11-05 07:31:55 +01:00
callebtc aacf7a61b5 qtab 2022-11-05 07:30:09 +01:00
callebtc 558b9d2f9b check token id 2022-11-05 07:02:59 +01:00
callebtc 6b1d2cc47d color 2022-11-05 06:52:31 +01:00
callebtc 3e8ac6b4e9 rows 2022-11-05 06:42:44 +01:00
callebtc 2e680705cc warning 2022-11-05 06:40:12 +01:00
callebtc 6993a4094f warning 2022-11-05 06:39:13 +01:00
callebtc 3749b172f4 disclaimer 2022-11-05 06:36:32 +01:00
callebtc e86d8719c3 outline 2022-11-05 05:59:29 +01:00
callebtc 06e797b69d buttons outline 2022-11-05 05:56:40 +01:00
callebtc a634e51ed4 title 2022-11-05 05:41:31 +01:00
callebtc bd9bc0f070 better buttons 2022-11-05 05:38:29 +01:00
callebtc 6735a08f2c manifest 2022-11-04 20:48:32 +01:00
callebtc ea0c0805a1 manifest 2022-11-04 20:45:56 +01:00
callebtc 065657f9f7 new icons 2022-11-04 20:45:12 +01:00
callebtc db817315e2 new icons 2022-11-04 20:44:35 +01:00
callebtc dd37368d98 cashu update 2022-11-04 19:43:23 +01:00
callebtc 4e935c89d7 make format 2022-11-04 17:17:57 +01:00
callebtc 1c13a3757c works 2022-11-04 17:17:11 +01:00
callebtc fda57a5089 works 2022-11-04 16:44:17 +01:00
callebtc 4f1246700d trying to get camera to run 2022-11-04 16:16:15 +01:00
callebtc 9b83733029 fix manifest 2022-11-04 15:40:29 +01:00
callebtc 359b8bc4d2 works 2022-11-04 15:25:51 +01:00
callebtc ff724bf744 for r, dont use bigint but hex string 2022-11-02 23:43:37 +01:00
callebtc 970748216f split doesnt work yet 2022-10-28 19:34:04 +02:00
callebtc ecd5dadcd1 doesnt work yet 2022-10-26 02:30:28 +02:00
callebtc e8e4c7f9c3 works 2022-10-24 09:26:32 +02:00
callebtc 7e38d899af make format 2022-10-21 15:31:24 +02:00
callebtc a9b4dd251f generate requirements from poetry 2022-10-21 15:23:44 +02:00
callebtc ea58ae77ef add cashu to requirements.txt 2022-10-21 15:17:44 +02:00
callebtc ec6bb1624a adjust versions to import cashu 2022-10-21 15:15:43 +02:00
callebtc 89f55e50b1 disable codecov check 2022-10-18 11:49:20 +02:00
callebtc c10a2b647f can install cashu 0.4.1 2022-10-18 11:24:45 +02:00
callebtc ef056d1647 restore pyproject 2022-10-18 11:20:53 +02:00
callebtc 0f3ac18f34 remove unused import 2022-10-18 11:20:40 +02:00
callebtc 161d49a450 clean up 2022-10-17 11:03:39 +02:00
callebtc dafcfef5be cleanup 2022-10-14 01:01:43 +02:00
callebtc 436f208df2 more endpoints working 2022-10-14 00:06:02 +02:00
callebtc d40298673c endpoints work 2022-10-13 22:10:33 +02:00
callebtc 36907d8d7e allow for internal and external migrations 2022-10-13 00:24:15 +02:00
callebtc 79a0c28f23 allow external migration modules 2022-10-12 23:17:21 +02:00
callebtc c36f7a48aa lnbits migrations work 2022-10-12 23:16:39 +02:00
calleandGitHub d1302e4868 show progress (#987) 2022-10-11 08:52:39 +02:00
calleandGitHub 3bf3c91007 Add backend: ln.tips (LightningTipBot) wallet (#921)
* add ln.tips

* add wallet

* revert lnbits

* make format

* .env.example

* listener fix

* reconnect fixed

* make format

* make format
2022-10-10 16:12:06 +02:00
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
calleandGitHub 4ad3c84152 downgrade pyln from 0.12.0 to 0.11.1 (#1021) 2022-09-30 13:55:46 +02:00
callebtcandben 1e61a05e20 Revert "adjust versions"
This reverts commit 4303af4f14.
2022-09-30 10:13:29 +01:00
callebtc 4303af4f14 adjust versions 2022-09-29 20:42:13 +02:00
calleandGitHub b0bedd53df Fix lndgrpc preimage (#998) 2022-09-22 11:15:28 +03:00
calleandGitHub c5cc65a736 Fix/admin extension exception (#984)
* check if wallet exists

* check wallet existence in key check

* return FORBIDDEN for LNBITS_ADMIN_USERS
2022-09-20 15:34:03 +03:00
calleandGitHub a9084a09f7 Docs/install docs (#983)
* check if wallet exists

* check wallet existence in key check

* update install docs
2022-09-20 15:08:45 +03:00
calleandGitHub 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
calleandGitHub 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
calleandGitHub 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
calleandGitHub 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
calleandGitHub 57fffa0c7f Revert "API key check: assert that wallet exists (#961)" (#962)
This reverts commit 0930fca7ec.
2022-09-12 18:41:27 +03:00
calleandGitHub 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
calleandGitHub f3a16a28cc Update installation.md (#955) 2022-09-11 13:06:55 +03:00
calleandGitHub 4662a79c3b little more logging (#953) 2022-09-09 16:46:27 +03:00
calleandGitHub d757154125 print time of expiration (#952) 2022-09-09 16:27:37 +03:00
calleandGitHub 54305c8f91 reuse db connection for pending and expired tasks (#951)
* reuse db connection for pending and expired tasks

* make format
2022-09-09 15:02:07 +03:00
calleandGitHub 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
calleandGitHub ae1a2ac383 Frontend: LNURLp/w icons with tooltips (#905)
* rename button to copy link

* icon buttons with tooltips
2022-08-18 13:24:34 +02:00
calleandGitHub 24de8f6611 isort api.py (#898) 2022-08-17 14:27:52 +02:00
callebtc 65f27afd76 upadte systemd docs to poetry 2022-08-17 14:25:19 +02:00
calleandGitHub 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
calleandGitHub 4ac73f1a79 Lnurlp/url_validation_fix (#883)
* dont assume field

* fix https check
2022-08-15 00:20:57 +02:00
calleandGitHub befe96257d Fix/header_check_fix_2 (#880)
* dont assume field

* check better
2022-08-14 23:17:53 +02:00
calleandGitHub 9bc99f796b Fix/header_lookup_none (#879)
* dont assume field

* fix header lookup
2022-08-14 22:59:02 +02:00
calleandGitHub 0f760bf39e Lnurlp: use unhashed_description instead of description_hash (#878)
* dont assume field

* pass unhashed_description instead of description_hash for LNURL stuff

* more
2022-08-14 21:59:36 +02:00
calleandGitHub c85be8dd22 dont assume field (#875) 2022-08-14 19:40:46 +02:00
28661903b6 return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing (#869)
* return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing

* fix regtest (#867)

Co-authored-by: dni <dni.khr@gmail.com>

* return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing

Co-authored-by: dni  <office@dnilabs.com>
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-13 14:41:44 +02:00
calleandGitHub e5d8c500d2 Wallets/unhashed_description (#870)
* new argument: unhashed_description

* accept in api

* set unhashed_description for memo case

* bolt11.py: dont be like CLN, accept the hash

* send hash to lnd in b64

* fix cln

* skip descr_hash for cln

* skip

* format
2022-08-13 14:29:04 +02:00
calleandGitHub 8dfb4329d1 ssl cert creation method using openssl (#860) 2022-08-10 10:32:43 +02:00
calleandGitHub 05edd908f0 fix lnurlw balance_check (#854) 2022-08-09 12:48:10 +02:00
calleandGitHub 4fc0a25d41 Mega-merge 4: Reenable LndWallet gRPC and use TrackPaymentV2 (#745)
* readd lndgrpc

* debug logging

* Use TrackPaymentV2

* /v2/router/track

* lnd_router_grpc

* flag for blocking check

* error handling

* fix name

* regtest lndgrpc

* new test pipeline

* fix env

* check for description hash

* remove unnecessary asserts for clarity

* assume that description_hash is a hash already

* no lock

* description hashing in backend

* restore bolt11.py

* /api/v1/payments with hex of description

* comment

* refactor wallets

* forgot eclair

* fix lnpay

* bytes directly

* make format

* mypy check

* make format

* remove old code

* WIP status check

* LND GRPC docs

* restore cln to main

* fix regtest

* import

* remove unused import

* format

* do not expect ok

* check ok

* delete comments
2022-08-09 11:49:39 +02:00
calleandGitHub b83fb1d5d8 VoidWallet: return PaymentStatus(None) (#845) 2022-08-04 18:40:46 +02:00
calleandGitHub 7fc1361475 cln invoice only int (#844) 2022-08-04 17:40:04 +02:00
calleandGitHub 9b27c2da01 argparser respect boolean arguments (#842) 2022-08-04 16:37:48 +02:00
8535d70d36 Poetry dev (#837)
* black and isort for tests

* black and isort for build

* use poetry in Makefile, update pyproject.toml dependencies and add configs for black, pytest, mypy, isort there

* switching github workflow to poetry

* set mininum version to python 3.7

* fix tests

* add types-protobuf to dev packages

* fix cln regtest

* update docs

* try fix 1

* mypy fix2

* fix isort formatting workflow

* add prettier to dev docs

* multiple valid python version for pyproject

* update poetry.lock

* remove development installation, not needed anymore

* fix migration workflows

* format into one test

* fix yaml

* fix pipeline

* fix pipeline

* fix again

* fix

* rename checks

* remove venv tests

* venv test once

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-03 14:10:32 +02:00
2edaa0ee03 Poetry: uvicorn with .env and command line arguments (#836)
* fixed poetry logs

* make isort happy

* Poetry: uvicorn .env and command line arguments

* restore commands.py

* format

* own it

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-03 13:16:50 +02:00
calleandGitHub 91fefdb83d migration for extensions (#835) 2022-08-03 11:27:08 +02:00
calleandGitHub b3c866fd1d Code health: Small linting fix (#813)
* small linting fix

* je lint therefore je suis
2022-08-02 16:17:47 +02:00
calleandGitHub d841690460 try except for check payment status (#820) 2022-08-01 16:51:19 +02:00
calleandGitHub 9c19b61e4a Mega-merge 3: CLN update client lib with descriptionhash support (WIP) (#792)
* CoreLightningWallet
2022-08-01 16:41:50 +02:00
calleandGitHub f1ec7e33f0 Mega-merge 2: Invoice/refactor description hash (WIP) (#814)
* description hashing in backend
2022-08-01 16:20:25 +02:00
calleandGitHub c88e6b0e62 Mega-merge 1: Test invoice creation with description hash (WIP) (#812)
* check for description hash

* remove unnecessary asserts for clarity

* assume that description_hash is a hash already

* no lock

* restore bolt11.py

* /api/v1/payments with hex of description

* comment
2022-08-01 16:12:25 +02:00
calleandGitHub c9c3dd3f66 add coverage report for regtest tests (#816) 2022-07-31 19:48:20 +02:00
f24d593f00 Fix docker staticfiles (#811)
* Fix staticfiles for docker install

* docker build instructions

* all tests python 3.9

Co-authored-by: cryptoteun <73664763+cryptoteun@users.noreply.github.com>
2022-07-30 17:09:14 +02:00
calleandGitHub f22e1e16af build instruction (#800) 2022-07-28 15:26:43 +02:00