feat: add payment for stoeage

This commit is contained in:
Vlad Stan 2023-02-13 17:49:10 +02:00
parent 2233521a43
commit dfda2367a2
5 changed files with 130 additions and 35 deletions

View file

@ -307,10 +307,14 @@ class NostrFilter(BaseModel):
return inner_joins, where, values
class RelayJoin(BaseModel):
class BuyOrder(BaseModel):
action: str
relay_id: str
pubkey: str
units_to_buy = 0
def is_valid_action(self):
return self.action in ['join', 'storage']
class NostrAccount(BaseModel):
pubkey: str