From 82a6ea5af2ae2a88253b32fd28d19352ba01bc07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Tr=C4=85d?= Date: Tue, 5 Nov 2024 12:33:54 +0100 Subject: [PATCH] Update World Chain urls (#111) Updates the World Chain urls to use worldscan.org instead of explorer.alchemy.com. Also removes the `nativeCurrencySymbol` for World Chain and World Chain Sepolia --------- Co-authored-by: Matthias Seitz --- assets/chains.json | 8 ++++---- src/named.rs | 12 ++++-------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/assets/chains.json b/assets/chains.json index 1b96b66..e51e27c 100644 --- a/assets/chains.json +++ b/assets/chains.json @@ -440,8 +440,8 @@ "supportsShanghai": true, "isTestnet": false, "nativeCurrencySymbol": "WRLD", - "etherscanApiUrl": "https://worldchain-mainnet.explorer.alchemy.com/api", - "etherscanBaseUrl": "https://worldchain-mainnet.explorer.alchemy.com", + "etherscanApiUrl": "https://api.worldscan.org/api", + "etherscanBaseUrl": "https://worldscan.org", "etherscanApiKeyName": "BLOCKSCOUT_API_KEY" }, "595": { @@ -788,8 +788,8 @@ "supportsShanghai": true, "isTestnet": true, "nativeCurrencySymbol": "WRLD", - "etherscanApiUrl": "https://worldchain-sepolia.explorer.alchemy.com/api", - "etherscanBaseUrl": "https://worldchain-sepolia.explorer.alchemy.com", + "etherscanApiUrl": "https://api-sepolia.worldscan.org/api", + "etherscanBaseUrl": "https://sepolia.worldscan.org", "etherscanApiKeyName": "BLOCKSCOUT_API_KEY" }, "5000": { diff --git a/src/named.rs b/src/named.rs index 1471c90..d316cd3 100644 --- a/src/named.rs +++ b/src/named.rs @@ -1332,14 +1332,10 @@ impl NamedChain { Odyssey => { ("https://odyssey-explorer.ithaca.xyz/api", "https://odyssey-explorer.ithaca.xyz") } - World => ( - "https://worldchain-mainnet.explorer.alchemy.com/api", - "https://worldchain-mainnet.explorer.alchemy.com", - ), - WorldSepolia => ( - "https://worldchain-sepolia.explorer.alchemy.com/api", - "https://worldchain-sepolia.explorer.alchemy.com", - ), + World => ("https://api.worldscan.org/api", "https://worldscan.org"), + WorldSepolia => { + ("https://api-sepolia.worldscan.org/api", "https://sepolia.worldscan.org") + } UnichainSepolia => { ("https://sepolia.uniscan.xyz", "https://api-sepolia.uniscan.xyz/api") }