mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 22:58:46 +01:00
34 lines
643 B
Python
34 lines
643 B
Python
from typing import Optional
|
|
|
|
from pydantic.main import BaseModel
|
|
from sqlalchemy.engine import base # type: ignore
|
|
|
|
|
|
class Token(BaseModel):
|
|
deezy_token: str
|
|
|
|
|
|
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 = ""
|
|
|
|
|
|
class UpdateLnToBtcSwap(BaseModel):
|
|
txid: str
|
|
tx_hex: str
|
|
bolt11_invoice: str
|
|
|
|
|
|
class BtcToLnSwap(BaseModel):
|
|
ln_address: str
|
|
on_chain_address: str
|
|
secret_access_key: str
|
|
commitment: str
|
|
signature: str
|
|
created_at: str = ""
|