Commit Graph

5675 Commits

Author SHA1 Message Date
dni ⚡
1ac9d2572d
E203, E221 2023-04-17 08:16:59 +02:00
dni ⚡
4a72a5b6b3
E241, E501 2023-04-17 08:14:04 +02:00
dni ⚡
b465ecf22a
E265 2023-04-17 08:11:07 +02:00
dni ⚡
42b7cd3046
fix E266 2023-04-17 08:09:34 +02:00
dni ⚡
45b36b896b
move flake config from setup.cfg to .flake8, to not confuse it with setup.cfg python package settings 2023-04-17 08:08:16 +02:00
Arc
d82118db20
Merge pull request #1623 from lnbits/bug/fake_wallet_invoice
hotfix fakewallet
2023-04-14 11:13:25 +01:00
dni ⚡
ffb0f4ccb0
hotfix fakewallet 2023-04-14 12:03:06 +02:00
dni ⚡
cf3b169480
FEAT: ignore extensions for checks, linting, prettier (#1617) 2023-04-13 07:57:14 +02:00
Arc
95a718c6c0
Merge pull request #1614 from lnbits/arcbtc-patch-1
Link install guide
2023-04-11 17:29:18 +01:00
dni ⚡
2473e0e962
FEAT: lock name inside package-lock, by adding name to package.json (#1616) 2023-04-11 10:31:44 +02:00
Arc
90d1e1ebb6
Update README.md 2023-04-08 14:53:49 +01:00
Arc
47df94178e
Merge pull request #1468 from lnbits/pyright3
introduce pyright + fix issues (supersedes #1444)
2023-04-05 12:42:23 +01:00
dni ⚡
255638a9ce
remove elif for vlad 2023-04-05 11:39:01 +02:00
dni ⚡
50149c360c
add assert 2023-04-05 11:38:07 +02:00
dni ⚡
6fae6dab92
remove *1000 for fake 2023-04-05 11:35:09 +02:00
dni ⚡
be5f909d1c
merge issue in lnd_rest 2023-04-04 08:00:43 +02:00
dni ⚡
2a1a0f3a2f
fix pyright issues 2023-04-04 07:49:13 +02:00
dni ⚡
5dbd9a9192
add some assert description 2023-04-04 07:35:20 +02:00
dni ⚡
1f6a961840
fix cln mypy 2023-04-04 07:35:20 +02:00
callebtc
9b7bda4e4e
finish services.py 2023-04-04 07:35:20 +02:00
callebtc
a8103ba091
remove unnecessary checking_id from fakewallet 2023-04-04 07:35:20 +02:00
callebtc
234b508368
shorten and ignore cln.py 2023-04-04 07:35:19 +02:00
callebtc
f766f9b2c3
comment 2023-04-04 07:35:05 +02:00
callebtc
370ec7e366
remove error fallback 2023-04-04 07:35:04 +02:00
dni ⚡
0822058661
fix newly introduced pyright issue from rebase 2023-04-04 07:35:04 +02:00
dni ⚡
7be46587db
do not ignore core and wallets for pyright, bug probably got introduced while rebasing... 2023-04-04 07:35:04 +02:00
dni ⚡
fa58a5fa4c
flake it 2023-04-04 07:35:04 +02:00
dni ⚡
486631b455
move middleware to middleware.py 2023-04-04 07:35:04 +02:00
dni ⚡
435743a265
add **kwargs to create_invoice functions 2023-04-04 07:34:51 +02:00
dni ⚡
72386033a9
formatting 2023-04-04 07:34:51 +02:00
dni ⚡
69c0cd0276
asserting broke payments 2023-04-04 07:34:51 +02:00
dni ⚡
abfee29676
uncomment webhook_listerner and add TODO 2023-04-04 07:34:50 +02:00
Pavol Rusnak
9c8a79eb9b
fix pyright lnbits/wallets
Co-authored-by: dni  <office@dnilabs.com>
2023-04-04 07:34:50 +02:00
Pavol Rusnak
0607cb1d6e
fix pyright lnbits/core
Co-authored-by: dni  <office@dnilabs.com>
2023-04-04 07:34:37 +02:00
Pavol Rusnak
02306148df
fix pyright lnbits
Co-authored-by: dni  <office@dnilabs.com>
2023-04-04 07:34:17 +02:00
Pavol Rusnak
3855cf47f3
Merge pull request #1607 from lnbits/f-strings
small followup to #1597
2023-04-03 17:59:50 +02:00
Pavol Rusnak
b2bc378a6f
small followup to #1597 2023-04-03 17:54:55 +02:00
dni ⚡
e59a218912
bugfix: 500 error if same wallet tries to pay an external invoice twice (#1594)
* bugfix: 500 error if same wallet tries to pay an external invoice twice

* fstring

* log the error

---------

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2023-04-03 15:34:55 +02:00
Pavol Rusnak
689c443d72
increase readability by using f-strings (#1597)
* increase readability by using f-strings

* readd merge conflict stuff

---------

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-04-03 15:34:17 +02:00
calle
58c3b05e29
fix internal payment check (#1604) 2023-04-03 15:15:34 +02:00
dni ⚡
8ce84ce592
FEAT: Filters for GET requests, add it to GET /payments (#1557)
* feat filters, add them to GET payments

* add limit and offset to filters (#1563)

* add limit and offset to filters
* move filters example to parse_filters doc string

* black

* add openapi docs

* remove example commentC

* improve typing and make nested filter possible in openapi

* typo in fn name

* readd Type

---------

Co-authored-by: jackstar12 <62219658+jackstar12@users.noreply.github.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-04-03 14:55:49 +02:00
dni ⚡
fe9e821af5
BUG: proper exception for already paid internal invoices (#1593)
* BUG: proper exception for paid interal invoices

* test should now fail, because we pay invoice twice, and should also work in regtest

* sorting

* unpack check_internal

* introduce another crud fn for checking internal paid payment

* rename

---------

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2023-04-03 14:44:17 +02:00
dni ⚡
a9bdf24425
FEAT: use versioning for frontend (npm) and copy it to lnbits/static/vendor for easier updating (#1590)
* remove static/vendor

* add node dependencies

* add bolt11-decoder

* run npm install inside dockerimage

* only use bundle.js and bundle.css

* use node_modules for bundling vendor assets

* remove dead code

* make argument optional

* reintroduce vendor dir

* reintroduce vendor and single javascript files, minification

* wrong moment, remove minification

* lock packages with non critical issues

* black
2023-03-31 12:46:24 +02:00
dni ⚡
43c9c9754b
FEAT: #1552 add copy payment_hash to payment details (#1591)
* add copy to payment details

* icon for calle
2023-03-30 14:30:50 +02:00
dni ⚡
9127ebc621
FIX: admin topup to use payment_hash (#1588)
* FIX: admin topup to use payment_hash

* flake8
2023-03-30 14:21:01 +02:00
dni ⚡
407a61cd29
add version to fastapi app and startup log (#1568)
* add version to fastapi app and startup log

* move version into settings

* remove unused dep
2023-03-30 14:19:45 +02:00
calle
994b203a8e
return fee in status (#1598) 2023-03-29 19:40:52 +02:00
Vlad Stan
239f166a14 fix: format relative path 2023-03-20 16:07:20 +02:00
Vlad Stan
e1e34def8c fix: correct method names for Path 2023-03-20 16:07:20 +02:00
Pavol Rusnak
a805d2a0e8 refactor extension_manager to use pathlib.Path instead of os.path.join 2023-03-20 16:07:20 +02:00