Commit Graph

14 Commits

Author SHA1 Message Date
callebtc
0490f20932 Wallet: Lightning interface (#318)
* mint does not start yet

* fix import

* revert mint db migrations

* handle zero fee case

* cli: adjust fee message

* wallet: replace requests with httpx

* clean up

* rename http client decorator

* fix pending check in main, todo: TEST PROXIES WITH HTTPX

* fix up

* use httpx for nostr as well

* update packages to same versions as https://github.com/lnbits/lnbits/pull/1609/files

* fix proof deserialization

* check for string

* tests passing

* adjust wallet api tests

* lockfile

* add correct responses to Lightning interface and delete melt_id for proofs for which the payent has failed

* fix create_invoice checking_id response

* migrations atomic

* proofs are stored automatically when created

* make format

* use bolt11 lib

* stricter type checking

* add fee response to payments

* assert fees in test_melt

* test that mint_id and melt_id is stored correctly in proofs and proofs_used

* remove traces

* refactor: Lightning interface into own file and LedgerCrud with typing

* fix tests

* fix payment response

* rename variable
2023-10-21 14:38:16 +02:00
callebtc
339c3fb066 Fix/fee_reserve_outputs (#261)
* fix fee reserve

* fix tests
2023-06-23 20:47:56 +02:00
callebtc
5782421343 fee reserve 0 doesnt like log 2023-06-23 20:41:29 +02:00
callebtc
65ab8e8120 fee reserves cant be negative (#260) 2023-06-23 20:37:21 +02:00
xphade
21069fb61a Implement dynamic amount of tokens for change (#223)
With the recent update to NUT-08, we can ensure that the amount of blank
outputs is always enough to cover any overpaid lightning fees. This
change implements this functionality for both the wallet and the mint.
The mint updateis backwards-compatible with respect to old wallets.
2023-05-23 17:40:48 +02:00
calle
89fb2787e6 Python/relative_import (#186)
* relative import all the things

* make format

* add __init__.py to cli/

* fix mypy errors

* get rid of more mypy

* mypy fix crud.py

* fix another mypy error
2023-05-01 22:39:23 +02:00
calle
f3a31fd09e use settings module (#136)
* use settings module
2023-03-16 00:59:50 +01:00
callebtc
e4747910c9 refactor 2022-10-09 17:51:37 +02:00
callebtc
2d48c3116c request fee from mint 2022-10-05 22:26:57 +02:00
callebtc
063d01bbe7 black and isort 2022-10-05 20:08:45 +02:00
callebtc
792b4566ee isort 2022-10-05 20:07:11 +02:00
callebtc
89ebac1c23 black formatting 2022-10-05 20:05:21 +02:00
callebtc
af54161cb3 isort 2022-10-02 19:27:14 +02:00
callebtc
001b5e24a0 refactor 2022-09-28 17:42:48 +02:00