Data classes

This commit is contained in:
mjalalzai 2023-09-17 11:22:10 -07:00
parent f5d27cd5ca
commit 84e85c7edf

View File

@ -1,5 +1,5 @@
from dataclasses import dataclass
from typing import Union, List, Set, Optional
from typing import Union, List, Set, Optional, Type
from abc import ABC, abstractmethod
Id = bytes
@ -82,4 +82,10 @@ class TimeoutQc:
high_qc: Qc
qc_views: List[View]
sender_ids: Set[Id]
sender: Id
sender: Id
class Timeout:
view: View
high_qc: Qc
sender: Id
timeout_qc: Type[TimeoutQc]