Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions safe_eth/eth/clients/blockscout_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ class BlockScoutConfigurationProblem(BlockscoutClientException):

class BlockscoutClient:
NETWORK_WITH_URL = {
EthereumNetwork.METIS_ANDROMEDA_MAINNET: "https://andromeda-explorer.metis.io/api/v2/",
EthereumNetwork.FUSE_MAINNET: "https://explorer.fuse.io/api/v2/",
EthereumNetwork.UNREAL_OLD: "https://unreal.blockscout.com/api/v2/",
EthereumNetwork.STRATIS_MAINNET: "https://explorer.stratisevm.com/api/v2/",
EthereumNetwork.SHIMMEREVM: "https://explorer.evm.shimmer.network/api/v2/",
EthereumNetwork.BITROCK_MAINNET: "https://explorer.bit-rock.io/api/v2/",
EthereumNetwork.RSS3_VSL_SEPOLIA_TESTNET: "https://scan.testnet.rss3.io/api/v2/",
EthereumNetwork.RSS3_VSL_MAINNET: "https://scan.rss3.io/api/v2/",
EthereumNetwork.GARNET_HOLESKY: "https://explorer.garnetchain.com/api/v2/",
EthereumNetwork.UNREAL: "https://unreal.blockscout.com/api/v2/",
EthereumNetwork.EDU_CHAIN: "https://educhain.blockscout.com/api/v2/",
EthereumNetwork.FILECOIN_MAINNET: "https://filecoin.blockscout.com/api/v2/",
EthereumNetwork.FILECOIN_CALIBRATION_TESTNET: "https://filecoin-testnet.blockscout.com/api/v2/",
EthereumNetwork.ACALA_NETWORK: "https://blockscout.acala.network/api/v2/",
EthereumNetwork.ALEPH_ZERO_EVM: "https://evm-explorer.alephzero.org/api/v2/",
EthereumNetwork.ARBITRUM_BLUEBERRY: "https://arb-blueberry.gelatoscout.com/api/v2/",
Expand Down Expand Up @@ -63,11 +76,9 @@ class BlockscoutClient:
EthereumNetwork.MANTLE: "https://explorer.mantle.xyz/api/v2/",
EthereumNetwork.MANTLE_SEPOLIA_TESTNET: "https://explorer.sepolia.mantle.xyz/api/v2/",
EthereumNetwork.MANTLE_TESTNET: "https://explorer.testnet.mantle.xyz/api/v2/",
EthereumNetwork.MANTLE_TESTNET: "https://explorer.testnet.mantle.xyz/api/v2/",
EthereumNetwork.MANTA_PACIFIC_MAINNET: "https://pacific-explorer.manta.network/api/v2/",
EthereumNetwork.METER_MAINNET: "https://scan.meter.io/api/v2/",
EthereumNetwork.METER_TESTNET: "https://scan-warringstakes.meter.io/api/v2/",
EthereumNetwork.MODE: "https://explorer.mode.network/api/v2/",
EthereumNetwork.MODE_TESTNET: "https://sepolia.explorer.mode.network/api/v2/",
EthereumNetwork.NAL_SEPOLIA_TESTNET: "https://testnet-scan.nal.network/api/v2/",
EthereumNetwork.NEON_EVM_DEVNET: "https://neon-devnet.blockscout.com/api/v2/",
Expand All @@ -91,8 +102,6 @@ class BlockscoutClient:
EthereumNetwork.SWELLCHAIN: "https://explorer.swellnetwork.io/api/v2/",
EthereumNetwork.SWELLCHAIN_TESTNET: "https://swell-testnet-explorer.alt.technology/api/v2/",
EthereumNetwork.TAIKO_HEKLA_L2: "https://blockscoutapi.hekla.taiko.xyz/api/v2/",
EthereumNetwork.VANA_MOKSHA_TESTNET: "https://api.moksha.vanascan.io/api/v2/",
EthereumNetwork.ZETACHAIN_TESTNET: "https://zetachain-athens-3.blockscout.com/api/v2/",
EthereumNetwork.ZORA: "https://explorer.zora.energy/api/v2/",
EthereumNetwork.ZORA_SEPOLIA_TESTNET: "https://sepolia.explorer.zora.energy/api/v2/",
EthereumNetwork.EVM_ON_FLOW: "https://evm.flowscan.io/api/v2",
Expand All @@ -101,7 +110,6 @@ class BlockscoutClient:
EthereumNetwork.TAC_TURIN: "https://turin.explorer.tac.build/api/v2",
EthereumNetwork.ALEPH_ZERO: "https://evm-explorer-testnet.alephzero.org/api/v2/",
EthereumNetwork.AUTONOMYS_TAURUS_TESTNET: "https://explorer.auto-evm.taurus.autonomys.xyz/api/v2/",
EthereumNetwork.STORY_AENEID_TESTNET: "https://aeneid.storyscan.xyz/api/v2/",
EthereumNetwork.STORY: "https://mainnet.storyscan.xyz/api/v2/",
EthereumNetwork.AUTONITY_PICCADILLY_TIBER_TESTNET: "https://piccadilly.autonity.org/api/v2",
EthereumNetwork.SONEIUM_TESTNET_MINATO: "https://soneium-minato.blockscout.com/api/v2/",
Expand All @@ -113,7 +121,6 @@ class BlockscoutClient:
EthereumNetwork.SHAPE: "https://shapescan.xyz/api/v2",
EthereumNetwork.SHAPE_SEPOLIA_TESTNET: "https://sepolia.shapescan.xyz/api/v2/",
EthereumNetwork.STORY_AENEID_TESTNET: "https://aeneid.storyscan.io/api/v2/",
EthereumNetwork.ETHEREAL_TESTNET: "https://explorer-ethereal-testnet.t.conduit.xyz/api/v2/",
EthereumNetwork.ENI_MAINNET: "https://scan.eniac.network/api/v2",
EthereumNetwork.VANA: "https://vanascan.io/api/v2/",
EthereumNetwork.PAIX_DEVELOPMENT_NETWORK: "https://blockscout.ppaix.com/api/v2",
Expand All @@ -140,6 +147,14 @@ class BlockscoutClient:
EthereumNetwork.HPP_MAINNET: "https://explorer.hpp.io/api/v2",
EthereumNetwork.HPP_SEPOLIA: "https://sepolia-explorer.hpp.io/api/v2",
EthereumNetwork.MORPH_HOODI: "https://explorer-api-hoodi.morphl2.io/api/v2",
EthereumNetwork.EXPCHAIN_TESTNET: "https://blockscout-testnet.expchain.ai/api/v2",
EthereumNetwork.ETHEREUM_HOODI: "https://eth-hoodi.blockscout.com/api/v2/",
EthereumNetwork.MANTRACHAIN_MAINNET: "https://blockscout.mantrascan.io/api/v2/",
EthereumNetwork.DOGEOS_CHIKYU_TESTNET: "https://blockscout.testnet.dogeos.com/api/v2/",
EthereumNetwork.ALPEN_TESTNET: "https://explorer.pectra-testnet.alpenlabs.io/api/v2/",
EthereumNetwork.AULT_BLOCKCHAIN_TESTNET: "https://test-evm-explorer.cloud.aultblockchain.xyz/api/v2/",
EthereumNetwork.TAIKO_HOODI: "https://blockscoutapi.hoodi.taiko.xyz/api/v2/",
EthereumNetwork.ADI_CHAIN: "https://explorer-bls.adifoundation.ai/api/v2",
}

def __init__(
Expand Down
10 changes: 10 additions & 0 deletions safe_eth/eth/ethereum_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ class EthereumNetwork(Enum):
BTACHAIN = 1657
LIQUICHAIN = 1662
HORIZEN_GOBI_TESTNET = 1663
MISTERY_PS_MAINNET = 1672
MINT_TESTNET = 1686
MINT_SEPOLIA_TESTNET = 1687
LUDAN_MAINNET = 1688
Expand Down Expand Up @@ -755,6 +756,7 @@ class EthereumNetwork(Enum):
KAVA = 2222
VCHAIN_MAINNET = 2223
KREST_NETWORK = 2241
MOCA_CHAIN_MAINNET = 2288
BOMB_CHAIN = 2300
EBRO_NETWORK = 2306
AREVIA = 2309
Expand Down Expand Up @@ -894,6 +896,7 @@ class EthereumNetwork(Enum):
BITINDI_TESTNET = 4096
BITINDI_MAINNET = 4099
AIOZ_NETWORK_TESTNET = 4102
PROTOFIRE_MISTERY = 4114
HUMANS_AI_TESTNET = 4139
TIPBOXCOIN_TESTNET = 4141
CROSSFI_TESTNET = 4157
Expand Down Expand Up @@ -1101,6 +1104,7 @@ class EthereumNetwork(Enum):
AMANA = 8134
FLANA = 8135
MIZANA = 8136
ALPEN_TESTNET = 8150
TESTNET_BEONE_CHAIN = 8181
TORUS_MAINNET = 8192
TORUS_TESTNET = 8194
Expand Down Expand Up @@ -1226,6 +1230,7 @@ class EthereumNetwork(Enum):
LAMINA1 = 10849
LAMINA1_IDENTITY = 10850
GAMESWIFT_CHAIN_TESTNET = 10888
AULT_BLOCKCHAIN_TESTNET = 10904
QUADRANS_BLOCKCHAIN = 10946
QUADRANS_BLOCKCHAIN_TESTNET = 10947
KB_CHAIN = 11000
Expand Down Expand Up @@ -1440,6 +1445,7 @@ class EthereumNetwork(Enum):
FUNKI = 33979
MODE = 34443
ZEUS_MAINNET = 34504
ADI_CHAIN = 34900
J2O_TARO = 35011
Q_MAINNET = 35441
Q_TESTNET = 35443
Expand All @@ -1466,6 +1472,7 @@ class EthereumNetwork(Enum):
GOLDXCHAIN_MAINNET = 42355
ASSET_CHAIN_MAINNET = 42420
ASSET_CHAIN_TESTNET = 42421
TEMPO_MODERATO = 42431
ZKFAIR_MAINNET = 42766
ETHERLINK_MAINNET = 42793
GESOTEN_VERSE_TESTNET = 42801
Expand Down Expand Up @@ -1764,6 +1771,7 @@ class EthereumNetwork(Enum):
TAIKO_JOLNIR_L2 = 167007
TAIKO_KATLA_L2 = 167008
TAIKO_HEKLA_L2 = 167009
TAIKO_HOODI = 167013
ZCHAINS = 168168
FAIR_TESTNET = 171000
WADZCHAIN_MAINNET = 171717
Expand Down Expand Up @@ -1807,6 +1815,7 @@ class EthereumNetwork(Enum):
HYDRADX = 222222
DEEPL_MAINNET = 222555
DEEPL_TESTNET = 222666
MOCA_CHAIN_TESTNET = 222888
TAF_ECO_CHAIN_MAINNET = 224168
CONET_SEBOLIA_TESTNET = 224422
CONET_HOLESKY = 224433
Expand Down Expand Up @@ -2008,6 +2017,7 @@ class EthereumNetwork(Enum):
IMVERSED_TESTNET = 5555558
JOVAY_MAINNET = 5734951
ASTAR_ZKYOTO = 6038361
DOGEOS_CHIKYU_TESTNET = 6281971
SAFE_ANWANG_MAINNET = 6666665
SAFE_ANWANG_TESTNET = 6666666
ENI_TESTNET = 6912115
Expand Down
3 changes: 3 additions & 0 deletions safe_eth/eth/multicall.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ class Multicall(ContractBase):
EthereumNetwork.VANA_MOKSHA_TESTNET: "0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",
EthereumNetwork.ARC_TESTNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.REDDIO: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.MISTERY_PS_MAINNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.ALPEN_TESTNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.TAIKO_HOODI: "0xcA11bde05977b3631167028862bE2a173976CA11",
}

def __init__(
Expand Down
Loading