Skip to content

Commit

Permalink
feat: add etherscan and blockscout clients for Kroma networks
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvisKrop committed Jan 9, 2024
1 parent 6c6b3d1 commit c22bf2b
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -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):
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

0 comments on commit c22bf2b

Please sign in to comment.