mirror of
https://github.com/aljazceru/nostrdvm.git
synced 2025-12-19 23:14:20 +01:00
rebuild so each dvm runs on its own.
This commit is contained in:
@@ -1,11 +1,19 @@
|
||||
from utils.nip89_utils import NIP89Announcement
|
||||
|
||||
|
||||
class DVMTaskInterface:
|
||||
KIND: int
|
||||
TASK: str
|
||||
COST: int
|
||||
PK: str
|
||||
|
||||
def NIP89_announcement(self, d_tag, content):
|
||||
"""Define the NIP89 Announcement"""
|
||||
pass
|
||||
nip89 = NIP89Announcement()
|
||||
nip89.kind = self.KIND
|
||||
nip89.pk = self.PK
|
||||
nip89.dtag = d_tag
|
||||
nip89.content = content
|
||||
return nip89
|
||||
|
||||
def is_input_supported(self, input_type, input_content) -> bool:
|
||||
"""Check if input is supported for current Task."""
|
||||
|
||||
Reference in New Issue
Block a user