Commit Graph
71 Commits
Author SHA1 Message Date
calleandGitHub 32a8736f32 CI: Test core/views/generic.py enabling and disabling extensions (#774) 2022-07-23 11:58:29 +02:00
calleandGitHub bf2a3e9df2 fix tip link (#773) 2022-07-23 11:01:23 +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
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
callebtc 09b86605dd fix bleskomat tests 2022-02-14 13:42:43 +01:00
calleandGitHub b4d00a490b remove restriction for positive amount to check outgoing payments (#500) 2022-01-27 22:58:35 +01:00
callebtc 9505958306 systemd guide 2022-01-27 21:07:47 +01:00
calleandGitHub 32ea1106f9 Crud webhook amount (#474)
* get_standalone_payment selects only incoming tx
2021-12-28 14:05:25 +00:00
calleandGitHub 43b48376bb lndrest fees for fastapi (#459) 2021-12-09 00:26:08 +01:00
callebtc 12c2a04b2a LNDRest fee limit 2021-11-29 18:10:11 +01:00
callebtc b178d9a38d readd mypy.ini 2021-11-27 13:11:29 +01:00
callebtc ad3942f844 remove type comment 2021-11-27 13:01:12 +01:00
callebtc 9b58bfe06a remove trio_typing 2021-11-27 12:54:01 +01:00
callebtc 2612e60647 annotation for optional attributes 2021-11-27 12:43:14 +01:00
callebtc 3fd66f38da rename endpoint to avoid collision 2021-11-27 12:42:19 +01:00
calleandGitHub e46e881663 Merge pull request #416 from lnbits/fix_db_lock_fastapi
Fix db connect
2021-11-13 12:51:19 +01:00
callebtc bec0b1d1fe fix db connect 2021-11-13 11:42:11 +01:00