mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-07 07:12:34 +00:00
39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
# Automatically generated by pb2py
|
|
# fmt: off
|
|
from .. import protobuf as p
|
|
|
|
from .CardanoAddressParametersType import CardanoAddressParametersType
|
|
|
|
if __debug__:
|
|
try:
|
|
from typing import Dict, List # noqa: F401
|
|
from typing_extensions import Literal # noqa: F401
|
|
except ImportError:
|
|
pass
|
|
|
|
|
|
class CardanoGetAddress(p.MessageType):
|
|
MESSAGE_WIRE_TYPE = 307
|
|
|
|
def __init__(
|
|
self,
|
|
*,
|
|
show_display: bool = None,
|
|
protocol_magic: int = None,
|
|
network_id: int = None,
|
|
address_parameters: CardanoAddressParametersType = None,
|
|
) -> None:
|
|
self.show_display = show_display
|
|
self.protocol_magic = protocol_magic
|
|
self.network_id = network_id
|
|
self.address_parameters = address_parameters
|
|
|
|
@classmethod
|
|
def get_fields(cls) -> Dict:
|
|
return {
|
|
2: ('show_display', p.BoolType, None),
|
|
3: ('protocol_magic', p.UVarintType, None),
|
|
4: ('network_id', p.UVarintType, None),
|
|
5: ('address_parameters', CardanoAddressParametersType, None),
|
|
}
|