Commit Graph

3205 Commits

Author SHA1 Message Date
Arc
ee76a58c27
Merge pull request #936 from lnbits/revertremovinnfcbutton
Reverted nfc button not showing
2022-08-31 18:58:53 +01:00
ben
609bdae1e4 Merge branch 'revertremovinnfcbutton' into boltcardfix 2022-08-31 18:52:38 +01:00
ben
fa4b89b9a2 Reverted nfc button not showing
How it was before is better, as people know nfc functionality exists. It pushes them to use the right browser
2022-08-31 18:52:12 +01:00
ben
aeab899e4d Fix daily check 2022-08-31 18:32:13 +01:00
Arc
13dd3bbe43
Merge pull request #935 from lnbits/arcbtc-patch-1
Update README.md
2022-08-31 15:49:52 +01:00
Arc
01d0fdeac6
Update README.md 2022-08-31 15:49:31 +01:00
Arc
d5df15707e
Merge pull request #876 from leesalminen/ext-boltcards-2
Boltcards extension, round 2
2022-08-31 00:03:56 +01:00
ben
b3093cafdb Added video tutorial 2022-08-30 23:57:28 +01:00
Lee Salminen
36b2b82186 Merge branch 'main' into ext-boltcards-2 2022-08-30 10:20:24 -06:00
Lee Salminen
c114895219 text change, fix copy pasta 2022-08-30 08:08:11 -06:00
Lee Salminen
ad60c1614e hide nfc button if not supported on device, per issue #907 2022-08-30 08:06:05 -06:00
Lee Salminen
7a7413bb6f add lnurlw_base to auth response, per developers of the android app a future version will use this to pull the base url directly into the app 2022-08-30 07:35:31 -06:00
calle
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
dni ⚡
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
Lee Salminen
4e63662f42 add external_id field for external use 2022-08-29 14:51:18 -06:00
Lee Salminen
81ed71a2e4 update README to reflect latest changes 2022-08-29 12:04:08 -06:00
Lee Salminen
993511bcd4 fix validation check for existing card UID, was preventing all edits of cards. we should validate a bit differently for updates vs. creates 2022-08-29 09:40:35 -06:00
Lee Salminen
a6cf19c29d potential race condition here, hits is dependent on cards to get the card name in hits 2022-08-29 09:33:28 -06:00
dni ⚡
5fecb02b8d
fix typo in view api.py (#933) 2022-08-29 17:32:36 +02:00
Lee Salminen
88210129b7 make refunds work properly 2022-08-29 09:32:13 -06:00
Lee Salminen
7baec1de15 success_action was not defined, does not appear to be necessary for this 2022-08-29 09:05:00 -06:00
Lee Salminen
82904e509d Merge branch 'ext-boltcards-2' of github.com:leesalminen/lnbits-legend into ext-boltcards-2 2022-08-29 08:51:41 -06:00
Lee Salminen
fe83cad7a3 formatting 2022-08-29 08:51:32 -06:00
ben
d4da94e10b Merge remote-tracking branch 'leesalminen/ext-boltcards-2' into ext-boltcards-2 2022-08-29 15:51:32 +01:00
ben
56b4eb4a5e Added "lnurl://" to refund 2022-08-29 15:51:22 +01:00
Lee Salminen
6d9d037c06 add link to play store for bolt card app listing 2022-08-29 08:51:15 -06:00
Lee Salminen
b7c7b28dfc remove v-el:keybtn, was removed in vue v2. unnecessary ref anyways 2022-08-29 08:49:57 -06:00
Lee Salminen
51f9166744 define lnurlLink 2022-08-29 08:49:04 -06:00
ben
1493e73724 Merge remote-tracking branch 'leesalminen/ext-boltcards-2' into ext-boltcards-2 2022-08-29 15:40:31 +01:00
Lee Salminen
8e41f7867e Revert "make format"
This reverts commit 8832d6e4eb.
2022-08-29 08:39:37 -06:00
Lee Salminen
93483f76ab Revert "make copy lnurl to clipboard work"
This reverts commit c8b725830b.
2022-08-29 08:39:30 -06:00
Lee Salminen
e715ff52d2 Revert "link to play store app in qr code dialog"
This reverts commit 7400d7f430.
2022-08-29 08:39:16 -06:00
Lee Salminen
5dd6c0d2f4 Revert "make scan nfc button work"
This reverts commit a8ac90da5c.
2022-08-29 08:39:02 -06:00
Lee Salminen
d7696fdc0f Revert "remove v-el from element, this was removed in Vue v2, ref does not appear to be used anywhere"
This reverts commit c35ae109a4.
2022-08-29 08:38:54 -06:00
Lee Salminen
a086db43ba Revert "do not add lnurlw:// to the string"
This reverts commit 630cc296fb.
2022-08-29 08:38:48 -06:00
ben
d858a3c7cd Merge branch 'bensbits' into ext-boltcards-2 2022-08-29 15:37:55 +01:00
ben
33f9ae9f66 Added some unique checks so only 1 record can be made per card 2022-08-29 15:37:31 +01:00
Lee Salminen
630cc296fb do not add lnurlw:// to the string 2022-08-29 08:22:51 -06:00
Lee Salminen
c35ae109a4 remove v-el from element, this was removed in Vue v2, ref does not appear to be used anywhere 2022-08-29 08:21:47 -06:00
Lee Salminen
a8ac90da5c make scan nfc button work 2022-08-29 08:19:39 -06:00
ben
c0daf8e7b2 Merge branch 'bensbits' into ext-boltcards-2 2022-08-29 15:12:27 +01:00
ben
7ea3830fed Added NFC to get UID 2022-08-29 15:11:25 +01:00
Lee Salminen
7400d7f430 link to play store app in qr code dialog 2022-08-29 07:58:29 -06:00
Lee Salminen
c8b725830b make copy lnurl to clipboard work 2022-08-29 07:55:51 -06:00
Lee Salminen
8832d6e4eb make format 2022-08-29 07:34:56 -06:00
Lee Salminen
b987059386
Merge branch 'lnbits:main' into ext-boltcards-2 2022-08-29 07:33:18 -06:00
ben
59876fc17c Merge branch 'ext-boltcards-2' into bensbits 2022-08-29 14:18:36 +01:00
ben
7bfc0848ef Black/prettier 2022-08-29 14:18:18 +01:00
dni ⚡
88d38f7294
change docker image name for regtest tests (#931) 2022-08-29 10:55:35 +02:00
ben
9e3cd3f00e Merge branch 'bensbits' into ext-boltcards-2 2022-08-28 12:29:45 +01:00