calle
24de8f6611
isort api.py ( #898 )
2022-08-17 14:27:52 +02:00
calle
790f0efda7
Chore/unhashed description expressive error ( #894 )
...
* dont assume field
* expressive error for desciprion_hash and unhashed_description in format that isnt hex
2022-08-17 00:59:11 +02:00
dni ⚡
3dc00f67db
add pending column to CSV export on wallet page, issue #887 ( #889 )
...
* add pending, isPaid columns to CSV export on wallet page, issue #887
* prettier formatting
* remove isPaid from csv export
* added comment
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-16 17:01:32 +02:00
Tiago Vasconcelos
197ff7d054
Core: reserve fee as an .env variable ( #631 )
...
* reserve fee as an .env variable
* fixed bad import
* Update .env.example
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
* Update lnbits/core/services.py
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
* Update lnbits/core/services.py
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
* Update lnbits/settings.py
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
* variable consistent names
* fix services.py variable names
* percent default fix
* Update lnbits/settings.py
int to float
* Update lnbits/settings.py
int to float
* Update .env.example
int to float
* make format
* fixed failing bleskomat test, expecting 2000 msats fee
* Update tests/extensions/bleskomat/test_lnurl_api.py
revert to 2 sat
* Update .env.example
* Update lnbits/settings.py
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 20:19:08 +02:00
calle
28661903b6
return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing ( #869 )
...
* return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing
* fix regtest (#867 )
Co-authored-by: dni <dni.khr@gmail.com>
* return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing
Co-authored-by: dni ⚡ <office@dnilabs.com>
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-13 14:41:44 +02:00
calle
e5d8c500d2
Wallets/unhashed_description ( #870 )
...
* new argument: unhashed_description
* accept in api
* set unhashed_description for memo case
* bolt11.py: dont be like CLN, accept the hash
* send hash to lnd in b64
* fix cln
* skip descr_hash for cln
* skip
* format
2022-08-13 14:29:04 +02:00
calle
05edd908f0
fix lnurlw balance_check ( #854 )
2022-08-09 12:48:10 +02:00
calle
4fc0a25d41
Mega-merge 4: Reenable LndWallet gRPC and use TrackPaymentV2 ( #745 )
...
* readd lndgrpc
* debug logging
* Use TrackPaymentV2
* /v2/router/track
* lnd_router_grpc
* flag for blocking check
* error handling
* fix name
* regtest lndgrpc
* new test pipeline
* fix env
* check for description hash
* remove unnecessary asserts for clarity
* assume that description_hash is a hash already
* no lock
* description hashing in backend
* restore bolt11.py
* /api/v1/payments with hex of description
* comment
* refactor wallets
* forgot eclair
* fix lnpay
* bytes directly
* make format
* mypy check
* make format
* remove old code
* WIP status check
* LND GRPC docs
* restore cln to main
* fix regtest
* import
* remove unused import
* format
* do not expect ok
* check ok
* delete comments
2022-08-09 11:49:39 +02:00
calle
b3c866fd1d
Code health: Small linting fix ( #813 )
...
* small linting fix
* je lint therefore je suis
2022-08-02 16:17:47 +02:00
calle
f1ec7e33f0
Mega-merge 2: Invoice/refactor description hash (WIP) ( #814 )
...
* description hashing in backend
2022-08-01 16:20:25 +02:00
Tiago Vasconcelos
925a7735da
change z-index for wallet tab ( #818 )
2022-08-01 12:56:56 +02:00
ben
618717b529
Merge branch 'main' into qrcodemaker
2022-07-28 12:40:25 +01:00
ben
4199f1bf98
Make format
2022-07-28 11:02:49 +01:00
calle
730add5116
Core/tag check get ( #797 )
...
* safer tag checking
* annotate
2022-07-28 11:53:40 +02:00
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
7da496dbb4
remove asserts and add ignore instead for now
2022-07-27 09:39:52 +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
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
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
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
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
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
808bd36e23
some more mypy fixes
2022-07-25 12:02:59 +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
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