2023-01-05 19:33:13 +01:00
|
|
|
from typing import Optional
|
2023-01-07 21:59:10 +00:00
|
|
|
|
2023-01-05 11:46:01 +01:00
|
|
|
from pydantic.main import BaseModel
|
|
|
|
from sqlalchemy.engine import base # type: ignore
|
2022-11-29 23:18:24 +01:00
|
|
|
|
2023-01-05 11:46:01 +01:00
|
|
|
|
|
|
|
class Token(BaseModel):
|
|
|
|
deezy_token: str
|
2023-01-05 19:33:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
class LnToBtcSwap(BaseModel):
|
|
|
|
amount_sats: int
|
|
|
|
on_chain_address: str
|
|
|
|
on_chain_sats_per_vbyte: int
|
|
|
|
bolt11_invoice: str
|
|
|
|
fee_sats: int
|
|
|
|
txid: str = ""
|
|
|
|
tx_hex: str = ""
|
|
|
|
created_at: str = ""
|
|
|
|
|
|
|
|
|
2023-01-06 00:34:24 +01:00
|
|
|
class UpdateLnToBtcSwap(BaseModel):
|
|
|
|
txid: str
|
|
|
|
tx_hex: str
|
|
|
|
bolt11_invoice: str
|
|
|
|
|
|
|
|
|
2023-01-05 19:33:13 +01:00
|
|
|
class BtcToLnSwap(BaseModel):
|
|
|
|
ln_address: str
|
|
|
|
on_chain_address: str
|
|
|
|
secret_access_key: str
|
|
|
|
commitment: str
|
|
|
|
signature: str
|
|
|
|
created_at: str = ""
|