From 4757cbb8a3c0618aafec01751faa367fb830ca75 Mon Sep 17 00:00:00 2001 From: 0xdcota <32775237+0xdcota@users.noreply.github.com> Date: Fri, 4 Apr 2025 09:57:23 -0700 Subject: [PATCH 1/3] feat: add sonicscan --- packages/ethereum-viewer/src/explorer/networks.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/ethereum-viewer/src/explorer/networks.ts b/packages/ethereum-viewer/src/explorer/networks.ts index 446ee12..fc34dfd 100644 --- a/packages/ethereum-viewer/src/explorer/networks.ts +++ b/packages/ethereum-viewer/src/explorer/networks.ts @@ -28,6 +28,8 @@ export const explorerApiUrls = { "holesky.fraxscan": "https://api-holesky.fraxscan.com/api", blastscan: "https://api.blastscan.io/api", "sepolia.blastscan": "https://api-sepolia.blastscan.io/api", + sonicscan: "https://api.sonicscan.org/api", + "testnet.sonicscan": "https://api-testnet.sonicscan.io/api", }; /** @@ -64,6 +66,8 @@ export const networkNames: Record = { "holesky.fraxscan": "fraxHolesky", blastscan: "blast", "sepolia.blastscan": "blastSepolia", + sonicscan: "sonic", + "testnet.sonicscan": "sonicTestnet", }; const ETHERSCAN_KEY = "862Y3WJ4JB4B34PZQRFEV3IK6SZ8GNR9N5"; @@ -79,6 +83,7 @@ const BASESCAN_KEY = "ICQQDUA1C8R2EZY6M4QIIV7WUEZM8INNA7"; const GNOSISSCAN_KEY = "7PWN1FIPXW6WDSGH3PIHRW1EEU4A882QSQ"; const FRAXSCAN_KEY = "TEUJWRCAKIXQCUR7XZRKCFRH3QHH344PAM"; const BLASTSCAN_KEY = "G6DR1ZFYP54GG49SJ9GID37SFQPV96H77E"; +const SONICSCAN_KEY = "2GSCMFPM44I9YKIN4UZKYNCFJG2CB1RAHE"; // @todo this should be possible to override using VSCode settings export const explorerApiKeys: Record = { @@ -119,4 +124,7 @@ export const explorerApiKeys: Record = { blastscan: BLASTSCAN_KEY, "sepolia.blastscan": BLASTSCAN_KEY, + + sonicscan: SONICSCAN_KEY, + "testnet.sonicscan": SONICSCAN_KEY, }; From 2e22920f3c35cd5bedf75d9a414ed0938112e05d Mon Sep 17 00:00:00 2001 From: Kris Kaczor Date: Mon, 14 Apr 2025 08:57:22 +0200 Subject: [PATCH 2/3] Use deth code key --- packages/ethereum-viewer/src/explorer/networks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ethereum-viewer/src/explorer/networks.ts b/packages/ethereum-viewer/src/explorer/networks.ts index fc34dfd..bd96592 100644 --- a/packages/ethereum-viewer/src/explorer/networks.ts +++ b/packages/ethereum-viewer/src/explorer/networks.ts @@ -83,7 +83,7 @@ const BASESCAN_KEY = "ICQQDUA1C8R2EZY6M4QIIV7WUEZM8INNA7"; const GNOSISSCAN_KEY = "7PWN1FIPXW6WDSGH3PIHRW1EEU4A882QSQ"; const FRAXSCAN_KEY = "TEUJWRCAKIXQCUR7XZRKCFRH3QHH344PAM"; const BLASTSCAN_KEY = "G6DR1ZFYP54GG49SJ9GID37SFQPV96H77E"; -const SONICSCAN_KEY = "2GSCMFPM44I9YKIN4UZKYNCFJG2CB1RAHE"; +const SONICSCAN_KEY = "QTH3YA3WFHJH76EV6KWN2PQTDJKA85PN4D"; // @todo this should be possible to override using VSCode settings export const explorerApiKeys: Record = { From cb4a8c4682324964938c38046a662f016dda62c6 Mon Sep 17 00:00:00 2001 From: Kris Kaczor Date: Mon, 14 Apr 2025 10:21:37 +0200 Subject: [PATCH 3/3] Tweak testnet sonicscan url --- packages/ethereum-viewer/src/explorer/networks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ethereum-viewer/src/explorer/networks.ts b/packages/ethereum-viewer/src/explorer/networks.ts index bd96592..5ac179e 100644 --- a/packages/ethereum-viewer/src/explorer/networks.ts +++ b/packages/ethereum-viewer/src/explorer/networks.ts @@ -29,7 +29,7 @@ export const explorerApiUrls = { blastscan: "https://api.blastscan.io/api", "sepolia.blastscan": "https://api-sepolia.blastscan.io/api", sonicscan: "https://api.sonicscan.org/api", - "testnet.sonicscan": "https://api-testnet.sonicscan.io/api", + "testnet.sonicscan": "https://api-testnet.sonicscan.org/api", }; /**