feat: add boltz client fundingsource (#2358)

* feat: add boltz client standalone fundingsource
WIP.
https://docs.boltz.exchange/v/boltz-client

this fundingsource utilizing the boltz client standalone function: https://github.com/BoltzExchange/boltz-client/pull/123
this makes him act like a lightning node while submarine swapping everything on liquid network. like aqua does in its wallet.

* feat: paid_invoices_stream

* feat: proper invoice and payment status check

* feat: authenticate over insecure channel aswell

* chore: lint

* docs: add more setup instructions

* chore: add `boltz_client_cert` in frontend

* feat: populate fee_msat in get_payment_status and get_invoice_status

* fixup!

* chore: bundle

* added boltz logo

* add BoltzWallet to __all__

* chore: bump grpcio and protobuf deps and add grpcio-tools as dev dependency

* chore: update protos

* feat: pass description when creating swap

* fixup!

* chore: bundle

---------

Co-authored-by: jackstar12 <jkranawetter05@gmail.com>
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
dni ⚡ 2024-08-20 11:38:30 +02:00 committed by GitHub
parent 296b1dfa9a
commit 1900cf9aa4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 4282 additions and 104 deletions

View file

@ -32,8 +32,8 @@ uvicorn = "0.23.2"
uvloop = "0.19.0"
websockets = "11.0.3"
loguru = "0.7.2"
grpcio = "1.62.2"
protobuf = "4.24.3"
grpcio = "1.65.4"
protobuf = "5.26.1"
pyln-client = "24.5"
pywebpush = "1.14.0"
slowapi = "0.1.9"
@ -86,6 +86,7 @@ pytest-httpserver = "^1.0.10"
pytest-mock = "^3.14.0"
types-mock = "^5.1.0.20240311"
mock = "^5.1.0"
grpcio-tools = "^1.65.4"
[build-system]
requires = ["poetry-core>=1.0.0"]
@ -102,6 +103,7 @@ include = [
"tools",
]
exclude = [
"lnbits/wallets/boltz_grpc_files",
"lnbits/wallets/lnd_grpc_files",
"lnbits/extensions",
"lnbits/upgrades",
@ -114,6 +116,7 @@ files = [
"tools",
]
exclude = [
"^lnbits/wallets/boltz_grpc_files",
"^lnbits/wallets/lnd_grpc_files",
"^lnbits/extensions",
"^lnbits/upgrades",
@ -161,6 +164,7 @@ extend-exclude = """(
| lnbits/extensions
| lnbits/upgrades
| lnbits/wallets/lnd_grpc_files
| lnbits/wallets/boltz_grpc_files
)"""
[tool.ruff]
@ -169,7 +173,8 @@ line-length = 88
# Exclude generated files.
extend-exclude = [
"lnbits/wallets/lnd_grpc_files"
"lnbits/wallets/lnd_grpc_files",
"lnbits/wallets/boltz_grpc_files"
]
[tool.ruff.lint]