Commit Graph

170 Commits

Author SHA1 Message Date
ben
4c8641fe00 Merge remote-tracking branch 'origin/main' into qrcodemaker 2022-07-28 10:48:12 +01:00
dni
c72834e47e revert attribute check 2022-07-27 09:50:16 +02:00
dni
347baa076a Merge branch 'main' into fix/mypy 2022-07-26 13:00:06 +02:00
dni
36cb1eb47b fix int type by changing the order 2022-07-26 12:46:43 +02:00
dni
00dba54ac8 remove FIXME add couple of ignores 2022-07-26 12:21:21 +02:00
dni ⚡
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
Arc
2d46eda5f5
Revert "Revert "LNURLp: check description hash"" 2022-07-25 15:54:49 +01:00
Arc
b708950b93
Revert "LNURLp: check description hash" 2022-07-25 15:32:59 +01:00
Arc
1da7c9b349
Merge pull request #758 from lnbits/lnurl/check_description_hash
LNURLp: check description hash
2022-07-25 15:19:20 +01:00
dni
5779243d3e blacked 2022-07-25 13:30:45 +02:00
dni
9cecd42467 ignore Body type 2022-07-25 12:09:29 +02:00
dni
df00a018f0 added FIXME tags and fix WalletTypeInfo 2022-07-25 12:05:16 +02:00
dni
4dfa0873e5 fix isort check 2022-07-25 12:03:06 +02:00
dni
463fbb39bd make test run again, introduce mypy again 2022-07-25 12:03:06 +02:00
dni
a80fd5de7a black formating 2022-07-25 12:03:06 +02:00
dni
9a17e4896b fix last views api bug, thanks calle 2022-07-25 12:03:06 +02:00
dni
25d19244be mypy fixes, api, eclair 2022-07-25 12:03:06 +02:00
dni
808bd36e23 some more mypy fixes 2022-07-25 12:02:59 +02:00
Tiago Vasconcelos
ed2c5cc586
Fix/lnurl auth (#757)
* remove g() and add wallet

* wallet type

* add wallet object

* send wallet as param

* make lnurlauth work

* remove g() and add wallet

* wallet type

* add wallet object

* send wallet as param

* make lnurlauth work

* black'ed

* blacked

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-07-19 11:35:28 +02:00
callebtc
694124b5d6 require admin 2022-07-19 11:27:32 +02:00
callebtc
b2a0faf9de error check for pr 2022-07-19 11:21:54 +02:00
callebtc
8d52b1b359 check description hash 2022-07-19 11:15:11 +02:00
calle
f4580955b9
loguru warnings (#751) 2022-07-17 22:25:37 +02:00
calle
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
calle
f4e7d62ca3
make format everything (#743) 2022-07-16 14:23:03 +02:00
calle
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
calle
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
Tiago vasconcelos
6154454f15 hotfix api_payments failing 2022-06-29 10:55:54 +01:00
calle
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
calle
2c68f53c91
/api/v1/payments with limit and offset (#594) 2022-06-26 19:05:34 +02:00
callebtc
f8400512f7 black formating 2022-06-01 14:53:05 +02:00
Arc
b4ad0e101d
Revert "Check invoice status outgoing" 2022-05-20 14:35:00 +01:00
Arc
2337471e45
Merge pull request #619 from lnbits/check_invoice_status_outgoing
Check invoice status outgoing
2022-05-17 14:17:41 +01:00
Tiago vasconcelos
caa23e6c9d key issues fixed 2022-05-16 11:21:30 +01:00
callebtc
ebd6d6d58b key check 2022-05-10 22:00:50 +02:00
benarc
829e220096 another dependency 2022-04-16 11:18:27 +01:00
benarc
b5703e0dfc added dependency 2022-04-16 11:17:03 +01:00
benarc
c7322fd071 correct route 2022-04-16 11:15:42 +01:00
benarc
a6c84ceb61 Geberic QRcode maker
Added generic qrcode maker endpoint extensions can use to make embedable qrcodes
2022-04-16 11:14:34 +01:00
calle
b1c75813a0
fix decodepay (#568) 2022-03-24 12:50:57 +01:00
Ben Arc
435b4056fd fixed conversion api 2022-03-10 12:16:51 +00:00
Ben Arc
52ef2da76d added wrong key type 2022-03-08 22:22:51 +00:00
Ben Arc
e4dd0972a5 Wrong key int being returned 2022-03-08 22:15:45 +00:00
Ben Arc
c708cb1e2b Important fix to payment check 2022-03-07 18:27:03 +00:00
benarc
9bbf78e026 Assigned wallet var 2022-03-07 08:19:14 +00:00
benarc
d62ef0bb80 Added extra pay details 2022-03-07 08:08:08 +00:00
Arc
ef6d12fe10
Merge pull request #545 from talvasconcelos/fix/paymentsDecode
fix payments decode
2022-03-07 04:24:32 +00:00
Joseph Pentland
baf55afc28
api: Fix conversion from fiat to satoshis (#516)
Conversion to satoshis incorrectly used data.to as fiat currency rather
than data._from.
2022-03-01 23:11:39 +03:00
Tiago vasconcelos
eb7b369b6d fix payments decode 2022-02-22 16:45:35 +00:00
callebtc
13a72d9a41 replace string with LNBITS_SITE_TITLE 2022-02-17 11:42:08 +01:00