From c22bf2b0ba4c62377816ae6c6bf132dc139ce02f Mon Sep 17 00:00:00 2001 From: Nikita Zasimuk Date: Fri, 5 Jan 2024 19:47:40 +0700 Subject: [PATCH] feat: add etherscan and blockscout clients for Kroma networks --- gnosis/eth/clients/blockscout_client.py | 2 ++ gnosis/eth/clients/etherscan_client.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/gnosis/eth/clients/blockscout_client.py b/gnosis/eth/clients/blockscout_client.py index b3abfafc8..c983ba796 100644 --- a/gnosis/eth/clients/blockscout_client.py +++ b/gnosis/eth/clients/blockscout_client.py @@ -78,6 +78,8 @@ class BlockscoutClient: EthereumNetwork.PGN_MAINNET: "https://explorer.publicgoods.network/graphiql", EthereumNetwork.PGN_TESTNET: "https://explorer.sepolia.publicgoods.network/graphiql", EthereumNetwork.ARTHERA_TESTNET: "https://explorer-test.arthera.net/graphiql", + EthereumNetwork.KROMA: "https://blockscout.kroma.network/graphiql", + EthereumNetwork.KROMA_SEPOLIA: "https://blockscout.sepolia.kroma.network/graphiql", } def __init__(self, network: EthereumNetwork): diff --git a/gnosis/eth/clients/etherscan_client.py b/gnosis/eth/clients/etherscan_client.py index 3072a33c4..0264dd414 100644 --- a/gnosis/eth/clients/etherscan_client.py +++ b/gnosis/eth/clients/etherscan_client.py @@ -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 = { @@ -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",