trezor-core/src/trezor/messages/TxRequest.py

26 lines
751 B
Python
Raw Normal View History

2016-05-03 09:28:58 -07:00
# Automatically generated by pb2py
2016-09-28 09:01:23 -07:00
import protobuf as p
2016-05-03 09:28:58 -07:00
from .TxRequestDetailsType import TxRequestDetailsType
from .TxRequestSerializedType import TxRequestSerializedType
2016-10-26 08:32:28 -07:00
2017-06-13 10:35:14 -07:00
2016-10-26 08:32:28 -07:00
class TxRequest(p.MessageType):
FIELDS = {
1: ('request_type', p.UVarintType, 0),
2: ('details', TxRequestDetailsType, 0),
3: ('serialized', TxRequestSerializedType, 0),
}
MESSAGE_WIRE_TYPE = 21
2018-02-25 09:48:44 -08:00
def __init__(
self,
request_type: int = None,
details: TxRequestDetailsType = None,
serialized: TxRequestSerializedType = None,
**kwargs,
):
self.request_type = request_type
self.details = details
self.serialized = serialized
p.MessageType.__init__(self, **kwargs)