Skip to content

Commit

Permalink
Fix retrieve viem info script and update multicall addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
falvaradorodriguez committed Oct 10, 2024
1 parent 2465f92 commit 94a6c78
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 85 deletions.
16 changes: 13 additions & 3 deletions safe_eth/eth/clients/etherscan_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class EtherscanClient:
EthereumNetwork.ROLLUX_MAINNET: "https://explorer.rollux.com",
EthereumNetwork.ZKSYNC_SEPOLIA_TESTNET: "https://sepolia-era.zksync.network/",
EthereumNetwork.ATLETA_OLYMPIA: "https://blockscout.atleta.network",
EthereumNetwork.CELO_ALFAJORES_TESTNET: "https://explorer.celo.org/alfajores",
EthereumNetwork.CELO_ALFAJORES_TESTNET: "https://celo-alfajores.blockscout.com",
EthereumNetwork.GRAVITY_ALPHA_MAINNET: "https://explorer.gravity.xyz",
EthereumNetwork.ANCIENT8: "https://scan.ancient8.gg",
EthereumNetwork.DCHAIN_TESTNET: "https://dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io",
Expand Down Expand Up @@ -152,6 +152,11 @@ class EtherscanClient:
EthereumNetwork.EOS_EVM_NETWORK: "https://explorer.evm.eosnetwork.com",
EthereumNetwork.SHAPE_SEPOLIA_TESTNET: "https://explorer-sepolia.shape.network",
EthereumNetwork.SHAPE: "https://shapescan.xyz",
EthereumNetwork.FASTEX_CHAIN_BAHAMUT_OASIS_TESTNET: "https://oasis.ftnscan.com",
EthereumNetwork.ASSET_CHAIN_MAINNET: "https://scan.assetchain.org",
EthereumNetwork.PHOENIX_MAINNET: "https://phoenixplorer.com",
EthereumNetwork.SNAXCHAIN: "https://explorer.snaxchain.io",
EthereumNetwork.ZKFAIR_MAINNET: "https://scan.zkfair.io",
}

NETWORK_WITH_API_URL = {
Expand Down Expand Up @@ -219,7 +224,7 @@ class EtherscanClient:
EthereumNetwork.ASSET_CHAIN_TESTNET: "https://scan-testnet.assetchain.org",
EthereumNetwork.LISK: "https://blockscout.lisk.com",
EthereumNetwork.NEXI_MAINNET: "https://www.nexiscan.com",
EthereumNetwork.MINATO: "https://explorer-testnet.soneium.org/api/",
EthereumNetwork.MINATO: "https://explorer-testnet.soneium.org",
EthereumNetwork.EOS_EVM_NETWORK_TESTNET: "https://explorer.testnet.evm.eosnetwork.com",
EthereumNetwork.BITTORRENT_CHAIN_MAINNET: "https://api.bttcscan.com",
EthereumNetwork.RSS3_VSL_SEPOLIA_TESTNET: "https://scan.testnet.rss3.io",
Expand All @@ -237,7 +242,7 @@ class EtherscanClient:
EthereumNetwork.ROLLUX_MAINNET: "https://explorer.rollux.com",
EthereumNetwork.ZKSYNC_SEPOLIA_TESTNET: "https://api-sepolia-era.zksync.network",
EthereumNetwork.ATLETA_OLYMPIA: "https://blockscout.atleta.network",
EthereumNetwork.CELO_ALFAJORES_TESTNET: "https://explorer.celo.org",
EthereumNetwork.CELO_ALFAJORES_TESTNET: "https://celo-alfajores.blockscout.com",
EthereumNetwork.GRAVITY_ALPHA_MAINNET: "https://explorer.gravity.xyz",
EthereumNetwork.ANCIENT8: "https://scan.ancient8.gg",
EthereumNetwork.DCHAIN_TESTNET: "https://api-dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io",
Expand Down Expand Up @@ -284,6 +289,11 @@ class EtherscanClient:
EthereumNetwork.EOS_EVM_NETWORK: "https://explorer.evm.eosnetwork.com",
EthereumNetwork.SHAPE_SEPOLIA_TESTNET: "https://explorer-sepolia.shape.network",
EthereumNetwork.SHAPE: "https://shapescan.xyz",
EthereumNetwork.FASTEX_CHAIN_BAHAMUT_OASIS_TESTNET: "https://oasis.ftnscan.com",
EthereumNetwork.ASSET_CHAIN_MAINNET: "https://scan.assetchain.org",
EthereumNetwork.PHOENIX_MAINNET: "https://phoenixplorer.com",
EthereumNetwork.SNAXCHAIN: "https://explorer.snaxchain.io",
EthereumNetwork.ZKFAIR_MAINNET: "https://scan.zkfair.io",
}
HTTP_HEADERS: MutableMapping[str, Union[str, bytes]] = {
"User-Agent": "curl/7.77.0",
Expand Down
5 changes: 5 additions & 0 deletions safe_eth/eth/ethereum_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ class EthereumNetwork(Enum):
JUNCACHAIN_TESTNET = 669
KARURA_NETWORK = 686
REDSTONE = 690
MATCHAIN = 698
MATCHAIN_TESTNET = 699
STAR_SOCIAL_TESTNET = 700
DARWINIA_KOI_TESTNET = 701
BLOCKCHAIN_STATION_MAINNET = 707
Expand Down Expand Up @@ -961,6 +963,7 @@ class EthereumNetwork(Enum):
LORENZO = 8329
B3 = 8333
DRACONES_FINANCIAL_SERVICES = 8387
ZENCHAIN_TESTNET = 8408
BASE = 8453
CHAKRA_TESTNET = 8545
TOKI_NETWORK = 8654
Expand Down Expand Up @@ -1092,6 +1095,7 @@ class EthereumNetwork(Enum):
SPS = 13000
CREDIT_SMART_CHAIN = 13308
BEAM_TESTNET = 13337
CANNON_TESTNET = 13370
IMMUTABLE_ZKEVM = 13371
PHOENIX_MAINNET = 13381
MASA = 13396
Expand Down Expand Up @@ -1246,6 +1250,7 @@ class EthereumNetwork(Enum):
OASIS_EMERALD_TESTNET = 42261
OASIS_EMERALD = 42262
GOLDXCHAIN_MAINNET = 42355
ASSET_CHAIN_MAINNET = 42420
ASSET_CHAIN_TESTNET = 42421
ZKFAIR_MAINNET = 42766
ETHERLINK_MAINNET = 42793
Expand Down
Loading

0 comments on commit 94a6c78

Please sign in to comment.