refactor: extract NostrEvent

This commit is contained in:
Vlad Stan 2023-02-17 14:13:06 +02:00
parent c42d81f696
commit 6be0169ea9
7 changed files with 119 additions and 105 deletions

View file

@ -1,9 +1,11 @@
import time
from typing import Callable, Optional, Tuple
from .event import NostrEvent
from ..crud import get_account, get_storage_for_public_key, prune_old_events
from ..helpers import extract_domain
from ..models import NostrAccount, NostrEvent, RelaySpec
from ..models import NostrAccount, RelaySpec
class EventValidator: