Commit Graph
2859 Commits
Author SHA1 Message Date
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
ArcandGitHub ff8d32ec83 Merge pull request #915 from leesalminen/fly-io-docs
Add docs for hosting LNBits on Fly.io (for free)
2022-08-22 15:55:05 +01:00
ArcandGitHub ccc76d8ed1 Merge pull request #910 from motorina0/secure_communication
[onchain-ext] Secure communication
2022-08-22 14:13:55 +01:00
Vlad Stan 9bbcd28452 feat: UI improvements and fixes 2022-08-22 10:09:26 +03:00
Vlad Stan d08b7455e7 feat: add passphrase support 2022-08-22 09:04:16 +03:00
Tiago VasconcelosandGitHub 551c75c2cf set focus on amount (#916) 2022-08-21 23:07:18 +02:00
Tiago VasconcelosandGitHub 1d55fe1d1a add copy invoice button (#917) 2022-08-21 23:06:47 +02:00
Lee SalminenandGitHub aff7e11089 Update installation.md 2022-08-21 12:57:28 -06:00
Lee SalminenandGitHub 218ccbc3a7 Update installation.md 2022-08-21 11:46:11 -06:00
Lee SalminenandGitHub 5c2045927a Update installation.md 2022-08-21 11:39:34 -06:00
Lee SalminenandGitHub d9ddd746e0 Update installation.md 2022-08-21 11:25:39 -06:00
Lee SalminenandGitHub 7d56878f55 Update installation.md 2022-08-19 16:33:17 -06:00
Lee Salminen 70deb7e702 add docs for hosting lnbits on fly.io 2022-08-19 16:29:32 -06:00
Vlad Stan 739646f702 fix: show message when device not paired 2022-08-19 18:54:54 +03:00
Vlad Stan 95e7633e19 fix: await async method 2022-08-19 18:05:05 +03:00
Vlad Stan 5b59cdcd0d feat: buttonConfig pins are optional 2022-08-19 17:49:01 +03:00
Vlad Stan 83f998fe37 feat: remember paired devices 2022-08-19 14:59:59 +03:00
Vlad Stan 713909292e chore: format code 2022-08-19 08:51:57 +03:00
Vlad StanandGitHub fb7030c30f Merge branch 'main' into secure_communication 2022-08-19 01:42:17 -04:00
Vlad Stan 218ee77acd feat: handle forced logout 2022-08-18 18:57:20 +03:00
Vlad Stan 90938e89e1 feat: show pairing code 2022-08-18 17:54:26 +03:00
Vlad Stan d8d4d4d057 feat: add buttons config 2022-08-18 16:33:10 +03: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
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
Vlad Stan 61d3ca8c0b feat: hand pairing response 2022-08-18 10:32:56 +03:00
Vlad Stan e37fc0b898 fix: check-paring message 2022-08-18 09:01:05 +03:00
Vlad Stan faa9a017a4 refactor: rename command 2022-08-18 08:49:46 +03:00
Vlad Stan fb60673f67 feat: add ping command 2022-08-18 08:38:40 +03: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
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
Tiago VasconcelosandGitHub 7bba742faf delete tips first... (#888) 2022-08-16 17:01:53 +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
Vlad Stan f73f5a90c9 feat: only allow DH key exchange in the first 60 seconds 2022-08-16 14:08:04 +03:00
Vlad Stan 7c796f428a feat: allow COMMAND_PASSWORD_CLEAR in clear text 2022-08-16 12:16:09 +03:00
JoeandGitHub 8956bdc954 Update installation.md (#884)
* Update installation.md

I needed to run this additional command to install python3.9-specific distutils. Without this, installation of several poetry dependencies (idna, pyparsing, sniffio) failed with message: 
ModuleNotFoundError: No module named 'distutils.cmd'

* Update installation.md
2022-08-15 16:22:20 +02:00
Lee SalminenandGitHub 6aef9bfd45 Add NFC support to TPOS Extension (#856)
* WIP

* styling

* WIP

* WIP

* WIP

* Clean up for PR

* isort

* hold abortContoller for a while longer
2022-08-15 15:37:10 +02:00
Vlad Stan 32bb59255d feat: restore takes both the password and the seed as args 2022-08-15 15:59:49 +03:00
Vlad Stan 01d2db5a1b fix: bad command for restore 2022-08-15 15:43:35 +03: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