Skip to content

Commit 1da2ab5

Browse files
authored
chore: add explorer links based on chains (#83)
1 parent f4c0b0f commit 1da2ab5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

apps/web-app/src/components/PageContainer.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,26 @@ export default function PageContainer({
2121
return `https://sepolia.etherscan.io/address/${address}`
2222
case "arbitrum-sepolia":
2323
return `https://sepolia.arbiscan.io/address/${address}`
24+
case "optimism-sepolia":
25+
return `https://sepolia-optimism.etherscan.io/address/${address}`
26+
case "polygon-amoy":
27+
return `https://amoy.polygonscan.com/address/${address}`
28+
case "arbitrum":
29+
return `https://arbiscan.io/address/${address}`
30+
case "polygon":
31+
return `https://polygonscan.com/address/${address}`
32+
case "optimism":
33+
return `https://optimistic.etherscan.io/address/${address}`
34+
case "base-sepolia":
35+
return `https://sepolia.basescan.org/address/${address}`
36+
case "linea-sepolia":
37+
return `https://sepolia.lineascan.build/address/${address}`
38+
case "base":
39+
return `https://basescan.org/address/${address}`
40+
case "linea":
41+
return `https://lineascan.build/address/${address}`
42+
case "scroll-sepolia":
43+
return `https://sepolia.scrollscan.com/address/${address}`
2444
default:
2545
return ""
2646
}

0 commit comments

Comments
 (0)