Skip to content

Commit

Permalink
Add Kroma networks (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvisKrop authored Jan 15, 2024
1 parent 8224cff commit d64c04f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnosis/eth/clients/blockscout_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ class BlockscoutClient:
EthereumNetwork.PGN_TESTNET: "https://explorer.sepolia.publicgoods.network/graphiql",
EthereumNetwork.ARTHERA_TESTNET: "https://explorer-test.arthera.net/graphiql",
EthereumNetwork.MANTA_PACIFIC_MAINNET: "https://pacific-explorer.manta.network/graphiql",
EthereumNetwork.KROMA: "https://blockscout.kroma.network/graphiql",
EthereumNetwork.KROMA_SEPOLIA: "https://blockscout.sepolia.kroma.network/graphiql",
}

def __init__(self, network: EthereumNetwork):
Expand Down
4 changes: 4 additions & 0 deletions gnosis/eth/clients/etherscan_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class EtherscanClient:
EthereumNetwork.JAPAN_OPEN_CHAIN_TESTNET: "https://explorer.testnet.japanopenchain.org",
EthereumNetwork.SCROLL_SEPOLIA_TESTNET: "https://sepolia.scrollscan.dev",
EthereumNetwork.SCROLL: "https://scrollscan.com",
EthereumNetwork.KROMA: "https://kromascan.com",
EthereumNetwork.KROMA_SEPOLIA: "https://sepolia.kromascan.com",
}

NETWORK_WITH_API_URL = {
Expand Down Expand Up @@ -97,6 +99,8 @@ class EtherscanClient:
EthereumNetwork.JAPAN_OPEN_CHAIN_TESTNET: "https://explorer.testnet.japanopenchain.org/api",
EthereumNetwork.SCROLL_SEPOLIA_TESTNET: "https://api-sepolia.scrollscan.dev",
EthereumNetwork.SCROLL: "https://api.scrollscan.com",
EthereumNetwork.KROMA: "https://api.kromascan.com",
EthereumNetwork.KROMA_SEPOLIA: "https://api-sepolia.kromascan.com",
}
HTTP_HEADERS = {
"User-Agent": "curl/7.77.0",
Expand Down
2 changes: 2 additions & 0 deletions gnosis/eth/ethereum_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class EthereumNetwork(Enum):
ENERGY_WEB_CHAIN = 246
OASYS_MAINNET = 248
FANTOM_OPERA = 250
KROMA = 255
HUOBI_ECO_CHAIN_TESTNET = 256
SETHEUM = 258
SUR_BLOCKCHAIN_NETWORK = 262
Expand Down Expand Up @@ -363,6 +364,7 @@ class EthereumNetwork(Enum):
VCHAIN_MAINNET = 2223
BOMB_CHAIN = 2300
ALTCOINCHAIN = 2330
KROMA_SEPOLIA = 2358
BOMB_CHAIN_TESTNET = 2399
TCG_VERSE_MAINNET = 2400
XODEX = 2415
Expand Down
14 changes: 14 additions & 0 deletions gnosis/safe/addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,14 @@
("0x3E5c63644E683549055b9Be8653de26E0B4CD36E", 338471, "1.3.0+L2"),
("0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552", 338472, "1.3.0"),
],
EthereumNetwork.KROMA: [
("0xfb1bffC9d739B8D520DaF37dF666da4C687191EA", 5281960, "1.3.0+L2"),
("0x69f4D1788e39c87893C980c06EdF4b7f686e2938", 5281965, "1.3.0"),
],
EthereumNetwork.KROMA_SEPOLIA: [
("0xfb1bffC9d739B8D520DaF37dF666da4C687191EA", 7992402, "1.3.0+L2"),
("0x69f4D1788e39c87893C980c06EdF4b7f686e2938", 7992408, "1.3.0"),
],
}

PROXY_FACTORIES: Dict[EthereumNetwork, List[Tuple[str, int]]] = {
Expand Down Expand Up @@ -1091,4 +1099,10 @@
EthereumNetwork.MANTA_PACIFIC_MAINNET: [
("0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2", 338464), # v1.3.0
],
EthereumNetwork.KROMA: [
("0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC", 5281925), # v1.3.0
],
EthereumNetwork.KROMA_SEPOLIA: [
("0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC", 7867188), # v1.3.0
],
}

0 comments on commit d64c04f

Please sign in to comment.