Commit Graph
100 Commits
Author SHA1 Message Date
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
callebtc 370a962528 use ours 2022-07-28 14:18:32 +02:00
callebtc 885c690cc6 Merge branch 'main' into SCRUB 2022-07-28 14:15:49 +02:00
callebtc 3d417bc40a merge 2022-07-28 14:14:59 +02:00
callebtc 51dac0275c Merge branch 'main' of github.com:lnbits/lnbits-legend 2022-07-28 11:55:06 +02:00
calleandGitHub 730add5116 Core/tag check get (#797)
* safer tag checking

* annotate
2022-07-28 11:53:40 +02:00
callebtc dab109614d tag check 2022-07-28 11:41:55 +02:00
callebtc c1278dbef9 Merge branch 'main' into SCRUB 2022-07-28 11:20:44 +02:00
callebtc 521c821f6b Merge branch 'main' of github.com:lnbits/lnbits-legend 2022-07-27 15:42:53 +02:00
calleandGitHub 0c5cb8cb9e Wallets: increase timeouts (#787)
* increase pay timeouts to infinite
2022-07-27 15:29:44 +02:00
callebtc 80dd330ec0 Merge branch 'main' of github.com:lnbits/lnbits-legend 2022-07-26 12:26:34 +02:00
calleandGitHub 210edde08a Migration: Fix withdraw (#780) 2022-07-25 15:04:55 +02:00
callebtc d9849435a8 Merge branch 'main' of github.com:lnbits/lnbits-legend 2022-07-25 14:32:38 +02:00
calleandGitHub 4bb184e08b CI: DB migration with real data (#776)
* fix migration conv.py

* migrate with mock data
2022-07-25 09:13:41 +02:00
callebtc 4e57b75fa1 Merge branch 'fix/migration_columns' 2022-07-25 07:32:17 +02:00
callebtc 20817df4de Merge branch 'main' of github.com:lnbits/lnbits-legend 2022-07-25 07:32:08 +02:00
callebtc b17aed2d37 funzt 2022-07-24 22:13:05 +02:00
callebtc d93bd4bec1 print number of rows 2022-07-24 22:10:46 +02:00
callebtc dd7f622a67 db file 2022-07-24 22:07:19 +02:00
callebtc 923fad7382 migrate with mock data 2022-07-24 22:01:51 +02:00
callebtc 52c889f1d8 Merge branch 'main' of github.com:lnbits/lnbits-legend 2022-07-24 01:12:56 +02:00
calleandGitHub 32a8736f32 CI: Test core/views/generic.py enabling and disabling extensions (#774) 2022-07-23 11:58:29 +02:00
callebtc 70d270bd69 Merge branch 'main' of github.com:lnbits/lnbits-legend 2022-07-23 11:26:48 +02:00
calleandGitHub bf2a3e9df2 fix tip link (#773) 2022-07-23 11:01:23 +02:00
callebtc 3b172630e3 fix tip link 2022-07-23 11:00:33 +02:00
calleandGitHub 96af5fc3a7 CI: Test core/views/generic.py (#772)
* Adds tests for GET /wallet

* Update `httpx` to `0.23.0` and `http-core` to `0.15.0` in `venv` installation path

* Fix `secp256k1 = "==0.14.0"` and `cffi = "==1.15.0"`
2022-07-23 10:39:58 +02:00
calleandGitHub fd0d6bffce Update FUNDING.yml (#770) 2022-07-22 12:23:27 +02:00
calleandGitHub e4df8c52e2 add mkcert instructions (#768) 2022-07-21 14:01:16 +02:00
calleandGitHub 4feb45d745 LNURLp: NFC UI improvement (#767) 2022-07-21 13:39:21 +02:00
calleandGitHub 76a5196dbf LNURLp: Write NFC tags with LNURL-pay links (#766)
* NFC for LNURL-pay

* notification ui improvements
2022-07-21 12:38:30 +02:00
calleandGitHub 45c356cf6c change prefix to lightning: until wallets fix their bugs (#762) 2022-07-19 17:35:00 +02:00
calleandGitHub 0f73501a88 LNURLw: NFC fix uri prefix (#761)
* fix uri prefix

* prettier
2022-07-19 17:20:50 +02:00
calleandGitHub b8c99a15d1 do not mark payments as failed (#750) 2022-07-19 12:33:28 +02:00
callebtc 694124b5d6 require admin 2022-07-19 11:27:32 +02:00
callebtc b2a0faf9de error check for pr 2022-07-19 11:21:54 +02:00
callebtc 8d52b1b359 check description hash 2022-07-19 11:15:11 +02:00
calleandGitHub f4580955b9 loguru warnings (#751) 2022-07-17 22:25:37 +02:00
calleandGitHub 6646fce549 Core: add internal flag for invoice creation to use FakeWallet (#646)
* add internal flag for invoice creation to use FakeWallet
2022-07-17 14:34:25 +02:00
calleandGitHub d4c30a1091 remove old files (#748) 2022-07-17 14:04:59 +02:00
calleandGitHub 2febb364ca lnurldevice migration: typo fix (#746)
* typo fix

* fix table name

* revert typo
2022-07-17 13:22:23 +02:00
calleandGitHub ad2aad05e0 CI: Migration SQLite to PostgreSQL (#719)
* migrate all extensions
* errors if migration is missing
2022-07-17 13:11:13 +02:00
calleandGitHub f4e7d62ca3 make format everything (#743) 2022-07-16 14:23:03 +02:00
calleandGitHub 69516bb751 regtest on push (#742) 2022-07-16 14:17:45 +02:00
calleandGitHub 99b6b9d71c CI: regtest with LndRestWallet and CLightningWallet (#738)
* add regtest
* test LndRestWallet
* test CLightningWallet
2022-07-16 14:10:43 +02:00
6a3a72b944 Uvicorn loguru format (#741)
* use loguru formatting for uvicorn logs

* remove depth from logging interceptor

* format for uvicorn

* black

* isort

* black again

* python3-dev

* python3-dev

* leaner pipeline

Co-authored-by: dni <dni.khr@gmail.com>
2022-07-15 19:54:12 +02:00
calleandGitHub 1f13bdeb2f Pipenv/fix install loguru (#732)
* update pipfile

* pipenv workflow

* pipfile jinja

* Pipfile installs dev files

* python3.8 tests only

* version tag yaml

* all tests

* pipenv with pip

* only 3.7

* activate env

* test-pipenv

* pipenv importlib_metadata

* importlib-metadata

* 3.8

* 3.7 only oops

* merge install guides

* install guide in README
2022-07-13 01:15:48 +02:00
calleandGitHub 357860d849 Spark: increase timeout and improved error handling (#718)
* increase timeout and more error handling

* more error handling

* add timeout exception
2022-07-12 13:22:55 +02:00
calleandGitHub 0825519361 None check (#720) 2022-07-07 21:58:39 +02:00
calleandGitHub 63d4e60542 Testing: postgres db backend (#711)
* try postgres run

* fix yaml

* test with postgres

* check with postgres

* inkey_from

* remove trio

* add coverage

* add coverage

* more python testing

* use @pytest_asyncio.fixture

* remove unused imports

* fix api_payment payment lookup

* measure durations
2022-07-07 18:29:26 +02:00
calleandGitHub 262bd32f44 debug format more expressive (#715) 2022-07-07 16:24:36 +02:00
calleandGitHub 089313f613 Logging with loguru (#708)
* logging

* requirements

* add loguru dependency

* restore it

* add loguru

* set log level in .env file

* remove service fee print

* set log level

* more logging

* more logging

* more logging

* pyament.checking_id

* fix
2022-07-07 14:30:16 +02:00
calleandGitHub 92887ed169 Format: prettier (#707)
* format: prettier

* gh-actions: add prettier checkg

* actions
2022-07-05 21:14:56 +02:00
calleandGitHub d55f8dc36e readd prettier (#706) 2022-07-05 17:52:01 +02:00
calleandGitHub 17c79cd044 Makefile: remove prettier (#705)
* remove prettier

* black
2022-07-05 17:18:22 +02:00
calleandGitHub e7dd3ec64f reactivate actions (#682)
* reactivate other actions

* black

* codeql 2

* black only

* remove mock event loop

* do not follow grpc
2022-06-27 01:11:35 +02:00
calleandGitHub f6da260464 Automated tests (#566)
* return error for wrong key

* payment check use key dependency

* more expressive error

* re-add optional key

* more tests

* more

* more granular

* more testing

* custom event_loop

* tests work

* fix lots of mypy errors

* test_public_api

* both files

* remove unused import

* tests

* tests working

* rm empty file

* minimal test

* set FAKE_WALLET_SECRET="ToTheMoon1"

* set FAKE_WALLET_SECRET="ToTheMoon1"

* trial and error

* trial and error

* test postgres

* test postgres

* test postgres

* test postgres

* test postgres

* test postgres

* test build

* skip mypy
2022-06-27 00:11:46 +02:00
calleandGitHub 2f62d98299 Delete expired invoices after one pending check (#531)
* delete expired invoices regularly and after pending check

* fix mistake

* delete expired invoices only once
2022-06-26 19:12:55 +02:00
calleandGitHub 2c68f53c91 /api/v1/payments with limit and offset (#594) 2022-06-26 19:05:34 +02:00
calleandGitHub 06fbc4b0ae move fiat_base_multiplier multiplication into api_link_create_or_update() (#675) 2022-06-22 12:28:40 +02:00
calleandGitHub 1dec874af7 lnurlp: do not divide twice (#669) 2022-06-15 12:48:13 +02:00
callebtc c5ddd1a2c6 fiat_base_multiplier also in rate conversion 2022-06-10 16:08:29 +02:00
callebtc 6617450c21 store fiat_base_multiplier in db 2022-06-10 16:05:33 +02:00
callebtc b7008495b8 lnurlp: support for floating point fiat values 2022-06-10 15:35:35 +02:00
calleandGitHub 906f0166bd Core: fix internal webhooks (#649)
* fix internal webhooks

* argument annotation
2022-06-03 14:33:31 +02:00
callebtc f8400512f7 black formating 2022-06-01 14:53:05 +02:00
calleandGitHub b4a6b5a1d9 serviced fix doc (#645) 2022-06-01 13:25:37 +02:00
callebtc ebd6d6d58b key check 2022-05-10 22:00:50 +02:00
callebtc f08fbc2487 core: check_invoice_status for outgoing payments 2022-05-10 21:48:24 +02:00
calleandGitHub b1c75813a0 fix decodepay (#568) 2022-03-24 12:50:57 +01:00
calleandGitHub 1209526147 remove get_payment_status (#562)
* remove get_payment_status

* remove comments
2022-03-18 18:51:28 +01:00
calleandGitHub 0f97f8f18b Fee reserve for lightning backends (#557)
* preparing fees

* fee_limit_msat

* await resp result

* clightning

* fix tests

* fix test

* add fee to test

* mypy

* invoice_status

* checking id fix

* fee reserve error message

* only for external payments
2022-03-16 07:20:15 +01:00
callebtc 36952981c2 remove success var 2022-02-21 09:25:45 +01:00
callebtc fbafe2b8f1 Retry backend connection on startup 2022-02-21 09:17:36 +01:00
callebtc 6496fac35f fill mask for fiat 2022-02-18 12:35:25 +01:00
calleandGitHub c626e12fa3 LNDHhub for fastapi with LIMIT (#499)
* add limit to get_payments

* add limit to lndhub

* fix defaults

* default memo

* add offset cluase

* offset for the api
2022-02-17 13:10:34 +01:00
callebtc 13a72d9a41 replace string with LNBITS_SITE_TITLE 2022-02-17 11:42:08 +01:00
callebtc 15c8557459 allow empty memo 2022-02-17 10:16:11 +01:00
callebtc d559c604fa invoice without memo 2022-02-17 09:29:10 +01:00
callebtc cd84623305 amount label adaptive to uni - look at me Im a frontent dev now 2022-02-17 09:14:07 +01:00
callebtc 9fb30080ab black 2022-02-16 22:42:27 +01:00
callebtc 30ab519c3a amount is float and sats are int 2022-02-16 22:41:12 +01:00
callebtc 914b9f3ffe allow amounts >0 2022-02-16 22:23:26 +01:00
0764f4fdf1 Support for encrypted macaroons (#521)
* encrypted macaroons

* fix GRPC env entry

* example config entry

* add pycryptodomex to requirements

* documentation

* Added pycryptodomex to pip file

Co-authored-by: Ben Arc <ben@arc.wales>
2022-02-14 17:54:05 +01:00
calleandGitHub 8d7302e4cd fix bleskomat test (#523) 2022-02-14 13:49:15 +01:00