Buckets:

download
raw
1.12 kB
from loguru import logger
from .base import (
InvoiceResponse,
PaymentPendingStatus,
PaymentResponse,
PaymentStatus,
StatusResponse,
Wallet,
)
class VoidWallet(Wallet):
async def cleanup(self):
pass
async def create_invoice(self, *_, **__) -> InvoiceResponse:
return InvoiceResponse(
ok=False, error_message="VoidWallet cannot create invoices."
)
async def status(self) -> StatusResponse:
logger.warning(
"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."
)
return StatusResponse(None, 0)
async def pay_invoice(self, *_, **__) -> PaymentResponse:
return PaymentResponse(
ok=False, error_message="VoidWallet cannot pay invoices."
)
async def get_invoice_status(self, *_, **__) -> PaymentStatus:
return PaymentPendingStatus()
async def get_payment_status(self, *_, **__) -> PaymentStatus:
return PaymentPendingStatus()

Xet Storage Details

Size:
1.12 kB
·
Xet hash:
7a6c4fb1f62726dda37c4a30869391cb15eea4bf6025704204a431d376b55077

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.