feat: partial NIP11
This commit is contained in:
parent
9b9e2623be
commit
cbbabf2ce8
2 changed files with 23 additions and 0 deletions
10
models.py
10
models.py
|
|
@ -20,6 +20,16 @@ class NostrRelay(BaseModel):
|
|||
def from_row(cls, row: Row) -> "NostrRelay":
|
||||
return cls(**dict(row))
|
||||
|
||||
class NostrRelayInfo(BaseModel):
|
||||
name: Optional[str]
|
||||
description: Optional[str]
|
||||
pubkey: Optional[str]
|
||||
contact: Optional[str] = "https://t.me/lnbits"
|
||||
supported_nips: List[str] = ["NIP01", "NIP09", "NIP11"]
|
||||
software: Optional[str] = "LNbist"
|
||||
version: Optional[str]
|
||||
|
||||
|
||||
class NostrEventType(str, Enum):
|
||||
EVENT = "EVENT"
|
||||
REQ = "REQ"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue