diff --git a/glyphs/stax_chain_11155111_64px.gif b/glyphs/stax_chain_11155111_64px.gif new file mode 120000 index 0000000..8ced0b7 --- /dev/null +++ b/glyphs/stax_chain_11155111_64px.gif @@ -0,0 +1 @@ +stax_chain_1_64px.gif \ No newline at end of file diff --git a/glyphs/stax_chain_17000_64px.gif b/glyphs/stax_chain_17000_64px.gif new file mode 120000 index 0000000..8ced0b7 --- /dev/null +++ b/glyphs/stax_chain_17000_64px.gif @@ -0,0 +1 @@ +stax_chain_1_64px.gif \ No newline at end of file diff --git a/glyphs/stax_chain_58008_64px.gif b/glyphs/stax_chain_58008_64px.gif deleted file mode 100644 index 503a95f..0000000 Binary files a/glyphs/stax_chain_58008_64px.gif and /dev/null differ diff --git a/src/network.c b/src/network.c index 24349c3..1563c32 100644 --- a/src/network.c +++ b/src/network.c @@ -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) { diff --git a/tools/gen_networks.py b/tools/gen_networks.py index 7b7f9ab..7c91b17 100755 --- a/tools/gen_networks.py +++ b/tools/gen_networks.py @@ -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,