mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-21 02:54:20 +01:00
* protos + lnd_grpc.py + __init__ + status method * `create_invoice` * `pay_invoice`, `pay_partial_invoice` and router pb2 * `get_invoice_status` * channel keep-alive options * Update lnd_grpc.py * `get_payment_status` + make format * `get_payment_quote` and `paid_invoices_stream`. This was suspiciously easy... * download_and_build script modified to fix the imports on generated code * pyproject with new dependencies * update poetry.lock * fixed errors in `pay_partial_invoice` * update .env.example * make format * enable regtest * update .env.example * suggested fixes * suggested changes pt.2 * Update cashu/core/settings.py Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com> --------- Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
21 lines
767 B
Python
21 lines
767 B
Python
# type: ignore
|
|
from ..core.settings import settings
|
|
from .blink import BlinkWallet # noqa: F401
|
|
from .clnrest import CLNRestWallet # noqa: F401
|
|
from .corelightningrest import CoreLightningRestWallet # noqa: F401
|
|
from .fake import FakeWallet # noqa: F401
|
|
from .lnbits import LNbitsWallet # noqa: F401
|
|
from .lnd_grpc.lnd_grpc import LndRPCWallet # noqa: F401
|
|
from .lndrest import LndRestWallet # noqa: F401
|
|
from .strike import StrikeWallet # noqa: F401
|
|
|
|
backend_settings = [
|
|
settings.mint_backend_bolt11_sat,
|
|
settings.mint_backend_bolt11_usd,
|
|
settings.mint_backend_bolt11_eur,
|
|
]
|
|
if all([s is None for s in backend_settings]):
|
|
raise Exception(
|
|
"MINT_BACKEND_BOLT11_SAT or MINT_BACKEND_BOLT11_USD or MINT_BACKEND_BOLT11_EUR not set"
|
|
)
|