Merge pull request #538 from LedgerHQ/fix/apa/new_testnets

New Ethereum testnets
This commit is contained in:
apaillier-ledger
2024-02-14 16:53:12 +01:00
committed by GitHub
5 changed files with 9 additions and 2 deletions

View File

@@ -0,0 +1 @@
stax_chain_1_64px.gif

View File

@@ -0,0 +1 @@
stax_chain_1_64px.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 B

View File

@@ -79,12 +79,13 @@ static const network_info_t NETWORK_MAPPING[] = {
{.chain_id = 248, .name = "Oasys", .ticker = "OAS"},
{.chain_id = 1101, .name = "Polygon zkEVM", .ticker = "ETH"},
{.chain_id = 8453, .name = "Base", .ticker = "ETH"},
{.chain_id = 58008, .name = "Sepolia", .ticker = "ETH"},
{.chain_id = 1907, .name = "Bitcichain", .ticker = "BITCI"},
{.chain_id = 1116, .name = "Core", .ticker = "CORE"},
{.chain_id = 7171, .name = "Bitrock Mainnet", .ticker = "BROCK"},
{.chain_id = 10507, .name = "Numbers Protocol", .ticker = "NUM"},
{.chain_id = 59144, .name = "Linea", .ticker = "ETH"},
{.chain_id = 11155111, .name = "Sepolia", .ticker = "ETH"},
{.chain_id = 17000, .name = "Holesky", .ticker = "ETH"},
};
static const network_info_t *get_network_from_chain_id(const uint64_t *chain_id) {

View File

@@ -4,6 +4,7 @@ import os
import sys
import re
import argparse
from pathlib import Path
class Network:
@@ -62,7 +63,10 @@ const network_icon_t g_network_icons[%u] = {\
for net in networks:
glyph_name = get_network_glyph_name(net)
if os.path.isfile("glyphs/%s.gif" % (glyph_name)):
glyph_file = "glyphs/%s.gif" % (glyph_name)
if os.path.isfile(glyph_file):
if os.path.islink(glyph_file):
glyph_name = Path(os.path.realpath(glyph_file)).stem
print(" "*4, end="", file=out)
print("{.chain_id = %u, .icon = &C_%s}, // %s" % (net.chain_id,
glyph_name,