feat: use github pages and jekyll for docs

This commit is contained in:
Eneko Illarramendi
2020-05-04 17:20:36 +02:00
parent a61d346669
commit b37af0c600
10 changed files with 173 additions and 13 deletions
+4 -3
View File
@@ -4,12 +4,13 @@ from requests import get, post
from .base import InvoiceResponse, PaymentResponse, PaymentStatus, Wallet
class LnbitsWallet(Wallet):
class LNbitsWallet(Wallet):
"""https://github.com/lnbits/lnbits"""
def __init__(self):
self.endpoint = getenv("LNBITS_ENDPOINT")
self.auth_admin = getenv("LNBITS_ADMIN_MACAROON")
self.auth_invoice = getenv("LNBITS_INVOICE_MACAROON")
self.auth_admin = {"X-Api-Key": getenv("LNBITS_ADMIN_KEY")}
self.auth_invoice = {"X-Api-Key": getenv("LNBITS_INVOICE_KEY")}
def create_invoice(self, amount: int, memo: str = "") -> InvoiceResponse:
r = post(