add VoidWallet and make it the default.

This commit is contained in:
fiatjaf
2020-09-03 21:43:32 -03:00
parent 23cfe0d417
commit 8b7028d728
3 changed files with 21 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
from typing import Optional
from .base import 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 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("")