1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00

trezor.messages: regenerate classes

This commit is contained in:
Pavol Rusnak 2016-10-24 15:42:59 +02:00
parent 507d9bdf68
commit 6e658ff2f1
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
86 changed files with 91 additions and 86 deletions

View File

@ -3,3 +3,4 @@ TXINPUT = const(0)
TXOUTPUT = const(1) TXOUTPUT = const(1)
TXMETA = const(2) TXMETA = const(2)
TXFINISHED = const(3) TXFINISHED = const(3)
TXEXTRADATA = const(4)

View File

@ -12,4 +12,6 @@ t.add_field(4, 'lock_time', p.UVarintType)
t.add_field(5, 'outputs', p.EmbeddedMessage(TxOutputType), flags=p.FLAG_REPEATED) t.add_field(5, 'outputs', p.EmbeddedMessage(TxOutputType), flags=p.FLAG_REPEATED)
t.add_field(6, 'inputs_cnt', p.UVarintType) t.add_field(6, 'inputs_cnt', p.UVarintType)
t.add_field(7, 'outputs_cnt', p.UVarintType) t.add_field(7, 'outputs_cnt', p.UVarintType)
t.add_field(8, 'extra_data', p.BytesType)
t.add_field(9, 'extra_data_len', p.UVarintType)
TransactionType = t TransactionType = t

View File

@ -4,4 +4,6 @@ from micropython import const
t = p.MessageType('TxRequestDetailsType') t = p.MessageType('TxRequestDetailsType')
t.add_field(1, 'request_index', p.UVarintType) t.add_field(1, 'request_index', p.UVarintType)
t.add_field(2, 'tx_hash', p.BytesType) t.add_field(2, 'tx_hash', p.BytesType)
t.add_field(3, 'extra_data_len', p.UVarintType)
t.add_field(4, 'extra_data_offset', p.UVarintType)
TxRequestDetailsType = t TxRequestDetailsType = t

View File

@ -140,7 +140,7 @@ def write_to_file(genpath, t, out):
f = open(os.path.join(genpath, "%s.py" % t), 'w') f = open(os.path.join(genpath, "%s.py" % t), 'w')
out = ["# Automatically generated by pb2py"] + out out = ["# Automatically generated by pb2py"] + out
data = "\n".join(out) data = "\n".join(out) + "\n"
f.write(data) f.write(data)
f.close() f.close()