refactor: purge Quart from the codebase

Most functionality is still broken
This commit is contained in:
Stefan Stammberger
2021-08-27 20:54:42 +02:00
parent ede038976f
commit 3e5af8c1d1
17 changed files with 962 additions and 181 deletions
+4 -3
View File
@@ -1,7 +1,7 @@
import json
import hmac
import hashlib
from quart import url_for
from lnbits.helpers import url_for
from ecdsa import SECP256k1, SigningKey # type: ignore
from lnurl import encode as lnurl_encode # type: ignore
from typing import List, NamedTuple, Optional, Dict
@@ -30,11 +30,12 @@ class Wallet(BaseModel):
@property
def lnurlwithdraw_full(self) -> str:
url = url_for(
"core.lnurl_full_withdraw",
"/withdraw",
external=True,
usr=self.user,
wal=self.id,
_external=True,
)
try:
return lnurl_encode(url)