You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/trezor/messages/CardanoTxCertificateType.py

33 lines
864 B

4 years ago
# Automatically generated by pb2py
# fmt: off
import protobuf as p
if __debug__:
try:
from typing import Dict, List # noqa: F401
from typing_extensions import Literal # noqa: F401
EnumTypeCardanoCertificateType = Literal[0, 1, 2]
except ImportError:
pass
class CardanoTxCertificateType(p.MessageType):
def __init__(
self,
type: EnumTypeCardanoCertificateType = None,
path: List[int] = None,
pool: bytes = None,
) -> None:
self.type = type
self.path = path if path is not None else []
self.pool = pool
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('type', p.EnumType("CardanoCertificateType", (0, 1, 2)), 0),
2: ('path', p.UVarintType, p.FLAG_REPEATED),
3: ('pool', p.BytesType, 0),
}