2022-11-10 14:56:25 +00:00
|
|
|
import logging
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
|
|
logger = logging.getLogger("NeoLogger")
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
2022-11-25 12:44:47 +00:00
|
|
|
class ObjectRef:
|
|
|
|
cid: str
|
|
|
|
oid: str
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
class LockObjectInfo(ObjectRef):
|
|
|
|
lifetime: int = None
|
|
|
|
expire_at: int = None
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
class StorageObjectInfo(ObjectRef):
|
2022-11-10 14:56:25 +00:00
|
|
|
size: str = None
|
2022-11-25 12:44:47 +00:00
|
|
|
wallet_file_path: str = None
|
2022-11-10 14:56:25 +00:00
|
|
|
file_path: str = None
|
|
|
|
file_hash: str = None
|
|
|
|
attributes: list[dict[str, str]] = None
|
|
|
|
tombstone: str = None
|
2022-11-25 12:44:47 +00:00
|
|
|
locks: list[LockObjectInfo] = None
|