mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
28 lines
994 B
Python
28 lines
994 B
Python
from typing import Optional, AsyncGenerator
|
|
|
|
from .base import StatusResponse, InvoiceResponse, PaymentResponse, PaymentStatus, Wallet, Unsupported
|
|
|
|
|
|
class VoidWallet(Wallet):
|
|
def create_invoice(
|
|
self, amount: int, memo: Optional[str] = None, description_hash: Optional[bytes] = None
|
|
) -> InvoiceResponse:
|
|
raise Unsupported("")
|
|
|
|
def status(self) -> StatusResponse:
|
|
return StatusResponse(
|
|
"This backend does nothing, it is here just as a placeholder, you must configure an actual backend before being able to do anything useful with LNbits.",
|
|
0,
|
|
)
|
|
|
|
def pay_invoice(self, bolt11: str) -> PaymentResponse:
|
|
raise Unsupported("")
|
|
|
|
def get_invoice_status(self, checking_id: str) -> PaymentStatus:
|
|
raise Unsupported("")
|
|
|
|
def get_payment_status(self, checking_id: str) -> PaymentStatus:
|
|
raise Unsupported("")
|
|
|
|
async def paid_invoices_stream(self) -> AsyncGenerator[str, None]:
|
|
yield ""
|