mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
trezor.messages: regenerate classes
This commit is contained in:
parent
507d9bdf68
commit
6e658ff2f1
@ -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)
|
||||||
|
@ -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
|
@ -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
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user