feat: add payment for stoeage
This commit is contained in:
parent
2233521a43
commit
dfda2367a2
5 changed files with 130 additions and 35 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue