1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-27 12:39:04 +00:00

chore(common): set definition timestamp to the current signed definitions

[no changelog]
This commit is contained in:
matejcik 2023-04-06 13:41:21 +02:00 committed by matejcik
parent 1890e3c04d
commit b8e8fcff33
3 changed files with 7 additions and 3 deletions

View File

@ -1 +1 @@
1669892465 2023-04-03T13:44:24+00:00

View File

@ -1,6 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from __future__ import annotations from __future__ import annotations
import datetime
import fnmatch import fnmatch
import glob import glob
import json import json
@ -136,10 +137,13 @@ def render_file(
`src` is a filename, `dst` is an open file object. `src` is a filename, `dst` is an open file object.
""" """
template = mako.template.Template(filename=src) template = mako.template.Template(filename=src)
eth_defs_date = datetime.datetime.fromisoformat(
DEFINITIONS_TIMESTAMP_PATH.read_text().strip()
)
result = template.render( result = template.render(
support_info=support_info, support_info=support_info,
supported_on=make_support_filter(support_info), supported_on=make_support_filter(support_info),
ethereum_defs_timestamp=int(DEFINITIONS_TIMESTAMP_PATH.read_text()), ethereum_defs_timestamp=int(eth_defs_date.timestamp()),
**coins, **coins,
**MAKO_FILTERS, **MAKO_FILTERS,
) )

View File

@ -9,7 +9,7 @@ PUBLIC_KEYS = (
b"\xb8\xd2\xb2\x1d\xe2\x71\x24\xf0\x51\x1f\x90\x3a\xe7\xe6\x0e\x07\x96\x18\x10\xa0\xb8\xf2\x8e\xa7\x55\xfa\x50\x36\x7a\x8a\x2b\x8b", b"\xb8\xd2\xb2\x1d\xe2\x71\x24\xf0\x51\x1f\x90\x3a\xe7\xe6\x0e\x07\x96\x18\x10\xa0\xb8\xf2\x8e\xa7\x55\xfa\x50\x36\x7a\x8a\x2b\x8b",
) )
MIN_DATA_VERSION = 1669892465 MIN_DATA_VERSION = 1680529464
FORMAT_VERSION = b"trzd1" FORMAT_VERSION = b"trzd1"
if __debug__: if __debug__: