1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-21 23:18:13 +00:00

build(core): add T3W1 for translations and definitions

[no changelog]
This commit is contained in:
Martin Milata 2024-10-14 19:42:58 +02:00
parent abfb4ee56a
commit 16b2159b32
13 changed files with 1681 additions and 4 deletions

View File

@ -568,5 +568,119 @@
"nem:PAC:CHS": "not for T3T1 (#2793)", "nem:PAC:CHS": "not for T3T1 (#2793)",
"nem:PAC:HRT": "not for T3T1 (#2793)" "nem:PAC:HRT": "not for T3T1 (#2793)"
} }
},
"T3W1": {
"supported": {
"bitcoin:ACM": "2.6.1",
"bitcoin:AXE": "2.6.1",
"bitcoin:BCH": "2.6.1",
"bitcoin:BTC": "2.6.1",
"bitcoin:BTCP": "2.6.1",
"bitcoin:BTX": "2.6.1",
"bitcoin:CPU": "2.6.1",
"bitcoin:CRW": "2.6.1",
"bitcoin:DOGE": "2.6.1",
"bitcoin:ELEMENTS": "2.6.1",
"bitcoin:FIRO": "2.6.1",
"bitcoin:FJC": "2.6.1",
"bitcoin:FLO": "2.6.1",
"bitcoin:FTC": "2.6.1",
"bitcoin:GRS": "2.6.1",
"bitcoin:KMD": "2.6.1",
"bitcoin:KOTO": "2.6.1",
"bitcoin:LTC": "2.6.1",
"bitcoin:MONA": "2.6.1",
"bitcoin:PPC": "2.6.1",
"bitcoin:QTUM": "2.6.1",
"bitcoin:REGTEST": "2.6.1",
"bitcoin:RITO": "2.6.1",
"bitcoin:RVN": "2.6.1",
"bitcoin:SMART": "2.6.1",
"bitcoin:SYS": "2.6.1",
"bitcoin:TAZ": "2.6.1",
"bitcoin:TBCH": "2.6.1",
"bitcoin:TEST": "2.6.1",
"bitcoin:UNO": "2.6.1",
"bitcoin:VIA": "2.6.1",
"bitcoin:VIPS": "2.6.1",
"bitcoin:XPM": "2.6.1",
"bitcoin:XRC": "2.6.1",
"bitcoin:XSN": "2.6.1",
"bitcoin:XVG": "2.6.1",
"bitcoin:ZCR": "2.6.1",
"bitcoin:ZEC": "2.6.1",
"bitcoin:tFIRO": "2.6.1",
"bitcoin:tGRS": "2.6.1",
"bitcoin:tLTC": "2.6.1",
"bitcoin:tPPC": "2.6.1",
"bitcoin:tQTUM": "2.6.1",
"bitcoin:tRVN": "2.6.1",
"bitcoin:tSMART": "2.6.1",
"erc20:bnb:ATOM": "2.6.1",
"erc20:eth:AAVE": "2.6.1",
"erc20:eth:APE": "2.6.1",
"erc20:eth:AXS": "2.6.1",
"erc20:eth:BUSD": "2.6.1",
"erc20:eth:CHZ": "2.6.1",
"erc20:eth:CRO": "2.6.1",
"erc20:eth:DAI": "2.6.1",
"erc20:eth:FRAX": "2.6.1",
"erc20:eth:LEO": "2.6.1",
"erc20:eth:LINK": "2.6.1",
"erc20:eth:MANA": "2.6.1",
"erc20:eth:MATIC": "2.6.1",
"erc20:eth:OKB": "2.6.1",
"erc20:eth:QNT": "2.6.1",
"erc20:eth:SAND": "2.6.1",
"erc20:eth:SHIB": "2.6.1",
"erc20:eth:STETH": "2.6.1",
"erc20:eth:UNI": "2.6.1",
"erc20:eth:USDC": "2.6.1",
"erc20:eth:USDT": "2.6.1",
"erc20:eth:WBTC": "2.6.1",
"erc20:eth:XCN": "2.6.1",
"erc20:matic:WAVAX": "2.6.1",
"eth:BNB:56": "2.6.1",
"eth:ETC:61": "2.6.1",
"eth:ETH:1": "2.6.1",
"eth:POL:137": "2.6.1",
"eth:tSEP:11155111": "2.6.1",
"eth:tHOL:17000": "2.6.1",
"misc:ADA": "2.6.1",
"misc:BNB": "2.6.1",
"misc:DSOL": "2.6.4",
"misc:MAID": "2.6.1",
"misc:OMNI": "2.6.1",
"misc:SOL": "2.6.4",
"misc:USDT": "2.6.1",
"misc:XLM": "2.6.1",
"misc:XMR": "2.6.1",
"misc:XRP": "2.6.1",
"misc:XTZ": "2.6.1",
"misc:tADA": "2.6.1",
"misc:tXRP": "2.6.1"
},
"unsupported": {
"bitcoin:BTG": "not for T3W1 (#2793)",
"bitcoin:DASH": "not for T3W1 (#2793)",
"bitcoin:DCR": "not for T3W1 (#2793)",
"bitcoin:DGB": "not for T3W1 (#2793)",
"bitcoin:NMC": "not for T3W1 (#2793)",
"bitcoin:PART": "incompatible fork",
"bitcoin:TBTG": "not for T3W1 (#2793)",
"bitcoin:TDCR": "not for T3W1 (#2793)",
"bitcoin:TRC": "address_type collides with Bitcoin",
"bitcoin:VTC": "not for T3W1 (#2793)",
"bitcoin:tDASH": "not for T3W1 (#2793)",
"bitcoin:tPART": "incompatible fork",
"misc:EOS": "not for T3W1 (#2793)",
"misc:LSK": "Incompatible mainnet hard-fork",
"nem:XEM": "not for T3W1 (#2793)",
"nem:BREEZE": "not for T3W1 (#2793)",
"nem:DIM": "not for T3W1 (#2793)",
"nem:DIMTOK": "not for T3W1 (#2793)",
"nem:PAC:CHS": "not for T3W1 (#2793)",
"nem:PAC:HRT": "not for T3W1 (#2793)"
}
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -207,3 +207,40 @@ def _networks_iterator() -> Iterator[NetworkInfoTuple]:
"tSEP", # symbol "tSEP", # symbol
"Sepolia", # name "Sepolia", # name
) )
if utils.INTERNAL_MODEL == "T3W1":
yield (
1, # chain_id
60, # slip44
"ETH", # symbol
"Ethereum", # name
)
yield (
56, # chain_id
714, # slip44
"BNB", # symbol
"BNB Smart Chain", # name
)
yield (
61, # chain_id
61, # slip44
"ETC", # symbol
"Ethereum Classic", # name
)
yield (
137, # chain_id
966, # slip44
"POL", # symbol
"Polygon", # name
)
yield (
17000, # chain_id
1, # slip44
"tHOL", # symbol
"Holesky", # name
)
yield (
11155111, # chain_id
1, # slip44
"tSEP", # symbol
"Sepolia", # name
)

View File

@ -634,3 +634,151 @@ def _token_iterator(chain_id: int) -> Iterator[tuple[bytes, str, int, str]]:
18, 18,
"Wrapped AVAX", "Wrapped AVAX",
) )
if utils.INTERNAL_MODEL == "T3W1":
if chain_id == 1: # eth
yield ( # address, symbol, decimals, name
b"\x7f\xc6\x65\x00\xc8\x4a\x76\xad\x7e\x9c\x93\x43\x7b\xfc\x5a\xc3\x3e\x2d\xda\xe9",
"AAVE",
18,
"Aave",
)
yield ( # address, symbol, decimals, name
b"\x4d\x22\x44\x52\x80\x1a\xce\xd8\xb2\xf0\xae\xbe\x15\x53\x79\xbb\x5d\x59\x43\x81",
"APE",
18,
"ApeCoin",
)
yield ( # address, symbol, decimals, name
b"\xbb\x0e\x17\xef\x65\xf8\x2a\xb0\x18\xd8\xed\xd7\x76\xe8\xdd\x94\x03\x27\xb2\x8b",
"AXS",
18,
"Axie Infinity",
)
yield ( # address, symbol, decimals, name
b"\x4f\xab\xb1\x45\xd6\x46\x52\xa9\x48\xd7\x25\x33\x02\x3f\x6e\x7a\x62\x3c\x7c\x53",
"BUSD",
18,
"Binance USD",
)
yield ( # address, symbol, decimals, name
b"\x35\x06\x42\x4f\x91\xfd\x33\x08\x44\x66\xf4\x02\xd5\xd9\x7f\x05\xf8\xe3\xb4\xaf",
"CHZ",
18,
"Chiliz",
)
yield ( # address, symbol, decimals, name
b"\xa0\xb7\x3e\x1f\xf0\xb8\x09\x14\xab\x6f\xe0\x44\x4e\x65\x84\x8c\x4c\x34\x45\x0b",
"CRO",
8,
"Cronos",
)
yield ( # address, symbol, decimals, name
b"\x6b\x17\x54\x74\xe8\x90\x94\xc4\x4d\xa9\x8b\x95\x4e\xed\xea\xc4\x95\x27\x1d\x0f",
"DAI",
18,
"Dai",
)
yield ( # address, symbol, decimals, name
b"\x85\x3d\x95\x5a\xce\xf8\x22\xdb\x05\x8e\xb8\x50\x59\x11\xed\x77\xf1\x75\xb9\x9e",
"FRAX",
18,
"Frax",
)
yield ( # address, symbol, decimals, name
b"\x2a\xf5\xd2\xad\x76\x74\x11\x91\xd1\x5d\xfe\x7b\xf6\xac\x92\xd4\xbd\x91\x2c\xa3",
"LEO",
18,
"LEO Token",
)
yield ( # address, symbol, decimals, name
b"\x51\x49\x10\x77\x1a\xf9\xca\x65\x6a\xf8\x40\xdf\xf8\x3e\x82\x64\xec\xf9\x86\xca",
"LINK",
18,
"Chainlink",
)
yield ( # address, symbol, decimals, name
b"\x0f\x5d\x2f\xb2\x9f\xb7\xd3\xcf\xee\x44\x4a\x20\x02\x98\xf4\x68\x90\x8c\xc9\x42",
"MANA",
18,
"Decentraland",
)
yield ( # address, symbol, decimals, name
b"\x7d\x1a\xfa\x7b\x71\x8f\xb8\x93\xdb\x30\xa3\xab\xc0\xcf\xc6\x08\xaa\xcf\xeb\xb0",
"MATIC",
18,
"Polygon",
)
yield ( # address, symbol, decimals, name
b"\x75\x23\x1f\x58\xb4\x32\x40\xc9\x71\x8d\xd5\x8b\x49\x67\xc5\x11\x43\x42\xa8\x6c",
"OKB",
18,
"OKB",
)
yield ( # address, symbol, decimals, name
b"\x4a\x22\x0e\x60\x96\xb2\x5e\xad\xb8\x83\x58\xcb\x44\x06\x8a\x32\x48\x25\x46\x75",
"QNT",
18,
"Quant",
)
yield ( # address, symbol, decimals, name
b"\x38\x45\xba\xda\xde\x8e\x6d\xff\x04\x98\x20\x68\x0d\x1f\x14\xbd\x39\x03\xa5\xd0",
"SAND",
18,
"The Sandbox",
)
yield ( # address, symbol, decimals, name
b"\x95\xad\x61\xb0\xa1\x50\xd7\x92\x19\xdc\xf6\x4e\x1e\x6c\xc0\x1f\x0b\x64\xc4\xce",
"SHIB",
18,
"Shiba Inu",
)
yield ( # address, symbol, decimals, name
b"\xae\x7a\xb9\x65\x20\xde\x3a\x18\xe5\xe1\x11\xb5\xea\xab\x09\x53\x12\xd7\xfe\x84",
"STETH",
18,
"Lido Staked Ether",
)
yield ( # address, symbol, decimals, name
b"\x1f\x98\x40\xa8\x5d\x5a\xf5\xbf\x1d\x17\x62\xf9\x25\xbd\xad\xdc\x42\x01\xf9\x84",
"UNI",
18,
"Uniswap",
)
yield ( # address, symbol, decimals, name
b"\xa0\xb8\x69\x91\xc6\x21\x8b\x36\xc1\xd1\x9d\x4a\x2e\x9e\xb0\xce\x36\x06\xeb\x48",
"USDC",
6,
"USD Coin",
)
yield ( # address, symbol, decimals, name
b"\xda\xc1\x7f\x95\x8d\x2e\xe5\x23\xa2\x20\x62\x06\x99\x45\x97\xc1\x3d\x83\x1e\xc7",
"USDT",
6,
"Tether",
)
yield ( # address, symbol, decimals, name
b"\x22\x60\xfa\xc5\xe5\x54\x2a\x77\x3a\xa4\x4f\xbc\xfe\xdf\x7c\x19\x3b\xc2\xc5\x99",
"WBTC",
8,
"Wrapped Bitcoin",
)
yield ( # address, symbol, decimals, name
b"\xa2\xcd\x3d\x43\xc7\x75\x97\x8a\x96\xbd\xbf\x12\xd7\x33\xd5\xa1\xed\x94\xfb\x18",
"XCN",
18,
"Chain",
)
if chain_id == 56: # bnb
yield ( # address, symbol, decimals, name
b"\x0e\xb3\xa7\x05\xfc\x54\x72\x50\x37\xcc\x9e\x00\x8b\xde\xde\x69\x7f\x62\xf3\x35",
"ATOM",
18,
"Cosmos Hub",
)
if chain_id == 137: # matic
yield ( # address, symbol, decimals, name
b"\x2c\x89\xbb\xc9\x2b\xd8\x6f\x80\x75\xd1\xde\xcc\x58\xc7\xf4\xe0\x10\x7f\x28\x6b",
"WAVAX",
18,
"Wrapped AVAX",
)

View File

@ -16,7 +16,7 @@ from trezorlib._internal.translations import VersionTuple
HERE = Path(__file__).parent.resolve() HERE = Path(__file__).parent.resolve()
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)
ALL_MODELS = {models.T2B1, models.T2T1, models.T3T1, models.T3B1} ALL_MODELS = {models.T2B1, models.T2T1, models.T3T1, models.T3B1, models.T3W1}
PRIVATE_KEYS_DEV = [byte * 32 for byte in (b"\xdd", b"\xde", b"\xdf")] PRIVATE_KEYS_DEV = [byte * 32 for byte in (b"\xdd", b"\xde", b"\xdf")]

View File

@ -29,6 +29,16 @@
"6_FONT_NORMAL_UPPER": null, "6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null, "7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_cs.json" "8_FONT_SUB": "font_ttsatoshi_demibold_18_cs.json"
},
"T3W1": {
"1_FONT_NORMAL": "font_ttsatoshi_demibold_21_cs.json",
"2_FONT_BOLD": "font_ttsatoshi_demibold_21_cs.json",
"3_FONT_MONO": "font_robotomono_medium_21_cs.json",
"4_FONT_BIG": null,
"5_FONT_DEMIBOLD": "font_ttsatoshi_demibold_21_cs.json",
"6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_cs.json"
} }
}, },
"header": { "header": {

View File

@ -29,6 +29,16 @@
"6_FONT_NORMAL_UPPER": null, "6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null, "7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_de.json" "8_FONT_SUB": "font_ttsatoshi_demibold_18_de.json"
},
"T3W1": {
"1_FONT_NORMAL": "font_ttsatoshi_demibold_21_de.json",
"2_FONT_BOLD": "font_ttsatoshi_demibold_21_de.json",
"3_FONT_MONO": "font_robotomono_medium_21_de.json",
"4_FONT_BIG": null,
"5_FONT_DEMIBOLD": "font_ttsatoshi_demibold_21_de.json",
"6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_de.json"
} }
}, },
"header": { "header": {

View File

@ -29,6 +29,16 @@
"6_FONT_NORMAL_UPPER": null, "6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null, "7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_es.json" "8_FONT_SUB": "font_ttsatoshi_demibold_18_es.json"
},
"T3W1": {
"1_FONT_NORMAL": "font_ttsatoshi_demibold_21_es.json",
"2_FONT_BOLD": "font_ttsatoshi_demibold_21_es.json",
"3_FONT_MONO": "font_robotomono_medium_21_es.json",
"4_FONT_BIG": null,
"5_FONT_DEMIBOLD": "font_ttsatoshi_demibold_21_es.json",
"6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_es.json"
} }
}, },
"header": { "header": {

View File

@ -29,6 +29,16 @@
"6_FONT_NORMAL_UPPER": null, "6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null, "7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_fr.json" "8_FONT_SUB": "font_ttsatoshi_demibold_18_fr.json"
},
"T3W1": {
"1_FONT_NORMAL": "font_ttsatoshi_demibold_21_fr.json",
"2_FONT_BOLD": "font_ttsatoshi_demibold_21_fr.json",
"3_FONT_MONO": "font_robotomono_medium_21_fr.json",
"4_FONT_BIG": null,
"5_FONT_DEMIBOLD": "font_ttsatoshi_demibold_21_fr.json",
"6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_fr.json"
} }
}, },
"header": { "header": {

View File

@ -29,6 +29,16 @@
"6_FONT_NORMAL_UPPER": null, "6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null, "7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_it.json" "8_FONT_SUB": "font_ttsatoshi_demibold_18_it.json"
},
"T3W1": {
"1_FONT_NORMAL": "font_ttsatoshi_demibold_21_it.json",
"2_FONT_BOLD": "font_ttsatoshi_demibold_21_it.json",
"3_FONT_MONO": "font_robotomono_medium_21_it.json",
"4_FONT_BIG": null,
"5_FONT_DEMIBOLD": "font_ttsatoshi_demibold_21_it.json",
"6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_it.json"
} }
}, },
"header": { "header": {

View File

@ -29,6 +29,16 @@
"6_FONT_NORMAL_UPPER": null, "6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null, "7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_pt.json" "8_FONT_SUB": "font_ttsatoshi_demibold_18_pt.json"
},
"T3W1": {
"1_FONT_NORMAL": "font_ttsatoshi_demibold_21_pt.json",
"2_FONT_BOLD": "font_ttsatoshi_demibold_21_pt.json",
"3_FONT_MONO": "font_robotomono_medium_21_pt.json",
"4_FONT_BIG": null,
"5_FONT_DEMIBOLD": "font_ttsatoshi_demibold_21_pt.json",
"6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_pt.json"
} }
}, },
"header": { "header": {

View File

@ -1,8 +1,8 @@
{ {
"current": { "current": {
"merkle_root": "7666cdf1b39e4fde5180bafb0f704703dc6ad298942de96b6e1502f777d137ca", "merkle_root": "6eb9892932a20c647aa7f22063a003e792512daef20790cce84c1ef67aa62ad1",
"datetime": "2024-10-10T11:03:40.273934", "datetime": "2024-10-14T17:19:07.194969",
"commit": "f5fe053af0dd11e8e0910067129fd68652cd5df6" "commit": "7ca835a9a18fda9be9ca044378644bd5212cc33f"
}, },
"history": [ "history": [
{ {

View File

@ -29,6 +29,16 @@
"6_FONT_NORMAL_UPPER": null, "6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null, "7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_tr.json" "8_FONT_SUB": "font_ttsatoshi_demibold_18_tr.json"
},
"T3W1": {
"1_FONT_NORMAL": "font_ttsatoshi_demibold_21_tr.json",
"2_FONT_BOLD": "font_ttsatoshi_demibold_21_tr.json",
"3_FONT_MONO": "font_robotomono_medium_21_tr.json",
"4_FONT_BIG": null,
"5_FONT_DEMIBOLD": "font_ttsatoshi_demibold_21_tr.json",
"6_FONT_NORMAL_UPPER": null,
"7_FONT_BOLD_UPPER": null,
"8_FONT_SUB": "font_ttsatoshi_demibold_18_tr.json"
} }
}, },
"header": { "header": {