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
26 changes: 21 additions & 5 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,7 +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/",
Expand All @@ -101,7 +111,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 +122,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 @@ -135,6 +143,14 @@ class BlockscoutClient:
EthereumNetwork.LINEA_SEPOLIA: "https://api-explorer.sepolia.linea.build/api/v2/",
EthereumNetwork.ZETACHAIN_MAINNET: "https://zetascan.com/api/v2/",
EthereumNetwork.ETHEREAL_TESTNET: "https://explorer-ethereal-testnet-0.t.conduit.xyz/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.MORPH_HOODI: "https://explorer-api-hoodi.morphl2.io/api/v2",
EthereumNetwork.DOGEOS_CHIKYU_TESTNET: "https://blockscout.testnet.dogeos.com/api/v2/",
EthereumNetwork.ALPEN_TESTNET: "https://explorer.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/",
}

def __init__(
Expand Down
15 changes: 14 additions & 1 deletion safe_eth/eth/ethereum_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,8 @@ class EthereumNetwork(Enum):
BIFROST_POLKADOT_MAINNET = 996
_5IRECHAIN_THUNDER_TESTNET = 997
LUCKY_NETWORK = 998
WANCHAIN_TESTNET = 999
# WANCHAIN_TESTNET = 999
HYPEREVM = 999
GTON_MAINNET = 1000
KAIA_KAIROS_TESTNET = 1001
TECTUM_EMISSION_TOKEN = 1003
Expand Down Expand Up @@ -617,6 +618,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 @@ -804,6 +806,7 @@ class EthereumNetwork(Enum):
BOBA_NETWORK_GOERLI_TESTNET = 2888
AARMA_MAINNET = 2889
ELUX_CHAIN = 2907
MORPH_HOODI = 2910
HYCHAIN = 2911
XENON_CHAIN_TESTNET = 2941
BITYUAN_MAINNET = 2999
Expand Down Expand Up @@ -884,6 +887,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 @@ -1090,6 +1094,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 @@ -1213,6 +1218,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 @@ -1449,6 +1455,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 @@ -1602,6 +1609,7 @@ class EthereumNetwork(Enum):
CONDUIT_SUBNET = 78432
VANGUARD = 78600
GOLD_SMART_CHAIN_TESTNET = 79879
BERACHAIN_CARTIO = 80000
MUMBAI = 80001
AMOY = 80002
POLYNOMIA_SEPOLIA = 80008
Expand Down Expand Up @@ -1739,6 +1747,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 @@ -1779,6 +1788,8 @@ class EthereumNetwork(Enum):
HYDRADX = 222222
DEEPL_MAINNET = 222555
DEEPL_TESTNET = 222666
MOCA_CHAIN_TESTNET = 222888
MOCA_CHAIN_MAINNET = 2288
TAF_ECO_CHAIN_MAINNET = 224168
CONET_SEBOLIA_TESTNET = 224422
CONET_HOLESKY = 224433
Expand Down Expand Up @@ -1877,6 +1888,7 @@ class EthereumNetwork(Enum):
HELA_OFFICIAL_RUNTIME_TESTNET = 666888
WON_NETWORK = 686868
PHAROS_TESTNET = 688688
PHAROS_ATLANTIC_TESTNET = 688689
PYROPE_TESTNET = 695569
GALADRIEL_DEVNET = 696969
TILTYARD_MAINNET_SUBNET = 710420
Expand Down Expand Up @@ -1975,6 +1987,7 @@ class EthereumNetwork(Enum):
IMVERSED_MAINNET = 5555555
IMVERSED_TESTNET = 5555558
ASTAR_ZKYOTO = 6038361
DOGEOS_CHIKYU_TESTNET = 6281971
SAFE_ANWANG_MAINNET = 6666665
SAFE_ANWANG_TESTNET = 6666666
HUMANITY_PROTOCOL = 6985385
Expand Down
8 changes: 7 additions & 1 deletion safe_eth/eth/multicall.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ class Multicall(ContractBase):
EthereumNetwork.LINEA: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.CONFLUX_ESPACE_TESTNET: "0xEFf0078910f638cd81996cc117bccD3eDf2B072F",
EthereumNetwork.BITTORRENT_CHAIN_MAINNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.WANCHAIN_TESTNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
# EthereumNetwork.WANCHAIN_TESTNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.EXPCHAIN_TESTNET: "0x6fCf308FCb5216F8Fc1d752ba591dd49d3FF5E46",
EthereumNetwork.THE_ROOT_NETWORK_MAINNET: "0xc9C2E2429AeC354916c476B30d729deDdC94988d",
EthereumNetwork.RSS3_VSL_SEPOLIA_TESTNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.BOB: "0xcA11bde05977b3631167028862bE2a173976CA11",
Expand Down Expand Up @@ -336,6 +337,11 @@ class Multicall(ContractBase):
EthereumNetwork.INK_SEPOLIA: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.PLUME_MAINNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.STATUS_NETWORK_SEPOLIA: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.PLASMA_MAINNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.PLASMA_TESTNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.MISTERY_PS_MAINNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.ALPEN_TESTNET: "0xcA11bde05977b3631167028862bE2a173976CA11",
EthereumNetwork.TAIKO_HOODI: "0xcA11bde05977b3631167028862bE2a173976CA11",
}

def __init__(
Expand Down
Loading