1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-12 07:32:48 +00:00
trezor-firmware/src/trezor/messages/NEMTransactionCommon.py

32 lines
883 B
Python
Raw Normal View History

# Automatically generated by pb2py
import protobuf as p
class NEMTransactionCommon(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('network', p.UVarintType, 0),
3: ('timestamp', p.UVarintType, 0),
4: ('fee', p.UVarintType, 0),
5: ('deadline', p.UVarintType, 0),
6: ('signer', p.BytesType, 0),
}
2018-02-25 17:48:44 +00:00
def __init__(
self,
2018-02-26 23:09:02 +00:00
address_n: list = None,
2018-02-25 17:48:44 +00:00
network: int = None,
timestamp: int = None,
fee: int = None,
deadline: int = None,
signer: bytes = None,
**kwargs,
):
2018-02-26 23:09:02 +00:00
self.address_n = [] if address_n is None else address_n
2018-02-25 17:48:44 +00:00
self.network = network
self.timestamp = timestamp
self.fee = fee
self.deadline = deadline
self.signer = signer
p.MessageType.__init__(self, **kwargs)