1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-07 05:02:38 +00:00

chore(common): add ARB, BASE and OP evm networks

This commit is contained in:
tomasklim 2025-01-23 17:21:35 +01:00 committed by matejcik
parent 64341bcb66
commit 711c19173c
4 changed files with 75 additions and 14 deletions

View File

@ -255,6 +255,18 @@
"type": "blockbook", "type": "blockbook",
"url": ["https://bsc1.trezor.io", "https://bsc2.trezor.io"] "url": ["https://bsc1.trezor.io", "https://bsc2.trezor.io"]
}, },
"eth:ARB:42161": {
"type": "blockbook",
"url": ["https://arb1.trezor.io", "https://arb2.trezor.io"]
},
"eth:BASE:8453": {
"type": "blockbook",
"url": ["https://base1.trezor.io", "https://base2.trezor.io"]
},
"eth:OP:10": {
"type": "blockbook",
"url": ["https://op1.trezor.io", "https://op2.trezor.io"]
},
"eth:ETC:61": { "eth:ETC:61": {
"type": "blockbook", "type": "blockbook",
"url": ["https://etc1.trezor.io", "https://etc2.trezor.io"] "url": ["https://etc1.trezor.io", "https://etc2.trezor.io"]

View File

@ -56,5 +56,35 @@
"shortcut": "POL", "shortcut": "POL",
"symbol": "POL", "symbol": "POL",
"slip44": 966 "slip44": 966
},
{
"chain": "arb",
"chain_id": 42161,
"coingecko_id": "arbitrum-one",
"is_testnet": false,
"name": "Arbitrum One",
"shortcut": "ARB",
"symbol": "ETH",
"slip44": 9001
},
{
"chain": "base",
"chain_id": 8453,
"coingecko_id": "base",
"is_testnet": false,
"name": "Base",
"shortcut": "BASE",
"symbol": "ETH",
"slip44": 8453
},
{
"chain": "op",
"chain_id": 10,
"coingecko_id": "optimistic-ethereum",
"is_testnet": false,
"name": "Optimism",
"shortcut": "OP",
"symbol": "ETH",
"slip44": 614
} }
] ]

View File

@ -80,12 +80,15 @@
"erc20:eth:WBTC": "1.8.0", "erc20:eth:WBTC": "1.8.0",
"erc20:eth:XCN": "1.11.3", "erc20:eth:XCN": "1.11.3",
"erc20:matic:WAVAX": "1.11.3", "erc20:matic:WAVAX": "1.11.3",
"eth:ARB:42161": "1.9.4",
"eth:BASE:8453": "1.9.4",
"eth:BSC:56": "1.9.4", "eth:BSC:56": "1.9.4",
"eth:ETC:61": "1.6.2", "eth:ETC:61": "1.6.2",
"eth:ETH:1": "1.6.2", "eth:ETH:1": "1.6.2",
"eth:OP:10": "1.9.4",
"eth:POL:137": "1.9.4", "eth:POL:137": "1.9.4",
"eth:tSEP:11155111": "1.11.3",
"eth:tHOL:17000": "1.11.3", "eth:tHOL:17000": "1.11.3",
"eth:tSEP:11155111": "1.11.3",
"misc:MAID": "1.7.2", "misc:MAID": "1.7.2",
"misc:OMNI": "1.7.2", "misc:OMNI": "1.7.2",
"misc:USDT": "1.7.2", "misc:USDT": "1.7.2",
@ -186,12 +189,15 @@
"erc20:eth:WBTC": "2.6.1", "erc20:eth:WBTC": "2.6.1",
"erc20:eth:XCN": "2.6.1", "erc20:eth:XCN": "2.6.1",
"erc20:matic:WAVAX": "2.6.1", "erc20:matic:WAVAX": "2.6.1",
"eth:ARB:42161": "2.6.1",
"eth:BASE:8453": "2.6.1",
"eth:BSC:56": "2.6.1", "eth:BSC:56": "2.6.1",
"eth:ETC:61": "2.6.1", "eth:ETC:61": "2.6.1",
"eth:ETH:1": "2.6.1", "eth:ETH:1": "2.6.1",
"eth:OP:10": "2.6.1",
"eth:POL:137": "2.6.1", "eth:POL:137": "2.6.1",
"eth:tSEP:11155111": "2.6.4",
"eth:tHOL:17000": "2.6.4", "eth:tHOL:17000": "2.6.4",
"eth:tSEP:11155111": "2.6.4",
"misc:ADA": "2.6.1", "misc:ADA": "2.6.1",
"misc:BNB": "2.6.1", "misc:BNB": "2.6.1",
"misc:DSOL": "2.6.4", "misc:DSOL": "2.6.4",
@ -221,12 +227,12 @@
"bitcoin:tPART": "incompatible fork", "bitcoin:tPART": "incompatible fork",
"misc:EOS": "not for T2B1 (#2793)", "misc:EOS": "not for T2B1 (#2793)",
"misc:LSK": "Incompatible mainnet hard-fork", "misc:LSK": "Incompatible mainnet hard-fork",
"nem:XEM": "not for T2B1 (#2793)",
"nem:BREEZE": "not for T2B1 (#2793)", "nem:BREEZE": "not for T2B1 (#2793)",
"nem:DIM": "not for T2B1 (#2793)", "nem:DIM": "not for T2B1 (#2793)",
"nem:DIMTOK": "not for T2B1 (#2793)", "nem:DIMTOK": "not for T2B1 (#2793)",
"nem:PAC:CHS": "not for T2B1 (#2793)", "nem:PAC:CHS": "not for T2B1 (#2793)",
"nem:PAC:HRT": "not for T2B1 (#2793)" "nem:PAC:HRT": "not for T2B1 (#2793)",
"nem:XEM": "not for T2B1 (#2793)"
} }
}, },
"T2T1": { "T2T1": {
@ -310,12 +316,15 @@
"erc20:eth:WBTC": "2.0.11", "erc20:eth:WBTC": "2.0.11",
"erc20:eth:XCN": "2.5.3", "erc20:eth:XCN": "2.5.3",
"erc20:matic:WAVAX": "2.5.3", "erc20:matic:WAVAX": "2.5.3",
"eth:ARB:42161": "2.3.5",
"eth:BASE:8453": "2.3.5",
"eth:BSC:56": "2.3.5", "eth:BSC:56": "2.3.5",
"eth:ETC:61": "2.0.7", "eth:ETC:61": "2.0.7",
"eth:ETH:1": "2.0.7", "eth:ETH:1": "2.0.7",
"eth:OP:10": "2.3.5",
"eth:POL:137": "2.3.5", "eth:POL:137": "2.3.5",
"eth:tSEP:11155111": "2.5.4",
"eth:tHOL:17000": "2.5.4", "eth:tHOL:17000": "2.5.4",
"eth:tSEP:11155111": "2.5.4",
"misc:ADA": "2.0.8", "misc:ADA": "2.0.8",
"misc:BNB": "2.1.5", "misc:BNB": "2.1.5",
"misc:DSOL": "2.6.4", "misc:DSOL": "2.6.4",
@ -416,12 +425,15 @@
"erc20:eth:WBTC": "2.8.1", "erc20:eth:WBTC": "2.8.1",
"erc20:eth:XCN": "2.8.1", "erc20:eth:XCN": "2.8.1",
"erc20:matic:WAVAX": "2.8.1", "erc20:matic:WAVAX": "2.8.1",
"eth:ARB:42161": "2.8.1",
"eth:BASE:8453": "2.8.1",
"eth:BSC:56": "2.8.1", "eth:BSC:56": "2.8.1",
"eth:ETC:61": "2.8.1", "eth:ETC:61": "2.8.1",
"eth:ETH:1": "2.8.1", "eth:ETH:1": "2.8.1",
"eth:OP:10": "2.8.1",
"eth:POL:137": "2.8.1", "eth:POL:137": "2.8.1",
"eth:tSEP:11155111": "2.8.1",
"eth:tHOL:17000": "2.8.1", "eth:tHOL:17000": "2.8.1",
"eth:tSEP:11155111": "2.8.1",
"misc:ADA": "2.8.1", "misc:ADA": "2.8.1",
"misc:BNB": "2.8.1", "misc:BNB": "2.8.1",
"misc:DSOL": "2.8.1", "misc:DSOL": "2.8.1",
@ -451,12 +463,12 @@
"bitcoin:tPART": "incompatible fork", "bitcoin:tPART": "incompatible fork",
"misc:EOS": "not for T3B1 (#2793)", "misc:EOS": "not for T3B1 (#2793)",
"misc:LSK": "Incompatible mainnet hard-fork", "misc:LSK": "Incompatible mainnet hard-fork",
"nem:XEM": "not for T3B1 (#2793)",
"nem:BREEZE": "not for T3B1 (#2793)", "nem:BREEZE": "not for T3B1 (#2793)",
"nem:DIM": "not for T3B1 (#2793)", "nem:DIM": "not for T3B1 (#2793)",
"nem:DIMTOK": "not for T3B1 (#2793)", "nem:DIMTOK": "not for T3B1 (#2793)",
"nem:PAC:CHS": "not for T3B1 (#2793)", "nem:PAC:CHS": "not for T3B1 (#2793)",
"nem:PAC:HRT": "not for T3B1 (#2793)" "nem:PAC:HRT": "not for T3B1 (#2793)",
"nem:XEM": "not for T3B1 (#2793)"
} }
}, },
"T3T1": { "T3T1": {
@ -531,12 +543,15 @@
"erc20:eth:WBTC": "2.6.1", "erc20:eth:WBTC": "2.6.1",
"erc20:eth:XCN": "2.6.1", "erc20:eth:XCN": "2.6.1",
"erc20:matic:WAVAX": "2.6.1", "erc20:matic:WAVAX": "2.6.1",
"eth:ARB:42161": "2.6.1",
"eth:BASE:8453": "2.6.1",
"eth:BSC:56": "2.6.1", "eth:BSC:56": "2.6.1",
"eth:ETC:61": "2.6.1", "eth:ETC:61": "2.6.1",
"eth:ETH:1": "2.6.1", "eth:ETH:1": "2.6.1",
"eth:OP:10": "2.6.1",
"eth:POL:137": "2.6.1", "eth:POL:137": "2.6.1",
"eth:tSEP:11155111": "2.6.1",
"eth:tHOL:17000": "2.6.1", "eth:tHOL:17000": "2.6.1",
"eth:tSEP:11155111": "2.6.1",
"misc:ADA": "2.6.1", "misc:ADA": "2.6.1",
"misc:BNB": "2.6.1", "misc:BNB": "2.6.1",
"misc:DSOL": "2.6.4", "misc:DSOL": "2.6.4",
@ -566,12 +581,12 @@
"bitcoin:tPART": "incompatible fork", "bitcoin:tPART": "incompatible fork",
"misc:EOS": "not for T3T1 (#2793)", "misc:EOS": "not for T3T1 (#2793)",
"misc:LSK": "Incompatible mainnet hard-fork", "misc:LSK": "Incompatible mainnet hard-fork",
"nem:XEM": "not for T3T1 (#2793)",
"nem:BREEZE": "not for T3T1 (#2793)", "nem:BREEZE": "not for T3T1 (#2793)",
"nem:DIM": "not for T3T1 (#2793)", "nem:DIM": "not for T3T1 (#2793)",
"nem:DIMTOK": "not for T3T1 (#2793)", "nem:DIMTOK": "not for T3T1 (#2793)",
"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)",
"nem:XEM": "not for T3T1 (#2793)"
} }
}, },
"T3W1": { "T3W1": {
@ -646,12 +661,15 @@
"erc20:eth:WBTC": "2.6.1", "erc20:eth:WBTC": "2.6.1",
"erc20:eth:XCN": "2.6.1", "erc20:eth:XCN": "2.6.1",
"erc20:matic:WAVAX": "2.6.1", "erc20:matic:WAVAX": "2.6.1",
"eth:ARB:42161": "2.6.1",
"eth:BASE:8453": "2.6.1",
"eth:BSC:56": "2.6.1", "eth:BSC:56": "2.6.1",
"eth:ETC:61": "2.6.1", "eth:ETC:61": "2.6.1",
"eth:ETH:1": "2.6.1", "eth:ETH:1": "2.6.1",
"eth:OP:10": "2.6.1",
"eth:POL:137": "2.6.1", "eth:POL:137": "2.6.1",
"eth:tSEP:11155111": "2.6.1",
"eth:tHOL:17000": "2.6.1", "eth:tHOL:17000": "2.6.1",
"eth:tSEP:11155111": "2.6.1",
"misc:ADA": "2.6.1", "misc:ADA": "2.6.1",
"misc:BNB": "2.6.1", "misc:BNB": "2.6.1",
"misc:DSOL": "2.6.4", "misc:DSOL": "2.6.4",
@ -681,12 +699,12 @@
"bitcoin:tPART": "incompatible fork", "bitcoin:tPART": "incompatible fork",
"misc:EOS": "not for T3W1 (#2793)", "misc:EOS": "not for T3W1 (#2793)",
"misc:LSK": "Incompatible mainnet hard-fork", "misc:LSK": "Incompatible mainnet hard-fork",
"nem:XEM": "not for T3W1 (#2793)",
"nem:BREEZE": "not for T3W1 (#2793)", "nem:BREEZE": "not for T3W1 (#2793)",
"nem:DIM": "not for T3W1 (#2793)", "nem:DIM": "not for T3W1 (#2793)",
"nem:DIMTOK": "not for T3W1 (#2793)", "nem:DIMTOK": "not for T3W1 (#2793)",
"nem:PAC:CHS": "not for T3W1 (#2793)", "nem:PAC:CHS": "not for T3W1 (#2793)",
"nem:PAC:HRT": "not for T3W1 (#2793)" "nem:PAC:HRT": "not for T3W1 (#2793)",
"nem:XEM": "not for T3W1 (#2793)"
} }
} }
} }

View File

@ -7,6 +7,7 @@ EXCEPTIONS+=( "omni" ) # OMNI is part of the bitcoin app
EXCEPTIONS+=( "derive_cardano" ) # field name in Initialize message EXCEPTIONS+=( "derive_cardano" ) # field name in Initialize message
# BIP39 or SLIP39 words that have "dash" and "ripple" in them # BIP39 or SLIP39 words that have "dash" and "ripple" in them
EXCEPTIONS+=( "dash" "ripple" ) EXCEPTIONS+=( "dash" "ripple" )
EXCEPTIONS+=( "base" ) # name EVM chain
GREP_ARGS=() GREP_ARGS=()
for exception in "${EXCEPTIONS[@]}"; do for exception in "${EXCEPTIONS[@]}"; do