Commit Graph

3040 Commits

Author SHA1 Message Date
Gene Takavic
8c75ea600f
fix for uppercase QR 2022-09-12 10:17:45 +02:00
Tiago vasconcelos
15e9eeb682 Merge remote-tracking branch 'lnbits/main' into fix/tpos_dismiss_btn 2022-09-12 08:52:25 +01:00
Tiago vasconcelos
fad040edf1 remove toast - click checkmark to dismiss 2022-09-12 08:49:12 +01:00
calle
f3a16a28cc
Update installation.md (#955) 2022-09-11 13:06:55 +03:00
Vlad Stan
a8951f5b48 feat: show QR code for descriptor and xpub 2022-09-09 18:40:31 +03:00
Vlad Stan
d965457b92 feat: show seed word in browser (for devices with no display) 2022-09-09 17:47:12 +03:00
Vlad Stan
f14689fb60 feat: do not allow taproot inputs to be sent for signing 2022-09-09 17:06:36 +03:00
Jesse de Wit
f30ca2cf43
lndhub: remove delays (#954)
Remove the delays in gettxs and getuserinvoices calls to support wallets that use
the lndhub extension.
2022-09-09 17:03:02 +03:00
calle
4662a79c3b
little more logging (#953) 2022-09-09 16:46:27 +03:00
Vlad Stan
d77619279d chore: code clean-up 2022-09-09 16:28:20 +03:00
calle
d757154125
print time of expiration (#952) 2022-09-09 16:27:37 +03:00
Vlad Stan
8c87e84b68 feat: show address details on device 2022-09-09 16:01:53 +03:00
Vlad Stan
c432671ab7 chore: fix typo 2022-09-09 16:01:53 +03:00
Vlad Stan
4368422b5c feat: show version
Helps when users report issues
2022-09-09 16:01:53 +03:00
calle
54305c8f91
reuse db connection for pending and expired tasks (#951)
* reuse db connection for pending and expired tasks

* make format
2022-09-09 15:02:07 +03:00
Arc
7d0b5ade3e
Merge pull request #947 from lnbits/fix/copilot_ws
remove already added prefix ou route - ws working again
2022-09-09 10:05:55 +01:00
Arc
9296e295ea
Merge pull request #950 from motorina0/fix_onchain_account_type
fix: type can be `None` due to migration issue
2022-09-09 10:00:40 +01:00
Vlad Stan
2704552685 fix: type can be None due to migration issue 2022-09-09 11:55:12 +03:00
Tiago vasconcelos
d1eb0b0c4d rollback on removing NFC button 2022-09-08 14:59:19 +01:00
Tiago vasconcelos
0177316075 display NFC button on supported and fix null tip options 2022-09-08 14:59:19 +01:00
Tiago vasconcelos
d2f00435cc remove already added prefix ou route - ws working again 2022-09-06 12:30:20 +01:00
Tiago vasconcelos
dc6098e1ca remove call to set ticket paid 2022-09-05 12:56:40 +01:00
Tiago vasconcelos
e0c048339c update event data on ticket sold 2022-09-05 12:54:37 +01:00
Tiago vasconcelos
ddc3ec7e2f add a tooltip and label for adding tip options 2022-09-05 11:55:24 +01:00
Tiago vasconcelos
e5644ec4f6 show a dismissable notification after payment succeed 2022-09-05 11:47:27 +01:00
Arc
d96ac5f3ef
Merge pull request #940 from lnbits/dailylimitfix
Fixed daily limit
2022-08-31 21:43:13 +01:00
ben
39800fd5fd Fixed daily limit 2022-08-31 21:42:27 +01:00
Arc
83605a2524
Merge pull request #939 from lnbits/boltcardappfix
Hotfix: Fixes issue with new app
2022-08-31 21:35:25 +01:00
ben
7e90c47008 Works with new app 2022-08-31 21:32:53 +01:00
ben
d95a3032e6 Fix for boltcard app change 2022-08-31 20:27:42 +01:00
Arc
3080094273
Merge pull request #938 from lnbits/boltcardfix
Fixes daily limit issue
2022-08-31 19:30:46 +01:00
ben
c52ffe846d import dattime 2022-08-31 19:26:59 +01:00
ben
dda5784a47 added amount to spend 2022-08-31 19:24:50 +01:00
Arc
7b2be9cd49
Merge pull request #937 from lnbits/boltzfix
Ruined extension layout
2022-08-31 19:08:48 +01:00
ben
bcbdda657b Ruined extension layout 2022-08-31 19:04:07 +01:00
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