UI works well

This commit is contained in:
ben
2022-09-16 13:20:42 +01:00
parent ae06636293
commit cf849b260c
14 changed files with 1600 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
from sqlite3 import Row
from typing import Optional
from fastapi import Query
from pydantic import BaseModel
class Cashu(BaseModel):
id: str = Query(None)
name: str = Query(None)
wallet: str = Query(None)
tickershort: str
fraction: bool = Query(None)
maxsats: int = Query(0)
coins: int = Query(0)
@classmethod
def from_row(cls, row: Row) -> "TPoS":
return cls(**dict(row))
class Pegs(BaseModel):
id: str
wallet: str
inout: str
amount: str
@classmethod
def from_row(cls, row: Row) -> "TPoS":
return cls(**dict(row))
class PayLnurlWData(BaseModel):
lnurl: str