feat: basic account UI
This commit is contained in:
parent
2099a8b7bb
commit
d0f38346e3
7 changed files with 116 additions and 16 deletions
10
models.py
10
models.py
|
|
@ -344,14 +344,18 @@ class BuyOrder(BaseModel):
|
|||
def is_valid_action(self):
|
||||
return self.action in ["join", "storage"]
|
||||
|
||||
|
||||
class NostrPartialAccount(BaseModel):
|
||||
relay_id: str
|
||||
pubkey: str
|
||||
allowed: Optional[bool]
|
||||
blocked: Optional[bool]
|
||||
class NostrAccount(BaseModel):
|
||||
pubkey: str
|
||||
allowed = False
|
||||
blocked = False
|
||||
sats = 0
|
||||
storage = 0
|
||||
paid_to_join = False
|
||||
allowed = False
|
||||
blocked = False
|
||||
|
||||
@classmethod
|
||||
def null_account(cls) -> "NostrAccount":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue