Commit Graph
54 Commits
Author SHA1 Message Date
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 ⚡ 0beb112d5b fix some javascript errors when adding users 2022-10-25 09:20:16 +02:00
dni ⚡ 11393ef7e9 fix AD_SPACE 2022-10-25 09:20:16 +02:00
dni ⚡ 635bcf66d6 format black 2022-10-25 09:20:16 +02:00
dni ⚡ a6bdd8c575 format 2022-10-25 09:20:16 +02:00
09871bbabc fix mypy for extensions (#873)
* explicitly exclude all extensions from mypy

* fix example extension mypy

* fix subdomains extension mypy + 1 type error fixed

* fix mypy discordbot

* mypy check copilot extensnion

* copilot black

* add invoices ext to ignore

* add boltz and boltcard

* copilit id is necessary

* was discordbot is ok

Co-authored-by: dni <dni.khr@gmail.com>
2022-10-24 16:29:30 +02:00
dni ⚡andGitHub 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
dni ⚡ e1fbb8c3cd fix livestream extension 2022-10-21 18:28:39 +02:00
dni ⚡ fe879ad9b9 add tpos to pr 2022-10-21 18:15:27 +02:00
dni ⚡ 2d61a8854f improving on split payment handling 2022-10-21 17:35:58 +02:00
dni ⚡andGitHub 42704eaf1b change boltz logs from warn to debug (#1057) 2022-10-18 08:49:27 +02:00
dni ⚡ 3bf38884ed log successful connection to backend with logger.success() 2022-10-07 08:30:07 +02:00
dni ⚡ 79319faa21 make workflows only run on pull_request 2022-10-06 10:17:21 +02:00
dni ⚡ bc2068cc87 fix poetry lock in main 2022-10-06 09:42:38 +02:00
dni ⚡ 41668d6f32 add warning for voidwallet for better coloring in logs 2022-10-01 11:33:58 +02:00
dni ⚡andGitHub 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
dni ⚡ 19b1374d51 fixing tests for new poetry version ^1.2 2022-09-27 17:44:52 +02:00
dni ⚡andGitHub 8e06d779e7 add dependencies for corelightning and lndgrpc (#1003)
* add dependencies for corelightning and lndgrpc

* added wrong cln library, 🤦
2022-09-23 16:56:14 +03:00
dni ⚡andGitHub d8acad4282 make sure tests not spamming boltz live servers (#1000)
* make sure tests not spamming boltz live servers

* fixing tests to no run on live servers
2022-09-23 11:35:18 +03:00
dni ⚡andGitHub 8305ebe6e8 fix scss error on poetry install (#989) 2022-09-23 11:02:44 +03:00
dni ⚡andGitHub a98c5f9a85 fixes issue #977 (#999)
* fixes issue #977

* fix prettier formatting, when pre-commit
2022-09-23 11:00:45 +03:00
dni ⚡andGitHub e0981ecede change python version of lnd wallet (#996) 2022-09-23 10:58:19 +03:00
dni ⚡ 9041c75eb6 fix docker deploy 2022-09-20 12:22:17 +02:00
dni ⚡andGitHub d6e3eb5837 Fix donate link on start page 2022-09-12 14:38:37 +02:00
78a98ca97d Boltz.exchange Extension (#922)
* initial commit and still draft, ready for review

* forgot to uncomment this line

* fee estimation and blockheight

* resolve conversation with michael, to use mempool websockets instead of boltz status event

* Update lnbits/extensions/boltz/boltz.py

Co-authored-by: michael1011 <me@michael1011.at>

* add status to swaps, add sorting and data into listing

* add swap status checks, change urls to docker test setup, dynamic minimum and maximum limits

* fix docker hosts for development

* add api endpoints to _api_docs

* add wallet name and id, to list and status information

* fix status_update for reverse_swaps

* chore: format with black

* more blackformatting and refactoring create_swap()

* fix variable bug

* check if swap is already refunded

* use create_task instead of ensure_future

* add mempool and boltz urls depending on DEBUG .env

* raise exception in mempool fails

* fix onchain txs, sending funds to wrong address and add a refund address for normal swaps beforehand

* add status to swaps, add sorting and data into listing

* add swap status checks, change urls to docker test setup, dynamic minimum and maximum limits

* add wallet name and id, to list and status information

* fix status_update for reverse_swaps

* chore: format with black

* use create_task instead of ensure_future

* add mempool and boltz urls depending on DEBUG .env

* fix onchain txs, sending funds to wrong address and add a refund address for normal swaps beforehand

* black formatting

* add some logging with loguru, and remove function duplication

* cleanup readme

* updates/suggestions from calle

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

* remove unused comments

* Update API Endpoints

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

* un-factor get_boltz_pairs

* added a explaination for the onchain tx

* remove unused template file

* rename api endpoints

* fix isort and prettier

* more verbose logging!!

* add boltz to mock_data.zip

* new mockdata

* remove comment

* better readme

* fix mempool urls

* change /refund /check /status to post requests

* first step in tests2

* add first tests

* change refund,check,status to post requests

* next try on tests

* overall code improvements

* just testing tests

* throw http exceptions in views_api

* require admincheck for refund,check,status and added fastapi documentation for those

* added more tests

* black

* many code improvements

* adding tests

* temp fix test

* fix race condition when pay_invoice fails

* test are working

* add boltz env variables

* add startup check, bugfixes, improvements

* improve on status checking

* remove check_invoice_status

* more fixes and tests

* testing testing testing

* make tests run again inside regtest

* fix bad error :O

* fix postgres boolean bug and add swap test

* Update README.md

Update README.md

Update README.md

Update README.md

* some mypy

* blacked

* the missing commit?

* fix api_docs readme link

* better refunding error catching

fix

* check swaps now also shows pending reverse swap, ui improvements, tooltips

* add backend check for boltz limits

fixup

* many improvements, startup check for swaps working, reverse needs more testing

* little last fixes

* remove unused logic

* fastapi documentation

fixup

* formatting and remove unused tests

* fix test

* fix swapstatus model

* Update lnbits/extensions/boltz/tasks.py

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

* Update lnbits/extensions/boltz/views_api.py

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

* balance check msg, format

* fix mypy data override

* fix swapstatus, remove can refund column

* Update lnbits/extensions/boltz/README.md

Co-authored-by: michael1011 <me@michael1011.at>

* empty lines

* fix error message when swap is not found

* remove preimage_hash from database

* fix api_docs html

fix api_docs html

* catch boltz network exceptions better

* formatting

* check for timeout on swap at get request

Co-authored-by: michael1011 <me@michael1011.at>
Co-authored-by: fusion44 <some.fusion@gmail.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-30 12:51:17 +02:00
dni ⚡andGitHub 5fecb02b8d fix typo in view api.py (#933) 2022-08-29 17:32:36 +02:00
dni ⚡andGitHub 88d38f7294 change docker image name for regtest tests (#931) 2022-08-29 10:55:35 +02:00
dni ⚡andGitHub e2c9673517 subdomains docs fix: #900 (#904)
fix subdomain link to docs: also mentioned in #900
2022-08-18 10:17:32 +02:00
dni ⚡andGitHub 853536ea32 lnAdress fix link to docs (#903)
Fixes: https://github.com/lnbits/lnbits-legend/issues/900
2022-08-18 10:17:16 +02:00
31a51f3cbc add debug logging into tests (#895)
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-17 15:57:56 +02:00
d649e6a5c0 fix migrations, add documentation, hopefully fix workflow (#899)
* fix migrations, add documentation, hopefully fix workflow

* renaming to test-migration and add migration

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-17 15:42:01 +02:00
3dc00f67db add pending column to CSV export on wallet page, issue #887 (#889)
* add pending, isPaid columns to CSV export on wallet page, issue #887

* prettier formatting

* remove isPaid from csv export

* added comment

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-16 17:01:32 +02:00
ee4049ec1f fix javascript issue, Fixes: #890 (#891)
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-16 17:01:20 +02:00
88ec440ea1 another testcase the fails similar to #847 (#892)
* another testcase the fails similar to #847

* proper fix

* revert to statuscode 401 and code improvements @calle

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-16 17:01:05 +02:00
d989441587 added test for issue #847 and fixed it! (#848)
* added test for empty post data, for issue #847

* black

* fixed the failing testcase

* Update lnbits/decorators.py

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

Co-authored-by: dni <dni.khr@gmail.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 14:47:29 +02:00
034813a1ab stuck in retrying backend loop, fix issue #652 (#862)
* maybe solution to issue #652

* formatting, when precommit merge?

* Update lnbits/app.py

* Update lnbits/app.py

Co-authored-by: dni <dni.khr@gmail.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 14:46:47 +02:00
32a09f7359 add apache2 reverse proxy documentation (#868)
* add apache2 reverse proxy documentation

* add certbot

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-13 14:41:23 +02:00
3457ff101e fix regtest (#867)
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-12 21:05:13 +02:00
48a57513f4 create new Dockerfile using poetry (#806)
* create new Dockerfile using poetry

* dont use unsure docker hub image

* add example env variable to docker command

* remove copy of lnbits, and order of commands

* add build.py for static files

* add compiled resources to docker ignore, so we don't accidently add it to image

* use generic python

* CMD with arguments

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-04 08:05:51 +02:00
a3a183b86c fix test warnings when using < python3.8 (#798)
* jinja warning

* fix regex

Co-authored-by: dni <dni.khr@gmail.com>
2022-07-28 12:15:27 +02:00
dni ⚡andGitHub 3ec9cb6c89 use main branch of regtest 2022-07-28 11:11:54 +02:00
783502ebf8 faster regtest, docker build is not needed anymore (#794)
* docker build is not needed anymore as regtest now does not include lnbits

* faster regtest, because docker build -t lnbits . is not needed anymore

Co-authored-by: dni <dni.khr@gmail.com>
2022-07-28 11:09:03 +02:00
5810a4993b Update lnbits/core/views/api.py
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-07-26 09:08:16 +02:00
462fffbeaa .gitignore coverage.xml + do not delete mock_data.zip (#779)
* add coverage.xml to gitignore

* fix deleting mock_data.zip

Co-authored-by: dni <dni.khr@gmail.com>
2022-07-25 15:08:30 +02:00
b865fad95e Update tests/core/views/test_api.py
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-07-25 12:05:16 +02:00
e939b9a5aa Update tests/core/views/test_api.py
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-07-25 12:05:16 +02:00
4b5e113c03 Regtest update (#775)
* preparation pr for regtest update

* remove FIXMEs

Co-authored-by: dni <dni.khr@gmail.com>
2022-07-25 07:31:15 +02:00
613c5b4667 Update tests/core/views/test_api.py
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-07-20 13:15:18 +02:00
0784ae02b1 Update tests/core/views/test_api.py
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-07-20 13:15:06 +02:00
a57980469b addition to dockerignore (#722)
* add venv, data, tests to dockerignore

* add config files to ignore

Co-authored-by: dni <dni.khr@gmail.com>
2022-07-11 13:40:22 +02:00
b1d6c82466 fix dockerfile and add docker ignore (#714)
* fix dockerfile and add docker ignore

* fixup comment in dockerignore

Co-authored-by: dni <dni.khr@gmail.com>
2022-07-07 18:30:21 +02:00
Daniel KrahoferandGitHub 0ae1cf6e52 Ignore docker directory
Ignore docker directory if you clone and use the https://github.com/lnbits/legend-regtest-enviroment
2022-06-30 12:03:46 +02:00
Daniel KrahoferandGitHub aba206c87e Extension Subdomains: Update crud.py, critical sql error (#481) 2022-01-04 09:56:14 -03:00