1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-26 00:08:10 +00:00
trezor-firmware/python/trezorlib/messages/MoneroLiveRefreshStepRequest.py

38 lines
1.0 KiB
Python
Raw Normal View History

# Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
2019-07-03 13:02:50 +00:00
if __debug__:
try:
from typing import Dict, List, Optional
except ImportError:
Dict, List, Optional = None, None, None # type: ignore
class MoneroLiveRefreshStepRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 554
def __init__(
self,
out_key: bytes = None,
recv_deriv: bytes = None,
real_out_idx: int = None,
sub_addr_major: int = None,
sub_addr_minor: int = None,
) -> None:
self.out_key = out_key
self.recv_deriv = recv_deriv
self.real_out_idx = real_out_idx
self.sub_addr_major = sub_addr_major
self.sub_addr_minor = sub_addr_minor
@classmethod
2019-07-03 13:02:50 +00:00
def get_fields(cls) -> Dict:
return {
1: ('out_key', p.BytesType, 0),
2: ('recv_deriv', p.BytesType, 0),
3: ('real_out_idx', p.UVarintType, 0),
4: ('sub_addr_major', p.UVarintType, 0),
5: ('sub_addr_minor', p.UVarintType, 0),
}