dni
e4078910c4
fix another fastapi type
2022-07-26 09:38:31 +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
dni
e67b2c0529
Merge branch 'main' into fix/mypy
2022-07-25 13:46:22 +02:00
dni
5779243d3e
blacked
2022-07-25 13:30:45 +02:00
dni
3d1abfa35a
last mypy fails
2022-07-25 13:27:31 +02:00
dni
0bf4457c2f
fixup types
2022-07-25 13:19:35 +02:00
dni
a7c10dde4a
fixup types
2022-07-25 13:13:50 +02:00
Tiago Vasconcelos
27b4db9877
fix older tpos without tips ( #778 )
2022-07-25 12:52:28 +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
0e393111de
fix up decorators for tests
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
7f2c25336c
ignore eclair websockets type
2022-07-25 12:03:06 +02:00
dni
f677777f07
fully fix decorators, 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
704b572349
fix PaymentKwargs class for mypy
2022-07-25 12:03:06 +02:00
dni
56560fca02
mypy fixes for generic.py, decurators.py, eclair.py
2022-07-25 12:03:06 +02:00
dni
7ad9ad799e
assert Optional[str]
2022-07-25 12:03:06 +02:00
dni
8e9b3190e4
mypy fakewallet, macaroon, bolt11 invoice
2022-07-25 12:03:06 +02:00
dni
808bd36e23
some more mypy fixes
2022-07-25 12:02:59 +02:00
dni
895770e26a
remove commented out and unused code in app object, it is now used in lnbits/__main__.py directly, fixes mypy error
2022-07-25 12:00:22 +02:00
Tiago Vasconcelos
7fbea79e62
Add voucher design ( #704 )
...
* allow for custom print of vouchers
* lnbits defaul voucher
* reduce png size
* add template for custom design
* rename lnbits voucher
* send voucher amount to UI
* add some tweaks for default voucher
* added bonus in readme
* blacked
* make default string as constant
2022-07-25 11:22:21 +02:00
Tiago Vasconcelos
ff5b1189b5
Fix/tpos tips #697 ( #713 )
...
* small fastapi convertion
* make tip add up to invoice
* make tip add to invoice
* display existing tpos
* clean console logs
* suggestion from @leesalminen
* blacked
2022-07-25 11:19:03 +02:00
calle
32a8736f32
CI: Test core/views/generic.py
enabling and disabling extensions ( #774 )
2022-07-23 11:58:29 +02:00
blackcoffeexbt
c0c26fb98e
Extension list UI improvements ( #769 )
...
* Extensions list is now sorted alphabetically
* Added extension list search
* Prettified changes
* Removed console.log
* Code improvements based on motorina0 feedback
* Remove console.log from lnbits/templates/base.html
Run prettier
2022-07-23 10:46:30 +02:00
calle
96af5fc3a7
CI: Test core/views/generic.py
( #772 )
...
* Adds tests for GET /wallet
* Update `httpx` to `0.23.0` and `http-core` to `0.15.0` in `venv` installation path
* Fix `secp256k1 = "==0.14.0"` and `cffi = "==1.15.0"`
2022-07-23 10:39:58 +02:00
calle
4feb45d745
LNURLp: NFC UI improvement ( #767 )
2022-07-21 13:39:21 +02:00
calle
76a5196dbf
LNURLp: Write NFC tags with LNURL-pay links ( #766 )
...
* NFC for LNURL-pay
* notification ui improvements
2022-07-21 12:38:30 +02:00
calle
45c356cf6c
change prefix to lightning: until wallets fix their bugs ( #762 )
2022-07-19 17:35:00 +02:00
calle
0f73501a88
LNURLw: NFC fix uri prefix ( #761 )
...
* fix uri prefix
* prettier
2022-07-19 17:20:50 +02:00
calle
b8c99a15d1
do not mark payments as failed ( #750 )
2022-07-19 12:33:28 +02:00
blackcoffeexbt
fe2cbe8774
Jukebox improvements ( #759 )
...
* Improved styling of Spotify redirect URI clipboard copy text
* Jukebox extension - Moved links to Spotify into buttons to make set up steps more obvious
* Jukebox extension - Tweaks to titles of set up steps to clarify
* Prettified jukebox template
2022-07-19 12:28:49 +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
Lee Salminen
b6d01792e2
Add NFC Writing support to LNURLw extension ( #725 )
2022-07-18 16:56:15 +02:00
calle
f4580955b9
loguru warnings ( #751 )
2022-07-17 22:25:37 +02:00
Tiago Vasconcelos
c8ab2859fd
Splitpayments: floating point percentage for split value ( #690 )
...
* allow for float in model
* recreate DB with float type
* remove rounding in UI
* black
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-07-17 20:00:06 +02:00
Tiago Vasconcelos
2b827d37fa
return lnurl in create link ( #685 )
2022-07-17 14:39:02 +02:00
Lee Salminen
8079325ec9
fix /usermanager/api/v1/extensions
( #730 )
...
Requests to `POST /usermanager/api/v1/extensions` would silently fail due to a missing `await`.
2022-07-17 14:38:00 +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
2febb364ca
lnurldevice migration: typo fix ( #746 )
...
* typo fix
* fix table name
* revert typo
2022-07-17 13:22:23 +02:00
calle
ad2aad05e0
CI: Migration SQLite to PostgreSQL ( #719 )
...
* migrate all extensions
* errors if migration is missing
2022-07-17 13:11:13 +02:00
calle
f4e7d62ca3
make format
everything (#743 )
2022-07-16 14:23:03 +02:00
calle
6a3a72b944
Uvicorn loguru format ( #741 )
...
* use loguru formatting for uvicorn logs
* remove depth from logging interceptor
* format for uvicorn
* black
* isort
* black again
* python3-dev
* python3-dev
* leaner pipeline
Co-authored-by: dni <dni.khr@gmail.com>
2022-07-15 19:54:12 +02:00
Tiago Vasconcelos
348033da1b
python code styling ( #739 )
2022-07-15 19:11:11 +02:00
calle
357860d849
Spark: increase timeout and improved error handling ( #718 )
...
* increase timeout and more error handling
* more error handling
* add timeout exception
2022-07-12 13:22:55 +02:00
calle
0825519361
None check ( #720 )
2022-07-07 21:58:39 +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